From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5404 invoked by alias); 15 Apr 2005 23:38:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5280 invoked from network); 15 Apr 2005 23:38:18 -0000 Received: from unknown (HELO e32.co.us.ibm.com) (32.97.110.130) by sourceware.org with SMTP; 15 Apr 2005 23:38:18 -0000 Received: from westrelay03.boulder.ibm.com (westrelay03.boulder.ibm.com [9.17.195.12]) by e32.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j3FNcH5j119770 for ; Fri, 15 Apr 2005 19:38:17 -0400 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by westrelay03.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j3FNcHAq252104 for ; Fri, 15 Apr 2005 17:38:17 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j3FNcHWa026637 for ; Fri, 15 Apr 2005 17:38:17 -0600 Received: from dyn9047022123-009047022128.beaverton.ibm.com (dyn9047022123-009047022128.beaverton.ibm.com [9.47.22.128]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j3FNcGhE026617; Fri, 15 Apr 2005 17:38:16 -0600 From: Paul Gilliam Reply-To: pgilliam@us.ibm.com To: gdb-patches@sources.redhat.com Subject: [PATCH] Fixes testsuit/gdb.base/annota1.exp to deal with 'Breakpoint address adjusted' Date: Fri, 15 Apr 2005 23:38:00 -0000 User-Agent: KMail/1.6.2 Cc: Daniel Jacobowitz References: <200504071025.11668.pgilliam@us.ibm.com> <20050414193642.GB19792@nevyn.them.org> In-Reply-To: <20050414193642.GB19792@nevyn.them.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200504151638.04458.pgilliam@us.ibm.com> X-SW-Source: 2005-04/txt/msg00177.txt.bz2 OK. =A0this is in partial responce to: =A0=A0=A0=A0=A0=A0=A0=A0http://sourceware.org/ml/gdb-patches/2005-04/msg001= 45.html There were two problems with gdb.base/annota1.exp. This patch is only for = the first one. The problem here is that, in some architectures, a breakpoints in a shared = object will be adjusted once the shared object is loaded. This cause two messages not acc= ounted for by gdb.base/annota1.exp: Breakpoint address adjusted from .... Breakpoint address previously adjusted from ... -=3D# Paul #=3D- -- 2005-04-15 Paul Gilliam * gdb.base/annota1.exp : Deal with messages caused by breakpoints in shared objects being adjusted. Index: gdb.base/annota1.exp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota1.exp,v retrieving revision 1.16 diff -c -3 -p -r1.16 annota1.exp *** gdb.base/annota1.exp 20 Jul 2004 00:24:41 -0000 1.16 --- gdb.base/annota1.exp 21 Sep 2004 20:42:29 -0000 *************** send_gdb "break printf\n" *** 229,234 **** --- 229,236 ---- gdb_expect { -re "\r\n\032\032post-prompt\r\n\r\n\032\032breakpoints-invalid\r\nBre= akpoint.*at $hex.*$gdb_prompt$" \ { pass "breakpoint printf" } + -re "\r\n\032\032post-prompt\r\nwarning: Breakpoint address adjusted = from $hex to $hex.\r\n\r\n\032\032breakpoints-invalid\r\nBreakpoint.*at $he= x.*$gdb_prompt$" \ + { pass "breakpoint printf"} -re ".*$gdb_prompt$" { fail "break printf" } timeout { fail "break printf (timeout)" } } *************** send_gdb "continue\n" *** 240,245 **** --- 242,249 ---- gdb_expect { -re "\r\n\032\032post-prompt\r\nContinuing.\r\n\r\n\032\032starting\r\n= \r\n\032\032frames-invalid\r\n\r\n\032\032breakpoint 3\r\n\r\nBreakpoint 3,= \r\n\032\032frame-begin 0 $hex\r\n\r\n(\032\032frame-address\r\n$hex\r\n\0= 32\032frame-address-end\r\n in \r\n)*\032\032frame-function-name\r\nprintf\= r\n\032\032frame-args\r\n.*\032\032frame-end\r\n\r\n\032\032stopped\r\n$gdb= _prompt$" \ { pass "continue to printf" } + -re "\r\n\032\032post-prompt\r\nContinuing.\r\n\r\n\032\032starting\r\n= \r\n\032\032frames-invalid\r\nwarning: Breakpoint 3 address previously adju= sted from $hex to $hex.\r\n\r\n\032\032breakpoint 3\r\n\r\nBreakpoint 3, \r= \n\032\032frame-begin 0 $hex\r\n\r\n(\032\032frame-address\r\n$hex\r\n\032\= 032frame-address-end\r\n in \r\n)*.*\032\032frame-function-name\r\n.printf\= r\n\032\032frame-args\r\n.*\032\032frame-end\r\n\r\n\032\032stopped\r\n$gdb= _prompt$" \ + { pass "continue to printf" } -re ".*$gdb_prompt$" { fail "continue to printf" } timeout { fail "continue to printf (timeout)" } }