]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/elfread.c
move probes to be per-bfd
authorTom Tromey <tromey@redhat.com>
Tue, 3 Dec 2013 17:21:20 +0000 (10:21 -0700)
committerTom Tromey <tromey@redhat.com>
Mon, 3 Mar 2014 19:47:25 +0000 (12:47 -0700)
commit5d9cf8a4d31f8c793ad7ba47fe79dac11894052c
tree187d4c14b2b1e0210be4822c68815aa7efbb8267
parent729662a5221eaee2b3cd71d79afb3f612c4df904
move probes to be per-bfd

This patch moves the probe data from the objfile to the per-BFD
object.  This lets the probes be shared between different inferiors
(and different objfiles when dlmopen is in use, should gdb ever handle
that).

2014-03-03  Tom Tromey  <tromey@redhat.com>

* elfread.c (probe_key): Change to bfd_data.
(elf_get_probes, probe_key_free, _initialize_elfread): Probes are
now per-BFD, not per-objfile.
* stap-probe.c (stap_probe_destroy): Update comment.
(handle_stap_probe): Allocate on the per-BFD obstack.
gdb/ChangeLog
gdb/elfread.c
gdb/stap-probe.c