how to reload symbols for kernel in UML

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

 



Hi,

While debugging a module from UML I made a mistake of running the
command "file-symbol" in gdb which resulted in erasing all the symbols
for my linux and I had to restart my gdb session.

So I want to know how do I reload the symbols ? I tried doing a
"add-symbol-file <path>/vmlinux.o" for my kernel, but I don't know the
address to load.  I tried various addresses which looked reasonable
from the output of /proc/pid/maps and from objdump of vmlinux.o but
they didn't work.

/home/mkatiyar/personal/uml/linux-git> cat /proc/3288/maps
08048000-082ef000 rwxp 00000000 08:01 2556054
/home/mkatiyar/personal/uml/linux-git/linux
..........

/home/mkatiyar/personal/uml/linux-git> objdump --section-headers
vmlinux.o |grep text
  0 .text         00178b30  00000000  00000000  00000040  2**4
  1 .init.text    0000cc23  00000000  00000000  00178b70  2**4
  2 .ref.text     00000899  00000000  00000000  001857a0  2**4
  3 .cpuinit.text 000009d4  00000000  00000000  00186040  2**4
  5 .exit.text    00000550  00000000  00000000  00186ab0  2**4
  8 .sched.text   0000115c  00000000  00000000  00187050  2**4
  9 .meminit.text 000003cc  00000000  00000000  001881ac  2**0

Is there any fixed address where UML loads the kernel ?

Thanks -
Manish

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