2004-11-08 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / infcall.c
index ade9943337fe4782dce652db6909ad48a1876dd8..ec4f11a013694f6351e9e327fa48bb2985eef499 100644 (file)
@@ -307,7 +307,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
   CORE_ADDR funaddr;
   int using_gcc;               /* Set to version of gcc in use, or zero if not gcc */
   CORE_ADDR real_pc;
-  struct type *ftype = check_typedef (SYMBOL_TYPE (function));
+  struct type *ftype = check_typedef (VALUE_TYPE (function));
   CORE_ADDR bp_addr;
   struct regcache *caller_regcache;
   struct cleanup *caller_regcache_cleanup;
@@ -746,7 +746,7 @@ You must use a pointer to function type variable. Command ignored.", arg_name);
          {
            /* Can't use a cleanup here.  It is discarded, instead use
                an alloca.  */
-           char *tmp = xstrprintf ("at %s", local_hex_string (funaddr));
+           char *tmp = xstrprintf ("at %s", hex_string (funaddr));
            char *a = alloca (strlen (tmp) + 1);
            strcpy (a, tmp);
            xfree (tmp);
This page took 0.044477 seconds and 4 git commands to generate.