btrace: fix build fail with 32-bit BFD
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 7 Jul 2015 11:54:34 +0000 (13:54 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Thu, 9 Jul 2015 06:01:44 +0000 (08:01 +0200)
commit80a2b330f7e719cd851242d6f976719586fb9295
tree645b4bd42f6cb4d90aa99a45a9fbec7420c50b0e
parentde0ef285459ec1b4330b9eaede88a229380aefa0
btrace: fix build fail with 32-bit BFD

When compiling GDB with 32-bit BFD, the build fails with:

In file included from btrace.h:33:0,
                 from btrace.c:23:
/usr/include/intel-pt.h:1643:51: note: expected 'int (*)(uint8_t *, size_t,
 const struct pt_asid *, uint64_t, void *)' but argument is of type 'int
 (*)(gdb_byte *, size_t, const struct pt_asid *, CORE_ADDR, void *)' extern
 pt_export int pt_image_set_callback(struct pt_image *image, ^

gdb/
* btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
gdb/ChangeLog
gdb/btrace.c