]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/expprint.c
Use bound_minimal_symbol in var_msym_value_operation
[thirdparty/binutils-gdb.git] / gdb / expprint.c
index 49919e815fe235ec27550f9e05f1d2831b701d7a..e228beb83a59bb9f52bb6f8f4fd1d94602f4f920 100644 (file)
@@ -110,10 +110,11 @@ dump_for_expression (struct ui_file *stream, int depth, symbol *sym)
 }
 
 void
-dump_for_expression (struct ui_file *stream, int depth, minimal_symbol *msym)
+dump_for_expression (struct ui_file *stream, int depth,
+                    bound_minimal_symbol msym)
 {
-  fprintf_filtered (stream, _("%*sMinsym: %s\n"), depth, "",
-                    msym->print_name ());
+  fprintf_filtered (stream, _("%*sMinsym %s in objfile %s\n"), depth, "",
+                   msym.minsym->print_name (), objfile_name (msym.objfile));
 }
 
 void
@@ -162,13 +163,6 @@ dump_for_expression (struct ui_file *stream, int depth,
   fputs_unfiltered ("\n", stream);
 }
 
-void
-dump_for_expression (struct ui_file *stream, int depth, objfile *objf)
-{
-  fprintf_filtered (stream, _("%*sObjfile: %s\n"), depth, "",
-                    objfile_name (objf));
-}
-
 void
 dump_for_expression (struct ui_file *stream, int depth,
                     enum range_flag flags)