From: Andrew Cagney Date: Mon, 26 Jan 2004 19:55:45 +0000 (+0000) Subject: Index: ChangeLog X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c034e007d5227897fb787ae8338d72fd7de9650d;p=binutils-gdb.git Index: ChangeLog 2004-01-26 Andrew Cagney * dwarf2read.c (read_func_scope): Document frame-base hack. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b20f0e9ebf6..296dbc0f01c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2004-01-26 Andrew Cagney + + * dwarf2read.c (read_func_scope): Document frame-base hack. + 2004-01-25 Mark Kettenis * infcmd.c (print_return_value): Plug memory leak; delete diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 22765623384..3acbc583a30 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;