This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/10743] Process record doesn't support instruction 0xf6e
- From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 12 Oct 2009 08:19:18 -0000
- Subject: [Bug gdb/10743] Process record doesn't support instruction 0xf6e
- References: <20091007141132.10743.jan.kratochvil@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jan dot kratochvil at redhat dot com 2009-10-12 08:19 -------
It does not work, __x86_64_preferred_memory_instruction is not used in strrchr,
please try:
echo -e "#include <string.h>\nint main (int argc, char **argv) { return strrchr
(argv[0], '/') - argv[0]; }" | gcc -o 1 -Wall -g -x c -; ./gdb -nx -ex start -ex
'set __x86_64_preferred_memory_instruction=0' -ex record -ex c ./1
GNU gdb (GDB) 7.0.50.20091012-cvs
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 "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jkratoch/redhat/gdb-clean/1...done.
Temporary breakpoint 1 at 0x4004d3: file <stdin>, line 2.
Starting program: /home/jkratoch/redhat/gdb-clean/1
Temporary breakpoint 1, main (argc=1, argv=0x7fffffffd4c8) at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
Continuing.
Process record doesn't support instruction 0xf6e at address 0x36b5a7f961.
Process record: failed to record execution log.
Program received signal SIGTRAP, Trace/breakpoint trap.
strrchr () at ../sysdeps/x86_64/strrchr.S:26
26 movd %esi, %xmm1
Current language: auto
The current source language is "auto; currently asm".
(gdb) p __x86_64_preferred_memory_instruction
$1 = 0
(gdb) up
#1 0x00000000004004e7 in main (argc=1, argv=0x7fffffffd4c8) at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) x/i $pc-5
0x4004e2 <main+30>: callq 0x4003c8 <strrchr@plt>
(gdb) x/i 0x4003c8
0x4003c8 <strrchr@plt>: jmpq *0x2004b2(%rip) # 0x600880
<_GLOBAL_OFFSET_TABLE_+32>
(gdb) x/gx 0x600880
0x600880 <_GLOBAL_OFFSET_TABLE_+32>: 0x00000036b5a7f960
(gdb) x/i 0x00000036b5a7f960
0x36b5a7f960 <strrchr>: movd %esi,%xmm1
__x86_64_preferred_memory_instruction is just not in use there, neither if you
set it to any value or if you watch it.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10743
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.