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 gdb/25350] gdb internal-error with assertion status failed Date: Sat, 15 Aug 2020 07:20:45 +0000 [thread overview] Message-ID: <bug-25350-4717-rRo7gUHRMh@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-25350-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=25350 --- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> --- The "break *eh2+0x7e" sets a breakpoint at the last insn of eh2. We can get that address using: ... $ address=$(gdb -batch a.out -ex "disassemble eh2" ' \ | tail -n 2 \ | head -n 1 \ | awk '{print $1}') ... and then use that variable to reproduce without hard-coding an offset: ... $ gdb -batch a.out -ex "b *$address" -ex r ... This way, we can also reproduce without -fsanitize=undefined: ... $ gcc -g small.c ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2020-08-15 7:20 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-25350-4717@http.sourceware.org/bugzilla/> 2020-08-15 6:57 ` vries at gcc dot gnu.org 2020-08-15 7:20 ` vries at gcc dot gnu.org [this message] 2020-08-15 7:36 ` vries at gcc dot gnu.org 2020-08-15 12:45 ` vries at gcc dot gnu.org 2020-08-16 11:30 ` cvs-commit at gcc dot gnu.org 2020-08-16 11:33 ` vries at gcc dot gnu.org 2020-08-18 16:54 ` 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-25350-4717-rRo7gUHRMh@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).