Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Remote Debugging with NEXT Command
@ 2014-06-10 21:02 Ken Mandelberg
  2014-06-10 21:13 ` Paul_Koning
  0 siblings, 1 reply; 6+ messages in thread
From: Ken Mandelberg @ 2014-06-10 21:02 UTC (permalink / raw)
  To: gdb

I'm doing remote gdb deugging to a stub implemented on the target over 
tcp. SI works and NEXT works well enough skipping over a function call.

What can be very slow is NEXT from one C statement to the next.

When NEXT skips over a function call it implements it by setting a 
breakpoint at the return address.

When NEXT skips from one C statement to the next, it does it by doing 
repeated SI's. This forces the target to send back a bunch of state at
each SI. This is slow and very slow if the C statement actually has a 
loop in it.

Is there any way around this other than carefully avoiding NEXT in the 
worst cases and manually setting breakpoints/CONT?



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-11 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-10 21:02 Remote Debugging with NEXT Command Ken Mandelberg
2014-06-10 21:13 ` Paul_Koning
2014-06-10 21:21   ` Ken Mandelberg
2014-06-11 10:01     ` Abid, Hafiz
2014-06-11 15:24       ` Ken Mandelberg
2014-06-11 10:26     ` Luis Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox