This is the mail archive of the gdb@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: Testsuite question...


On Wed 5 Dec 2007 11:07, Daniel Jacobowitz pondered:
> On Wed, Dec 05, 2007 at 10:59:37AM -0500, Robin Getz wrote:
> > proc test_breakpoints { } {
> >     gdb_test "stop in main" "Breakpoint.*at.*: file.*average\.c, line 38\."
> >     gdb_test "status" "Num.*Type.*Disp.*Enb.*Address.*What\r\n1\[\r\]+breakpoint\[ \r\]+keep y.*in main at.*average\.c:38.*"
> >     gdb_test "stop at 43" "Breakpoint.*at.*: file.*average\.c, line 43.*"
> 
> > When you do a "stop symbol", where the symbol is in the application,
> > it  works fine,
> > 
> > (gdb) stop in main
> > Breakpoint 1 at 0x4401b2: file
> /home/rgetz/blackfin/toolchain/binutils-2.17/gdb/testsuite/gdb.base/average.c, line 38.
> 
> So - should this change the notion of the current source file or not?

I would not think so.

> Break does not, so stop in shouldn't either.  Therefore the behaviour
> you're seeing seems reasonable.  I recommend fixing the test,
> something like stop at average.c:43.

OK - will do - Something like:

Index: gdb.base/dbx.exp
===================================================================
--- gdb.base/dbx.exp    (revision 2024)
+++ gdb.base/dbx.exp    (working copy)
@@ -266,8 +266,8 @@
 proc test_breakpoints { } {
     gdb_test "stop in main" "Breakpoint.*at.*: file.*average\.c, line 38\."
     gdb_test "status" "Num.*Type.*Disp.*Enb.*Address.*What\r\n1\[ \r\]+breakpoint\[ \r\]+keep y.*in main at.*average\.c:38.*"
-    gdb_test "stop at 43" "Breakpoint.*at.*: file.*average\.c, line 43.*"
-    gdb_test "stop in 43" "Usage: stop in <function . address>"
+    gdb_test "stop at average.c:43" "Breakpoint.*at.*: file.*average\.c, line 43.*"
+    gdb_test "stop in average.c:43" "Usage: stop in <function . address>"
     gdb_test "stop at main" "Usage: stop at <line>"
 }

Thanks
-Robin


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