This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/gdb-8.1-branch] Fix gdb/spu-tdep.c build breakage


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1dc9069e0620fafe99628cd7d849033161258074

commit 1dc9069e0620fafe99628cd7d849033161258074
Author: Pedro Alves <palves@redhat.com>
Date:   Fri Jan 5 18:03:10 2018 +0000

    Fix gdb/spu-tdep.c build breakage
    
    Commit de63c46b549d ("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.

Diff:
---
 gdb/ChangeLog  | 5 +++++
 gdb/spu-tdep.c | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0202eb4..7b39c54 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 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.
+
+2018-01-05  Pedro Alves  <palves@redhat.com>
+
 	PR gdb/22670
 	* ada-lang.c (literal_symbol_name_matcher): New function.
 	(ada_get_symbol_name_matcher): Use it for
diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c
index b6782b0..b82bb0e 100644
--- a/gdb/spu-tdep.c
+++ b/gdb/spu-tdep.c
@@ -1966,7 +1966,9 @@ spu_catch_start (struct objfile *objfile)
       struct symbol *sym;
       struct symtab_and_line sal;
 
-      sym = block_lookup_symbol (block, "main", VAR_DOMAIN);
+      sym = block_lookup_symbol (block, "main",
+				 symbol_name_match_type::SEARCH_NAME,
+				 VAR_DOMAIN);
       if (sym)
 	{
 	  fixup_symbol_section (sym, objfile);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]