summaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-06-24 20:42:42 +0000
committerAndrew Cagney <cagney@redhat.com>2004-06-24 20:42:42 +0000
commit6280533506016d1673b582c5f6a49a438f7ace39 (patch)
tree38527c06119423d2aff4e3c684faceb29fc51710 /gdb/blockframe.c
parent1ddfa3e608ab802808fc508bab3d71ac27dd2c6c (diff)
downloadgdb-6280533506016d1673b582c5f6a49a438f7ace39.tar.gz
2004-06-24 Andrew Cagney <cagney@gnu.org>
* objfiles.h (struct entry_info): Delete entry_func_lowpc and entry_func_highpc fields. * objfiles.c (init_entry_point_info): Do not clear entry_func_lowpc and entry_func_highpc. (objfile_relocate): Do not relocate entry_func_lowpc and entry_func_highpc. * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and entry_func_highpc. * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and entry_func_highpc. * blockframe.c (legacy_frame_chain_valid): Replace tests against entry_func_lowpc and entry_func_highpc with call to inside_entry_func.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index a9f0b60f447..eb032258939 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -524,9 +524,7 @@ legacy_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
/* If we're already inside the entry function for the main objfile,
then it isn't valid. */
- if (symfile_objfile != NULL
- && (symfile_objfile->ei.entry_func_lowpc <= get_frame_pc (fi)
- && symfile_objfile->ei.entry_func_highpc > get_frame_pc (fi)))
+ if (inside_entry_func (fi))
return 0;
return 1;