diff options
author | Pedro Alves <palves@redhat.com> | 2011-06-22 17:52:37 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-06-22 17:52:37 +0000 |
commit | 9ac4176b6d170664f13074e4dd69b8f110fdb931 (patch) | |
tree | 161cb9f7754f8fdd7453e49066a0959859d052bf /gdb/breakpoint.h | |
parent | c56053d23c108509c8978f31799e9abe654d91d5 (diff) | |
download | gdb-9ac4176b6d170664f13074e4dd69b8f110fdb931.zip gdb-9ac4176b6d170664f13074e4dd69b8f110fdb931.tar.gz gdb-9ac4176b6d170664f13074e4dd69b8f110fdb931.tar.bz2 |
2011-06-22 Pedro Alves <pedro@codesourcery.com>
* ada-lang.c: Include arch-utils.h.
(ada_decode_exception_location): Make static.
(catch_ada_exception_command): Moved here from breakpoint.c.
(ada_decode_assert_location): Make static.
(catch_assert_command): Moved here from breakpoint.c.
(_initialize_ada_lang): Install the exception and assert
catchpoint commands here.
* ada-lang.h (ada_decode_exception_location)
(ada_decode_assert_location): Delete declarations.
* breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
breakpoint.h.
(create_ada_exception_breakpoint): Make extern.
(catch_ada_exception_command, catch_assert_command): Moved to
ada-lang.c.
(add_catch_command): Make extern.
(_initilize_breakpoint): Don't install the exception and assert
catchpoint commands here.
* breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
breakpoint.c
(add_catch_command, create_ada_exception_breakpoint): Declare.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index b7be68c..9dbf23b 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -984,6 +984,36 @@ extern void awatch_command_wrapper (char *, int, int); extern void rwatch_command_wrapper (char *, int, int); extern void tbreak_command (char *, int); +/* Arguments to pass as context to some catch command handlers. */ +#define CATCH_PERMANENT ((void *) (uintptr_t) 0) +#define CATCH_TEMPORARY ((void *) (uintptr_t) 1) + +/* Like add_cmd, but add the command to both the "catch" and "tcatch" + lists, and pass some additional user data to the command + function. */ + +extern void + add_catch_command (char *name, char *docstring, + void (*sfunc) (char *args, int from_tty, + struct cmd_list_element *command), + char **(*completer) (struct cmd_list_element *cmd, + char *text, char *word), + void *user_data_catch, + void *user_data_tcatch); + +/* Create a breakpoint struct for Ada exception catchpoints. */ + +extern void + create_ada_exception_breakpoint (struct gdbarch *gdbarch, + struct symtab_and_line sal, + char *addr_string, + char *exp_string, + char *cond_string, + struct expression *cond, + struct breakpoint_ops *ops, + int tempflag, + int from_tty); + extern int create_breakpoint (struct gdbarch *gdbarch, char *arg, char *cond_string, int thread, int parse_condition_and_thread, |