diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-21 19:43:48 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-21 19:43:48 +0000 |
commit | 5f5e16d07da63aa7020fbbc9498660ce956db110 (patch) | |
tree | 2dfec8bd33a48247eee2480eedd734f7e0a12786 /gdb/exec.c | |
parent | 675cab36a3321d5fbc956952921150d676a0409e (diff) | |
download | gdb-5f5e16d07da63aa7020fbbc9498660ce956db110.tar.gz |
2003-01-21 Andrew Cagney <ac131313@redhat.com>
* exec.c (text_start): Delete global variable.
(exec_file_attach): Make text_start local to the function.
* inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
* valops.c (hand_function_call): Delete code that handles
BEFORE_TEXT_END and AFTER_TEXT_END.
* gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
of CALL_DUMMY_LOCATION.
* gdbarch.c: Regenerate.
* inferior.h (deprecated_pc_in_call_dummy_before_text_end)
(deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
* blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
(deprecated_pc_in_call_dummy_after_text_end): Delete functions.
(text_end): Delete extern declaration.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/exec.c b/gdb/exec.c index 036df003bf8..0bde096c7c2 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -90,7 +90,6 @@ int write_files = 0; #ifndef NEED_TEXT_START_END #define NEED_TEXT_START_END (0) #endif -CORE_ADDR text_start = 0; CORE_ADDR text_end = 0; struct vmap *vmap; @@ -279,7 +278,7 @@ exec_file_attach (char *filename, int from_tty) /* FIXME: The comment above does not match the code. The code checks for sections with are either code *or* readonly. */ - text_start = ~(CORE_ADDR) 0; + CORE_ADDR text_start = ~(CORE_ADDR) 0; text_end = (CORE_ADDR) 0; for (p = exec_ops.to_sections; p < exec_ops.to_sections_end; p++) if (bfd_get_section_flags (p->bfd, p->the_bfd_section) |