public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/23167] "catch exception foo" fails if current language is auto
       [not found] <bug-23167-4717@http.sourceware.org/bugzilla/>
@ 2021-07-01 14:15 ` tromey at sourceware dot org
  2021-07-01 18:53 ` simon at pushface dot org
  2022-02-28 18:57 ` tromey at sourceware dot org
  2 siblings, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2021-07-01 14:15 UTC (permalink / raw)
  To: gdb-prs

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug ada/23167] "catch exception foo" fails if current language is auto
       [not found] <bug-23167-4717@http.sourceware.org/bugzilla/>
  2021-07-01 14:15 ` [Bug ada/23167] "catch exception foo" fails if current language is auto tromey at sourceware dot org
@ 2021-07-01 18:53 ` simon at pushface dot org
  2022-02-28 18:57 ` tromey at sourceware dot org
  2 siblings, 0 replies; 3+ messages in thread
From: simon at pushface dot org @ 2021-07-01 18:53 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=23167

--- Comment #2 from Simon Wright <simon at pushface dot org> ---
I can’t reproduce this now: several versions of macOS later (now Big Sur), that
gdb doesn’t recognise the executable file format (BFD issue), ...

gdb 10.2 with the patch at PR24069c14 is pretty reliable once started, I
sometimes have to ^C to get out of a hang, usually goes OK after that.

My apologies for not having noted compiler/OS versions at the time.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug ada/23167] "catch exception foo" fails if current language is auto
       [not found] <bug-23167-4717@http.sourceware.org/bugzilla/>
  2021-07-01 14:15 ` [Bug ada/23167] "catch exception foo" fails if current language is auto tromey at sourceware dot org
  2021-07-01 18:53 ` simon at pushface dot org
@ 2022-02-28 18:57 ` tromey at sourceware dot org
  2 siblings, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2022-02-28 18:57 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=23167

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|WAITING                     |RESOLVED

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Simon Wright from comment #2)
> I can’t reproduce this now: several versions of macOS later (now Big Sur),
> that gdb doesn’t recognise the executable file format (BFD issue), ...

IIUC this is fixed now.
If I'm in error, please reopen.  Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-28 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23167-4717@http.sourceware.org/bugzilla/>
2021-07-01 14:15 ` [Bug ada/23167] "catch exception foo" fails if current language is auto tromey at sourceware dot org
2021-07-01 18:53 ` simon at pushface dot org
2022-02-28 18:57 ` tromey at sourceware dot org

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).