bug-gdb
[Top][All Lists]
Advanced

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

Failed to stop at given points in arm gdb


From: prasadam kumar
Subject: Failed to stop at given points in arm gdb
Date: Thu, 29 Nov 2007 22:59:13 -0800

Hi,
 
I have cross compiled the gdb-6.3 with arm-none-linux-gnueabi-gcc and cross compiler has gcc version 4.1.1.
 
While cross compiling the gdb-6.3,  i have faced the tui problem, to overcome this i have disabled tui (--disable-tui), after this it has compiled successfully.
 
I have done the below steps to cross compile the sample.c :
 
# arm-none-linux-gnueabi-gcc -g sample.c -o sample
# file sample
sample: ELF-32 bit LSB executable, ARM,version1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped
 
I have copied the cross compiled gdb.exe, sample.c, sample.exe(arm executable ), libncurses.so.5 and libthread_db.so.1 on to arm target.
 
Then i have done the below steps to debug the sanple.exe:
 
# ./gdb sample
GNU gdb 6.3
Copyright 2004 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 the 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 "arm-linux"...Using host libthread_db library "/libthread_db.so.1".
 
(gdb) list
 
1 #include<stdio.h>
2 main()
3 {
4 int i;
5 i=10;
6 fprintf(stdout," \n print:%i", i);
7 i=20; 
8 fprintf(stdout," \n print:%i", i);
9 return 0;
10 }
(gdb) break main
Breakpoint 1 at 0x8388:file sample.c, line 5.
(gdb) break 7
Breakpoint 2 at 0x83a8:file sample.c, line 7.
(gdb) run
Starting program:/sample
 
Program exited normally
 
Please help to solve the below problems:
 
1.I am not able to run any arm exe with arm-gdb.
2.arm-gdb (cross compiled gdb) is not able to stop at the given break points.
 
 
Thanks in Advance,
Prashant.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]