constify exec_file_attach
authorTom Tromey <tromey@redhat.com>
Tue, 22 Jul 2014 16:09:27 +0000 (10:09 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 30 Jul 2014 14:02:50 +0000 (08:02 -0600)
commit5f08566b92f63e60559577dedfabf9ed517a3ddf
treebc36a8f501a9215e252d28ea84df162bc1f11123
parent8981c75857ec8ef645ccb4f7ccc70fccc609085d
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.
gdb/ChangeLog
gdb/corefile.c
gdb/exec.c
gdb/gdbcore.h
gdb/main.c