mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-03 04:01:22 +08:00
constify to_disconnect
This constifies an parameter of to_disconnect and updates target_disconnect as well. 2014-06-16 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_disconnect>: Make parameter const. (target_disconnect): Update. * target.c (target_disconnect): Make "args" const. * target-delegates.c: Rebuild. * remote.c (remote_disconnect): Update. * record.h (record_disconnect): Update. * record.c (record_disconnect): Update. * inf-child.c (inf_child_disconnect): Update.
This commit is contained in:
@ -414,7 +414,7 @@ struct target_ops
|
||||
TARGET_DEFAULT_IGNORE ();
|
||||
void (*to_detach) (struct target_ops *ops, const char *, int)
|
||||
TARGET_DEFAULT_IGNORE ();
|
||||
void (*to_disconnect) (struct target_ops *, char *, int)
|
||||
void (*to_disconnect) (struct target_ops *, const char *, int)
|
||||
TARGET_DEFAULT_NORETURN (tcomplain ());
|
||||
void (*to_resume) (struct target_ops *, ptid_t, int, enum gdb_signal)
|
||||
TARGET_DEFAULT_NORETURN (noprocess ());
|
||||
@ -1177,7 +1177,7 @@ extern void target_detach (const char *, int);
|
||||
/* Disconnect from the current target without resuming it (leaving it
|
||||
waiting for a debugger). */
|
||||
|
||||
extern void target_disconnect (char *, int);
|
||||
extern void target_disconnect (const char *, int);
|
||||
|
||||
/* Resume execution of the target process PTID (or a group of
|
||||
threads). STEP says whether to single-step or to run free; SIGGNAL
|
||||
|
Reference in New Issue
Block a user