diff options
| author | Rashmica Gupta <rashmica.g@gmail.com> | 2018-11-02 11:46:44 +1100 |
|---|---|---|
| committer | Alistair Popple <alistair@popple.id.au> | 2018-11-02 14:38:16 +1100 |
| commit | 5719a6824cd601a508776134c69d9f4ffa24eb4d (patch) | |
| tree | 54970ffddfb033ef0ebbe2650f386bbf6ead8b44 | |
| parent | bd8a11b744da4650598309a5cc9349cb3f37594b (diff) | |
| download | pdbg-5719a6824cd601a508776134c69d9f4ffa24eb4d.tar.gz pdbg-5719a6824cd601a508776134c69d9f4ffa24eb4d.zip | |
README: Add some gdbserver info
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
| -rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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 threads of the core you want to look at +$ ./pdbg -d p8 -c11 -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). |

