Skip to content
Snippets Groups Projects
  • Alex Bennée's avatar
    c566080c
    gdbstub: move syscall handling to new file · c566080c
    Alex Bennée authored
    
    Our GDB syscall support is the last chunk of code that needs target
    specific support so move it to a new file. We take the opportunity to
    move the syscall state into its own singleton instance and add in a
    few helpers for the main gdbstub to interact with the module.
    
    I also moved the gdb_exit() declaration into syscalls.h as it feels
    pretty related and most of the callers of it treat it as such.
    
    Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
    Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
    
    Message-Id: <20230302190846.2593720-22-alex.bennee@linaro.org>
    Message-Id: <20230303025805.625589-22-richard.henderson@linaro.org>
    c566080c
    History
    gdbstub: move syscall handling to new file
    Alex Bennée authored
    
    Our GDB syscall support is the last chunk of code that needs target
    specific support so move it to a new file. We take the opportunity to
    move the syscall state into its own singleton instance and add in a
    few helpers for the main gdbstub to interact with the module.
    
    I also moved the gdb_exit() declaration into syscalls.h as it feels
    pretty related and most of the callers of it treat it as such.
    
    Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
    Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
    
    Message-Id: <20230302190846.2593720-22-alex.bennee@linaro.org>
    Message-Id: <20230303025805.625589-22-richard.henderson@linaro.org>
guestfd.c 4.09 KiB