aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2021-11-05 12:14:01 +0000
committerAndrew Burgess <aburgess@redhat.com>2021-11-05 12:32:18 +0000
commit707ed39ac5cb255f656b2947b50c8273c8ad1d80 (patch)
tree5cf9449ea70f86591897b13b9b002844cf2aa176 /sim
parentca8775833bb6af8eb4333f41e4f8672df0ead874 (diff)
downloadgdb-707ed39ac5cb255f656b2947b50c8273c8ad1d80.zip
gdb-707ed39ac5cb255f656b2947b50c8273c8ad1d80.tar.gz
gdb-707ed39ac5cb255f656b2947b50c8273c8ad1d80.tar.bz2
gdb/testsuite: use gdb_get_line_number
Replaces a hard coded line number with a use of gdb_get_line_number. I suspect that the line number has, over time, come adrift from where it was supposed to be stopping. When the test was first added, line 770 pointed at the final 'return 0' in function main. Over time, as things have been added, line 770 now points at some random location in the middle of main. So, I've marked the 'return 0' with a comment, and now the test will always stop there. I also removed an old comment from 1997 talking about how these tests will only pass with the HP compiler, followed by an additional comment from 2000 saying that the tests now pass with GCC. I get the same results before and after this change.
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions