old-cross-binutils/gdb/testsuite/gdb.trace
Yao Qi 763905a3ad Fix trace file fails on powerpc64
I see the following fails on powerpc64-linux,

(gdb) target tfile tfile-basic.tf^M
warning: Uploaded tracepoint 1 has no source location, using raw address^M
Tracepoint 1 at 0x10012358^M
Created tracepoint 1 for target's tracepoint 1 at 0x10012358.^M
(gdb) PASS: gdb.trace/tfile.exp: target tfile tfile-basic.tf
info trace^M
Num     Type           Disp Enb Address            What^M
1       tracepoint     keep y   0x0000000010012358 <write_basic_trace_file>^M
        installed on target^M
(gdb) FAIL: gdb.trace/tfile.exp: info tracepoints on trace file

-target-select tfile tfile-basic.tf^M
=thread-group-started,id="i1",pid="1"^M
=thread-created,id="1",group-id="i1"^M
&"warning: Uploaded tracepoint 1 has no source location, using raw address\n"^M
=breakpoint-created,bkpt={number="1",type="tracepoint",disp="keep",enabled="y",
addr="0x0000000010012358",at="<write_basic_trace_file>",thread-groups=["i1"],
times="0",installed="y",original-location="*0x10012358"}^M
~"Created tracepoint 1 for target's tracepoint 1 at 0x10012358.\n"^M
^connected^M
(gdb) ^M
FAIL: gdb.trace/mi-traceframe-changed.exp: tfile: select trace file

These fails are caused by writing function descriptor address into trace
file instead of function address.  This patch is to teach tfile.c to
write function address on powerpc64 target.  With this patch applied,
fails in tfile.exp and mi-traceframe-changed.exp are fixed.  Is it
OK?

gdb/testsuite:

2014-10-27  Yao Qi  <yao@codesourcery.com>

	* gdb.trace/tfile.c (adjust_function_address)
	[__powerpc64__ && _CALL_ELF != 2]: Get function address from
	function descriptor.
2014-10-27 20:09:19 +08:00
..
actions-changed.c
actions-changed.exp
actions.c Ensure unreferenced static symbols aren't omitted by clang (either marking them __attribute__((used)) or making them non-static) 2014-04-24 22:33:46 -07:00
actions.exp
ax.exp
backtrace.exp testsuite: Introduce gdb_assert 2014-07-14 20:30:41 +01:00
change-loc-1.c
change-loc-2.c
change-loc.c
change-loc.exp Fix several "set remote foo-packet on/off" commands. 2014-04-25 18:07:02 +01:00
change-loc.h
circ.c
circ.exp
collection.c
collection.exp
deltrace.exp
disconnected-tracing.c
disconnected-tracing.exp
entry-values.c Fix gdb.trace/entry-values.exp for thumb mode 2014-07-08 16:48:22 +08:00
entry-values.exp Fix gdb.trace/entry-values.exp for thumb mode 2014-07-08 16:48:22 +08:00
ftrace.c
ftrace.exp Fix several "set remote foo-packet on/off" commands. 2014-04-25 18:07:02 +01:00
infotrace.exp
Makefile.in
mi-trace-frame-collected.exp
mi-trace-unavailable.exp
mi-traceframe-changed.exp Check tracefile is generated by binary execution 2014-04-22 09:57:44 +08:00
mi-tracepoint-changed.exp
mi-tsv-changed.exp
packetlen.exp
passc-dyn.exp
passcount.exp
pending.c
pending.exp
pendshr1.c
pendshr2.c
pr16508.exp
qtro.c
qtro.exp Don't suppress errors inserting/removing hardware breakpoints in shared 2014-04-23 15:06:47 +01:00
range-stepping.c
range-stepping.exp
read-memory.c
read-memory.exp
report.exp
save-trace.exp
stap-trace.c
stap-trace.exp
status-stop.c
status-stop.exp
strace.c
strace.exp
tfile.c Fix trace file fails on powerpc64 2014-10-27 20:09:19 +08:00
tfile.exp Skip tfile.exp if unable to generate trace file 2014-08-15 08:43:44 +08:00
tfind.exp
trace-break.c
trace-break.exp
trace-buffer-size.c
trace-buffer-size.exp
trace-mt.c
trace-mt.exp
trace-unavailable.c
tracecmd.exp
tspeed.c
tspeed.exp
tstatus.exp
tsv.exp
unavailable-dwarf-piece.c
unavailable-dwarf-piece.exp
unavailable.cc
unavailable.exp Partially available/unavailable data in requested range 2014-05-05 11:51:59 +08:00
while-dyn.exp
while-stepping.exp