Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fixes testsuit/gdb.base/annota1.exp
@ 2004-09-21 21:43 Paul Gilliam
  2004-09-22 14:01 ` Andrew Cagney
  2004-09-23 17:25 ` Michael Chastain
  0 siblings, 2 replies; 14+ messages in thread
From: Paul Gilliam @ 2004-09-21 21:43 UTC (permalink / raw)
  To: gdb-patches; +Cc: Michael Chastain

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

On powerpc64--linux, annota1.exp has two problems:

1) A breakpoint in a shared object may be 'delayed'.  This changes GDB's 
responce: both when the breakpoint is set and when it is hit.

2) Due to a bug (I which I knew the number), GDB 'skids' past the top-of-stack 
when doing a backtrace.  This causes two extra and severial garbage stack 
frames to be displayed, eventually getting an error.

I have attached three patches: seperate patches for these two problems and one 
patch that fixes them both.  I have also attached test logs so you can see 
what's up.

Ok to commit? (which one(s)?)

-=# Paul #=-

PS:  I thought the 'skidding past top-of-stack' problem was fixed.  But it 
doesn't seem to be in cvs-main as of last week sometime.

[-- Attachment #2: bp_adjust_patch --]
[-- Type: text/x-diff, Size: 2671 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/ChangeLog,v
retrieving revision 1.1013
diff -c -3 -p -r1.1013 ChangeLog
*** ChangeLog	31 Aug 2004 14:43:17 -0000	1.1013
--- ChangeLog	21 Sep 2004 20:42:29 -0000
***************
*** 1,3 ****
--- 1,9 ----
+ 2004-09-21  Paul Gilliam  <pgilliam@us.ibm.com>
+ 
+ 	* gdb.base/annota1.exp (break printf): Deal with "Breakpoint 
+ 	address adjusted".  (continue to printf): Deal with
+ 	"Breakpoint 3 address previously adjusted".
+ 	
  2004-08-31  Andrew Cagney  <cagney@gnu.org>
  
  	* gdb.base/sigstep.exp (breakpoint_to_handler_entry)
Index: gdb.base/annota1.exp
===================================================================
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\nBreakpoint.*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 $hex.*$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\032\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 adjusted 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)" }
  }

[-- Attachment #3: both_patches --]
[-- Type: text/x-diff, Size: 5220 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/ChangeLog,v
retrieving revision 1.1013
diff -c -3 -p -r1.1013 ChangeLog
*** ChangeLog	31 Aug 2004 14:43:17 -0000	1.1013
--- ChangeLog	21 Sep 2004 20:35:54 -0000
***************
*** 1,3 ****
--- 1,11 ----
+ 2004-09-21  Paul Gilliam  <pgilliam@us.ibm.com>
+ 
+ 	* gdb.base/annota1.exp (break printf): Deal with "Breakpoint 
+ 	address adjusted".  (continue to printf): Deal with
+ 	"Breakpoint 3 address previously adjusted".
+ 	(backtrace from shlibrary): Deal with GDB 'skidding' past the
+ 	top-of-stack in a backtrace.  All on powerpc64--linux.
+ 	
  2004-08-31  Andrew Cagney  <cagney@gnu.org>
  
  	* gdb.base/sigstep.exp (breakpoint_to_handler_entry)
Index: gdb.base/annota1.exp
===================================================================
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:35:54 -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\nBreakpoint.*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 $hex.*$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\032\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 adjusted 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)" }
  }
