This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/21851] New: Loading i386 binary after running x86_64 one results in abort "arch-utils.c:524: internal-error: could not select an architecture automatically"
- From: "b7.10110111 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 27 Jul 2017 09:50:04 +0000
- Subject: [Bug gdb/21851] New: Loading i386 binary after running x86_64 one results in abort "arch-utils.c:524: internal-error: could not select an architecture automatically"
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21851
Bug ID: 21851
Summary: Loading i386 binary after running x86_64 one results
in abort "arch-utils.c:524: internal-error: could not
select an architecture automatically"
Product: gdb
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: b7.10110111 at gmail dot com
Target Milestone: ---
Crash happens on GDB 7.11 as well as 8.0.50.20170727-git.
Steps to reproduce:
gcc -x c -g -o test32 -m32 - <<< 'int main(){}'
gcc -x c -g -o test64 -m64 - <<< 'int main(){}'
gdb -q -ex 'set confirm off' ./test64 -ex start -ex 'file ./test32' -ex 'set
arch auto'
Output from GDB:
Reading symbols from ./test64...done.
Temporary breakpoint 1 at 0x4004ff: file <stdin>, line 1.
Starting program: /tmp/test64
Temporary breakpoint 1, main () at <stdin>:1
1 <stdin>: No such file or directory.
warning: Selected architecture i386 is not compatible with reported target
architecture i386:x86-64
Architecture of file not recognized.
warning: Selected architecture i386 is not compatible with reported target
architecture i386:x86-64
arch-utils.c:524: internal-error: could not select an architecture
automatically
A problem internal to GDB has been detected,
further debugging may prove unreliable.
--
You are receiving this mail because:
You are on the CC list for the bug.