This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/10112] do not stop on function


------- Additional Comments From dushistov at mail dot ru  2009-10-22 17:13 -------
Current directory is /home/evgeniy/projects/examples/gdb_not_stop_10112/

warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (Gentoo 7.0 p1) 7.0
Copyright (C) 2009 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 "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /home/evgeniy/projects/examples/gdb_not_stop_10112/test...done.
(gdb) br f
Breakpoint 1 at 0x80483f8: file test.c, line 6.
(gdb) info break
Num     Type           Disp Enb Address    What
1       breakpoint     keep y   0x080483f8 in f at test.c:6
(gdb) disassemble/m f
Dump of assembler code for function f:
4	{
0x080483e4 <f+0>:	push   %ebp
0x080483e5 <f+1>:	mov    %esp,%ebp
0x080483e7 <f+3>:	sub    $0x18,%esp
0x080483ea <f+6>:	mov    0xc(%ebp),%eax
0x080483ed <f+9>:	mov    %eax,-0x8(%ebp)
0x080483f0 <f+12>:	mov    0x10(%ebp),%eax
0x080483f3 <f+15>:	mov    %eax,-0x4(%ebp)
0x080483f6 <f+18>:	jmp    0x804840a <f+38>

5	        while (gsec < 0.0) {
0x0804840a <f+38>:	fldl   -0x8(%ebp)
0x0804840d <f+41>:	fldz   
0x0804840f <f+43>:	fucomip %st(1),%st
0x08048411 <f+45>:	fstp   %st(0)
0x08048413 <f+47>:	ja     0x80483f8 <f+20>
0x08048415 <f+49>:	jmp    0x8048429 <f+69>

6	                gwk--;
0x080483f8 <f+20>:	subl   $0x1,0x8(%ebp)

7	                gsec += 604800.0;
0x080483fc <f+24>:	fldl   -0x8(%ebp)
0x080483ff <f+27>:	fldl   0x8048548
0x08048405 <f+33>:	faddp  %st,%st(1)
0x08048407 <f+35>:	fstpl  -0x8(%ebp)

8	        }
9	        while (gsec >= 604800.0) {
0x08048429 <f+69>:	fldl   -0x8(%ebp)
0x0804842c <f+72>:	fldl   0x8048548
0x08048432 <f+78>:	fxch   %st(1)
0x08048434 <f+80>:	fucomip %st(1),%st
0x08048436 <f+82>:	fstp   %st(0)
0x08048438 <f+84>:	jae    0x8048417 <f+51>

10	                gwk++;
0x08048417 <f+51>:	addl   $0x1,0x8(%ebp)

11	                gsec -= 604800.0;
0x0804841b <f+55>:	fldl   -0x8(%ebp)
0x0804841e <f+58>:	fldl   0x8048548
0x08048424 <f+64>:	fsubrp %st,%st(1)
0x08048426 <f+66>:	fstpl  -0x8(%ebp)

12	        }
13	
14	        printf("done\n");
0x0804843a <f+86>:	movl   $0x8048540,(%esp)
0x08048441 <f+93>:	call   0x80482fc <puts@plt>

15	}
0x08048446 <f+98>:	leave  
0x08048447 <f+99>:	ret    

End of assembler dump.
(gdb) 

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10112

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]