Re: what is minimally necessary to run "gdb vmlinux /proc/kcore"?

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

 



On Wed, 4 Jul 2007, Mulyadi Santosa wrote:

rday wrote:

> >   obviously, i'll need the actual vmlinux kernel file (which i might
> > not have if i've simply sat down at someone else's system.)

> Yes, you need vmlinux if you want the addresses to be resolved back
> to the related original symbols. But see below..

> >   also, must that kernel have been configured with DEBUG_INFO?  i
> > realize that selecting that config option gives me access to
> > kernel variable names, but do i actually need that info?  would i
> > be able to use gdb to dump what i want by address if i have a
> > System.map file that tells me where "jiffies" lives in kernel
> > space instead?
> >
> This is where DEBUG_INFO needed. Without it, vmlinux is pretty
> useless because it isn't equipped with symbol table. IIRC, enabling
> DEBUG_INFO will compile vmlinux with -g (or maybe -ggdb).

surprisingly, that's not true.  even without selecting DEBUG_INFO, i
still have access to the contents of *simple* symbols via gdb.  i'll
summarize what i found shortly.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux