Description of problem: Debugging an x86_64 program remotely from another x86_64 machine doesn't work. When I type target remote 10.0.9.1:3127 it gives an error (see below for full error). Version-Release number of selected component (if applicable): gdb-6.3.0.0-1.122 How reproducible: Always Steps to Reproduce: 1. Start gdbserver on the remote machine and attach to a pid 2. Start gdb 3. Type "target remote 10.0.9.1:3127" Actual results: Remote debugging using 10.0.9.1:3127 Couldn't establish connection to remote target Remote register badly formatted: T1106:0100000000000000;07:a00ec8ffff7f0000;10:5fab1023e62a0000; here: 0000000;07:a00ec8ffff7f0000;10:5fab1023e62a0000; Expected results: No error
Your target architecture of gdb does not match the gdbserver architecture. gdb unfortunately (due to bfd) defaults to 32-bit target ("i386") while its native target would be "i386:x86_64". As you generally should load the debug information anyway, please use "file" command first before using the "target remote" command. If you do not have the binary locally available you must at least use "set architecture i386:x86_64". Going to patch there this suggestion as I understand the error reason is unclear.
(Suggestion only way) to be fixed in gdb-6.5-11.fc6, thanks for your bugreport. Still it should get autodetected one day.
gdb-6.5-13.fc6 has been pushed for fc6, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.
Formal mistake, state MODIFIED is invalid for FC bugs.