aboutsummaryrefslogtreecommitdiff
path: root/include/opcode
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1998-01-23 01:57:11 +0000
committerNick Clifton <nickc@redhat.com>1998-01-23 01:57:11 +0000
commit810d9833fb6071cc41562780ff8474e673b53d10 (patch)
tree7617ece1d8802691036501ebb507e82e183f83d1 /include/opcode
parentf7124cf258aeca4e64c1fbaa15c0cabbe2b39a59 (diff)
downloadgdb-810d9833fb6071cc41562780ff8474e673b53d10.zip
gdb-810d9833fb6071cc41562780ff8474e673b53d10.tar.gz
gdb-810d9833fb6071cc41562780ff8474e673b53d10.tar.bz2
Add prototypes for fixup swapping functions.
Change prototype of cgen_asm_finish_insn to return a char *
Diffstat (limited to 'include/opcode')
-rw-r--r--include/opcode/ChangeLog6
-rw-r--r--include/opcode/cgen.h12
2 files changed, 15 insertions, 3 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index 46c5a5a..eba0c1a 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jan 22 17:54:56 1998 Nick Clifton <nickc@cygnus.com>
+
+ * cgen.h: Add prototypes for cgen_save_fixups(),
+ cgen_restore_fixups(), and cgen_swap_fixups(). Change prototype
+ of cgen_asm_finish_insn() to return a char *.
+
Wed Jan 14 17:21:43 1998 Nick Clifton <nickc@cygnus.com>
* cgen.h: Formatting changes to improve readability.
diff --git a/include/opcode/cgen.h b/include/opcode/cgen.h
index a5a6767..9234d32 100644
--- a/include/opcode/cgen.h
+++ b/include/opcode/cgen.h
@@ -310,20 +310,26 @@ void cgen_asm_init_parse PARAMS ((void));
#ifdef BFD_VERSION
/* The result is an error message or NULL for success.
The parsed value is stored in the bfd_vma *. */
-const char *cgen_parse_operand PARAMS ((enum cgen_parse_operand_type,
+const char * cgen_parse_operand PARAMS ((enum cgen_parse_operand_type,
const char **, int, int,
enum cgen_parse_operand_result *,
bfd_vma *));
#endif
+void cgen_save_fixups ();
+void cgen_restore_fixups ();
+void cgen_swap_fixups ();
+
/* Add a register to the assembler's hash table.
This makes lets GAS parse registers for us.
??? This isn't currently used, but it could be in the future. */
void cgen_asm_record_register PARAMS ((char *, int));
/* After CGEN_SYM (assemble_insn) is done, this is called to
- output the insn and record any fixups. */
-void cgen_asm_finish_insn PARAMS ((const struct cgen_insn *, cgen_insn_t *,
+ output the insn and record any fixups. The address of the
+ assembled instruction is returned in case it is needed by
+ the caller. */
+char * cgen_asm_finish_insn PARAMS ((const struct cgen_insn *, cgen_insn_t *,
unsigned int));
/* Operand values (keywords, integers, symbols, etc.) */