This is the mail archive of the insight@sourceware.org mailing list for the Insight 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]

[RFA] Fix build error in gdbtk-cmds.c


Recent changes to GDB have caused this error:

../src/gdb/gdbtk/generic/gdbtk-cmds.c: In function 'pc_function_name':
../src/gdb/gdbtk/generic/gdbtk-cmds.c:2998: error: incompatible types when assigning to type 'struct minimal_symbol *' from type 'struct bound_minimal_symbol'

The patch below fixes this problem.

Okay?

	* generic/gdbtk-cmds.c (pc_function_name): Adjust type of
	`msym' to account for change in return type of
	lookup_minimal_symbol_by_pc().

Index: gdbtk/generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.130
diff -u -p -r1.130 gdbtk-cmds.c
--- gdbtk/generic/gdbtk-cmds.c	16 Nov 2012 21:05:38 -0000	1.130
+++ gdbtk/generic/gdbtk-cmds.c	13 Apr 2013 00:51:02 -0000
@@ -2993,11 +2993,11 @@ pc_function_name (CORE_ADDR pc)
   else
     {
       /* ... if that fails, look it up in the minimal symbols. */
-      struct minimal_symbol *msym = NULL;
+      struct bound_minimal_symbol msym;
 
       msym = lookup_minimal_symbol_by_pc (pc);
-      if (msym != NULL)
-	funcname = GDBTK_SYMBOL_SOURCE_NAME (msym);
+      if (msym.minsym != NULL)
+	funcname = GDBTK_SYMBOL_SOURCE_NAME (msym.minsym);
     }
 
   if (funcname == NULL)


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