lm32 remote debugger issues
Michael Walle
michael at walle.cc
Tue Apr 7 07:35:24 UTC 2009
Am Di, 7.04.2009, 08:59, schrieb Jukka Pietarinen:
> Jukka Pietarinen wrote:
>> I'm still struggling with getting the lm32-rtems4.10-gdb to work with
>> TCP2JTAGVC2 from Lattice. After connecting to the target gdb talks to
>> TCP2JTAGVC2 but fails with the 'g' command:
>
> I have traced down this problem to gdb/remote.c where sizeof_g_packet is
> determined from the list of remote registers. For the lm32, however,
> this does not match the target response for the g command. gdb expects
> to receive 37 32-bit registers (37*4*2=296 bytes) but the target replies
> with 39 (39*4*2=316 bytes).
>
> I did a hack to process_g_packet to bypass the sanity check of the
> packet reply and with this hack gdb works and I can load and run/debug
> on target hardware, but naturally this needs to be resolved in a proper
> way.
While developing an own debug monitor, i disassembled the original one,
which you can find in the lm32_monitor_ram.v source file. It saves the
following registers:
r0
r1
:
r25
gp
fp
>
> Unfortunately I do not have the sources for TCP2JTAGVC2 and have no idea
> what the two extra registers returned by the target are.
>
> Any ideas how to address this issue?
>
> Thanks,
> Jukka
>
More information about the users
mailing list