[PATCH 0/2] Linux Kernel Debugger GDB extensions

From: Kieran Bingham
Date: Thu Jan 07 2016 - 07:52:34 EST


ST Microelectronics provides a set of debugging tools, customised to attach
and debug a running (or crashed) linux kernel based on GDB. As part of working
towards providing this functionality upstream, a number of commands can be
written using the new CONFIG_GDB_SCRIPTS facilities.

Here, as a means to introducing the work which is ongoing, are two initial
(simple) commands which allow the user to identify the kernel version and
command line used to boot.

lx-cmdline Report the Linux Commandline used in the current kernel.
lx-version Report the Linux Version of the current kernel.

Based on the existing LKD project, follow up work will aim to provide similar
facilities for:
/proc/iomem
/proc/ioports
/proc/mounts
/proc/interrupts
/proc/meminfo

The larger scale project also aims to provide thread integration into GDB,
and userspace frame walking where possible.

Kieran Bingham (2):
scripts/gdb: Add version command
scripts/gdb: Add cmdline reader command

scripts/gdb/linux/proc.py | 40 ++++++++++++++++++++++++++++++++++++++++
scripts/gdb/vmlinux-gdb.py | 1 +
2 files changed, 41 insertions(+)
create mode 100644 scripts/gdb/linux/proc.py

--
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/