lkml.org 
[lkml]   [2016]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] Linux Kernel Debugger GDB extensions
Date
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



\
 
 \ /
  Last update: 2016-01-07 14:41    [W:0.327 / U:0.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site