Remove AT_SYMBOL
authorJoel Brobecker <brobecker@gnat.com>
Wed, 9 May 2012 14:29:13 +0000 (14:29 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 9 May 2012 14:29:13 +0000 (14:29 +0000)
Now that this method is no longer used by any architecture,
we can remove its support.

gdb/ChangeLog:

        * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
        * inferior.h (AT_SYMBOL): Delete.

gdb/ChangeLog
gdb/infcall.c
gdb/inferior.h

index 633a05a..63627c5 100644 (file)
@@ -1,5 +1,10 @@
 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
 
+       * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
+       * inferior.h (AT_SYMBOL): Delete.
+
+2012-05-09  Joel Brobecker  <brobecker@adacore.com>
+
        * mips-tdep.c (mips_push_dummy_code): New function.
        (mips_gdbarch_init): Set the gdbarch call_dummy_location to
        ON_STACK and install mips_push_dummy_code as our gdbarch
index 8737c7b..fa498f6 100644 (file)
@@ -640,33 +640,6 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
        bp_addr = dummy_addr;
        break;
       }
-    case AT_SYMBOL:
-      /* Some executables define a symbol __CALL_DUMMY_ADDRESS whose
-        address is the location where the breakpoint should be
-        placed.  Once all targets are using the overhauled frame code
-        this can be deleted - ON_STACK is a better option.  */
-      {
-       struct minimal_symbol *sym;
-       CORE_ADDR dummy_addr;
-
-       sym = lookup_minimal_symbol ("__CALL_DUMMY_ADDRESS", NULL, NULL);
-       real_pc = funaddr;
-       if (sym)
-         {
-           dummy_addr = SYMBOL_VALUE_ADDRESS (sym);
-           /* Make certain that the address points at real code, and not
-              a function descriptor.  */
-           dummy_addr = gdbarch_convert_from_func_ptr_addr (gdbarch,
-                                                            dummy_addr,
-                                                            &current_target);
-         }
-       else
-         dummy_addr = entry_point_address ();
-       /* A call dummy always consists of just a single breakpoint,
-          so it's address is the same as the address of the dummy.  */
-       bp_addr = dummy_addr;
-       break;
-      }
     default:
       internal_error (__FILE__, __LINE__, _("bad switch"));
     }
index 63245a2..8c90f96 100644 (file)
@@ -357,7 +357,6 @@ struct displaced_step_closure *get_displaced_step_closure_by_addr (CORE_ADDR add
 /* Possible values for gdbarch_call_dummy_location.  */
 #define ON_STACK 1
 #define AT_ENTRY_POINT 4
-#define AT_SYMBOL 5
 
 /* If STARTUP_WITH_SHELL is set, GDB's "run"
    will attempts to start up the debugee under a shell.