diff options
author | Pedro Alves <palves@redhat.com> | 2015-02-12 09:59:03 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-02-19 22:45:47 +0000 |
commit | f63c17760fab6fbf56ba500f7a8c746aa15b34a4 (patch) | |
tree | 7bba01d309f4181669a16387647f39b1884dca9b /opcodes | |
parent | 07df97c8578023d1c9313bcec8aceef14de3e90b (diff) | |
download | gdb-f63c17760fab6fbf56ba500f7a8c746aa15b34a4.zip gdb-f63c17760fab6fbf56ba500f7a8c746aa15b34a4.tar.gz gdb-f63c17760fab6fbf56ba500f7a8c746aa15b34a4.tar.bz2 |
Wrap a few opcodes headers in extern "C" for C++
These are sufficient to link an --enable-targets=all GDB build in C++
mode, on x86_64 Fedora 20.
include/opcode/
2015-02-19 Pedro Alves <palves@redhat.com>
* cgen.h [__cplusplus]: Wrap in extern "C".
* msp430-decode.h [__cplusplus]: Likewise.
* nios2.h [__cplusplus]: Likewise.
* rl78.h [__cplusplus]: Likewise.
* rx.h [__cplusplus]: Likewise.
* tilegx.h [__cplusplus]: Likewise.
opcodes/
2015-02-19 Pedro Alves <palves@redhat.com>
* microblaze-dis.h [__cplusplus]: Wrap in extern "C".
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/microblaze-dis.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index b400f5b..ddb04b8 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2015-02-19 Pedro Alves <palves@redhat.com> + + * microblaze-dis.h [__cplusplus]: Wrap in extern "C". + 2015-02-10 Pedro Alves <palves@redhat.com> Tom Tromey <tromey@redhat.com> diff --git a/opcodes/microblaze-dis.h b/opcodes/microblaze-dis.h index a837ada..fd09745 100644 --- a/opcodes/microblaze-dis.h +++ b/opcodes/microblaze-dis.h @@ -22,6 +22,10 @@ #ifndef MICROBLAZE_DIS_H #define MICROBLAZE_DIS_H 1 +#ifdef __cplusplus +extern "C" { +#endif + extern enum microblaze_instr microblaze_decode_insn (long, int *, int *, int *, int *); extern unsigned long microblaze_get_target_address (long, bfd_boolean, int, @@ -31,4 +35,8 @@ extern enum microblaze_instr get_insn_microblaze (long, bfd_boolean *, enum microblaze_instr_type *, short *); +#ifdef __cplusplus +} +#endif + #endif /* microblaze-dis.h */ |