From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 5931339890B4 for ; Tue, 20 Jul 2021 18:07:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5931339890B4 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16KI4Qsu026392; Tue, 20 Jul 2021 14:06:57 -0400 Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0b-001b2d01.pphosted.com with ESMTP id 39x2u1h72n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Jul 2021 14:06:57 -0400 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16KI6kso020518; Tue, 20 Jul 2021 18:06:56 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma01wdc.us.ibm.com with ESMTP id 39upubvdka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Jul 2021 18:06:56 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16KI6t7213238706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Jul 2021 18:06:55 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9EAE4136068; Tue, 20 Jul 2021 18:06:55 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 69B42136051; Tue, 20 Jul 2021 18:06:55 +0000 (GMT) Received: from li-e362e14c-2378-11b2-a85c-87d605f3c641.ibm.com (unknown [9.163.3.57]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 20 Jul 2021 18:06:55 +0000 (GMT) Message-ID: <17fe5c160e330a406af6776e307be95e0e6fab3b.camel@us.ibm.com> From: Carl Love To: Andreas Schwab , Carl Love via Gdb Date: Tue, 20 Jul 2021 11:06:54 -0700 In-Reply-To: References: <20210719164804.GC1688065@embecosm.com> <87k0llct34.fsf@igel.home> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-14.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: dU8f2P-lSRI6YBvKdzFTqfgKNp2MKE9u X-Proofpoint-GUID: dU8f2P-lSRI6YBvKdzFTqfgKNp2MKE9u Subject: RE: Question: gdb.tui/tui-layout-asm.exp X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-20_12:2021-07-19, 2021-07-20 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 clxscore=1015 impostorscore=0 bulkscore=0 mlxlogscore=846 malwarescore=0 phishscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107200119 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, KAM_ASCII_DIVIDERS, KAM_SHORT, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2021 18:07:01 -0000 Andreas: > Carll re_line \|\s+0x100007b0\s+<__gmon_start__@plt>\s+b\s+0x1000077 > 8\s+<__glink_PLTres\| > Carll line1 | 0x100007b0 <__gmon_start__@plt> b 0x10000778 > <__glink_PLTresolve> | <-- the read after the wait_for > read more characters > Carll match > false > > FAIL: gdb.tui/tui-layout-asm.exp: scroll to end of assembler (scroll > failed) > > > The initial read of line 2, which then becomes re_line has fewer > characters in it than when the same line is read the second > time. The > second read occurs following the wait_for statement. > Looking at the screen dumps you can see the output formatting changed based on the length of the fields. Initially the dump looks like: Screen Dump (80 x 24): 0 +------------------------------------------------------------------------------+ 1 | 0x100007ac <__libc_start_main@plt> b 0x10000778 <__glink_PLTres| 2 | 0x100007b0 <__gmon_start__@plt> b 0x10000778 <__glink_PLTres| 3 | 0x100007b4 <_fini> lis r2,4098 | 4 | 0x100007b8 <_fini+4> addi r2,r2,32512 | 5 | 0x100007bc <_fini+8> mflr r0 | After the down key is sent to gdb, the screen dump becomes: FAIL: gdb.tui/tui-layout-asm.exp: scroll to end of assembler (scroll failed) Screen Dump (80 x 24): 0 +------------------------------------------------------------------------------+ 1 | 0x100007b0 <__gmon_start__@plt> b 0x10000778 <__glink_PLTresolve> | 2 | 0x100007b4 <_fini> lis r2,4098 | 3 | 0x100007b8 <_fini+4> addi r2,r2,32512 | 4 | 0x100007bc <_fini+8> mflr r0 | It looks like the width of the second colum changes one the line with < __libc_start_main@plt> is no longer being displayed. I will look to see if we can make the screen width a little wider. Carl