*************** send_gdb "backtrace\n"
*** 254,259 ****
--- 258,265 ----
  gdb_expect {
      -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0  \r\n(\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n)*\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(.*frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1  \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n${escapedsrcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n(\r\n\032\032frame-begin .*\r\n\r\n\032\032frame-end\r\n)*$gdb_prompt$" \
  	  { pass "backtrace from shlibrary" }
+      -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0  \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 \\(.*frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1  \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n${escapedsrcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n(\r\n\032\032frame-begin .*\r\n\r\n\032\032frame-end\r\n)\r\n\032\032error-begin\r\n.*\032\032error\r\n$gdb_prompt$" \
+ 	  { pass "backtrace from shlibrary" }
      -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0  \r\n(\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n)*\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(.*frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1  \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n.*${srcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n(\r\n\032\032frame-begin .*\r\n\r\n\032\032frame-end\r\n)*$gdb_prompt$" \
  	  { setup_xfail "*-*-*" 1270
              fail "backtrace from shlibrary" }

[-- Attachment #4: bt_skid_patch --]
[-- Type: text/x-diff, Size: 3355 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/ChangeLog,v
retrieving revision 1.1013
diff -c -3 -p -r1.1013 ChangeLog
*** ChangeLog	31 Aug 2004 14:43:17 -0000	1.1013
--- ChangeLog	21 Sep 2004 20:45:39 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2004-09-21  Paul Gilliam  <pgilliam@us.ibm.com>
+ 
+ 	* gdb.base/annota1.exp (backtrace from shlibrary):
+ 	Deal with GDB 'skidding' past the top-of-stack in a backtrace.
+ 	
  2004-08-31  Andrew Cagney  <cagney@gnu.org>
  
  	* gdb.base/sigstep.exp (breakpoint_to_handler_entry)
Index: gdb.base/annota1.exp
===================================================================
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:45:39 -0000
*************** send_gdb "backtrace\n"
*** 254,259 ****
--- 254,261 ----
  gdb_expect {
      -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0  \r\n(\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n)*\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(.*frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1  \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n${escapedsrcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n(\r\n\032\032frame-begin .*\r\n\r\n\032\032frame-end\r\n)*$gdb_prompt$" \
  	  { pass "backtrace from shlibrary" }
+      -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0  \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 \\(.*frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1  \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n${escapedsrcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n(\r\n\032\032frame-begin .*\r\n\r\n\032\032frame-end\r\n)\r\n\032\032error-begin\r\n.*\032\032error\r\n$gdb_prompt$" \
+ 	  { pass "backtrace from shlibrary" }
      -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0  \r\n(\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n)*\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(.*frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1  \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n.*${srcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n(\r\n\032\032frame-begin .*\r\n\r\n\032\032frame-end\r\n)*$gdb_prompt$" \
  	  { setup_xfail "*-*-*" 1270
              fail "backtrace from shlibrary" }

[-- Attachment #5: gdb.log_after_both_patches --]
[-- Type: text/plain, Size: 13384 bytes --]

Test Run By pgilliam on Tue Sep 21 21:16:01 2004
Native configuration is powerpc64-unknown-linux-gnu

		=== gdb tests ===

Schedule of variations:
    unix/-m64

Running target unix/-m64
Using ./dejagnu/baseboards/unix.exp as board description file for target.
Using ./dejagnu/config/unix.exp as generic interface file for target.
Using ./config/unix.exp as tool-and-target-specific interface file.
Running ./gdb.base/annota1.exp ...
Executing on host: gcc ./gdb.base/annota1.c  -w -g  -lm   -m64 -o /home/pgilliam/testsuite/gdb.base/annota1    (timeout = 300)
spawn gcc ./gdb.base/annota1.c -w -g -lm -m64 -o /home/pgilliam/testsuite/gdb.base/annota1 
spawn /home/pgilliam/build-64/gdb/gdb -nw -nx 
GNU gdb 2004-08-31-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64--linux".
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ./gdb.base
Source directories searched: /home/pgilliam/testsuite/./gdb.base:$cdir:$cwd
(gdb) file /home/pgilliam/testsuite/gdb.base/annota1
Reading symbols from /home/pgilliam/testsuite/gdb.base/annota1...done.
Using host libthread_db library "/lib64/tls/libthread_db.so.1".
(gdb) set height 0
(gdb) break main
Breakpoint 1 at 0x100005c4: file ./gdb.base/annota1.c, line 32.
(gdb) PASS: gdb.base/annota1.exp: breakpoint main
set annotate 2

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: annotation set at level 2
info break

\x1a\x1apost-prompt

\x1a\x1abreakpoints-headers

\x1a\x1afield 0
Num 
\x1a\x1afield 1
Type           
\x1a\x1afield 2
Disp 
\x1a\x1afield 3
Enb 
\x1a\x1afield 4
Address            
\x1a\x1afield 5
What

\x1a\x1abreakpoints-table

\x1a\x1arecord

\x1a\x1afield 0
1   
\x1a\x1afield 1
breakpoint     
\x1a\x1afield 2
keep 
\x1a\x1afield 3
y   
\x1a\x1afield 4
0x00000000100005c4 
\x1a\x1afield 5
in main at ./gdb.base/annota1.c:32

\x1a\x1abreakpoints-table-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint info
run

\x1a\x1apost-prompt
Starting program: /home/pgilliam/testsuite/gdb.base/annota1 

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoints-invalid

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 1

Breakpoint 1, 
\x1a\x1aframe-begin 0 0x100005c4

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
32
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:32:323:beg:0x100005c4

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: run until main breakpoint
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:34:359:beg:0x100005d8

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: go after array init line
print my_array

\x1a\x1apost-prompt

\x1a\x1avalue-history-begin 1 -
$1 = 
\x1a\x1avalue-history-value
{
\x1a\x1aarray-section-begin 0 -
1
\x1a\x1aelt
, 2
\x1a\x1aelt
, 3
\x1a\x1aelt

\x1a\x1aarray-section-end
}

\x1a\x1avalue-history-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: print array
print non_existent_value

\x1a\x1apost-prompt

\x1a\x1aerror-begin
No symbol "non_existent_value" in current context.

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: print non_existent_value
break handle_USR1

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 2 at 0x10000598: file ./gdb.base/annota1.c, line 18.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint handle_USR1
break printf

\x1a\x1apost-prompt
warning: Breakpoint address adjusted from 0x80c5a66c78 to 0x80c59643a8.

\x1a\x1abreakpoints-invalid
Breakpoint 3 at 0x80c59643a8

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint printf
continue

\x1a\x1apost-prompt
Continuing.

\x1a\x1astarting

\x1a\x1aframes-invalid
warning: Breakpoint 3 address previously adjusted from 0x80c5a66c78 to 0x80c59643a8.

\x1a\x1abreakpoint 3

Breakpoint 3, 
\x1a\x1aframe-begin 0 0x80c59643a8

\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: continue to printf
backtrace

\x1a\x1apost-prompt

\x1a\x1aframe-begin 0 0x80c59643a8
#0  
\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 1 0x1000060c
#1  
\x1a\x1aframe-address
0x000000001000060c
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
40
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 2 0x80c5932810
#2  
\x1a\x1aframe-address
0x00000080c5932810
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.generic_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 3 0x80c5932998
#3  
\x1a\x1aframe-address
0x00000080c5932998
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.__libc_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 4 0x0
#4  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aframe-begin 5 0x0
#5  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aerror-begin
Previous frame identical to this frame (corrupt stack?)

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: backtrace from shlibrary
signal SIGUSR1

\x1a\x1apost-prompt
Continuing with signal SIGUSR1.

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 2

Breakpoint 2, 
\x1a\x1aframe-begin 0 0x10000598

\x1a\x1aframe-function-name
handle_USR1
\x1a\x1aframe-args
 (
\x1a\x1aarg-begin
sig
\x1a\x1aarg-name-end
=
\x1a\x1aarg-value -
10
\x1a\x1aarg-end
)
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
18
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:18:238:beg:0x10000598

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: send SIGUSR1
backtrace

\x1a\x1apost-prompt

\x1a\x1aframe-begin 0 0x10000598
#0  
\x1a\x1aframe-function-name
handle_USR1
\x1a\x1aframe-args
 (
\x1a\x1aarg-begin
sig
\x1a\x1aarg-name-end
=
\x1a\x1aarg-value -
10
\x1a\x1aarg-end
)
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
18
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 1 0x1fffffff048
#1  
\x1a\x1asignal-handler-caller
<signal handler called>

\x1a\x1aframe-end

\x1a\x1aframe-begin 2 0x80c59643a8
#2  
\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 3 0x1000060c
#3  
\x1a\x1aframe-address
0x000000001000060c
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
40
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 4 0x80c5932810
#4  
\x1a\x1aframe-address
0x00000080c5932810
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.generic_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 5 0x80c5932998
#5  
\x1a\x1aframe-address
0x00000080c5932998
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.__libc_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 6 0x0
#6  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aframe-begin 7 0x0
#7  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aerror-begin
Previous frame identical to this frame (corrupt stack?)

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: backtrace @ signal handler
delete 1

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 1
delete 2

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 2
delete 3

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 3
break main

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 4 at 0x100005c4: file ./gdb.base/annota1.c, line 32.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: break at 28
display value

\x1a\x1apost-prompt

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
7

\x1a\x1adisplay-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: set up display
run

\x1a\x1apost-prompt

\x1a\x1apre-query
The program being debugged has been started already.
Start it from the beginning? (y or n) 
\x1a\x1aquery
y

\x1a\x1apost-query

\x1a\x1aframes-invalid
Starting program: /home/pgilliam/testsuite/gdb.base/annota1 

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoints-invalid

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 4

Breakpoint 4, 
\x1a\x1aframe-begin 0 0x100005c4

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
32
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:32:323:beg:0x100005c4

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
0

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: re-run
break 46

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 5 at 0x1000063c: file ./gdb.base/annota1.c, line 46.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: break at 46
ignore 5 4

\x1a\x1apost-prompt
Will ignore next 4 crossings of breakpoint 5.
\x1a\x1abreakpoints-invalid


\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: ignore 5 4
continue

\x1a\x1apost-prompt
Continuing.

\x1a\x1astarting

\x1a\x1aframes-invalid
value is 7
my_array[2] is 3

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 5

Breakpoint 5, 
\x1a\x1aframe-begin 0 0x1000063c

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
46
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:46:559:beg:0x1000063c

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
11

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1abreakpoints-invalid

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: annotate ignore count change
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:45:531:beg:0x10000650

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
12

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:49:579:beg:0x10000660

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
12

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint ignore count
signal SIGTRAP

\x1a\x1apost-prompt
Continuing with signal SIGTRAP.

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asignalled

Program terminated with signal 
\x1a\x1asignal-name
SIGTRAP
\x1a\x1asignal-name-end
, 
\x1a\x1asignal-string
Trace/breakpoint trap
\x1a\x1asignal-string-end
.
The program no longer exists.

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: signal sent
Executing on build: ls core    (timeout = 300)
spawn ls core 
ls: core: No such file or directory
PASS: gdb.base/annota1.exp: cleanup core file (not dumped)
testcase ./gdb.base/annota1.exp completed in 1 seconds

		=== gdb Summary ===

# of expected passes		25
Executing on host: /home/pgilliam/build-64/gdb/gdb -nw --command gdb_cmd    (timeout = 300)
spawn /home/pgilliam/build-64/gdb/gdb -nw --command gdb_cmd 
GNU gdb 2004-08-31-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64--linux".
/home/pgilliam/build-64/gdb/gdb version  2004-08-31-cvs -nx

runtest completed at Tue Sep 21 21:16:02 2004

[-- Attachment #6: gdb.log_after_bt_skid_patch --]
[-- Type: text/plain, Size: 13406 bytes --]

Test Run By pgilliam on Tue Sep 21 21:34:19 2004
Native configuration is powerpc64-unknown-linux-gnu

		=== gdb tests ===

Schedule of variations:
    unix/-m64

Running target unix/-m64
Using ./dejagnu/baseboards/unix.exp as board description file for target.
Using ./dejagnu/config/unix.exp as generic interface file for target.
Using ./config/unix.exp as tool-and-target-specific interface file.
Running ./gdb.base/annota1.exp ...
Executing on host: gcc ./gdb.base/annota1.c  -w -g  -lm   -m64 -o /home/pgilliam/testsuite/gdb.base/annota1    (timeout = 300)
spawn gcc ./gdb.base/annota1.c -w -g -lm -m64 -o /home/pgilliam/testsuite/gdb.base/annota1 
spawn /home/pgilliam/build-64/gdb/gdb -nw -nx 
GNU gdb 2004-08-31-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64--linux".
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ./gdb.base
Source directories searched: /home/pgilliam/testsuite/./gdb.base:$cdir:$cwd
(gdb) file /home/pgilliam/testsuite/gdb.base/annota1
Reading symbols from /home/pgilliam/testsuite/gdb.base/annota1...done.
Using host libthread_db library "/lib64/tls/libthread_db.so.1".
(gdb) set height 0
(gdb) break main
Breakpoint 1 at 0x100005c4: file ./gdb.base/annota1.c, line 32.
(gdb) PASS: gdb.base/annota1.exp: breakpoint main
set annotate 2

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: annotation set at level 2
info break

\x1a\x1apost-prompt

\x1a\x1abreakpoints-headers

\x1a\x1afield 0
Num 
\x1a\x1afield 1
Type           
\x1a\x1afield 2
Disp 
\x1a\x1afield 3
Enb 
\x1a\x1afield 4
Address            
\x1a\x1afield 5
What

\x1a\x1abreakpoints-table

\x1a\x1arecord

\x1a\x1afield 0
1   
\x1a\x1afield 1
breakpoint     
\x1a\x1afield 2
keep 
\x1a\x1afield 3
y   
\x1a\x1afield 4
0x00000000100005c4 
\x1a\x1afield 5
in main at ./gdb.base/annota1.c:32

\x1a\x1abreakpoints-table-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint info
run

\x1a\x1apost-prompt
Starting program: /home/pgilliam/testsuite/gdb.base/annota1 

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoints-invalid

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 1

Breakpoint 1, 
\x1a\x1aframe-begin 0 0x100005c4

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
32
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:32:323:beg:0x100005c4

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: run until main breakpoint
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:34:359:beg:0x100005d8

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: go after array init line
print my_array

\x1a\x1apost-prompt

\x1a\x1avalue-history-begin 1 -
$1 = 
\x1a\x1avalue-history-value
{
\x1a\x1aarray-section-begin 0 -
1
\x1a\x1aelt
, 2
\x1a\x1aelt
, 3
\x1a\x1aelt

\x1a\x1aarray-section-end
}

\x1a\x1avalue-history-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: print array
print non_existent_value

\x1a\x1apost-prompt

\x1a\x1aerror-begin
No symbol "non_existent_value" in current context.

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: print non_existent_value
break handle_USR1

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 2 at 0x10000598: file ./gdb.base/annota1.c, line 18.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint handle_USR1
break printf

\x1a\x1apost-prompt
warning: Breakpoint address adjusted from 0x80c5a66c78 to 0x80c59643a8.

\x1a\x1abreakpoints-invalid
Breakpoint 3 at 0x80c59643a8

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
FAIL: gdb.base/annota1.exp: break printf
continue

\x1a\x1apost-prompt
Continuing.

\x1a\x1astarting

\x1a\x1aframes-invalid
warning: Breakpoint 3 address previously adjusted from 0x80c5a66c78 to 0x80c59643a8.

\x1a\x1abreakpoint 3

Breakpoint 3, 
\x1a\x1aframe-begin 0 0x80c59643a8

\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
FAIL: gdb.base/annota1.exp: continue to printf
backtrace

\x1a\x1apost-prompt

\x1a\x1aframe-begin 0 0x80c59643a8
#0  
\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 1 0x1000060c
#1  
\x1a\x1aframe-address
0x000000001000060c
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
40
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 2 0x80c5932810
#2  
\x1a\x1aframe-address
0x00000080c5932810
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.generic_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 3 0x80c5932998
#3  
\x1a\x1aframe-address
0x00000080c5932998
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.__libc_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 4 0x0
#4  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aframe-begin 5 0x0
#5  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aerror-begin
Previous frame identical to this frame (corrupt stack?)

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: backtrace from shlibrary
signal SIGUSR1

\x1a\x1apost-prompt
Continuing with signal SIGUSR1.

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 2

Breakpoint 2, 
\x1a\x1aframe-begin 0 0x10000598

\x1a\x1aframe-function-name
handle_USR1
\x1a\x1aframe-args
 (
\x1a\x1aarg-begin
sig
\x1a\x1aarg-name-end
=
\x1a\x1aarg-value -
10
\x1a\x1aarg-end
)
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
18
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:18:238:beg:0x10000598

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: send SIGUSR1
backtrace

\x1a\x1apost-prompt

\x1a\x1aframe-begin 0 0x10000598
#0  
\x1a\x1aframe-function-name
handle_USR1
\x1a\x1aframe-args
 (
\x1a\x1aarg-begin
sig
\x1a\x1aarg-name-end
=
\x1a\x1aarg-value -
10
\x1a\x1aarg-end
)
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
18
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 1 0x1fffffff048
#1  
\x1a\x1asignal-handler-caller
<signal handler called>

\x1a\x1aframe-end

\x1a\x1aframe-begin 2 0x80c59643a8
#2  
\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 3 0x1000060c
#3  
\x1a\x1aframe-address
0x000000001000060c
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
40
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 4 0x80c5932810
#4  
\x1a\x1aframe-address
0x00000080c5932810
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.generic_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 5 0x80c5932998
#5  
\x1a\x1aframe-address
0x00000080c5932998
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.__libc_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 6 0x0
#6  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aframe-begin 7 0x0
#7  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aerror-begin
Previous frame identical to this frame (corrupt stack?)

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: backtrace @ signal handler
delete 1

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 1
delete 2

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 2
delete 3

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 3
break main

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 4 at 0x100005c4: file ./gdb.base/annota1.c, line 32.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: break at 28
display value

\x1a\x1apost-prompt

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
7

\x1a\x1adisplay-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: set up display
run

\x1a\x1apost-prompt

\x1a\x1apre-query
The program being debugged has been started already.
Start it from the beginning? (y or n) 
\x1a\x1aquery
y

\x1a\x1apost-query

\x1a\x1aframes-invalid
Starting program: /home/pgilliam/testsuite/gdb.base/annota1 

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoints-invalid

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 4

Breakpoint 4, 
\x1a\x1aframe-begin 0 0x100005c4

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
32
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:32:323:beg:0x100005c4

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
0

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: re-run
break 46

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 5 at 0x1000063c: file ./gdb.base/annota1.c, line 46.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: break at 46
ignore 5 4

\x1a\x1apost-prompt
Will ignore next 4 crossings of breakpoint 5.
\x1a\x1abreakpoints-invalid


\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: ignore 5 4
continue

\x1a\x1apost-prompt
Continuing.

\x1a\x1astarting

\x1a\x1aframes-invalid
value is 7
my_array[2] is 3

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 5

Breakpoint 5, 
\x1a\x1aframe-begin 0 0x1000063c

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
46
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:46:559:beg:0x1000063c

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
11

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1abreakpoints-invalid

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: annotate ignore count change
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:45:531:beg:0x10000650

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
12

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:49:579:beg:0x10000660

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
12

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint ignore count
signal SIGTRAP

\x1a\x1apost-prompt
Continuing with signal SIGTRAP.

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asignalled

Program terminated with signal 
\x1a\x1asignal-name
SIGTRAP
\x1a\x1asignal-name-end
, 
\x1a\x1asignal-string
Trace/breakpoint trap
\x1a\x1asignal-string-end
.
The program no longer exists.

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: signal sent
Executing on build: ls core    (timeout = 300)
spawn ls core 
ls: core: No such file or directory
PASS: gdb.base/annota1.exp: cleanup core file (not dumped)
testcase ./gdb.base/annota1.exp completed in 1 seconds

		=== gdb Summary ===

# of expected passes		23
# of unexpected failures	2
Executing on host: /home/pgilliam/build-64/gdb/gdb -nw --command gdb_cmd    (timeout = 300)
spawn /home/pgilliam/build-64/gdb/gdb -nw --command gdb_cmd 
GNU gdb 2004-08-31-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64--linux".
/home/pgilliam/build-64/gdb/gdb version  2004-08-31-cvs -nx

runtest completed at Tue Sep 21 21:34:20 2004

[-- Attachment #7: gdb.log_after_bp_adjust_patch --]
[-- Type: text/plain, Size: 13411 bytes --]

Test Run By pgilliam on Tue Sep 21 21:40:07 2004
Native configuration is powerpc64-unknown-linux-gnu

		=== gdb tests ===

Schedule of variations:
    unix/-m64

Running target unix/-m64
Using ./dejagnu/baseboards/unix.exp as board description file for target.
Using ./dejagnu/config/unix.exp as generic interface file for target.
Using ./config/unix.exp as tool-and-target-specific interface file.
Running ./gdb.base/annota1.exp ...
Executing on host: gcc ./gdb.base/annota1.c  -w -g  -lm   -m64 -o /home/pgilliam/testsuite/gdb.base/annota1    (timeout = 300)
spawn gcc ./gdb.base/annota1.c -w -g -lm -m64 -o /home/pgilliam/testsuite/gdb.base/annota1 
spawn /home/pgilliam/build-64/gdb/gdb -nw -nx 
GNU gdb 2004-08-31-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64--linux".
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ./gdb.base
Source directories searched: /home/pgilliam/testsuite/./gdb.base:$cdir:$cwd
(gdb) file /home/pgilliam/testsuite/gdb.base/annota1
Reading symbols from /home/pgilliam/testsuite/gdb.base/annota1...done.
Using host libthread_db library "/lib64/tls/libthread_db.so.1".
(gdb) set height 0
(gdb) break main
Breakpoint 1 at 0x100005c4: file ./gdb.base/annota1.c, line 32.
(gdb) PASS: gdb.base/annota1.exp: breakpoint main
set annotate 2

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: annotation set at level 2
info break

\x1a\x1apost-prompt

\x1a\x1abreakpoints-headers

\x1a\x1afield 0
Num 
\x1a\x1afield 1
Type           
\x1a\x1afield 2
Disp 
\x1a\x1afield 3
Enb 
\x1a\x1afield 4
Address            
\x1a\x1afield 5
What

\x1a\x1abreakpoints-table

\x1a\x1arecord

\x1a\x1afield 0
1   
\x1a\x1afield 1
breakpoint     
\x1a\x1afield 2
keep 
\x1a\x1afield 3
y   
\x1a\x1afield 4
0x00000000100005c4 
\x1a\x1afield 5
in main at ./gdb.base/annota1.c:32

\x1a\x1abreakpoints-table-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint info
run

\x1a\x1apost-prompt
Starting program: /home/pgilliam/testsuite/gdb.base/annota1 

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoints-invalid

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 1

Breakpoint 1, 
\x1a\x1aframe-begin 0 0x100005c4

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
32
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:32:323:beg:0x100005c4

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: run until main breakpoint
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:34:359:beg:0x100005d8

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: go after array init line
print my_array

\x1a\x1apost-prompt

\x1a\x1avalue-history-begin 1 -
$1 = 
\x1a\x1avalue-history-value
{
\x1a\x1aarray-section-begin 0 -
1
\x1a\x1aelt
, 2
\x1a\x1aelt
, 3
\x1a\x1aelt

\x1a\x1aarray-section-end
}

\x1a\x1avalue-history-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: print array
print non_existent_value

\x1a\x1apost-prompt

\x1a\x1aerror-begin
No symbol "non_existent_value" in current context.

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: print non_existent_value
break handle_USR1

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 2 at 0x10000598: file ./gdb.base/annota1.c, line 18.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint handle_USR1
break printf

\x1a\x1apost-prompt
warning: Breakpoint address adjusted from 0x80c5a66c78 to 0x80c59643a8.

\x1a\x1abreakpoints-invalid
Breakpoint 3 at 0x80c59643a8

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint printf
continue

\x1a\x1apost-prompt
Continuing.

\x1a\x1astarting

\x1a\x1aframes-invalid
warning: Breakpoint 3 address previously adjusted from 0x80c5a66c78 to 0x80c59643a8.

\x1a\x1abreakpoint 3

Breakpoint 3, 
\x1a\x1aframe-begin 0 0x80c59643a8

\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: continue to printf
backtrace

\x1a\x1apost-prompt

\x1a\x1aframe-begin 0 0x80c59643a8
#0  
\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 1 0x1000060c
#1  
\x1a\x1aframe-address
0x000000001000060c
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
40
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 2 0x80c5932810
#2  
\x1a\x1aframe-address
0x00000080c5932810
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.generic_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 3 0x80c5932998
#3  
\x1a\x1aframe-address
0x00000080c5932998
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.__libc_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 4 0x0
#4  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aframe-begin 5 0x0
#5  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aerror-begin
Previous frame identical to this frame (corrupt stack?)

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
FAIL: gdb.base/annota1.exp: backtrace from shlibrary
signal SIGUSR1

\x1a\x1apost-prompt
Continuing with signal SIGUSR1.

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 2

Breakpoint 2, 
\x1a\x1aframe-begin 0 0x10000598

\x1a\x1aframe-function-name
handle_USR1
\x1a\x1aframe-args
 (
\x1a\x1aarg-begin
sig
\x1a\x1aarg-name-end
=
\x1a\x1aarg-value -
10
\x1a\x1aarg-end
)
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
18
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:18:238:beg:0x10000598

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: send SIGUSR1
backtrace

\x1a\x1apost-prompt

\x1a\x1aframe-begin 0 0x10000598
#0  
\x1a\x1aframe-function-name
handle_USR1
\x1a\x1aframe-args
 (
\x1a\x1aarg-begin
sig
\x1a\x1aarg-name-end
=
\x1a\x1aarg-value -
10
\x1a\x1aarg-end
)
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
18
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 1 0x1fffffff048
#1  
\x1a\x1asignal-handler-caller
<signal handler called>

\x1a\x1aframe-end

\x1a\x1aframe-begin 2 0x80c59643a8
#2  
\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 3 0x1000060c
#3  
\x1a\x1aframe-address
0x000000001000060c
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
40
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 4 0x80c5932810
#4  
\x1a\x1aframe-address
0x00000080c5932810
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.generic_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 5 0x80c5932998
#5  
\x1a\x1aframe-address
0x00000080c5932998
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.__libc_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 6 0x0
#6  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aframe-begin 7 0x0
#7  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aerror-begin
Previous frame identical to this frame (corrupt stack?)

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: backtrace @ signal handler
delete 1

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 1
delete 2

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 2
delete 3

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 3
break main

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 4 at 0x100005c4: file ./gdb.base/annota1.c, line 32.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: break at 28
display value

\x1a\x1apost-prompt

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
7

\x1a\x1adisplay-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: set up display
run

\x1a\x1apost-prompt

\x1a\x1apre-query
The program being debugged has been started already.
Start it from the beginning? (y or n) 
\x1a\x1aquery
y

\x1a\x1apost-query

\x1a\x1aframes-invalid
Starting program: /home/pgilliam/testsuite/gdb.base/annota1 

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoints-invalid

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 4

Breakpoint 4, 
\x1a\x1aframe-begin 0 0x100005c4

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
32
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:32:323:beg:0x100005c4

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
0

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: re-run
break 46

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 5 at 0x1000063c: file ./gdb.base/annota1.c, line 46.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: break at 46
ignore 5 4

\x1a\x1apost-prompt
Will ignore next 4 crossings of breakpoint 5.
\x1a\x1abreakpoints-invalid


\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: ignore 5 4
continue

\x1a\x1apost-prompt
Continuing.

\x1a\x1astarting

\x1a\x1aframes-invalid
value is 7
my_array[2] is 3

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 5

Breakpoint 5, 
\x1a\x1aframe-begin 0 0x1000063c

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
46
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:46:559:beg:0x1000063c

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
11

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1abreakpoints-invalid

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: annotate ignore count change
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:45:531:beg:0x10000650

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
12

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:49:579:beg:0x10000660

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
12

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint ignore count
signal SIGTRAP

\x1a\x1apost-prompt
Continuing with signal SIGTRAP.

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asignalled

Program terminated with signal 
\x1a\x1asignal-name
SIGTRAP
\x1a\x1asignal-name-end
, 
\x1a\x1asignal-string
Trace/breakpoint trap
\x1a\x1asignal-string-end
.
The program no longer exists.

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: signal sent
Executing on build: ls core    (timeout = 300)
spawn ls core 
ls: core: No such file or directory
PASS: gdb.base/annota1.exp: cleanup core file (not dumped)
testcase ./gdb.base/annota1.exp completed in 1 seconds

		=== gdb Summary ===

# of expected passes		24
# of unexpected failures	1
Executing on host: /home/pgilliam/build-64/gdb/gdb -nw --command gdb_cmd    (timeout = 300)
spawn /home/pgilliam/build-64/gdb/gdb -nw --command gdb_cmd 
GNU gdb 2004-08-31-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64--linux".
/home/pgilliam/build-64/gdb/gdb version  2004-08-31-cvs -nx

runtest completed at Tue Sep 21 21:40:08 2004

[-- Attachment #8: gdb.log_before --]
[-- Type: text/plain, Size: 13406 bytes --]

Test Run By pgilliam on Tue Sep 21 21:28:46 2004
Native configuration is powerpc64-unknown-linux-gnu

		=== gdb tests ===

Schedule of variations:
    unix/-m64

Running target unix/-m64
Using ./dejagnu/baseboards/unix.exp as board description file for target.
Using ./dejagnu/config/unix.exp as generic interface file for target.
Using ./config/unix.exp as tool-and-target-specific interface file.
Running ./gdb.base/annota1.exp ...
Executing on host: gcc ./gdb.base/annota1.c  -w -g  -lm   -m64 -o /home/pgilliam/testsuite/gdb.base/annota1    (timeout = 300)
spawn gcc ./gdb.base/annota1.c -w -g -lm -m64 -o /home/pgilliam/testsuite/gdb.base/annota1 
spawn /home/pgilliam/build-64/gdb/gdb -nw -nx 
GNU gdb 2004-08-31-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64--linux".
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ./gdb.base
Source directories searched: /home/pgilliam/testsuite/./gdb.base:$cdir:$cwd
(gdb) file /home/pgilliam/testsuite/gdb.base/annota1
Reading symbols from /home/pgilliam/testsuite/gdb.base/annota1...done.
Using host libthread_db library "/lib64/tls/libthread_db.so.1".
(gdb) set height 0
(gdb) break main
Breakpoint 1 at 0x100005c4: file ./gdb.base/annota1.c, line 32.
(gdb) PASS: gdb.base/annota1.exp: breakpoint main
set annotate 2

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: annotation set at level 2
info break

\x1a\x1apost-prompt

\x1a\x1abreakpoints-headers

\x1a\x1afield 0
Num 
\x1a\x1afield 1
Type           
\x1a\x1afield 2
Disp 
\x1a\x1afield 3
Enb 
\x1a\x1afield 4
Address            
\x1a\x1afield 5
What

\x1a\x1abreakpoints-table

\x1a\x1arecord

\x1a\x1afield 0
1   
\x1a\x1afield 1
breakpoint     
\x1a\x1afield 2
keep 
\x1a\x1afield 3
y   
\x1a\x1afield 4
0x00000000100005c4 
\x1a\x1afield 5
in main at ./gdb.base/annota1.c:32

\x1a\x1abreakpoints-table-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint info
run

\x1a\x1apost-prompt
Starting program: /home/pgilliam/testsuite/gdb.base/annota1 

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoints-invalid

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 1

Breakpoint 1, 
\x1a\x1aframe-begin 0 0x100005c4

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
32
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:32:323:beg:0x100005c4

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: run until main breakpoint
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:34:359:beg:0x100005d8

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: go after array init line
print my_array

\x1a\x1apost-prompt

\x1a\x1avalue-history-begin 1 -
$1 = 
\x1a\x1avalue-history-value
{
\x1a\x1aarray-section-begin 0 -
1
\x1a\x1aelt
, 2
\x1a\x1aelt
, 3
\x1a\x1aelt

\x1a\x1aarray-section-end
}

\x1a\x1avalue-history-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: print array
print non_existent_value

\x1a\x1apost-prompt

\x1a\x1aerror-begin
No symbol "non_existent_value" in current context.

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: print non_existent_value
break handle_USR1

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 2 at 0x10000598: file ./gdb.base/annota1.c, line 18.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint handle_USR1
break printf

\x1a\x1apost-prompt
warning: Breakpoint address adjusted from 0x80c5a66c78 to 0x80c59643a8.

\x1a\x1abreakpoints-invalid
Breakpoint 3 at 0x80c59643a8

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
FAIL: gdb.base/annota1.exp: break printf
continue

\x1a\x1apost-prompt
Continuing.

\x1a\x1astarting

\x1a\x1aframes-invalid
warning: Breakpoint 3 address previously adjusted from 0x80c5a66c78 to 0x80c59643a8.

\x1a\x1abreakpoint 3

Breakpoint 3, 
\x1a\x1aframe-begin 0 0x80c59643a8

\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
FAIL: gdb.base/annota1.exp: continue to printf
backtrace

\x1a\x1apost-prompt

\x1a\x1aframe-begin 0 0x80c59643a8
#0  
\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 1 0x1000060c
#1  
\x1a\x1aframe-address
0x000000001000060c
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
40
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 2 0x80c5932810
#2  
\x1a\x1aframe-address
0x00000080c5932810
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.generic_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 3 0x80c5932998
#3  
\x1a\x1aframe-address
0x00000080c5932998
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.__libc_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 4 0x0
#4  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aframe-begin 5 0x0
#5  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aerror-begin
Previous frame identical to this frame (corrupt stack?)

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
FAIL: gdb.base/annota1.exp: backtrace from shlibrary
signal SIGUSR1

\x1a\x1apost-prompt
Continuing with signal SIGUSR1.

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 2

Breakpoint 2, 
\x1a\x1aframe-begin 0 0x10000598

\x1a\x1aframe-function-name
handle_USR1
\x1a\x1aframe-args
 (
\x1a\x1aarg-begin
sig
\x1a\x1aarg-name-end
=
\x1a\x1aarg-value -
10
\x1a\x1aarg-end
)
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
18
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:18:238:beg:0x10000598

\x1a\x1aframe-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: send SIGUSR1
backtrace

\x1a\x1apost-prompt

\x1a\x1aframe-begin 0 0x10000598
#0  
\x1a\x1aframe-function-name
handle_USR1
\x1a\x1aframe-args
 (
\x1a\x1aarg-begin
sig
\x1a\x1aarg-name-end
=
\x1a\x1aarg-value -
10
\x1a\x1aarg-end
)
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
18
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 1 0x1fffffff048
#1  
\x1a\x1asignal-handler-caller
<signal handler called>

\x1a\x1aframe-end

\x1a\x1aframe-begin 2 0x80c59643a8
#2  
\x1a\x1aframe-address
0x00000080c59643a8
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.printf
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 3 0x1000060c
#3  
\x1a\x1aframe-address
0x000000001000060c
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
40
\x1a\x1aframe-source-end


\x1a\x1aframe-end

\x1a\x1aframe-begin 4 0x80c5932810
#4  
\x1a\x1aframe-address
0x00000080c5932810
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.generic_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 5 0x80c5932998
#5  
\x1a\x1aframe-address
0x00000080c5932998
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
.__libc_start_main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-where
 from /lib64/tls/libc.so.6

\x1a\x1aframe-end

\x1a\x1aframe-begin 6 0x0
#6  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aframe-begin 7 0x0
#7  
\x1a\x1aframe-address
0x0000000000000000
\x1a\x1aframe-address-end
 in 
\x1a\x1aframe-function-name
??
\x1a\x1aframe-args
 ()

\x1a\x1aframe-end

\x1a\x1aerror-begin
Previous frame identical to this frame (corrupt stack?)

\x1a\x1aerror

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: backtrace @ signal handler
delete 1

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 1
delete 2

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 2
delete 3

\x1a\x1apost-prompt

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: delete bp 3
break main

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 4 at 0x100005c4: file ./gdb.base/annota1.c, line 32.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: break at 28
display value

\x1a\x1apost-prompt

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
7

\x1a\x1adisplay-end

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: set up display
run

\x1a\x1apost-prompt

\x1a\x1apre-query
The program being debugged has been started already.
Start it from the beginning? (y or n) 
\x1a\x1aquery
y

\x1a\x1apost-query

\x1a\x1aframes-invalid
Starting program: /home/pgilliam/testsuite/gdb.base/annota1 

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoints-invalid

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 4

Breakpoint 4, 
\x1a\x1aframe-begin 0 0x100005c4

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
32
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:32:323:beg:0x100005c4

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
0

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: re-run
break 46

\x1a\x1apost-prompt

\x1a\x1abreakpoints-invalid
Breakpoint 5 at 0x1000063c: file ./gdb.base/annota1.c, line 46.

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: break at 46
ignore 5 4

\x1a\x1apost-prompt
Will ignore next 4 crossings of breakpoint 5.
\x1a\x1abreakpoints-invalid


\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: ignore 5 4
continue

\x1a\x1apost-prompt
Continuing.

\x1a\x1astarting

\x1a\x1aframes-invalid
value is 7
my_array[2] is 3

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1abreakpoint 5

Breakpoint 5, 
\x1a\x1aframe-begin 0 0x1000063c

\x1a\x1aframe-function-name
main
\x1a\x1aframe-args
 ()
\x1a\x1aframe-source-begin
 at 
\x1a\x1aframe-source-file
./gdb.base/annota1.c
\x1a\x1aframe-source-file-end
:
\x1a\x1aframe-source-line
46
\x1a\x1aframe-source-end


\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:46:559:beg:0x1000063c

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
11

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1abreakpoints-invalid

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: annotate ignore count change
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:45:531:beg:0x10000650

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
12

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
next

\x1a\x1apost-prompt

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asource /home/pgilliam/testsuite/gdb.base/annota1.c:49:579:beg:0x10000660

\x1a\x1aframe-end

\x1a\x1adisplay-begin
1
\x1a\x1adisplay-number-end
: 
\x1a\x1adisplay-format

\x1a\x1adisplay-expression
value
\x1a\x1adisplay-expression-end
 = 
\x1a\x1adisplay-expression
12

\x1a\x1adisplay-end

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: breakpoint ignore count
signal SIGTRAP

\x1a\x1apost-prompt
Continuing with signal SIGTRAP.

\x1a\x1astarting

\x1a\x1aframes-invalid

\x1a\x1aframes-invalid

\x1a\x1asignalled

Program terminated with signal 
\x1a\x1asignal-name
SIGTRAP
\x1a\x1asignal-name-end
, 
\x1a\x1asignal-string
Trace/breakpoint trap
\x1a\x1asignal-string-end
.
The program no longer exists.

\x1a\x1astopped

\x1a\x1apre-prompt
(gdb) 
\x1a\x1aprompt
PASS: gdb.base/annota1.exp: signal sent
Executing on build: ls core    (timeout = 300)
spawn ls core 
ls: core: No such file or directory
PASS: gdb.base/annota1.exp: cleanup core file (not dumped)
testcase ./gdb.base/annota1.exp completed in 1 seconds

		=== gdb Summary ===

# of expected passes		22
# of unexpected failures	3
Executing on host: /home/pgilliam/build-64/gdb/gdb -nw --command gdb_cmd    (timeout = 300)
spawn /home/pgilliam/build-64/gdb/gdb -nw --command gdb_cmd 
GNU gdb 2004-08-31-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64--linux".
/home/pgilliam/build-64/gdb/gdb version  2004-08-31-cvs -nx

runtest completed at Tue Sep 21 21:28:47 2004

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH] Fixes testsuit/gdb.base/annota1.exp
@ 2005-04-07 17:27 Paul Gilliam
  2005-04-14 19:36 ` Daniel Jacobowitz
  0 siblings, 1 reply; 14+ messages in thread
From: Paul Gilliam @ 2005-04-07 17:27 UTC (permalink / raw)
  To: gdb-patches

ping!

This patch fixes a problem in annota1.exp

First message in annota1.exp thread:
http://sources.redhat.com/ml/gdb-patches/2004-09/msg00349.html

Last message in  in annota1.exp thread:
http://sources.redhat.com/ml/gdb-patches/2004-09/msg00374.htm

The annota1.exp patch was put on hold, waiting for a set backtrace patch.

I submitted a set backtrace patch here:

First message in set backtrace thread:
http://sources.redhat.com/ml/gdb-patches/2004-10/msg00261.html

last message in set backtrace thread:
http://sources.redhat.com/ml/gdb-patches/2004-10/msg00443.html

Then, like everyone else, I got involved in other things.  But an internal bug system just reminded me these where still pending.

Where do these patches sit now?  

-=# Paul #=-


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-04-27 20:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-21 21:43 [PATCH] Fixes testsuit/gdb.base/annota1.exp Paul Gilliam
2004-09-22 14:01 ` Andrew Cagney
2004-09-22 16:56   ` Paul Gilliam
2004-09-22 19:54     ` Andrew Cagney
2004-09-23  2:13       ` Paul Gilliam
2004-09-23 17:08         ` Michael Chastain
2004-09-23 17:25         ` Michael Chastain
2004-09-24 22:38         ` Test "set backtrace ..."; " Andrew Cagney
2004-09-23 17:25 ` Michael Chastain
2005-04-07 17:27 Paul Gilliam
2005-04-14 19:36 ` Daniel Jacobowitz
2005-04-15 23:38   ` Paul Gilliam
2005-04-27 15:49     ` Daniel Jacobowitz
2005-04-27 20:02       ` Paul Gilliam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox