This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: infrun.c/proceed()
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: infrun.c/proceed()
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Mon, 17 Jul 2000 15:57:21 -0700
- Organization: Cygnus Solutions
This one looks reasonable to me, but being as it's infrun,
I thought I'd be paranoid and get other people's opinions.
***************
*** 1041,1049 ****
#endif /* HP_OS_BUG */
if (oneproc)
! /* We will get a trace trap after one instruction.
! Continue it automatically and insert breakpoints then. */
! trap_expected = 1;
else
{
int temp = insert_breakpoints ();
--- 1041,1059 ----
#endif /* HP_OS_BUG */
if (oneproc)
! {
! /* We will get a trace trap after one instruction.
! Continue it automatically and insert breakpoints then. */
! trap_expected = 1;
!
! /* Oh, and if we weren't explicitly told to single-step, our
! caller may not have updated "step_sp", so do it ourselves. */
! if (!step)
! {
! step_frame_address = FRAME_FP (get_current_frame ());
! step_sp = read_sp ();
! }
! }
else
{
int temp = insert_breakpoints ();