diff options
author | Tom Tromey <tromey@redhat.com> | 2013-10-17 12:03:06 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-26 12:11:18 -0700 |
commit | 9b333ba3405066be10f4fc1c497b7fb1a7cafd53 (patch) | |
tree | e7b0d723883d105815fbd2c81ecbb25b22858b8b /gdb/proc-api.c | |
parent | 5f6cac4085c95c5339b9549dc06d4f9184184fa6 (diff) | |
download | gdb-9b333ba3405066be10f4fc1c497b7fb1a7cafd53.zip gdb-9b333ba3405066be10f4fc1c497b7fb1a7cafd53.tar.gz gdb-9b333ba3405066be10f4fc1c497b7fb1a7cafd53.tar.bz2 |
make "file" use the BFD cache better
Right now the "file" command will discard the exec_bfd and then
possibly open a new one.
If this ends up reopening the same file, it can cause needless work by
gdb -- destroying all the per-BFD data just to re-read it again.
This patch changes the code to hold a reference to the old exec_bfd
while opening the new one.
The possible downside of this is a higher peak memory use.
2014-02-26 Tom Tromey <tromey@redhat.com>
* exec.c (exec_file_attach): Hold a reference to exec_bfd.
Diffstat (limited to 'gdb/proc-api.c')
0 files changed, 0 insertions, 0 deletions