diff options
author | Tom Tromey <tromey@redhat.com> | 2013-04-08 20:13:21 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-04-08 20:13:21 +0000 |
commit | 79b7922fc17b9346596842f51f44c2e68d8c661d (patch) | |
tree | 3ba2e981e8490ec3f8e205848e61f6c1023d6a16 /gdb/minsyms.c | |
parent | e01d62fba5477f54d9006c2564ce56bc31b528f7 (diff) | |
download | gdb-79b7922fc17b9346596842f51f44c2e68d8c661d.tar.gz |
* coffread.c (record_minimal_symbol): Update.
* dbxread.c (record_minimal_symbol): Update.
* elfread.c (record_minimal_symbol): Update.
* machoread.c (macho_symtab_add_minsym): Update.
* mdebugread.c (record_minimal_symbol, parse_partial_symbols):
Update.
* minsyms.c (prim_record_minimal_symbol): Update.
(prim_record_minimal_symbol_full): Remove 'bfd_section'
argument.
(prim_record_minimal_symbol_and_info): Likewise.
* minsyms.h (prim_record_minimal_symbol_full)
(prim_record_minimal_symbol_and_info): Update.
* symtab.c (allocate_symbol, initialize_symbol)
(allocate_template_symbol): Initialize SYMBOL_SECTION.
* xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
Update.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 6a94e112411..396b0633aad 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -892,7 +892,7 @@ prim_record_minimal_symbol (const char *name, CORE_ADDR address, } prim_record_minimal_symbol_and_info (name, address, ms_type, - section, NULL, objfile); + section, objfile); } /* See minsyms.h. */ @@ -902,7 +902,6 @@ prim_record_minimal_symbol_full (const char *name, int name_len, int copy_name, CORE_ADDR address, enum minimal_symbol_type ms_type, int section, - asection *bfd_section, struct objfile *objfile) { struct obj_section *obj_section; @@ -945,17 +944,6 @@ prim_record_minimal_symbol_full (const char *name, int name_len, int copy_name, SYMBOL_SECTION (msymbol) = section; SYMBOL_OBJ_SECTION (msymbol) = NULL; - /* Find obj_section corresponding to bfd_section. */ - if (bfd_section) - ALL_OBJFILE_OSECTIONS (objfile, obj_section) - { - if (obj_section->the_bfd_section == bfd_section) - { - SYMBOL_OBJ_SECTION (msymbol) = obj_section; - break; - } - } - MSYMBOL_TYPE (msymbol) = ms_type; MSYMBOL_TARGET_FLAG_1 (msymbol) = 0; MSYMBOL_TARGET_FLAG_2 (msymbol) = 0; @@ -980,12 +968,11 @@ struct minimal_symbol * prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address, enum minimal_symbol_type ms_type, int section, - asection *bfd_section, struct objfile *objfile) { return prim_record_minimal_symbol_full (name, strlen (name), 1, - address, ms_type, section, - bfd_section, objfile); + address, ms_type, + section, objfile); } /* Compare two minimal symbols by address and return a signed result based |