This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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"


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]