[Bug gdb/25162] [GDB, kgdb] gdb 8.3.1 truncated register in remote g packet

reinoudkoornstra at gmail dot com sourceware-bugzilla@sourceware.org
Thu Nov 7 00:12:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=25162

--- Comment #12 from Reinoud Koornstra <reinoudkoornstra at gmail dot com> ---
(In reply to Reinoud Koornstra from comment #11)
> (In reply to Luis Machado from comment #10)
> > You can confirm this, but i assumed you were doing kernel debugging via a
> > debugging stub called KGDB. That is a in-kernel component that talks to GDB
> > remotely (think a gdbserver that lives in the kernel).
> > 
> > So the code you are looking for is in the kernel sources. I don't know what
> > hardware or kernel version you're running, but the answers you are looking
> > for lie in the board itself and the particular kernel code it is running.
> 
> Correct I'm using the KGDB debugging stub, that's why I'm so surprised about
> the truncated message and the unsupported query commands. Thanks,
> Reinoud.

I think this is becoming more of the linux kernel issue now. Serial connection
stubs are handled here kernel/debug/gdbstub.c: int gdb_serial_stub(struct
kgdb_state *ks)
{
[SNIP]
      case 'g': /* return the value of the CPU registers */
         gdb_cmd_getregs(ks);
         break;

I think this function handles the packet we were talking about.
I'll check how many register we actually send and where it's determined.
Thanks, Reinoud.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list