public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug tdep/29409] [gdb, tdep/aarch64] FAIL: gdb.opt/inline-small-func.exp: info breakpoints Date: Tue, 26 Jul 2022 14:47:33 +0000 [thread overview] Message-ID: <bug-29409-4717-3AFZSpGZqb@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-29409-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=29409 --- Comment #11 from Tom de Vries <vries at gcc dot gnu.org> --- Another regression, test-case gdb.base/store.exp, insns: ... 00000000004005e4 <add_charest>: 4005e4: 13001c02 sxtb w2, w0 4005e8: 13001c20 sxtb w0, w1 4005ec: 12001c41 and w1, w2, #0xff 4005f0: 12001c00 and w0, w0, #0xff 4005f4: 0b000020 add w0, w1, w0 4005f8: 12001c00 and w0, w0, #0xff 4005fc: 13001c00 sxtb w0, w0 400600: d65f03c0 ret ... and lines: ... CU: store.c: File name Line number Starting address View Stmt store.c 14 0x4005e4 x store.c 15 0x4005ec x store.c 16 0x400600 x ... Without the patch, we use skip_prologue_using_sal and return 0x4005ec and consequently line 15, which is the expected one. With the patch, we return 0x4005e4 and consequently line 14. Intesting question: are the two first insns part of the prologue or not? In GCC terms, they come after NOTE_INSN_PROLOGUE_END but before NOTE_INSN_FUNCTION_BEG and consequently have line info markers for the opening brace '{' at line 14. You could argue that this is a gcc bug and that the insn at 0x4005e4 should have line 15, so something like this: ... store.c 14 0x4005e4 x store.c 15 0x4005e4 x store.c 16 0x400600 x ... AFAIU, this would get us line 15 both with and without the patch. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-07-26 14:47 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-07-26 8:25 [Bug tdep/29409] New: " vries at gcc dot gnu.org 2022-07-26 8:51 ` [Bug tdep/29409] " vries at gcc dot gnu.org 2022-07-26 8:56 ` vries at gcc dot gnu.org 2022-07-26 9:05 ` vries at gcc dot gnu.org 2022-07-26 9:12 ` luis.machado at arm dot com 2022-07-26 10:58 ` vries at gcc dot gnu.org 2022-07-26 11:14 ` vries at gcc dot gnu.org 2022-07-26 12:57 ` vries at gcc dot gnu.org 2022-07-26 13:10 ` luis.machado at arm dot com 2022-07-26 13:36 ` vries at gcc dot gnu.org 2022-07-26 13:58 ` luis.machado at arm dot com 2022-07-26 14:47 ` vries at gcc dot gnu.org [this message] 2022-07-26 15:30 ` vries at gcc dot gnu.org 2022-08-10 13:50 ` vries at gcc dot gnu.org 2022-08-11 11:59 ` vries at gcc dot gnu.org
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=bug-29409-4717-3AFZSpGZqb@http.sourceware.org/bugzilla/ \ --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).