* 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.
This commit is contained in:
Tom Tromey 2011-12-21 21:34:25 +00:00
parent 0af1e9a54b
commit a5bd37c3ca
3 changed files with 11 additions and 9 deletions

View File

@ -1,3 +1,11 @@
2011-12-21 Tom Tromey <tromey@redhat.com>
* 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.
2011-12-21 Tom Tromey <tromey@redhat.com>
* elfread.c (elf_symtab_read): Put the filename in the filename

View File

@ -957,7 +957,6 @@ hppa64_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
struct hppa_objfile_private *priv;
CORE_ADDR addr;
struct minimal_symbol *msym;
int i;
sec = find_pc_section (pc);
obj = sec->objfile;
@ -980,7 +979,7 @@ hppa64_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
scheme; try to read in blocks of code, and look for a "bve,n (rp)"
instruction. These are likely to occur at the end of functions, so
we only look at the last two instructions of each function. */
for (i = 0, msym = obj->msymbols; i < obj->minimal_symbol_count; i++, msym++)
ALL_OBJFILE_MSYMBOLS (obj, msym)
{
CORE_ADDR begin, end;
char *name;
@ -1088,7 +1087,6 @@ hppa_hpux_find_dummy_bpaddr (CORE_ADDR addr)
struct unwind_table_entry *u;
struct minimal_symbol *msym;
CORE_ADDR func;
int i;
sec = find_pc_section (addr);
if (sec)
@ -1108,9 +1106,7 @@ hppa_hpux_find_dummy_bpaddr (CORE_ADDR addr)
work. */
find_pc_partial_function (addr, NULL, &func, NULL);
for (i = 0, msym = sec->objfile->msymbols;
i < sec->objfile->minimal_symbol_count;
i++, msym++)
ALL_OBJFILE_MSYMBOLS (sec->objfile, msym)
{
u = find_unwind_entry (SYMBOL_VALUE_ADDRESS (msym));
if (func != SYMBOL_VALUE_ADDRESS (msym)

View File

@ -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 >>");