From mboxrd@z Thu Jan 1 00:00:00 1970 From: Duane Ellis To: insight@sourceware.cygnus.com Subject: Tail Calls & Insight Date: Tue, 16 May 2000 12:43:00 -0000 Message-id: <200005161943.PAA05435@mercury.franklin.com> X-SW-Source: 2000-q2/msg00189.html I'm working on a custom port for insight/gdb for our custom RISC cpu and I'm having a problem with something. When you click the 'next' button, GDB really single steps till the PC goes somewhere expected, or unexpected. If it's unexpected (ie: a subroutine call occurs) GDB then assumes that the return address is on the stack and pops the return address, sets a new breakpoint and 'runs', hoping it will hit the breakpoint. Unfortunatly, (or fortunatly depending on your view) one optmization trick we use is to convert tail calls into jumps. Is there any way of describing this situation to GDB? -Duane.