aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbcore.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-07-22 10:09:27 -0600
committerTom Tromey <tromey@redhat.com>2014-07-30 08:02:50 -0600
commit5f08566b92f63e60559577dedfabf9ed517a3ddf (patch)
treebc36a8f501a9215e252d28ea84df162bc1f11123 /gdb/gdbcore.h
parent8981c75857ec8ef645ccb4f7ccc70fccc609085d (diff)
downloadgdb-5f08566b92f63e60559577dedfabf9ed517a3ddf.zip
gdb-5f08566b92f63e60559577dedfabf9ed517a3ddf.tar.gz
gdb-5f08566b92f63e60559577dedfabf9ed517a3ddf.tar.bz2
constify exec_file_attach
This constifies exec_file_attach and updates the rest of gdb. Insight will need some minor tweaks after this, though it's worth noting that I think all that hook stuff can actually just go away. I sent a patch to this effect once, but since the Insight source repository situation isn't currently resolved there wasn't a convenient way to test it. 2014-07-30 Tom Tromey <tromey@redhat.com> * corefile.c (hook_type, call_extra_exec_file_hooks) (specify_exec_file_hook): Constify. * exec.c (exec_file_attach): Make "filename" const. * gdbcore.h (deprecated_exec_file_display_hook) (specify_exec_file_hook, exec_file_attach): Constify. * main.c (captured_main): Use catch_command_errors_const.
Diffstat (limited to 'gdb/gdbcore.h')
-rw-r--r--gdb/gdbcore.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index 3f81791..0950859 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -127,14 +127,14 @@ extern void write_memory_signed_integer (CORE_ADDR addr, int len,
/* Hook for `exec_file_command' command to call. */
-extern void (*deprecated_exec_file_display_hook) (char *filename);
+extern void (*deprecated_exec_file_display_hook) (const char *filename);
/* Hook for "file_command", which is more useful than above
(because it is invoked AFTER symbols are read, not before). */
extern void (*deprecated_file_changed_hook) (char *filename);
-extern void specify_exec_file_hook (void (*hook) (char *filename));
+extern void specify_exec_file_hook (void (*hook) (const char *filename));
/* Binary File Diddler for the core file. */
@@ -148,7 +148,7 @@ extern int write_files;
extern void core_file_command (char *filename, int from_tty);
-extern void exec_file_attach (char *filename, int from_tty);
+extern void exec_file_attach (const char *filename, int from_tty);
extern void exec_file_clear (int from_tty);