diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-03 20:54:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-03 20:54:43 +0000 |
commit | a9596cd98aa07c137ed362c7d92df64213b4fa04 (patch) | |
tree | 93d2aea2e0fa868da0f9b56626e5cfe8c2341869 /gdb/target.h | |
parent | 74eda9eb7acc3c2bd375826f92e8ca233d5f767a (diff) | |
download | binutils-cagney_writestrings-20030508-branch.zip binutils-cagney_writestrings-20030508-branch.tar.gz binutils-cagney_writestrings-20030508-branch.tar.bz2 |
Snap const char * mess.cagney_writestrings-20030508-branch
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/target.h b/gdb/target.h index e757b67..15bfa48 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -173,7 +173,7 @@ extern char *target_signal_to_string (enum target_signal); extern char *target_signal_to_name (enum target_signal); /* Given a name (SIGHUP, etc.), return its signal. */ -enum target_signal target_signal_from_name (char *); +enum target_signal target_signal_from_name (const char *); /* If certain kinds of activity happen, target_wait should perform @@ -193,11 +193,11 @@ struct target_ops char *to_doc; /* Documentation. Does not include trailing newline, and starts with a one-line descrip- tion (probably similar to to_longname). */ - void (*to_open) (char *, int); + void (*to_open) (const char *, int); void (*to_close) (int); - void (*to_attach) (char *, int); + void (*to_attach) (const char *, int); void (*to_post_attach) (int); - void (*to_detach) (char *, int); + void (*to_detach) (const char *, int); void (*to_resume) (ptid_t, int, enum target_signal); ptid_t (*to_wait) (ptid_t, struct target_waitstatus *); void (*to_post_wait) (ptid_t, int); @@ -268,9 +268,9 @@ struct target_ops void (*to_terminal_ours_for_output) (void); void (*to_terminal_ours) (void); void (*to_terminal_save_ours) (void); - void (*to_terminal_info) (char *, int); + void (*to_terminal_info) (const char *, int); void (*to_kill) (void); - void (*to_load) (char *, int); + void (*to_load) (const char *, int); int (*to_lookup_symbol) (char *, CORE_ADDR *); void (*to_create_inferior) (char *, char *, char **); void (*to_post_startup_inferior) (ptid_t); @@ -293,7 +293,7 @@ struct target_ops char *(*to_extra_thread_info) (struct thread_info *); void (*to_stop) (void); int (*to_query) (int /*char */ , char *, char *, int *); - void (*to_rcmd) (char *command, struct ui_file *output); + void (*to_rcmd) (const char *command, struct ui_file *output); struct symtab_and_line *(*to_enable_exception_callback) (enum exception_event_kind, int); @@ -412,7 +412,7 @@ extern struct target_stack_item *target_stack; typed by the user (e.g. a signal to send the process). FROM_TTY says whether to be verbose or not. */ -extern void target_detach (char *, int); +extern void target_detach (const char *, int); /* Resume execution of the target process PTID. STEP says whether to single-step or to run free; SIGGNAL is the signal to be given to @@ -622,7 +622,7 @@ extern void print_section_info (struct target_ops *, bfd *); to not only bring new code into the target process, but also to update GDB's symbol tables to match. */ -extern void target_load (char *arg, int from_tty); +extern void target_load (const char *arg, int from_tty); /* Look up a symbol in the target's symbol table. NAME is the symbol name. ADDRP is a CORE_ADDR * pointing to where the value of the @@ -1136,7 +1136,7 @@ extern void initialize_targets (void); extern void noprocess (void); -extern void find_default_attach (char *, int); +extern void find_default_attach (const char *, int); extern void find_default_create_inferior (char *, char *, char **); |