summaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/target.h b/gdb/target.h
index e757b6701d9..15bfa48d9ef 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 **);