diff options
author | Andrew Burgess <aburgess@redhat.com> | 2023-12-29 09:50:10 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-01-19 22:20:59 +0000 |
commit | 81b6f191f71fe0af5dd7b1c7c5b7737c3d249a66 (patch) | |
tree | 32a31e834a642e95019afed07a4fe3ebe32b32c6 /gdb/exec.c | |
parent | 74d8fa2df7e7844f9b1b8fac27fe7d0b82100ab0 (diff) | |
download | gdb-81b6f191f71fe0af5dd7b1c7c5b7737c3d249a66.zip gdb-81b6f191f71fe0af5dd7b1c7c5b7737c3d249a66.tar.gz gdb-81b6f191f71fe0af5dd7b1c7c5b7737c3d249a66.tar.bz2 |
gdb: remove deprecated_exec_file_display_hook and associated code
This commit removes deprecated_exec_file_display_hook and the
associated specify_exec_file_hook.
The specify_exec_file_hook is used to add a new hook function to
deprecated_exec_file_display_hook, but is only used from the insight
debugger.
I posted a patch to remove the use of specify_exec_file_hook from
insight, and instead use gdb::observers::executable_changed, this
patch can be found here (it has now been merged):
https://inbox.sourceware.org/insight/6abeb45e97d9004ec331e94cf2089af00553de76.1702379379.git.aburgess@redhat.com/T/#u
With this merged we can now cleanup the GDB side as this code is now
unused.
There should be no user visible changes after this commit.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -494,10 +494,6 @@ exec_file_attach (const char *filename, int from_tty) target. */ current_program_space->add_target_sections (current_program_space->ebfd.get (), sections); - - /* Tell display code (if any) about the changed file name. */ - if (deprecated_exec_file_display_hook) - (*deprecated_exec_file_display_hook) (filename); } /* Are are loading the same executable? */ |