mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 18:20:12 +08:00
The list of changes is too long to fit in the cvs log (since it truncates!).
Look at the ChangeLog for Apr 30 and May 1.
This commit is contained in:
35
gdb/defs.h
35
gdb/defs.h
@ -118,6 +118,11 @@ extern void free_current_contents ();
|
||||
extern int myread ();
|
||||
extern int query ();
|
||||
extern int lines_to_list ();
|
||||
extern void wrap_here (
|
||||
#ifdef __STDC__
|
||||
char *
|
||||
#endif
|
||||
);
|
||||
extern void reinitialize_more_filter ();
|
||||
extern void fputs_filtered ();
|
||||
extern void puts_filtered ();
|
||||
@ -136,6 +141,13 @@ extern void print_sys_errmsg ();
|
||||
extern void print_address_symbolic ();
|
||||
extern void print_address ();
|
||||
|
||||
/* From source.c */
|
||||
void mod_path (
|
||||
#ifdef __STDC__
|
||||
char *, char **
|
||||
#endif
|
||||
);
|
||||
|
||||
/* From readline (but not in any readline .h files). */
|
||||
extern char *tilde_expand ();
|
||||
|
||||
@ -170,6 +182,15 @@ char *baud_rate;
|
||||
#define LONG_MAX 0x7fffffff
|
||||
#endif
|
||||
|
||||
#if !defined (INT_MAX)
|
||||
#define INT_MAX 0x7fffffff
|
||||
#endif
|
||||
|
||||
#if !defined (INT_MIN)
|
||||
/* Two's complement, 32 bit. */
|
||||
#define INT_MIN -0x80000000
|
||||
#endif
|
||||
|
||||
/* Just like CHAR_BIT in <limits.h> but describes the target machine. */
|
||||
#if !defined (TARGET_CHAR_BIT)
|
||||
#define TARGET_CHAR_BIT 8
|
||||
@ -181,4 +202,18 @@ char *baud_rate;
|
||||
#define TARGET_LONG_LONG_BIT 64
|
||||
#endif
|
||||
|
||||
/* Convert a LONGEST to an int. This is used in contexts (e.g. number
|
||||
of 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. */
|
||||
#if !defined (longest_to_int)
|
||||
#if defined (LONG_LONG)
|
||||
#define longest_to_int(x) (((x) > INT_MAX || (x) < INT_MIN) \
|
||||
? error ("Value out of range.") : (int) (x))
|
||||
#else /* No LONG_LONG. */
|
||||
/* Assume sizeof (int) == sizeof (long). */
|
||||
#define longest_to_int(x) ((int) (x))
|
||||
#endif /* No LONG_LONG. */
|
||||
#endif /* No longest_to_int. */
|
||||
|
||||
#endif /* no DEFS_H */
|
||||
|
Reference in New Issue
Block a user