lkml.org 
[lkml]   [2013]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 21/21] scripts/gdb: Add basic documentation
On Wed, Oct 30, 2013 at 12:22:15PM +0100, Jan Kiszka wrote:
> > $ gdb vmlinux
> > Reading symbols from /w/kernel/linux-2.6/vmlinux...done.
> > warning: File "/w/kernel/linux-2.6/scripts/gdb/vmlinux-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
> > To enable execution of this file add
> > add-auto-load-safe-path /w/kernel/linux-2.6/scripts/gdb/vmlinux-gdb.py
>
> Is that sufficient to be able to import all the sub-scripts as well?

If by that you mean whether I was able to use all commands in the
'apropos lx' list, then yes, it seems to work. Here's an arbitrary example:

(gdb) set $p = $lx_task_by_pid(12)
(gdb) p $lx_thread_info($p)
$8 = {task = 0xffff88007bcedb40, exec_domain = 0xffffffff8186c8a0 <default_exec_domain>, flags = 0, status = 0, cpu = 1,
saved_preempt_count = -2147483646, addr_limit = {seg = 18446744073709551615}, restart_block = {
fn = 0xffffffff8105c3c0 <do_no_restart_syscall>, {futex = {uaddr = 0x0 <irq_stack_union>, val = 0, flags = 0, bitset = 0, time = 0,
uaddr2 = 0x0 <irq_stack_union>}, nanosleep = {clockid = 0, rmtp = 0x0 <irq_stack_union>, compat_rmtp = 0x0 <irq_stack_union>,
expires = 0}, poll = {ufds = 0x0 <irq_stack_union>, nfds = 0, has_timeout = 0, tv_sec = 0, tv_nsec = 0}}},
sysenter_return = 0x0 <irq_stack_union>, sig_on_uaccess_error = 0, uaccess_err = 0}

--
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--


\
 
 \ /
  Last update: 2013-10-30 13:01    [W:0.041 / U:2.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site