Skip to content
Snippets Groups Projects
  1. Dec 01, 2023
  2. Nov 15, 2023
  3. Nov 08, 2023
  4. Oct 31, 2023
  5. Oct 12, 2023
  6. Oct 11, 2023
  7. Oct 07, 2023
  8. Oct 04, 2023
  9. Sep 29, 2023
  10. Sep 07, 2023
  11. Aug 30, 2023
  12. Aug 10, 2023
  13. Aug 06, 2023
  14. Jul 31, 2023
  15. Jul 03, 2023
  16. Jun 20, 2023
  17. May 18, 2023
    • Matheus Tavares Bernardino's avatar
      gdbstub: only send stop-reply packets when allowed to · 75837005
      Matheus Tavares Bernardino authored
      
      GDB's remote serial protocol allows stop-reply messages to be sent by
      the stub either as a notification packet or as a reply to a GDB command
      (provided that the cmd accepts such a response). QEMU currently does not
      implement notification packets, so it should only send stop-replies
      synchronously and when requested. Nevertheless, it still issues
      unsolicited stop messages through gdb_vm_state_change().
      
      Although this behavior doesn't seem to cause problems with GDB itself
      (the messages are just ignored), it can impact other debuggers that
      implement the GDB remote serial protocol, like hexagon-lldb. Let's
      change the gdbstub to send stop messages only as a response to a
      previous GDB command that accepts such a reply.
      
      Signed-off-by: default avatarMatheus Tavares Bernardino <quic_mathbern@quicinc.com>
      Acked-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: default avatarTaylor Simpson <tsimpson@quicinc.com>
      Message-Id: <a49c0897fc22a6a7827c8dfc32aef2e1d933ec6b.1683214375.git.quic_mathbern@quicinc.com>
      75837005
  18. Apr 04, 2023
    • Alex Bennée's avatar
      gdbstub: don't report auxv feature unless on Linux · 0beaebc0
      Alex Bennée authored
      
      The later handler if conditionally compiled only for Linux but we
      forgot to ensure we don't advertise it lest we confuse our BSD
      brethren.
      
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Fixes: 51c623b0 ("gdbstub: add support to Xfer:auxv:read: packet")
      Reported-by: default avatarWarner Losh <imp@bsdimp.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarWarner Losh <imp@bsdimp.com>
      Tested-by: default avatarWarner Losh <imp@bsdimp.com>
      Message-Id: <20230403134920.2132362-4-alex.bennee@linaro.org>
      0beaebc0
    • Philippe Mathieu-Daudé's avatar
      gdbstub: Only build libgdb_user.fa / libgdb_softmmu.fa if necessary · b846ad62
      Philippe Mathieu-Daudé authored
      
      It is pointless to build libgdb_user.fa in a system-only build
      (or libgdb_softmmu.fa in a user-only build). Besides, in some
      restricted build configurations, some APIs might be restricted /
      not available. Example in a KVM-only builds where TCG is disabled:
      
        $ ninja qemu-system-x86_64
        [99/2187] Compiling C object gdbstub/libgdb_user.fa.p/user.c.o
        FAILED: gdbstub/libgdb_user.fa.p/user.c.o
        ../../gdbstub/user.c: In function ‘gdb_breakpoint_insert’:
        ../../gdbstub/user.c:438:19: error: implicit declaration of function ‘cpu_breakpoint_insert’; did you mean ‘gdb_breakpoint_insert’? [-Werror=implicit-function-declaration]
          438 |             err = cpu_breakpoint_insert(cpu, addr, BP_GDB, NULL);
              |                   ^~~~~~~~~~~~~~~~~~~~~
              |                   gdb_breakpoint_insert
        ../../gdbstub/user.c:438:19: error: nested extern declaration of ‘cpu_breakpoint_insert’ [-Werror=nested-externs]
        ../../gdbstub/user.c: In function ‘gdb_breakpoint_remove’:
        ../../gdbstub/user.c:459:19: error: implicit declaration of function ‘cpu_breakpoint_remove’; did you mean ‘gdb_breakpoint_remove’? [-Werror=implicit-function-declaration]
          459 |             err = cpu_breakpoint_remove(cpu, addr, BP_GDB);
              |                   ^~~~~~~~~~~~~~~~~~~~~
              |                   gdb_breakpoint_remove
        ../../gdbstub/user.c:459:19: error: nested extern declaration of ‘cpu_breakpoint_remove’ [-Werror=nested-externs]
        cc1: all warnings being treated as errors
        ninja: build stopped: subcommand failed.
      
      Fixes: 61b2e136 ("gdbstub: only compile gdbstub twice for whole build")
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20230329161852.84992-1-philmd@linaro.org>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20230403134920.2132362-3-alex.bennee@linaro.org>
      b846ad62
  19. Mar 22, 2023
  20. Mar 07, 2023
Loading