aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-02-18 17:47:43 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-02-18 17:47:43 +0000
commitfb0f4231333cbdf9c8d3add1bada84686eddafbe (patch)
treef3b3fcafd2ea8c14b1a251cdc7ddc484cac2b05a /gdb/defs.h
parent79aab093bbf68130784e0351718ca30e574f0810 (diff)
downloadfsf-binutils-gdb-fb0f4231333cbdf9c8d3add1bada84686eddafbe.zip
fsf-binutils-gdb-fb0f4231333cbdf9c8d3add1bada84686eddafbe.tar.gz
fsf-binutils-gdb-fb0f4231333cbdf9c8d3add1bada84686eddafbe.tar.bz2
* defs.h, valprint.c: Make longest_to_int a function not a macro.
Only test against INT_MIN if a LONGEST is bigger than an int.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 0675aaf..1a49d8c 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -556,8 +556,7 @@ enum val_prettyprint
arguments to a function, number in a value history, register number, etc.)
where the value must not be larger than can fit in an int. */
-#define longest_to_int(x) (((x) > INT_MAX || (x) < INT_MIN) \
- ? (error ("Value out of range."),0) : (int) (x))
+extern int longest_to_int PARAMS ((LONGEST));
/* Assorted functions we can declare, now that const and volatile are
defined. */