Skip to content

Commit 1dc9069

Browse files
committed
Fix gdb/spu-tdep.c build breakage
Commit de63c46 ("Fix regresssion(internal-error) printing subprogram argument (PR gdb/22670)") missed updating spu-tdep.c for the block_lookup_symbol interface change, resulting in: ../../binutils-gdb/gdb/spu-tdep.c: In function void spu_catch_start(objfile*): ../../binutils-gdb/gdb/spu-tdep.c:1969:59: error: cannot convert domain_enum_tag to symbol_name_match_type for argument 3 to symbol* block_lookup_symbol(const block*, const char*, symbol_name_match_type, domain_enum) sym = block_lookup_symbol (block, "main", VAR_DOMAIN); ^ gdb/ChangeLog: 2018-01-05 Pedro Alves <palves@redhat.com> * spu-tdep.c (spu_catch_start): Pass symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
1 parent a76cf1f commit 1dc9069

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

gdb/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-01-05 Pedro Alves <palves@redhat.com>
2+
3+
* spu-tdep.c (spu_catch_start): Pass
4+
symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
5+
16
2018-01-05 Pedro Alves <palves@redhat.com>
27

38
PR gdb/22670

gdb/spu-tdep.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,9 @@ spu_catch_start (struct objfile *objfile)
19661966
struct symbol *sym;
19671967
struct symtab_and_line sal;
19681968

1969-
sym = block_lookup_symbol (block, "main", VAR_DOMAIN);
1969+
sym = block_lookup_symbol (block, "main",
1970+
symbol_name_match_type::SEARCH_NAME,
1971+
VAR_DOMAIN);
19701972
if (sym)
19711973
{
19721974
fixup_symbol_section (sym, objfile);

0 commit comments

Comments
 (0)