gdbserver for MIPS
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Jun Sun
I finally got gdbserver working on MIPS. Who should I submit the patches to?
For the moment to me, I'll pu them into our sources.
Quoted 7 lines
There are three patches/changes made :
1. in kernel,
arch/mips/ptrace.c- I did not generate patch file as my kernel version is probably outdated. Basically ifCONFIG_CPU_NO_FPUis defined, return -1 for readingFPC_EIRregister, instead of actually reading the hardware.
Quoted 6 lines
2. a patch for gdbserver - see attached gdb-4.17-mips-gdbserver.patch
3. I need an additional patch for my particular board to work. I am not sure if they are generically applicable. This patch overcomes a VERY SLOW
getprotobyname()problem and sending a virtual FP register value problem. See the second attached file.
Getprotobyname - please check the settings the protocols database in /etc/nsswitch.conf.
Quoted 3 lines
There is still one annoyance - stepping through a glibc function would generate a unknown address warning. Other than that, everything seems to work fine - with my limited tests, that it.
I've seen those warning but don't know the cause.
Ralf