PDA

View Full Version : gdb in FC5 (Not stopped at any breakpoint; argument ignored.)



ekdya
23rd November 2006, 08:01 AM
Hi

please note the error reported below, I googled and found a bug fix
http://lists.blackfin.uclinux.org/pipermail/gcc3-devel/2005-June/000552.html
but could not confirm that it is PR1689 when I checked the GDB
database.

I am getting this error
************************************************** **************
(gdb) c 5
Not stopped at any breakpoint; argument ignored.
Continuing.

my setup is
************************************************** **************
$ uname -a
Linux localhost.localdomain 2.6.18-1.2239.fc5 #1 Fri Nov 10 13:04:06 EST 2006 i686 i686 i386 GNU/Linux
$gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)

giulix
23rd November 2006, 11:48 AM
Looks fine here...


(gdb) l
1 #include <stdio.h>
2 #include <stdlib.h>
3 int main(int argc, char *argv[]) {
4
5 int a = 0;
6
7 for(a = 0; a < 10; a++)
8
9 printf("Hello, world\n");
10
(gdb) b 9
Breakpoint 1 at 0x8048375: file pippo.c, line 9.
(gdb) run
Starting program: /home/giulix/a.out

Breakpoint 1, main () at pippo.c:9
9 printf("Hello, world\n");
(gdb) c 5
Will ignore next 4 crossings of breakpoint 1. Continuing.
Hello, world
Hello, world
Hello, world
Hello, world
Hello, world

Breakpoint 1, main () at pippo.c:9
9 printf("Hello, world\n");
(gdb)