]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/printcmd.c
2004-01-26 Andrew Cagney <cagney@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / printcmd.c
index 0502cf1cb2408bcc4d720228577e21549c1f6b3a..dba7bdd1b7f3e5e84c7b27213c8f21cc60d9eab2 100644 (file)
@@ -1141,7 +1141,12 @@ address_info (char *exp, int from_tty)
 
     case LOC_COMPUTED:
     case LOC_COMPUTED_ARG:
-      (SYMBOL_LOCATION_FUNCS (sym)->describe_location) (sym, gdb_stdout);
+      /* FIXME: cagney/2004-01-26: It should be possible to
+        unconditionally call the SYMBOL_OPS method when available.
+        Unfortunatly DWARF 2 stores the frame-base (instead of the
+        function) location in a function's symbol.  Oops!  For the
+        moment enable this when/where applicable.  */
+      SYMBOL_OPS (sym)->describe_location (sym, gdb_stdout);
       break;
 
     case LOC_REGISTER: