diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-10 20:35:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-10 20:35:50 +0000 |
commit | d7ba4a779e0a1dba7c377b83a2747a186b21b527 (patch) | |
tree | e692de185fcc5aaf05e2500cf7984647806916d0 /gas/itbl-ops.h | |
parent | 7f2f689c83164eb7d75193710065ed963c7fa06b (diff) | |
download | gdb-d7ba4a779e0a1dba7c377b83a2747a186b21b527.zip gdb-d7ba4a779e0a1dba7c377b83a2747a186b21b527.tar.gz gdb-d7ba4a779e0a1dba7c377b83a2747a186b21b527.tar.bz2 |
Based on patches from John W. Woznack <jwoznack@concentric.net>:
* itbl-ops.c (itbl_get_reg_val): Add pval parameter. Return
indication of success rather than a value.
(itbl_get_val): Likewise.
(itbl_get_field): Use strcspn. Change delimiters to include
parens.
* itbl-ops.h (itbl_get_reg_val): Update declaration.
(itbl_get_val): Likewise.
* config/tc-mips.c (mips_ip): Update call to itbl_get_reg_val.
Diffstat (limited to 'gas/itbl-ops.h')
-rw-r--r-- | gas/itbl-ops.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/itbl-ops.h b/gas/itbl-ops.h index 2946eff..d69ea7f 100644 --- a/gas/itbl-ops.h +++ b/gas/itbl-ops.h @@ -1,5 +1,5 @@ /* itbl-ops.h - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1999 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -92,9 +92,9 @@ char *itbl_get_field PARAMS ((char **s)); unsigned long itbl_assemble PARAMS ((char *name, char *operands)); int itbl_disassemble PARAMS ((char *str, unsigned long insn)); int itbl_parse PARAMS ((char *tbl)); /* parses insn tbl */ -unsigned long itbl_get_reg_val PARAMS ((char *name)); -unsigned long itbl_get_val PARAMS ((e_processor processor, e_type type, - char *name)); +int itbl_get_reg_val PARAMS ((char *name, unsigned long *pval)); +int itbl_get_val PARAMS ((e_processor processor, e_type type, char *name, + unsigned long *pval)); char *itbl_get_name PARAMS ((e_processor processor, e_type type, unsigned long val)); |