Community
Participate
Working Groups
Hello, Looking into agent/tcf/services/dwarfframe.c, we can see: 527 default: 528 switch (op >> 6) { 529 case 0: 530 str_exception(ERR_INV_DWARF, "Unsupported instruction in Call Frame Information"); 531 break; I am having the situation that, I have a frame extension - DW_CFA_GNU_window_save - which is not supported by tcf. I think it would be a good idea if the agent exposed some interface (perhaps, some callbacks) so that the debuggers could handle themselves the extended opcodes. It would be preferable to hacking into the agent. I also found a list of dwarf extensions here, if it may be of any help: https://fedorahosted.org/elfutils/wiki/DwarfExtensions Thanks, Samuel
Adding callbacks would also require to expose internal data structures of dwarfframe.c. It can get complicated. In this case, it is much easier to add support for DW_CFA_GNU_window_save. I've added the support. Let me know if it works - I have no way to test it. BTW, full support for Sparc will, probably, require few more changes like this.