using gdbserver from x86 platform to mips based platform.
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
using gdbserver from x86 platform to mips based platform.
Hi Everyone,
I'm having a "little problem".
I'm trying to connect with gdbserver from my computer ( x86 based arch ) to my embedded (Linux based Slackware) MIPS arch using the gdbserver in I keep on getting "Reply contains invalid hex digit 59" message.
I've searched the net for answer and found that one more person had the same problem he got replied to change the architecture from the gdb client with the "set atch" command.
I tried to do that ( meaning writing in gdb "set arch mips32" or just mips) but got replied with Undefined item: "mips32" message.
.
my questions are:
1. How can I force gdb (on my local computer) to change the target arch.
2. Is there a way to force gdbserver to make the gdb (from my computer) to change arch automatically?
By the way,
I forgot to mention that in order to start connecting to the server I'm using TCP over Ethernet.
meaning, on the mips based board I'm typing:
gdbserver tcp:192.168.1.11:172 /Progs/MyFile -f
and on my local machine I'm typing in gdb:
target remote tcp:192.168.1.50:172
Thank you for your reply,
It seems like I don't have support for MIPS arch. in my client gdb (meaning in my computer).
Is there a way just to add support for MIPS arch. to my current gdb?
Here is my output:
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux".
(gdb) show architecture
The target architecture is set automatically (currently i386)
why dont you just download the buildroot and compile it for mips. you will get (mips-linux-)gdb once you are done compiling it, then you can easily use it with gdbserver on mips.
it is quite simple to configure it, has make menuconfig facility that you can use to tune the features you want, in your case, it looks like you are doing it mainly for gdb, so it should not even take that long.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.