public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "informkarthik at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug backtrace/10310] (GNU/Linux:GCC:C lang: ARM platform) Core dump backtrace on stripped binaries Halts in 2 levels Date: Mon, 29 Jun 2009 09:43:00 -0000 [thread overview] Message-ID: <20090629094341.18783.qmail@sourceware.org> (raw) In-Reply-To: <20090622172820.10310.informkarthik@gmail.com> ------- Additional Comments From informkarthik at gmail dot com 2009-06-29 09:43 ------- We figured out that this is specific to our target. There were two things that we had to do. 1) Enable apcs-frame option for gcc. 2) Change the program counter correction to 12 (instead of 8). This is machine specific. --- gdb/arm-tdep.c.orig 2009-06-29 15:14:52.000000000 +0530 +++ gdb/arm-tdep.c 2009-06-29 14:46:41.000000000 +0530 @@ -1366,7 +1366,7 @@ else { prologue_start = gdbarch_addr_bits_remove - (gdbarch, return_value) - 8; + (gdbarch, return_value) - 12; prologue_end = prologue_start + 64; /* See above. */ } } 3) I think we need a comment in arm_scan_prologue, that one needs correction of 12 in some architectures for stack unwinding to work. Do we have any compiler flags that we can use to incorporate this as a feature that the user can set while compiling? -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=10310 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
prev parent reply other threads:[~2009-06-29 9:43 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-06-22 17:28 [Bug backtrace/10310] New: " informkarthik at gmail dot com 2009-06-23 7:03 ` [Bug backtrace/10310] " informkarthik at gmail dot com 2009-06-29 9:43 ` informkarthik at gmail dot com [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090629094341.18783.qmail@sourceware.org \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).