This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [patch v4 24/24] record-btrace: skip tail calls in back trace
- From: "Metzger, Markus T" <markus dot t dot metzger at intel dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 18 Sep 2013 09:52:45 +0000
- Subject: RE: [patch v4 24/24] record-btrace: skip tail calls in back trace
- Authentication-results: sourceware.org; auth=none
- References: <1372842874-28951-1-git-send-email-markus dot t dot metzger at intel dot com> <1372842874-28951-25-git-send-email-markus dot t dot metzger at intel dot com> <20130818190949 dot GS24153 at host2 dot jankratochvil dot net> <A78C989F6D9628469189715575E55B230A9CF8EE at IRSMSX104 dot ger dot corp dot intel dot com> <A78C989F6D9628469189715575E55B230A9D06B2 at IRSMSX104 dot ger dot corp dot intel dot com>
> -----Original Message-----
> From: Metzger, Markus T
> Sent: Wednesday, September 18, 2013 10:28 AM
> One way to solve this would be to add a BTRACE_TAILCALL_FRAME and
> extend struct target_ops to provide two optional unwinders that are both
> tried before any arch unwinder. I'd try this unless you have a better idea.
This fixes all fails in the existing tests.
There's one problem found by a new test I added: finish from a tail-called
function will not stop stepping.
I'll first incorporate the above fix into the patch series and send an updated
version out for review later today. Then I'll look at the finish-from-tailcall
problem.
Regards,
Markus.
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052