diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-12-23 05:34:38 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-12-23 05:34:38 +0000 |
commit | 1ce9f7f22923bacc47f4b9f49f4cc8774dd674c0 (patch) | |
tree | 00c18e509e321e90590c28ff876eab334d7997bf /gdb/infrun.c | |
parent | 8bed666aef10c0f08bc249a2e655ac5a96d2e1b1 (diff) | |
download | gdb-1ce9f7f22923bacc47f4b9f49f4cc8774dd674c0.zip gdb-1ce9f7f22923bacc47f4b9f49f4cc8774dd674c0.tar.gz gdb-1ce9f7f22923bacc47f4b9f49f4cc8774dd674c0.tar.bz2 |
* infrun.c (handle_inferior_event): Remove code that made us
stop when stepping into the last line of the current function.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 8720cb4..248022e 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2702,20 +2702,6 @@ process_event_stop_test: new line in mid-statement, we continue stepping. This makes things like for(;;) statements work better.) */ - if (ecs->stop_func_end && ecs->sal.end >= ecs->stop_func_end) - { - /* If this is the last line of the function, don't keep stepping - (it would probably step us out of the function). - This is particularly necessary for a one-line function, - in which after skipping the prologue we better stop even though - we will be in mid-line. */ - if (debug_infrun) - fprintf_unfiltered (gdb_stdlog, "infrun: stepped to a different function\n"); - stop_step = 1; - print_stop_reason (END_STEPPING_RANGE, 0); - stop_stepping (ecs); - return; - } step_range_start = ecs->sal.pc; step_range_end = ecs->sal.end; step_frame_id = get_frame_id (get_current_frame ()); |