diff options
author | Jim Blandy <jimb@codesourcery.com> | 2000-02-16 00:11:07 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2000-02-16 00:11:07 +0000 |
commit | e6f9e5140d81de60665cda044c8cd006058c0ada (patch) | |
tree | 6ae3970ac4a8bfdac0fac127675fe08d7a40a54b /gdb/testsuite/gdb.base/break.exp | |
parent | f6077098c92bc7d5a4426324319c3a84e57a93a7 (diff) | |
download | gdb-e6f9e5140d81de60665cda044c8cd006058c0ada.zip gdb-e6f9e5140d81de60665cda044c8cd006058c0ada.tar.gz gdb-e6f9e5140d81de60665cda044c8cd006058c0ada.tar.bz2 |
* gdb.base/break.exp ("breakpoint line number"): Make sure the
default source file is set properly before running this test.
Diffstat (limited to 'gdb/testsuite/gdb.base/break.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/break.exp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp index a076b53..ab050b3 100644 --- a/gdb/testsuite/gdb.base/break.exp +++ b/gdb/testsuite/gdb.base/break.exp @@ -92,6 +92,15 @@ gdb_test "break $srcfile:factorial" \ # # test break at line number # +# Note that the default source file is the last one whose source text +# was printed. For native debugging, before we've executed the +# program, this is the file containing main, but for remote debugging, +# it's wherever the processor was stopped when we connected to the +# board. So, to be sure, we do a list command. +# +gdb_test "list main" \ + ".*main \\(argc, argv, envp\\).*" \ + "use `list' to establish default source file" gdb_test "break 79" \ "Breakpoint.*at.* file .*$srcfile, line 79\\." \ "breakpoint line number" |