diff options
author | Stu Grossman <grossman@cygnus> | 1991-10-23 01:06:36 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1991-10-23 01:06:36 +0000 |
commit | 2e393ce47860ea49940ae8cfd193785c95af1b40 (patch) | |
tree | 38585d0d284b9d54cfd25b480a0fd0db0646eac0 /gdb/infrun.c | |
parent | 0d3e7f607fcba8d83a06f2eda7c061af957ec4c5 (diff) | |
download | gdb-2e393ce47860ea49940ae8cfd193785c95af1b40.zip gdb-2e393ce47860ea49940ae8cfd193785c95af1b40.tar.gz gdb-2e393ce47860ea49940ae8cfd193785c95af1b40.tar.bz2 |
* infrun.c (wait_for_inferior): Check return value from
find_pc_line.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 5f85779..1aea0a2 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1245,8 +1245,9 @@ wait_for_inferior () step_range_start and step_range_end, and just continue. */ sal = find_pc_line(stop_pc, 0); - if (current_line != sal.line - && stop_pc == sal.pc) { + if (sal.line == 0 || /* Stop now if no line # info */ + (current_line != sal.line + && stop_pc == sal.pc)) { stop_step = 1; break; } else { |