[Bug gdb/25655] New: Language is not auto/ada in main ada function for exec without debug info

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/25655] New: Language is not auto/ada in main ada function for exec without debug info

glaubitz at physik dot fu-berlin.de
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.
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/25655] Language is not auto/ada in main ada function for exec without debug info

glaubitz at physik dot fu-berlin.de
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.