From: Joel Brobecker Date: Sun, 23 Dec 2007 05:34:38 +0000 (+0000) Subject: * infrun.c (handle_inferior_event): Remove code that made us X-Git-Tag: sid-snapshot-20080101~50 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=79d622caaa7060062eab824f0ceee26dab912759;p=pf3gnuchains%2Fpf3gnuchains4x.git * infrun.c (handle_inferior_event): Remove code that made us stop when stepping into the last line of the current function. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 966013c1ab..ba70631970 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-12-23 Joel Brobecker + + * infrun.c (handle_inferior_event): Remove code that made us + stop when stepping into the last line of the current function. + 2007-12-22 Pierre Muller * win32-nat.c: Fix PR gdb/2388. diff --git a/gdb/infrun.c b/gdb/infrun.c index 8720cb4d8f..248022e394 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 ());