This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question, re: gdb.base/label.exp


Tom Tromey wrote:
Michael> I see this:
[...]

Looks ok to me.

Can you send the gdb.log file?
Maybe there is an answer in there.

Sure.


I'll tell you what happens, though.

It puts the breakpoint for "here" in the wrong location.

Log file attached.


Test Run By msnyder on Thu Feb 24 11:05:53 2011
Native configuration is x86_64-unknown-linux-gnu

		=== gdb tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.exp ...
Executing on host: gcc  -c -g  -o /data/home/msnyder/builds/native/temp3/gdb/testsuite/gdb.base/label0.o /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.c    (timeout = 300)
Executing on host: gcc /data/home/msnyder/builds/native/temp3/gdb/testsuite/gdb.base/label0.o  -g  -lm   -o /data/home/msnyder/builds/native/temp3/gdb/testsuite/gdb.base/label    (timeout = 300)
get_compiler_info: gcc-4-1-2
GNU gdb (GDB) 7.2.50.20110224-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(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 /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base
Source directories searched: /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file /data/home/msnyder/builds/native/temp3/gdb/testsuite/gdb.base/label
Reading symbols from /data/home/msnyder/builds/native/temp3/gdb/testsuite/gdb.base/label...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x4004d7: file /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.c, line 6.
(gdb) run 
Starting program: /data/home/msnyder/builds/native/temp3/gdb/testsuite/gdb.base/label 
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaaab000

Breakpoint 1, main (argc=1, argv=0x7fffffffe2c8 "\365\345\377\377\377\177") at /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.c:6
6	  int i = 0;
(gdb) break here
Breakpoint 2 at 0x400501: file /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.c, line 16.
(gdb) PASS: gdb.base/label.exp: breakpoint here
break there
Breakpoint 3 at 0x4004f1: file /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.c, line 13.
(gdb) PASS: gdb.base/label.exp: breakpoint there
cont
Continuing.

Breakpoint 3, main (argc=1, argv=0x7fffffffe2c8 "\365\345\377\377\377\177") at /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.c:14
14	  printf("but here\n");
(gdb) PASS: gdb.base/label.exp: continue to 'there'
cont
Continuing.
but here
not here

Breakpoint 3, main (argc=1, argv=0x7fffffffe2c8 "\365\345\377\377\377\177") at /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.c:14
14	  printf("but here\n");
(gdb) FAIL: gdb.base/label.exp: continue to 'here'
testcase /data/home/msnyder/cvs/localhost/temp3/gdb/testsuite/gdb.base/label.exp completed in 1 seconds

		=== gdb Summary ===

# of expected passes		3
# of unexpected failures	1
Executing on host: /data/home/msnyder/builds/native/temp3/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /data/home/msnyder/builds/native/temp3/gdb/testsuite/../data-directory --version    (timeout = 300)
GNU gdb (GDB) 7.2.50.20110224-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
/data/home/msnyder/builds/native/temp3/gdb/testsuite/../../gdb/gdb version  7.2.50.20110224-cvs -nw -nx -data-directory /data/home/msnyder/builds/native/temp3/gdb/testsuite/../data-directory 

runtest completed at Thu Feb 24 11:05:54 2011

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]