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

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

 



  (here's hoping this question isn't as dumb as the last one.)

  if i want to be able to do kernel debugging to do something as
simple as, say, dump the current value of "jiffies" using gdb, what is
the minimal configuration i'll need?

  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.)

  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?

  and i'm aware that, even as root, the contents of /proc/kcore might
not be available.  under what circumstances is that true?

  in short, what is the absolute *minimum* i would need on a system to
be able to dump the contents of some kernel values?  thanks.

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