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] |
Unfortunately this breaks debugging with stabs, since stabsread.c uses the same REG_STRUCT_HAS_ADDR to see if a function argument is passed by value or by reference. I think we really want to get rid of the broken code in infcall.c in the long run. Therefore I looked for a way to disable it for "modern" targets, i.e. targets that define PUSH_DUMMY_CALL as opposed to the old PUSH_DUMMY_FRAME & friends. Looking at the code I found that the following targets (besides SPARC) are using REG_STRUCT_HAS_ADDR:
- if (REG_STRUCT_HAS_ADDR_P ()) + if (REG_STRUCT_HAS_ADDR_P () + && !gdbarch_push_dummy_call_p (current_gdbcarch))
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |