From: Pierre-Marie de Rodat Date: Sat, 1 Aug 2015 09:25:44 +0000 (+0200) Subject: Complete the previous commit (block_found refactoring) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=835a09d99d585bfdc9f760970908e10bd8b2fec2;p=binutils-gdb.git Complete the previous commit (block_found refactoring) The previous commit (Replace the block_found global with explicit data-flow) lacks updates in a couple of files because it was not tested building GDB with --enable-targets=all... but buildbots did. This adds the appropriate simple updates to fix the build. gdb/ChangeLog: * alpha-mdebug-tdep.c (find_proc_desc): Update call to lookup_symbol. * ft32-tdep.c (ft32_skip_prologue): Likewise. * moxie-tdep.c (moxie_skip_prologue): Likewise. * mt-tdep.c (mt_skip_prologue): Likewise. * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e8c04c018aa..bed807d9c07 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2015-08-02 Pierre-Marie de Rodat + + * alpha-mdebug-tdep.c (find_proc_desc): Update call to + lookup_symbol. + * ft32-tdep.c (ft32_skip_prologue): Likewise. + * moxie-tdep.c (moxie_skip_prologue): Likewise. + * mt-tdep.c (mt_skip_prologue): Likewise. + * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise. + 2015-08-01 Pierre-Marie de Rodat * ada-exp.y (write_object_renaming): Replace struct diff --git a/gdb/alpha-mdebug-tdep.c b/gdb/alpha-mdebug-tdep.c index 2f58c64f4b7..a8a511bfeb7 100644 --- a/gdb/alpha-mdebug-tdep.c +++ b/gdb/alpha-mdebug-tdep.c @@ -107,7 +107,8 @@ find_proc_desc (CORE_ADDR pc) symbol reading. */ sym = NULL; else - sym = lookup_symbol (MDEBUG_EFI_SYMBOL_NAME, b, LABEL_DOMAIN, 0); + sym = lookup_symbol (MDEBUG_EFI_SYMBOL_NAME, b, LABEL_DOMAIN, + 0).symbol; } if (sym) diff --git a/gdb/ft32-tdep.c b/gdb/ft32-tdep.c index e7f4d1a6061..2e5deca4162 100644 --- a/gdb/ft32-tdep.c +++ b/gdb/ft32-tdep.c @@ -250,7 +250,7 @@ ft32_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) plg_end = ft32_analyze_prologue (func_addr, func_end, &cache, gdbarch); /* Found a function. */ - sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL); + sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL).symbol; /* Don't use line number debug info for assembly source files. */ if ((sym != NULL) && SYMBOL_LANGUAGE (sym) != language_asm) { diff --git a/gdb/moxie-tdep.c b/gdb/moxie-tdep.c index 555151d6282..949631475c8 100644 --- a/gdb/moxie-tdep.c +++ b/gdb/moxie-tdep.c @@ -241,7 +241,7 @@ moxie_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) plg_end = moxie_analyze_prologue (func_addr, func_end, &cache, gdbarch); /* Found a function. */ - sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL); + sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL).symbol; /* Don't use line number debug info for assembly source files. */ if (sym && SYMBOL_LANGUAGE (sym) != language_asm) diff --git a/gdb/mt-tdep.c b/gdb/mt-tdep.c index 74d54a734b2..a9c1fbb40b4 100644 --- a/gdb/mt-tdep.c +++ b/gdb/mt-tdep.c @@ -415,7 +415,7 @@ mt_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) struct symbol *sym; /* Found a function. */ - sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL); + sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL).symbol; if (sym && SYMBOL_LANGUAGE (sym) != language_asm) { /* Don't use this trick for assembly source files. */ diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c index 4faad2efc52..05b3039231e 100644 --- a/gdb/xstormy16-tdep.c +++ b/gdb/xstormy16-tdep.c @@ -433,7 +433,7 @@ xstormy16_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) return plg_end; /* Found a function. */ - sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL); + sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL).symbol; /* Don't use line number debug info for assembly source files. */ if (sym && SYMBOL_LANGUAGE (sym) != language_asm) {