Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb-5.3: how to avoid soft breakpoints?
@ 2004-02-06 15:26 Heiko Panther
  2004-02-06 15:38 ` Jon Beniston
  0 siblings, 1 reply; 2+ messages in thread
From: Heiko Panther @ 2004-02-06 15:26 UTC (permalink / raw)
  To: gdb

I have an embedded target running gdb stub on an openrisc processor 
(www.opencores.org). The application is running from ROM, so I cannot 
set soft breakpoints. I worked the gdb stub so it will ERR Z0 packets, 
and use Z[123] packets. This works perfectly well with hbreak. break 
will attempt to set a soft breakpoint and fail. So do "next" and 
"finish" when they try to set a breakpoint.

Is there any way around that? Can I have gdb totally avoid soft breakpoints?

Heiko


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

* RE: gdb-5.3: how to avoid soft breakpoints?
  2004-02-06 15:26 gdb-5.3: how to avoid soft breakpoints? Heiko Panther
@ 2004-02-06 15:38 ` Jon Beniston
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Beniston @ 2004-02-06 15:38 UTC (permalink / raw)
  To: 'Heiko Panther', gdb


> 
> I have an embedded target running gdb stub on an openrisc processor 
> (www.opencores.org). The application is running from ROM, so I cannot 
> set soft breakpoints. I worked the gdb stub so it will ERR Z0 
> packets, 
> and use Z[123] packets. This works perfectly well with hbreak. break 
> will attempt to set a soft breakpoint and fail. So do "next" and 
> "finish" when they try to set a breakpoint.
> 
> Is there any way around that? Can I have gdb totally avoid 
> soft breakpoints?

I recently posted a patch that tries to use h/w breakpoints when s/w
breakpoints fail. It worked for me in pretty much the same situation as
you seem to be in, but I didn't get any feedback on it. See:

http://sources.redhat.com/ml/gdb-patches/2004-01/msg00343.html

Cheers,
JonB



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

end of thread, other threads:[~2004-02-06 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-06 15:26 gdb-5.3: how to avoid soft breakpoints? Heiko Panther
2004-02-06 15:38 ` Jon Beniston

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