public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "tromey at sourceware dot org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug ada/23167] "catch exception foo" fails if current language is auto Date: Thu, 01 Jul 2021 14:15:48 +0000 [thread overview] Message-ID: <bug-23167-4717-EosfkyByoP@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-23167-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=23167 Tom Tromey <tromey at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-07-01 CC| |tromey at sourceware dot org Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING --- Comment #1 from Tom Tromey <tromey at sourceware dot org> --- (In reply to Simon Wright from comment #0) > Temporary breakpoint 1 at 0x10000168c: file > /Users/simon/Analytical_Engine/src/aes.adb, line 36. This looks like language should be ada... > (gdb) show lang > The current source language is "auto; currently ada". ... and part of gdb thought so as well... > struct symbol *func = block_linkage_function (block); > > if (func != NULL) > lang = language_def (SYMBOL_LANGUAGE (func)); > if (lang == NULL || lang->la_language == language_unknown) <<< 1181 > lang = current_language; > > (top-gdb) p func > $1 = (symbol *) 0x104b77f70 It would be interesting to see the contents of 'func'. A small, self-contained example program might also be good, along with the command line you used to build it. I was wondering if perhaps you were using stabs instead of dwarf, for instance. The test suite has some tests of 'catch exception', and for me this works fine as long as I have an Ada runtime with the necessary debuginfo. -- You are receiving this mail because: You are on the CC list for the bug.
next parent reply other threads:[~2021-07-01 14:15 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-23167-4717@http.sourceware.org/bugzilla/> 2021-07-01 14:15 ` tromey at sourceware dot org [this message] 2021-07-01 18:53 ` simon at pushface dot org 2022-02-28 18:57 ` tromey at sourceware dot 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-23167-4717-EosfkyByoP@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).