aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-exec.c
AgeCommit message (Collapse)AuthorFilesLines
2022-05-06Introduce catchpoint classTom Tromey1-5/+5
This introduces a catchpoint class that is used as the base class for all catchpoints. init_catchpoint is rewritten to be a constructor instead. This changes the hierarchy a little -- some catchpoints now inherit from base_breakpoint whereas previously they did not. This isn't a problem, as long as re_set is redefined in catchpoint.
2022-05-06Remove init_raw_breakpoint_without_locationTom Tromey1-1/+6
This removes init_raw_breakpoint_without_location, replacing it with a constructor on 'breakpoint' itself. The subclasses and callers are all updated.
2022-05-06Remove unnecessary line from catch_exec_command_1Tom Tromey1-1/+0
catch_exec_command_1 clears the new catchpoint's "exec_pathname" field, but this is already done by virtue of calling "new".
2022-05-06Constify breakpoint::print_recreateTom Tromey1-2/+2
This constifies breakpoint::print_recreate.
2022-05-06Constify breakpoint::print_mentionTom Tromey1-2/+2
This constifies breakpoint::print_mention.
2022-05-06Constify breakpoint::print_oneTom Tromey1-2/+2
This constifies breakpoint::print_one.
2022-05-06Constify breakpoint::print_itTom Tromey1-2/+2
This constifies breakpoint::print_it. Doing this pointed out some code in ada-lang.c that can be simplified a little as well.
2022-05-06Change print_recreate_thread to a methodTom Tromey1-1/+1
This changes print_recreate_thread to be a method on breakpoint. This function is only used as a helper by print_recreate methods, so I thought this transformation made sense.
2022-04-29Remove breakpoint_ops from init_catchpointTom Tromey1-2/+1
init_catchpoint is only ever passed a single breakpoint_ops pointer, so remove the parameter.
2022-04-29Convert break-catch-exec to vtable opsTom Tromey1-57/+42
This converts break-catch-exec.c to use vtable_breakpoint_ops.
2022-04-29Return bool from breakpoint_ops::print_oneTom Tromey1-1/+3
This changes breakpoint_ops::print_one to return bool, and updates all the implementations and the caller. The caller is changed so that a NULL check is no longer needed -- something that will be impossible with a real method.
2022-03-29Unify gdb printf functionsTom Tromey1-2/+2
Now that filtered and unfiltered output can be treated identically, we can unify the printf family of functions. This is done under the name "gdb_printf". Most of this patch was written by script.
2022-01-18Move "catch exec" to a new fileTom Tromey1-0/+236
The "catch exec" code is reasonably self-contained, and so this patch moves it out of breakpoint.c (the second largest source file in gdb) and into a new file, break-catch-exec.c.