Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Removing deprecated breakpoint functions
@ 2007-11-14 17:36 Rob Quill
  2007-11-14 21:45 ` Jim Blandy
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Quill @ 2007-11-14 17:36 UTC (permalink / raw)
  To: gdb

Hi,

I am trying to figure out how to remove
deprecated_insert/remove_raw_breakpoint and was wondering if it is
acceptable to substitute a call to them with a call to the
break_command() function as this will handle all the breakpoint chain
related things, or is this function too high level and another one
should be used?

Thanks for your help.

Rob


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

* Re: Removing deprecated breakpoint functions
  2007-11-14 17:36 Removing deprecated breakpoint functions Rob Quill
@ 2007-11-14 21:45 ` Jim Blandy
  2007-11-14 21:58   ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Blandy @ 2007-11-14 21:45 UTC (permalink / raw)
  To: Rob Quill; +Cc: gdb


"Rob Quill" <rob.quill at gmail.com> writes:
> I am trying to figure out how to remove
> deprecated_insert/remove_raw_breakpoint and was wondering if it is
> acceptable to substitute a call to them with a call to the
> break_command() function as this will handle all the breakpoint chain
> related things, or is this function too high level and another one
> should be used?

Yes, those are too high-level; I think 'set_raw_breakpoint' is more
what you're looking for.  See the uses in breakpoint.c, things like
'create_fork_event_catchpoint' might serve as helpful examples.


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

* Re: Removing deprecated breakpoint functions
  2007-11-14 21:45 ` Jim Blandy
@ 2007-11-14 21:58   ` Daniel Jacobowitz
  2007-11-14 22:51     ` Jim Blandy
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-11-14 21:58 UTC (permalink / raw)
  To: Jim Blandy; +Cc: Rob Quill, gdb

On Wed, Nov 14, 2007 at 01:45:35PM -0800, Jim Blandy wrote:
> 
> "Rob Quill" <rob.quill at gmail.com> writes:
> > I am trying to figure out how to remove
> > deprecated_insert/remove_raw_breakpoint and was wondering if it is
> > acceptable to substitute a call to them with a call to the
> > break_command() function as this will handle all the breakpoint chain
> > related things, or is this function too high level and another one
> > should be used?
> 
> Yes, those are too high-level; I think 'set_raw_breakpoint' is more
> what you're looking for.  See the uses in breakpoint.c, things like
> 'create_fork_event_catchpoint' might serve as helpful examples.

The breakpoints that use deprecated_insert_raw_breakpoint do not
currently go on the breakpoint chain.  The most important of these
is the software single-step breakpoint.  Nothing is really prepared
to find it on the chain (what priority does it have compared to other
breakpoints, for instance) - so this is going to be a bit tricky.

The other three users are probably simpler to move onto the breakpoint
chain, but they're all on less common platforms.

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: Removing deprecated breakpoint functions
  2007-11-14 21:58   ` Daniel Jacobowitz
@ 2007-11-14 22:51     ` Jim Blandy
  2007-11-15  3:52       ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Blandy @ 2007-11-14 22:51 UTC (permalink / raw)
  To: Rob Quill; +Cc: gdb


Daniel Jacobowitz <drow at false.org> writes:
> On Wed, Nov 14, 2007 at 01:45:35PM -0800, Jim Blandy wrote:
>> 
>> "Rob Quill" <rob.quill at gmail.com> writes:
>> > I am trying to figure out how to remove
>> > deprecated_insert/remove_raw_breakpoint and was wondering if it is
>> > acceptable to substitute a call to them with a call to the
>> > break_command() function as this will handle all the breakpoint chain
>> > related things, or is this function too high level and another one
>> > should be used?
>> 
>> Yes, those are too high-level; I think 'set_raw_breakpoint' is more
>> what you're looking for.  See the uses in breakpoint.c, things like
>> 'create_fork_event_catchpoint' might serve as helpful examples.
>
> The breakpoints that use deprecated_insert_raw_breakpoint do not
> currently go on the breakpoint chain.  The most important of these
> is the software single-step breakpoint.  Nothing is really prepared
> to find it on the chain (what priority does it have compared to other
> breakpoints, for instance) - so this is going to be a bit tricky.

So, bpstat_what and its relatives will need to learn about them?


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

* Re: Removing deprecated breakpoint functions
  2007-11-14 22:51     ` Jim Blandy
@ 2007-11-15  3:52       ` Daniel Jacobowitz
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-11-15  3:52 UTC (permalink / raw)
  To: Jim Blandy; +Cc: Rob Quill, gdb

On Wed, Nov 14, 2007 at 02:51:31PM -0800, Jim Blandy wrote:
> So, bpstat_what and its relatives will need to learn about them?

I guess the question is what needs to happen when they're hit, and
whether we can fit them in.

-- 
Daniel Jacobowitz
CodeSourcery


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

end of thread, other threads:[~2007-11-15  3:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14 17:36 Removing deprecated breakpoint functions Rob Quill
2007-11-14 21:45 ` Jim Blandy
2007-11-14 21:58   ` Daniel Jacobowitz
2007-11-14 22:51     ` Jim Blandy
2007-11-15  3:52       ` Daniel Jacobowitz

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