skyeye1.3.2 無法使用 gdb
我直接使用skyeye執行s3c2440: start -> run -> 正常,可以booting到console mode 所以vmlinux應該是ok的但是若是使用start -> remote-gdb, 然後在gdb那裡執行continue就會出現"The program is not being run."
請問我是不是有哪個command做錯了呢?:cry:
--------------------------------------------
skyeye:
ericwain@ericwain-ubuntu:~/Project/s3c2440$ skyeye -e linux-2.6.30.5/vmlinux
SkyEye 1.3.2
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name s3c2440, mach_init addr 0x5bb9e0
uart_mod:3, desc_in:, desc_out:, converter:
In create_uart_console
do_load_addr_option not finished.
Loaded RAM ./initrd.img
SKYEYE: use arm920t mmu ops
exec file "linux-2.6.30.5/vmlinux"'s format is elf32-i386.
load section .note.gnu.build-id: addr = 0x00000000size = 0x00000024.
load section .text.head: addr = 0xc0008000size = 0x000003e0.
load section .init: addr = 0xc00083e0size = 0x00022c20.
load section .text: addr = 0xc002b000size = 0x0034e59c.
load section .init.rodata: addr = 0xc037a000size = 0x00000100.
load section __ksymtab: addr = 0xc037a100size = 0x00005118.
load section __ksymtab_gpl: addr = 0xc037f218size = 0x00002588.
load section __ksymtab_strings: addr = 0xc03817a0size = 0x000102c8.
load section __param: addr = 0xc0391a68size = 0x00001598.
load section .data: addr = 0xc0394000size = 0x000263a0.
not load section .bss: addr = 0xc03ba3a0size = 0x0002c99c .
not load section .ARM.attributes: addr = 0x00000000size = 0x00000010 .
not load section .comment: addr = 0x00000000size = 0x0000002a .
not load section .debug_line: addr = 0x00000000size = 0x001d60dc .
not load section .debug_info: addr = 0x00000000size = 0x01dad92e .
not load section .debug_abbrev: addr = 0x00000000size = 0x000f94bc .
not load section .debug_aranges: addr = 0x00000000size = 0x000091d0 .
not load section .debug_pubnames: addr = 0x00000000size = 0x000297b3 .
not load section .debug_pubtypes: addr = 0x00000000size = 0x0033b913 .
not load section .debug_str: addr = 0x00000000size = 0x000c25e9 .
not load section .debug_frame: addr = 0x00000000size = 0x0007a19c .
not load section .debug_loc: addr = 0x00000000size = 0x004a676b .
not load section .debug_ranges: addr = 0x00000000size = 0x00068b60 .
In SIM_start, Set PC to the address 0x30008000
(skyeye)remote-gdb
(skyeye)Remote debugging using host:12345
readchar: Got EOF
Remote side has terminated connection.GDBserver will reopen the connection.
---------------------------------------
gdb:
ericwain@ericwain-ubuntu:~/Project/s3c2440$ arm-none-linux-gnueabi-gdb linux-2.6.30.5/vmlinux
GNU gdb (Sourcery G++ Lite 2010.09-50) 7.2.50.20100908-cvs
Copyright (C) 2010 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 "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>...
Reading symbols from /home/ericwain/Project/s3c2440/linux-2.6.30.5/vmlinux...done.
(gdb) target localhost:12345
Undefined target command: "localhost:12345".Try "help target".
(gdb) target remote:12345
Remote debugging using :12345
0x30008000 in ?? ()
Trace is already running on the target.
Reply contains invalid hex digit 117
(gdb) c
The program is not being run.
(gdb) run
Starting program: /home/ericwain/Project/s3c2440/linux-2.6.30.5/vmlinux
Don't know how to run.Try "help target".
(gdb)
----------------------------
Reply to "skyeye1.3.2 無法使用 gdb"
Hello Ericwain,我用的是gdb-7.1版本的,您可以试一下这个版本的gdb进行远程调试。
XiaoQiao
Thanks 感謝您的回覆,我有試過了,確實7.1可用,7.2會有問題。 Hello Ericwain,
我已经解决了这个bug,skyeye 利用gdb-7.2也可以用来远程调试了。skyeye源码打上附件中的patch即可。
XiaoQiao
Thanks
页:
[1]