diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-05-09 14:29:13 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-05-09 14:29:13 +0000 |
commit | 2efbc0f7220afb483293e101e25bf2e93bce0787 (patch) | |
tree | c85d9c2d65423fbd6d0952f2b7a28e4053d1bc30 /gdb/infcall.c | |
parent | 2c76a0c7f171ca01d56349315580e85ecacc394d (diff) | |
download | gdb-2efbc0f7220afb483293e101e25bf2e93bce0787.zip gdb-2efbc0f7220afb483293e101e25bf2e93bce0787.tar.gz gdb-2efbc0f7220afb483293e101e25bf2e93bce0787.tar.bz2 |
Remove AT_SYMBOL
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.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index 8737c7b..fa498f6 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -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, - ¤t_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")); } |