diff mbox series

[v3,4/4] README: Add some gdbserver info

Message ID 20181005034254.890-5-rashmica.g@gmail.com
State Superseded
Headers show
Series Basic gdbserver for POWER8 | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied
snowpatch_ozlabs/build-multiarch fail Test build-multiarch on branch master

Commit Message

Rashmica Gupta Oct. 5, 2018, 3:42 a.m. UTC
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
---
 README.md | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

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).