[Libre-soc-sim] Caveat (uspike) talks to GDB

Jan Vrany jan.vrany at labware.com
Mon Jul 26 21:15:54 BST 2021


Hi, 

On Mon, 2021-07-26 at 17:43 +0100, lkcl wrote:
> folks, hi, some explanation needed and introductions.
> 
> ...
>
> an anyone help him to investigate? and, if so, could i ask the small
> favour of using the (to be created) mailing list to discuss it?
> 
> Dmitri, if you are willing to help Peter we can arrange a budget from
> NLnet for it.
> 
> Peter could you let people know how they can repro the build of
> cavatools, where to find it etc?

I can have a look. As Luke said, details on how to reproduce
would be nice. 

Best, Jan

> 
> best,
> 
> l.
> 
> On 7/26/21, Peter Hsu <peter.hsu at bsc.es> wrote:
> > Hello Luke,
> > 
> > I got uspike talking to riscv64-unknown-linux-gnu-gdb.
> > 
> > It understands super basic gdb packets like this (debug output from
> > uspike):
> > 
> > GDB_COMMAND: ?
> > GDB_COMMAND: g
> > GDB_COMMAND: m
> > Sending 8 bytes at 66f880 value 0x0000000000000000
> > GDB_COMMAND: m
> > Sending 4 bytes at 66f878 value 0x0000000000000000
> > GDB_COMMAND: m
> > Sending 8 bytes at 66f880 value 0x0000000000000000
> > GDB_COMMAND: m
> > Sending 2 bytes at 4d4242 value 0x9793c1b9872a8082
> > GDB_COMMAND: m
> > Sending 2 bytes at 4140e2 value 0xfedff0efe4061141
> > GDB_COMMAND: m
> > Sending 2 bytes at 49289e value 0x3c23cf0101138082
> > GDB_COMMAND: m
> > 
> > But gdb is unhappy (gdb running in another window):
> > 
> > (gdb) target remote localhost:1234
> > Remote debugging using localhost:1234
> > /opt/BUILD/riscv-gnu-toolchain/riscv-gdb/gdb/inferior.c:283:
> > internal-error: inferior* find_inferior_pid(int): Assertion `pid !=
> > 0'
> > failed.
> > A problem internal to GDB has been detected,
> > further debugging may prove unreliable.
> > Quit this debugging session? (y or n)
> > 
> > 
> > Anyone  knows gdb and can help me debug?
> > 
> > -Peter
> > 
> > 
> > 
> > 





More information about the Libre-soc-sim mailing list