FreeBSD 5.4-STABLE #12: Mon May 2 19:23:22 CEST 2005
root@hammer.stack.nl:/usr/obj/usr/src/sys/HAMMER
hammer:~/src/hak/fpu>gdb ./fpu5th
GNU gdb 6.1.1 [FreeBSD]
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 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 "amd64-marcel-freebsd"...
(gdb) break floor
Function "floor" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (floor) pending.
(gdb) r
Starting program: /vwww.mnt/sources/srcimport/marcolz/hak/fpu/fpu5th
Breakpoint 2 at 0x80063fdf0
Pending breakpoint "floor" resolved
load: 0.08 cmd: fpu5th 917 [running] 1.69u 0.01s 4% 1192k
Program received signal SIGINFO, Information request.
[Switching to Thread 1 (LWP 100167)]
0x000000080076558c in pthread_testcancel () from /usr/lib/libpthread.so.1
(gdb) disass floorl
No symbol "floorl" in current context.
(gdb) disass floorf
Dump of assembler code for function floorf:
0x000000080063fd40 <floorf+0>: movss %xmm0,0xfffffffffffffffc(%rsp)
0x000000080063fd46 <floorf+6>: mov 0xfffffffffffffffc(%rsp),%edx
0x000000080063fd4a <floorf+10>: mov %edx,%eax
0x000000080063fd4c <floorf+12>: sar $0x17,%eax
0x000000080063fd4f <floorf+15>: and $0xff,%eax
0x000000080063fd54 <floorf+20>: lea 0xffffffffffffff81(%rax),%ecx
0x000000080063fd57 <floorf+23>: cmp $0x16,%ecx
0x000000080063fd5a <floorf+26>: jg 0x80063fda1 <floorf+97>
0x000000080063fd5c <floorf+28>: test %ecx,%ecx
0x000000080063fd5e <floorf+30>: js 0x80063fdb1 <floorf+113>
0x000000080063fd60 <floorf+32>: mov $0x7fffff,%esi
0x000000080063fd65 <floorf+37>: movaps %xmm0,%xmm1
0x000000080063fd68 <floorf+40>: sar %cl,%esi
0x000000080063fd6a <floorf+42>: test %edx,%esi
0x000000080063fd6c <floorf+44>: je 0x80063fd9d <floorf+93>
0x000000080063fd6e <floorf+46>: addss 3226(%rip),%xmm0 #
0x800640a10 <_fini+152>
0x000000080063fd76 <floorf+54>: ucomiss 3223(%rip),%xmm0 #
0x800640a14 <_fini+156>
0x000000080063fd7d <floorf+61>: jbe 0x80063fd90 <floorf+80>
0x000000080063fd7f <floorf+63>: test %edx,%edx
0x000000080063fd81 <floorf+65>: js 0x80063fdd9 <floorf+153>
---Type <return> to continue, or q <return> to quit---
0x000000080063fd83 <floorf+67>: mov %esi,%eax
0x000000080063fd85 <floorf+69>: not %eax
0x000000080063fd87 <floorf+71>: and %eax,%edx
0x000000080063fd89 <floorf+73>: data16
0x000000080063fd8a <floorf+74>: data16
0x000000080063fd8b <floorf+75>: data16
0x000000080063fd8c <floorf+76>: nop
0x000000080063fd8d <floorf+77>: data16
0x000000080063fd8e <floorf+78>: data16
0x000000080063fd8f <floorf+79>: nop
0x000000080063fd90 <floorf+80>: mov %edx,0xfffffffffffffffc(%rsp)
0x000000080063fd94 <floorf+84>: movss 0xfffffffffffffffc(%rsp),%xmm0
0x000000080063fd9a <floorf+90>: movaps %xmm0,%xmm1
0x000000080063fd9d <floorf+93>: movaps %xmm1,%xmm0
0x000000080063fda0 <floorf+96>: retq
0x000000080063fda1 <floorf+97>: add $0xffffffffffffff80,%ecx
0x000000080063fda4 <floorf+100>: movaps %xmm0,%xmm1
0x000000080063fda7 <floorf+103>: jne 0x80063fd9d
<floorf+93>
0x000000080063fda9 <floorf+105>: addss %xmm0,%xmm1
0x000000080063fdad <floorf+109>: movaps %xmm1,%xmm0
0x000000080063fdb0 <floorf+112>: retq
0x000000080063fdb1 <floorf+113>: addss 3159(%rip),%xmm0 #
0x800640a10 <_fini+152>
---Type <return> to continue, or q <return> to quit---
0x000000080063fdb9 <floorf+121>: ucomiss 3156(%rip),%xmm0 #
0x800640a14 <_fini+156>
0x000000080063fdc0 <floorf+128>: jbe 0x80063fd90
<floorf+80>
0x000000080063fdc2 <floorf+130>: test %edx,%edx
0x000000080063fdc4 <floorf+132>: js 0x80063fdca
<floorf+138>
0x000000080063fdc6 <floorf+134>: xor %edx,%edx
0x000000080063fdc8 <floorf+136>: jmp 0x80063fd90
<floorf+80>
0x000000080063fdca <floorf+138>: test $0x7fffffff,%edx
0x000000080063fdd0 <floorf+144>: je 0x80063fd90
<floorf+80>
0x000000080063fdd2 <floorf+146>: mov $0xbf800000,%edx
0x000000080063fdd7 <floorf+151>: jmp 0x80063fd90
<floorf+80>
0x000000080063fdd9 <floorf+153>: mov $0x800000,%eax
0x000000080063fdde <floorf+158>: sar %cl,%eax
0x000000080063fde0 <floorf+160>: add %eax,%edx
0x000000080063fde2 <floorf+162>: jmp 0x80063fd83
<floorf+67>
0x000000080063fde4 <floorf+164>: nop
0x000000080063fde5 <floorf+165>: nop
0x000000080063fde6 <floorf+166>: nop
0x000000080063fde7 <floorf+167>: nop
0x000000080063fde8 <floorf+168>: nop
0x000000080063fde9 <floorf+169>: nop
0x000000080063fdea <floorf+170>: nop
0x000000080063fdeb <floorf+171>: nop
---Type <return> to continue, or q <return> to quit---
0x000000080063fdec <floorf+172>: nop
0x000000080063fded <floorf+173>: nop
0x000000080063fdee <floorf+174>: nop
0x000000080063fdef <floorf+175>: nop
End of assembler dump.
(gdb) q
The program is running. Exit anyway? (y or n) y
*reboot, no dump* :-((
I tried debugging the program I just mailed to threads@
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :
http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050503/a35ea386/attachment.bin