This is the mail archive of the gdb-prs@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]

[Bug breakpoints/13247] Wrong breakpoint address for ARM binarybuilt with -O2


http://sourceware.org/bugzilla/show_bug.cgi?id=13247

--- Comment #2 from Christian Prochaska <christian.prochaska@genode-labs.com> 2011-10-06 15:28:31 UTC ---
According to the comments linked from Bug 12573 the function prologue is not to
be skipped at all for -O2 and instead it is assumed that DWARF location
information is always correct. So I guess in my case the location information
is incorrect?

<2><175>: Abbrev Number: 6 (DW_TAG_formal_parameter)
   <176>   DW_AT_name        : (indirect string, offset: 0x65): func1_args     
   <17a>   DW_AT_decl_file   : 1       
   <17b>   DW_AT_decl_line   : 3       
   <17c>   DW_AT_type        : <0x106> 
   <180>   DW_AT_location    : 2 byte block: 91 70     (DW_OP_fbreg: -16)

>From my current understanding, DW_AT_location is rather supposed to link to a
location list containing the information that a part of func1_args is stored in
registers for PC values 0x838c-0x8394 and in memory later, starting with PC
value 0x8398?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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