public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/25655] New: Language is not auto/ada in main ada function for exec without debug info
@ 2020-03-11 15:20 vries at gcc dot gnu.org
  2020-03-11 15:45 ` [Bug gdb/25655] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2020-03-11 15:20 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 25655
           Summary: Language is not auto/ada in main ada function for exec
                    without debug info
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Consider the executable produced by gdb.ada/minsyms.exp: foo_qb07_057, an
executable build without debug info (well, for the source files, as usual there
will be debug info for the linked-in libraries and startup files for openSUSE).

When running to main, the language changes from auto/ada to auto/c:
...
$ gdb -batch -iex "set verbose on" foo_qb07_057 -ex "show language" -ex start 
Reading symbols from foo_qb07_057...
The current source language is "auto; currently ada".
Temporary breakpoint 1 at 0x401fbc
Reading symbols from /lib64/ld-linux-x86-64.so.2...
Reading symbols from
/usr/lib/debug/lib64/ld-2.26.so-2.26-lp151.18.7.x86_64.debug...
Reading symbols from system-supplied DSO at 0x7ffff7ffa000...
(No debugging symbols found in system-supplied DSO at 0x7ffff7ffa000)
Reading in symbols for rtld.c...
Reading symbols from /lib64/libc.so.6...
Reading symbols from
/usr/lib/debug/lib64/libc-2.26.so-2.26-lp151.18.7.x86_64.debug...

Temporary breakpoint 1, 0x0000000000401fbc in foo_qb07_057 ()
Current language:  auto
The current source language is "auto; currently c".
...

After removing --with-separate-debug-dir=/usr/lib/debug from my configure
flags, such that package debug info is not found, I have instead:
...
$ gdb -batch -iex "set verbose on" foo_qb07_057 -ex "show language" -ex start
-ex "show language"
Reading symbols from foo_qb07_057...
The current source language is "auto; currently ada".
Temporary breakpoint 1 at 0x401fbc
Reading symbols from /lib64/ld-linux-x86-64.so.2...
(No debugging symbols found in /lib64/ld-linux-x86-64.so.2)
Reading symbols from system-supplied DSO at 0x7ffff7ffa000...
(No debugging symbols found in system-supplied DSO at 0x7ffff7ffa000)
Reading symbols from /lib64/libc.so.6...
(No debugging symbols found in /lib64/libc.so.6)

Temporary breakpoint 1, 0x0000000000401fbc in foo_qb07_057 ()
The current source language is "auto; currently ada".
...
Now the language just remains ada.

It seems we should do better in the first case.

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

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

* [Bug gdb/25655] Language is not auto/ada in main ada function for exec without debug info
  2020-03-11 15:20 [Bug gdb/25655] New: Language is not auto/ada in main ada function for exec without debug info vries at gcc dot gnu.org
@ 2020-03-11 15:45 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2020-03-11 15:45 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Classifying this as enhancement for now, given that I'm not certain that it is
a bug.

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

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

end of thread, other threads:[~2020-03-11 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 15:20 [Bug gdb/25655] New: Language is not auto/ada in main ada function for exec without debug info vries at gcc dot gnu.org
2020-03-11 15:45 ` [Bug gdb/25655] " vries at gcc dot gnu.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).