• Jason Wessel's avatar
    kdb,kgdb: Implement switch and pass buffer from kdb -> gdb · f679c498
    Jason Wessel authored
    When switching from kdb mode to kgdb mode packets were getting lost
    depending on the size of the fifo queue of the serial chip.  When gdb
    initially connects if it is in kdb mode it should entirely send any
    character buffer over to the gdbstub when switching connections.
    
    Previously kdb was zero'ing out the character buffer and this could
    lead to gdb failing to connect at all, or a lengthy pause could occur
    on the initial connect.
    Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
    f679c498
gdbstub.c 25.3 KB