summaryrefslogtreecommitdiff
path: root/gdb/jit.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-12-21 21:34:24 +0000
committerTom Tromey <tromey@redhat.com>2011-12-21 21:34:24 +0000
commit63af57135ddf1d96c37be8054be887872e563faf (patch)
tree12e05d162eb507b42c2cb182085f3f8a65f56aee /gdb/jit.c
parentc4112dfdbae0412065a98f55d1923d88b0788363 (diff)
downloadgdb-63af57135ddf1d96c37be8054be887872e563faf.tar.gz
* 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 843c768e184..c1274237259 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 >>");