X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fsolib-frv.c;h=fbd6970b864673243ea2c7d2244ed08ab0ea7525;hb=fab39d55fa914ad1cea809848899c76c64eaab9d;hp=acd46da0881d4f25d2ac208ffab8e598e52ef716;hpb=efd66ac6698323d9523a4dce352008c4c835812e;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c index acd46da..fbd6970 100644 --- a/gdb/solib-frv.c +++ b/gdb/solib-frv.c @@ -18,7 +18,6 @@ #include "defs.h" -#include #include "inferior.h" #include "gdbcore.h" #include "solib.h" @@ -30,7 +29,6 @@ #include "command.h" #include "gdbcmd.h" #include "elf/frv.h" -#include "exceptions.h" #include "gdb_bfd.h" /* Flag which indicates whether internal debug messages should be printed. */ @@ -266,7 +264,7 @@ static CORE_ADDR lm_base (void) { enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ()); - struct minimal_symbol *got_sym; + struct bound_minimal_symbol got_sym; CORE_ADDR addr; gdb_byte buf[FRV_PTR_SIZE]; @@ -284,7 +282,7 @@ lm_base (void) got_sym = lookup_minimal_symbol ("_GLOBAL_OFFSET_TABLE_", NULL, symfile_objfile); - if (got_sym == 0) + if (got_sym.minsym == 0) { if (solib_frv_debug) fprintf_unfiltered (gdb_stdlog, @@ -292,7 +290,7 @@ lm_base (void) return 0; } - addr = MSYMBOL_VALUE_ADDRESS (got_sym) + 8; + addr = BMSYMBOL_VALUE_ADDRESS (got_sym) + 8; if (solib_frv_debug) fprintf_unfiltered (gdb_stdlog, @@ -919,14 +917,14 @@ frv_relocate_section_addresses (struct so_list *so, static CORE_ADDR main_got (void) { - struct minimal_symbol *got_sym; + struct bound_minimal_symbol got_sym; got_sym = lookup_minimal_symbol ("_GLOBAL_OFFSET_TABLE_", NULL, symfile_objfile); - if (got_sym == 0) + if (got_sym.minsym == 0) return 0; - return MSYMBOL_VALUE_ADDRESS (got_sym); + return BMSYMBOL_VALUE_ADDRESS (got_sym); } /* Find the global pointer for the given function address ADDR. */