mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-29 06:50:32 +00:00
* xcoffread.c (xcoff_next_symbol_text): New function.
(read_xcoff_symtab): Set next_symbol_text_func to it. Move raw_symbol outside of read_xcoff_symtab.
This commit is contained in:
parent
326e32d7ce
commit
afbdbbd78e
@ -985,10 +985,10 @@ xcoff_next_symbol_text ()
|
||||
{"Unexpected symbol continuation", 0, 0};
|
||||
|
||||
bfd_coff_swap_sym_in (current_objfile->obfd, raw_symbol, &symbol);
|
||||
if (symbol->n_zeroes)
|
||||
if (symbol.n_zeroes)
|
||||
complain (&msg);
|
||||
else if (symbol->n_sclass & 0x80)
|
||||
return debugsec + symbol->n_offset;
|
||||
else if (symbol.n_sclass & 0x80)
|
||||
return debugsec + symbol.n_offset;
|
||||
else
|
||||
complain (&msg);
|
||||
raw_symbol += coff_data (current_objfile->obfd)->local_symesz;
|
||||
|
Loading…
Reference in New Issue
Block a user