aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-01-26 19:55:45 +0000
committerAndrew Cagney <cagney@redhat.com>2004-01-26 19:55:45 +0000
commitc034e007d5227897fb787ae8338d72fd7de9650d (patch)
treebd4084d239f201d0e741c97ec119549d586c682a /gdb/dwarf2read.c
parent6358301e9957ea78488d4ccb78471f467a2bac97 (diff)
downloadfsf-binutils-gdb-c034e007d5227897fb787ae8338d72fd7de9650d.zip
fsf-binutils-gdb-c034e007d5227897fb787ae8338d72fd7de9650d.tar.gz
fsf-binutils-gdb-c034e007d5227897fb787ae8338d72fd7de9650d.tar.bz2
Index: ChangeLog
2004-01-26 Andrew Cagney <cagney@redhat.com> * dwarf2read.c (read_func_scope): Document frame-base hack.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 2276562..3acbc58 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2211,6 +2211,15 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
it. */
attr = dwarf_attr (die, DW_AT_frame_base);
if (attr)
+ /* FIXME: cagney/2004-01-26: The DW_AT_frame_base's location
+ expression is being recorded directly in the function's symbol
+ and not in a separate frame-base object. I guess this hack is
+ to avoid adding some sort of frame-base adjunct/annex to the
+ function's symbol :-(. The problem with doing this is that it
+ results in a function symbol with a location expression that
+ has nothing to do with the location of the function, ouch! The
+ relationship should be: a function's symbol has-a frame base; a
+ frame-base has-a location expression. */
dwarf2_symbol_mark_computed (attr, new->name, cu);
list_in_scope = &local_symbols;