This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Removing deprecated breakpoint functions
"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.