Re: [PATCH v6 21/21] scripts/gdb: Add basic documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux