This is the mail archive of the gdb@sources.redhat.com 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: [testsuite & dwarf2] How to handle store.exp failure on AMD64?


Andrew Cagney wrote:
For this specific ABI and problem, did GCC put the value in a preserved regiter ...

- GCC -O0 should should not eliminate variables, and should preserve all variables across function calls.

Given that is compiled with -O0, I think GCC is failing on count #3 here.

or a scratch register?

Into the preserved register (%rbx).
When I added the appropriate DW_CFA_same_value instruction to the .s file, the register was correctly unwound and the value of the variable in an upper frame shown.


Michal Ludvig


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