1 Jan 2005 20:15
Re: gcc 4.0 generates location list without DW_AT_frame_base
H. J. Lu <hjl <at> lucon.org>
2005-01-01 19:15:00 GMT
2005-01-01 19:15:00 GMT
On Fri, Dec 31, 2004 at 02:03:24PM -0800, H. J. Lu wrote:
> On Fri, Dec 31, 2004 at 04:57:17PM -0500, Daniel Berlin wrote:
> > >0x000000000055c84d in add_location_or_const_value_attribute
> > >(die=0x2a96205820,
> > > decl=0x2a961ad000, attr=DW_AT_location)
> > > at /export/gnu/src/gcc/gcc/gcc/dwarf2out.c:10108
> > >10108 descr = loc_descriptor (NOTE_VAR_LOCATION
> > >(node->var_loc_note),
> > >(gdb) p *loc_list
> > >$4 = {first = 0x0, last = 0x0, decl_id = 14047}
> > >(gdb)
> >
> > Oh, that's weird.
> > Wonder why we added it then.
> > anyway, just change
> > if (loc_list)
> > to
> > if (loc_list && loc_list->first)
>
> I am testing it now. Bootstrap has passed the previous failure. It will
> take a while to finish.
The modified patch works with tls_symbolic_operand in i386. However,
I do see
<2><427491>: Abbrev Number: 39 (DW_TAG_inlined_subroutine)
DW_AT_sibling : <427510>
DW_AT_abstract_origin: <427159>
DW_AT_low_pc : 0x8399aea
DW_AT_high_pc : 0x8399b3c
(Continue reading)
> on the same (target-)machine, just another terminal:
>
> gdb /usr/bin/vdr-dbg
>
> (gdb) target remote localhost:1000
> Remote debugging using localhost:1000
> 0x40000c20 in ?? ()
> (gdb) c
> Continuing.
> [New Thread 16384]
>
>
> And that's it - no other thread is loaded. Running gdb directly works
> perfectly.
>
> Am I doing something wrong? What can I do to trace down the problem?
You could give us some information about your target, system,
and version. And the output of "set debug remote 1".
RSS Feed