* vCont packets for next and step
@ 2007-02-12 21:42 Kishore Paul
2007-02-12 21:50 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Kishore Paul @ 2007-02-12 21:42 UTC (permalink / raw)
To: gdb, drow
Hi All,
How does the gdb next and step work? I am seeing a problem where next
only sends one vCont packet, similar to stepi though I was expecting a
set of vCont packets to be sent similar to a step.
Thanks,
Kishore
next:
-----
Server received packet: [vCont;s:1]
Server Sending packet: [S05]
stepi:
-----
Server received packet: [vCont;s:1;c]
Server Sending packet: [S05]
step: 0x100010bc-0x100010cc
----------------------------
Server received packet: [vCont;s:1]
Server Sending packet: [S05]
Server received packet: [vCont;s:1;c]
Server Sending packet: [S05]
Server received packet: [vCont;s:1;c]
Server Sending packet: [S05]
Server received packet: [vCont;s:1;c]
Server Sending packet: [S05]
Server received packet: [vCont;s:1;c]
Server Sending packet: [S05]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vCont packets for next and step
2007-02-12 21:42 vCont packets for next and step Kishore Paul
@ 2007-02-12 21:50 ` Daniel Jacobowitz
2007-02-12 22:07 ` Kishore Paul
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-02-12 21:50 UTC (permalink / raw)
To: Kishore Paul; +Cc: gdb
On Mon, Feb 12, 2007 at 03:36:26PM -0600, Kishore Paul wrote:
> Hi All,
>
> How does the gdb next and step work? I am seeing a problem where next
> only sends one vCont packet, similar to stepi though I was expecting a
> set of vCont packets to be sent similar to a step.
That means that, after the single stepi, the "next" thinks it has
reached a different source line. So it stops.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vCont packets for next and step
2007-02-12 21:50 ` Daniel Jacobowitz
@ 2007-02-12 22:07 ` Kishore Paul
2007-02-13 3:06 ` Daniel Jacobowitz
2007-02-13 3:25 ` Joel Brobecker
0 siblings, 2 replies; 5+ messages in thread
From: Kishore Paul @ 2007-02-12 22:07 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
Should the gdb host not be sending multiple vCont step packets for next,
just like it does for step?
Thanks,
Kishore
Daniel Jacobowitz wrote:
>On Mon, Feb 12, 2007 at 03:36:26PM -0600, Kishore Paul wrote:
>
>
>>Hi All,
>>
>>How does the gdb next and step work? I am seeing a problem where next
>>only sends one vCont packet, similar to stepi though I was expecting a
>>set of vCont packets to be sent similar to a step.
>>
>>
>
>That means that, after the single stepi, the "next" thinks it has
>reached a different source line. So it stops.
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vCont packets for next and step
2007-02-12 22:07 ` Kishore Paul
@ 2007-02-13 3:06 ` Daniel Jacobowitz
2007-02-13 3:25 ` Joel Brobecker
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-02-13 3:06 UTC (permalink / raw)
To: Kishore Paul; +Cc: gdb
On Mon, Feb 12, 2007 at 03:58:54PM -0600, Kishore Paul wrote:
> Should the gdb host not be sending multiple vCont step packets for next,
> just like it does for step?
Yes. Are you sure those two were from the same location, i.e. in both
cases more than one step was necessary?
Failing that something may be wrong with your backtracing.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vCont packets for next and step
2007-02-12 22:07 ` Kishore Paul
2007-02-13 3:06 ` Daniel Jacobowitz
@ 2007-02-13 3:25 ` Joel Brobecker
1 sibling, 0 replies; 5+ messages in thread
From: Joel Brobecker @ 2007-02-13 3:25 UTC (permalink / raw)
To: Kishore Paul; +Cc: Daniel Jacobowitz, gdb
> Should the gdb host not be sending multiple vCont step packets for next,
> just like it does for step?
I don't know about the "vCont" packet because I'm unfamiliar with
the remote protocol. However, the answer to your question about steps
is that the debugger will stop stepping as soon as it has reached
a different line. The only exception to that is when the stepi makes
us land inside a function call, in which case the debugger sets a
breakpoint at the return address and does a continue until we reach
it. You might find the output of "set debug infrun 1" very useful.
--
Joel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-02-12 22:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 21:42 vCont packets for next and step Kishore Paul
2007-02-12 21:50 ` Daniel Jacobowitz
2007-02-12 22:07 ` Kishore Paul
2007-02-13 3:06 ` Daniel Jacobowitz
2007-02-13 3:25 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox