GDB调试linux内核出现问题
刚开始学习使用GDB调试工具,按照书上的方法调试内核,在U-Boot上设置命令行参数、启动内核。
u-boot> set bootargs noinitrd root=/dev/mtdblock 2 console=kgdb kgdbwait
u-boot> tftp 0x30000000 uImage.img (下载完毕)
u-boot> bootm 0x30000000
启动信息如下:
Starting Kernel ...
Uncompressing
Linux....................................................................
..................................done,booting the kernel.
然后在主机上进入内核目录,启动arm-linux-gdb,
[root@friendlyarm linux-2.6.22.6]# sudo arm-linux-gdb ./vmlinux
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"...
(gdb) set remotebaud 115200
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to off
相关问答:
写了个测试程序如下
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
在自己的电脑上安装了ubuntu 就是想玩一下3D桌面,于是下载了
compizconfig-settings-manager
emerald
simple-ccsm
fusion
这些东西,安装完之后,我在电脑里点击了emerald ......
本来没问题的,但是现在不管用什么工具连数据库都很慢,因为后来服务器中多加了块网卡,而数据库监听设置的还是服务器名,我想会不会是这个问题,请教高手,并询问解决方法!谢谢
自己先顶下
把后加的网卡拿掉在 ......
请教为什么本机Windows环境下java连接Linux环境下Oracle数据库出错?(注:一下代码连接本机Oracle数据库正常,驱动包为ojdbc14.jar)
以下为java连接Oracle数据库代码,在连接本机Oracle数据库正常
Connection co ......
在Fedora7下面写声卡采集程序,按照正常流程先打开设备,然后设置采样参数,如采样频率、采样位数、通道数、采样时间,开始采集,为什么我采集的声音前面有0.8秒左右没有值啊,后面都有数据,难道是声卡反应慢?还是 ......