Actions
Bug #5608
closed[hipster] 32bit gdb selected by default and gives up when loading 64bit binaries
Start date:
2015-02-11
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Description
If one calls gdb from the shell the 32bit gdb is ran and fails to load the binary to debug.
larcher@na75:> file demo demo: ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, not stripped larcher@na75:> gdb demo GNU gdb (GDB) 7.6.2 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-pc-solaris2.11". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /local/larcher/Workspace/dolfin-hpc/bench/fem/Assembler/demo...done. (gdb) run Starting program: /local/larcher/Workspace/dolfin-hpc/bench/fem/Assembler/demo procfs:3974 -- process not stopped. procfs: ...giving up... (gdb) q A debugging session is active. Inferior 1 [process 23674] will be killed.
The 64bit gdb has to be called explicitely which may be confusing:
larcher@na75:> /usr/bin/amd64/gdb demo GNU gdb (GDB) 7.6.2 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-pc-solaris2.11". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /local/larcher/Workspace/dolfin-hpc/bench/fem/Assembler/demo...done. (gdb) run Starting program: /local/larcher/Workspace/dolfin-hpc/bench/fem/Assembler/demo [Thread debugging using libthread_db enabled] PoissonP1 Assembling (rank 0 ) matrix over cells (finished). Number of degrees of freedom: 16641 Elapsed time: 0.26000000 seconds PoissonP2 Assembling (rank 0 ) matrix over cells (finished). Number of degrees of freedom: 66049 Elapsed time: 0.60000000 seconds PoissonP3 Assembling (rank 0 ) matrix over cells (finished). Number of degrees of freedom: 148225 Elapsed time: 1.07000000 seconds ... ...
Updated by Alexander Pyhalov over 7 years ago
If 64-bit gdb can handle 32-bit binaries, as fast workaround we can move i86 gdb to /usr/bin/i86/gdb and create gdb -> isaexec link.
Updated by Aurélien Larcher about 7 years ago
Updated by Alexander Pyhalov about 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Actions