no attribute '_handle_missing_debuginfo'

Aktemur, Tankut Baris tankut.baris.aktemur@intel.com
Tue Oct 8 06:13:47 GMT 2024


On Tuesday, October 8, 2024 12:54 AM, Robert Dubner wrote:
> bob@doobie:~/repos/gdb-cobol/gcobol$ GDB --version
> GNU gdb (GDB-COBOL 14.0.7 (debuggable)) 16.0.50.20241007-git
> 
> bob@doobie:~/repos/gdb-cobol/gcobol$ GDB -q
> (gdb) python
> >print(sys.version)
> >end
> 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]
> 
> (gdb) file ctest
> Reading symbols from ctest...
> (gdb) start
> Temporary breakpoint 1 at 0x122a: file ctest.c, line 19.
> Starting program: /home/bob/repos/gdb-cobol/gcobol/ctest
> Python Exception <class 'AttributeError'>: module 'gdb' has no attribute
> '_handle_missing_debuginfo'
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> 
> Temporary breakpoint 1, main (argc=1, argv=0x7fffffffe328) at ctest.c:19

What is 'GDB' in the commands above?  Is it an alias to the gdb binary 
in your build folder?  If you're using your locally-built gdb binary
from the build folder and not the install folder, please try passing
the data-directory flag.  Otherwise, a data-directory in a more default
location takes precedence.

  $ /<path-to-build-folder>/gdb/gdb -q --data-directory=/<path-to-build-folder>/gdb/data-directory

You can run the "show data-directory" command to check if it is pointing
to the right folder.

-Baris


Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928



More information about the Gdb mailing list