Messages in this thread | | | From | Kieran Bingham <> | Subject | [PATCH 0/2] Linux Kernel Debugger GDB extensions | Date | Thu, 7 Jan 2016 12:52:16 +0000 |
| |
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
| |