diff options
author | Leandro Lupori <luporl@FreeBSD.org> | 2019-12-16 13:17:39 +0000 |
---|---|---|
committer | Leandro Lupori <luporl@FreeBSD.org> | 2019-12-16 13:17:39 +0000 |
commit | fa76c6f9ba4f36298490658f32942e35d5bdfd6b (patch) | |
tree | 23f6882bcc2b6c882d8e30542dd6b37dfc5f2963 /sys/gdb | |
parent | 174ae28247a9e8a23fa353a4c72aca812b025bd5 (diff) | |
download | src-fa76c6f9ba4f36298490658f32942e35d5bdfd6b.tar.gz src-fa76c6f9ba4f36298490658f32942e35d5bdfd6b.zip |
[PPC] Handle qOffsets packet
On PowerPC, this is needed in order for the debugger to find out
the memory offset where the kernel image was loaded on the remote
target.
This fixes symbol resolution when remote debugging a PowerPC kernel.
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D22767
Notes
Notes:
svn path=/head/; revision=355801
Diffstat (limited to 'sys/gdb')
-rw-r--r-- | sys/gdb/gdb_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/gdb/gdb_main.c b/sys/gdb/gdb_main.c index 5b75a36500f8..08d108c85253 100644 --- a/sys/gdb/gdb_main.c +++ b/sys/gdb/gdb_main.c @@ -769,6 +769,10 @@ gdb_trap(int type, int code) do_qXfer(); } else if (gdb_rx_equal("Search:memory:")) { gdb_do_mem_search(); +#ifdef __powerpc__ + } else if (gdb_rx_equal("Offsets")) { + gdb_cpu_do_offsets(); +#endif } else if (!gdb_cpu_query()) gdb_tx_empty(); break; |