Skip to content

[gdb] Autoloading symbols from remote target broken #27414

@oold

Description

@oold

Description / Steps to reproduce the issue

Gdb used to be able to load shared library symbols automatically from the target. At the very least version 15.2-1 is able to do that, but the latest version (17.1-2 at this time) won't do it.

  1. Launch gdbserver on remote Linux system.
  2. gdb-multiarch
  3. file [your-executable]
  4. target remote [your-target-address]
  5. show sysroot -> The current system root is "target:".
  6. show auto-solib-add -> Autoloading of shared library symbols is on.
  7. c
  8. Break with Ctrl-C.
  9. bt

The output implies it doesn't even attempt to load the solib symbols, neither while running nor while in break state.

Expected behavior

#0  0xb7fd6d09 in __kernel_vsyscall ()
#1  0xb7b4e29b in nanosleep () from target:/lib/i386-linux-gnu/libc.so.6
#2  0xb7b4e175 in sleep () from target:/lib/i386-linux-gnu/libc.so.6
#3  0x0948d0fa in [censored] at [censored]
#4  0x094b7aec in main (argc=1, argv=0xbffffd44) at [censored]

Actual behavior

#0  0xb7fd6d09 in __kernel_vsyscall ()
#1  0xb7b4e29b in ?? ()

Verification

Windows Version

MSYS_NT-10.0-26200

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions