This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Symbol can't be found unless type 'tab'


On Wed, 12 Sep 2012 13:33:34 +0200, Yao Qi wrote:
> On 09/12/2012 04:06 PM, Jan Kratochvil wrote:
> >Why didn't use just normal DWARF block, instead of the location list?
> >This part does not matter for your testcase and it will work with GDB.
> 
> No special reason really.  Are you suggesting create dwarf like this?
> 
>  <1><33>: Abbrev Number: 3 (DW_TAG_variable)
>     <34>   DW_AT_name        : i
>     <36>   DW_AT_type        : <0x2a>
>     <3a>   DW_AT_external    : 1
>     <3b>   DW_AT_location    : 6 byte block: 52 93 4 53 93 4
> (DW_OP_reg2 (edx); DW_OP_piece: 4; DW_OP_reg3 (ebx); DW_OP_piece: 4)

Oops, you are right, this also cannot work.

You have to put it into a function as a local variable.


Sorry,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]