下面是,完整一点的输出
[root@ggjd linux-2.6.15.5]# gdb vmlinux
GNU gdb (GDB) Fedora (7.0-3.fc12)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/bjn/linux-2.6.15.5/vmlinux...done.
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
0xc01409f7 in ?? ()
(gdb) c
Continuing.
Linux version 2.6.15.5 (bjn@ggjd) (gcc version 4.4.2 20091027 (Red Hat 4.4.2-7) (GCC) ) #1 SMP Sun Jun 20 10:32:14 JST 2010
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003fff0000 (usable)
BIOS-e820: 000000003fff0000 - 0000000040000000 (ACPI data)
BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
Waiting for connection from remote gdb...
127MB HIGHMEM available.
896MB LOWMEM available.
NX (Execute Disable) protection: active
DMI 2.5 present.
ACPI: PM-Timer IO Port: 0x4008
Allocating PCI resources starting at 50000000 (gap: 40000000:bffc0000)
Built 1 zonelists
Kernel command line: ro root=UUID=ccbb5fd7-fdfe-4ad6-8a10-e8c8ffc2acf5 kgdbwait kgdboc=0,115200
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
PM-Timer running at invalid rate: 120% of normal - aborting.
Detected 3209.515 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Program received signal SIGILL, Illegal instruction.
0xc0145027 in ?? ()
(gdb) bt
#0 0xc0145027 in ?? ()
#1 0xc0145553 in ?? ()
#2 0xc014556e in ?? ()
#3 0xc0145c2a in ?? ()
#4 0xc0417d44 in free_all_bootmem_core (pgdat=<value optimized out>)
at mm/bootmem.c:324
#5 0xc0417e7e in free_all_bootmem () at mm/bootmem.c:393
#6 0xc0415eff in mem_init () at arch/i386/mm/init.c:601
#7 0xc0406531 in start_kernel () at init/main.c:512
#8 0xc0100210 in ?? ()
#9 0x0001b855 in ?? ()
#10 0xe5890000 in ?? ()
#11 0x1e8505c6 in ?? ()
#12 0x5d00c040 in ?? ()
#13 0x01b855c3 in ?? ()
#14 0x89000000 in ?? ()
#15 0x0405c7e5 in ?? ()
#16 0x01c04471 in ?? ()
#17 0x5d000000 in ?? ()
#18 0xe58955c3 in ?? ()
#19 0x1e8605c6 in ?? ()
#20 0x0f00c040 in ?? ()
#21 0xc883c020 in ?? ()
---Type <return> to continue, or q <return> to quit---
#22 0xc0220f0e in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)作者: bijianing 时间: 2010-06-20 20:59
我想,会不会跟gcc的版本太高有关系?作者: kgn28 时间: 2010-06-20 23:54 回复 4#bijianing