QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2294|回复: 3

skyeye1.3.2 無法使用 gdb

[复制链接]
发表于 2010-11-25 20:54:02 | 显示全部楼层 |阅读模式
我直接使用skyeye執行s3c2440: start -> run -> 正常,可以booting到console mode 所以vmlinux應該是ok的
但是若是使用start -> remote-gdb, 然後在gdb那裡執行continue就會出現"The program is not being run."
請問我是不是有哪個command做錯了呢?
--------------------------------------------
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 = 0x00000000  size = 0x00000024.
load section .text.head: addr = 0xc0008000  size = 0x000003e0.
load section .init: addr = 0xc00083e0  size = 0x00022c20.
load section .text: addr = 0xc002b000  size = 0x0034e59c.
load section .init.rodata: addr = 0xc037a000  size = 0x00000100.
load section __ksymtab: addr = 0xc037a100  size = 0x00005118.
load section __ksymtab_gpl: addr = 0xc037f218  size = 0x00002588.
load section __ksymtab_strings: addr = 0xc03817a0  size = 0x000102c8.
load section __param: addr = 0xc0391a68  size = 0x00001598.
load section .data: addr = 0xc0394000  size = 0x000263a0.
not load section .bss: addr = 0xc03ba3a0  size = 0x0002c99c .
not load section .ARM.attributes: addr = 0x00000000  size = 0x00000010 .
not load section .comment: addr = 0x00000000  size = 0x0000002a .
not load section .debug_line: addr = 0x00000000  size = 0x001d60dc .
not load section .debug_info: addr = 0x00000000  size = 0x01dad92e .
not load section .debug_abbrev: addr = 0x00000000  size = 0x000f94bc .
not load section .debug_aranges: addr = 0x00000000  size = 0x000091d0 .
not load section .debug_pubnames: addr = 0x00000000  size = 0x000297b3 .
not load section .debug_pubtypes: addr = 0x00000000  size = 0x0033b913 .
not load section .debug_str: addr = 0x00000000  size = 0x000c25e9 .
not load section .debug_frame: addr = 0x00000000  size = 0x0007a19c .
not load section .debug_loc: addr = 0x00000000  size = 0x004a676b .
not load section .debug_ranges: addr = 0x00000000  size = 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)
----------------------------
发表于 2010-11-29 14:10:41 | 显示全部楼层

Reply to "skyeye1.3.2 無法使用 gdb"

Hello Ericwain,
       我用的是gdb-7.1版本的,您可以试一下这个版本的gdb进行远程调试。
XiaoQiao
Thanks
回复

使用道具 举报

 楼主| 发表于 2010-11-30 08:03:30 | 显示全部楼层
感謝您的回覆,我有試過了,確實7.1可用,7.2會有問題。
回复

使用道具 举报

发表于 2011-1-18 11:00:30 | 显示全部楼层
Hello Ericwain,
       我已经解决了这个bug,skyeye 利用gdb-7.2也可以用来远程调试了。skyeye源码打上附件中的patch即可。
XiaoQiao
Thanks

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 00:56 , Processed in 0.062009 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表