[Pdbg] [PATCH 00/10] pdbg fixes and improvements related to gdbserver

Joel Stanley joel at jms.id.au
Thu Aug 4 15:46:36 AEST 2022


On Tue, 31 May 2022 at 09:15, Nicholas Piggin <npiggin at gmail.com> wrote:
>
> Here's a bunch of things that came up when trying to work out what's
> wrong with using attn for breakpoints in gdbserver.
>
> After fixing some fused-core issues, turning off attn_handler service
> on the BMC seems to allow breakpoints to work reliably. Although
> executing attn can still cause the host skiboot PSI subsystem to
> print the "Masking unhandled LSI global_err" error. Not sure why the
> host gets these, I thought they only went to the BMC... That's
> another thing to work out and fix up but it doesn't seem to be
> harmful.
>
> Thanks,
> Nick
>
> Nicholas Piggin (10):
>   sbefifo: correct typo in thread target name
>   gdbserver: Fix attn enable HID change icache flushing sequence
>   gdbserver: use TRAP for step stop reason
>   p9chip: implement SMT state thread state
>   libpdbg: implement fused-core and lpar-per-thread thread status

>   gdbserver: Add a note about the attn_handler service on the BMC

I applied this set of patches. The next patch with its libpdbg change
required a bit more review, which I'll do later.

>   libpdbg: move core state into struct core
>   thread: print core state with threadstatus
>   libpdbg: add fused-core thread id
>   gdbserver: Fix POWER10 fused-core SPATTN register handling

>
>  README.md         | 15 +++++++--
>  libpdbg/chip.h    |  3 ++
>  libpdbg/hwunit.h  |  3 ++
>  libpdbg/libpdbg.h | 19 +++++++++++
>  libpdbg/p10chip.c | 77 +++++++++++++++++++++++++++++++++------------
>  libpdbg/p8chip.c  | 39 ++++++++++++++++++-----
>  libpdbg/p9chip.c  | 58 ++++++++++++++++++++++++++++++++--
>  libpdbg/sbefifo.c | 51 +++++++++++++++++++++++++++++-
>  libpdbg/thread.c  |  9 ++++++
>  src/pdbgproxy.c   | 80 +++++++++++++++++++++++++++++++++++++----------
>  src/thread.c      | 46 +++++++++++++++++++++++++--
>  11 files changed, 349 insertions(+), 51 deletions(-)
>
> --
> 2.35.1
>
> --
> Pdbg mailing list
> Pdbg at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/pdbg


More information about the Pdbg mailing list