Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Newman, Sarah R" <sarah.r.newman@lmco.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sources.redhat.com
Subject: RE: single stepping mips remote programs built with gcc 4.0
Date: Tue, 22 Nov 2005 19:48:00 -0000	[thread overview]
Message-ID: <5990BE666D0436419054489CDD9D505409EE88F8@emss01m10.us.lmco.com> (raw)

> We realize we've stepped into a function call.  But we're continuing
> without setting any breakpoint at all, which is bogus.
> 
> > #0  remote_resume (ptid={pid = -1, lwp = 0, tid = 0}, step=0,
> >     siggnal=TARGET_SIGNAL_0) at ../../GDB-ISS/gdb/remote.c:2603
> > #1  0x004240bb in resume (step=0, sig=TARGET_SIGNAL_0)
> >     at ../../GDB-ISS/gdb/infrun.c:624
> > #2  0x004278b7 in keep_going (ecs=0x22d810) at
> > ../../GDB-ISS/gdb/infrun.c:2825
> > #3  0x00427606 in step_into_function (ecs=0x22d810)
> >     at ../../GDB-ISS/gdb/infrun.c:2708
> > #4  0x00426d3a in handle_inferior_event (ecs=0x22d810)
> >     at ../../GDB-ISS/gdb/infrun.c:2433
> 
> I can see no way at all for step_into_function to call keep_going
> without inserting a stop breakpoint.  Obviously that's gone wrong.
> Please step through that function and tell me where it's trying to put
> the breakpoint, in particular what happens before and during
> insert_step_resume_breakpoint_at_sal.

I believe there's no breakpoint set because where the next software
single step breakpoint would be placed, there is already a breakpoint
there.  
Look at this slightly different run:

Num Type           Disp Enb Address    What
2   breakpoint     keep y   0xffffffff800019b0 in main at tmp.c:14
3   breakpoint     keep y   0xffffffff8000199c in main at tmp.c:11 <--
one instruction later than previous run

Sending packet: $m800019b0,4#91...Ack
Packet received: 03e00008
Sending packet: $M800019b0,4:0005000d#64...Ack
Packet received: OK
Sending packet: $m8000199c,4#9b...Ack
Packet received: afbf0010
Sending packet: $M8000199c,4:0005000d#6e...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: ENN
Sending packet: $s#73...Ack
Packet received: S05
Sending packet: $p25#d7...Ack
Packet received: 800019a4
Sending packet: $s#73...Ack
Packet received: S05
Sending packet: $p25#d7...Ack
Packet received: 80001990
Sending packet: $p1d#05...Ack
Packet received: 8402ba60
Sending packet: $p1f#07...Ack
Packet received: 800019a8
Sending packet: $m80001998,4#70...Ack
Packet received: 27bdffe8
Sending packet: $m800019a0,4#90...Ack
Packet received: 0c000664
Sending packet: $m800019a4,4#94...Ack
Packet received: 00000000
Sending packet: $m80001998,4#70...Ack
Packet received: 27bdffe8
Sending packet: $M80001998,4:0005000d#43...Ack <--- was explicit
breakpoint in previous run, but not this run
Packet received: OK
Sending packet: $c#63...Ack
Packet received: S02
Sending packet: $p25#d7...Ack
Packet received: 800019b0


             reply	other threads:[~2005-11-22 19:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 19:48 Newman, Sarah R [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-23  3:09 Newman, Sarah R
2005-11-22 20:00 Newman, Sarah R
2005-11-22  5:26 Newman, Sarah R
2005-11-22 19:24 ` Daniel Jacobowitz
2005-11-23  0:50 ` Jim Blandy
2005-11-17 22:39 Newman, Sarah R
2005-11-17 22:48 ` Daniel Jacobowitz
2005-11-17 20:13 Newman, Sarah R
2005-11-17 20:23 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5990BE666D0436419054489CDD9D505409EE88F8@emss01m10.us.lmco.com \
    --to=sarah.r.newman@lmco.com \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox