aboutsummaryrefslogtreecommitdiff
path: root/gdb/jit.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-12-21 21:34:25 +0000
committerTom Tromey <tromey@redhat.com>2011-12-21 21:34:25 +0000
commita5bd37c3cab43e33d3c2daf0586d6401e0dca8fd (patch)
treee513eef621cbc79f0b273a15cd5f9aba8a6598ed /gdb/jit.c
parent0af1e9a54ba5bef7cbeeb0c65a311be8e0cfdd9d (diff)
downloadgdb-a5bd37c3cab43e33d3c2daf0586d6401e0dca8fd.zip
gdb-a5bd37c3cab43e33d3c2daf0586d6401e0dca8fd.tar.gz
gdb-a5bd37c3cab43e33d3c2daf0586d6401e0dca8fd.tar.bz2
* hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
ALL_OBJFILE_MSYMBOLS. (hppa_hpux_find_dummy_bpaddr): Likewise. * jit.c (jit_object_close_impl): Use terminate_minimal_symbol_table.
Diffstat (limited to 'gdb/jit.c')
-rw-r--r--gdb/jit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/jit.c b/gdb/jit.c
index 843c768..c127423 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -694,9 +694,7 @@ jit_object_close_impl (struct gdb_symbol_callbacks *cb,
objfile = allocate_objfile (NULL, 0);
objfile->gdbarch = target_gdbarch;
- objfile->msymbols = obstack_alloc (&objfile->objfile_obstack,
- sizeof (struct minimal_symbol));
- memset (objfile->msymbols, 0, sizeof (struct minimal_symbol));
+ terminate_minimal_symbol_table (objfile);
xfree (objfile->name);
objfile->name = xstrdup ("<< JIT compiled code >>");