This is the mail archive of the gdb-patches@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] |
Hi, x86_64 defaults (by bfd matching) to target "i386" instead of its native "i386:x86_64". Therefore if you connect to gdbserver(1) without any `file' or `set architecture' command before the communication will crash on a different expected register sizes. As implementing architecture negotiation is complicated due to gdbserver(1) not being aware of bfd-compatible name of its target and also it may be also unclear to automatically change the target while working remotely it is just suggesting to double-check which architecture you are using. (gdb) target remote localhost:1234 Remote debugging using localhost:1234 Remote debugging from host 127.0.0.1 Remote register badly formatted: T0506:0000000000000000;07:40daffbf7f000000;10:506b55952a000000; readchar: Got EOF here: 0000000;07:40daffbf7f000000;10:506b55952a000000; Try to load the executable by `file' first, you may also check `set/show architecture'. (gdb) Remote side has terminated connection. GDBserver will reopen the connection. Listening on port 1234 Regards, Jan
Attachment:
gdb-6.5-gdbserver-arch-advice.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |