[Pdbg] [PATCH v3 4/4] README: Add some gdbserver info

Rashmica Gupta rashmica.g at gmail.com
Fri Oct 5 13:42:54 AEST 2018


Signed-off-by: Rashmica Gupta <rashmica.g at gmail.com>
---
 README.md | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/README.md b/README.md
index 878e6d3..dcbbbe3 100644
--- a/README.md
+++ b/README.md
@@ -365,3 +365,29 @@ There are also low level htm commands which can also be used:
  - `stop` will still stop the trace and de-configure the hardware.
  - `dump` will dump the trace to a file.
 
+### GDBSERVER
+At the moment gdbserver is only supported on P8 while the cores are in the
+kernel. 
+
+To run a gdbserver on a P8 machine from a BMC running openbmc:
+
+Stop all the cores of the host
+$ ./pdbg -d p8 -a stop
+
+Run gdbserver on thread 0 of core 11, accessible through port 44
+$ ./pdbg -d p8 -p0 -c11 -t0 gdbserver 44
+
+On your local machine:
+$ gdb
+(gdb)  set architecture powerpc:common64
+(gdb) target remote palm5-bmc:44
+
+Debugging info:
+(gdb) set debug remote 10
+
+
+Notes:
+1. DON'T RUN PDBG OVER FSI WHILE HOSTBOOT IS RUNNING. Weird things seem to
+happen.
+2. If you want to view the kernel call trace then run gdb on the vmlinux that
+the host is running (the kernel needs to be compiled with debug symbols).
-- 
2.14.4



More information about the Pdbg mailing list