/* For BFD64 and bfd_vma. */
#include "bfd.h"
-
-/* The target is partially multi-arched. Both "tm.h" and the
- multi-arch vector provide definitions. "tm.h" normally overrides
- the multi-arch vector (but there are a few exceptions). */
-
-#define GDB_MULTI_ARCH_PARTIAL 1
-
-/* The target is partially multi-arched. Both the multi-arch vector
- and "tm.h" provide definitions. "tm.h" cannot override a definition
- provided by the multi-arch vector. It is detected as a compilation
- error.
-
- This setting is only useful during a multi-arch conversion. */
-
-#define GDB_MULTI_ARCH_TM 2
-
-/* The target is pure multi-arch. The MULTI-ARCH vector provides all
- definitions. "tm.h" is linked to an empty file. */
-
-#define GDB_MULTI_ARCH_PURE 3
-
-
-
/* An address in the program being debugged. Host byte order. Rather
than duplicate all the logic in BFD which figures out what type
this is (long, long long, etc.) and whether it needs to be 64
extern int inside_entry_func (struct frame_info *this_frame);
-extern int inside_main_func (CORE_ADDR pc);
-
/* From utils.c */
extern void initialize_utils (void);
extern char *safe_strerror (int);
-extern void init_malloc (void *);
-
extern void request_quit (int);
extern void do_cleanups (struct cleanup *);
struct ui_file;
extern struct cleanup *make_cleanup_ui_file_delete (struct ui_file *);
+struct section_addr_info;
+extern struct cleanup *(make_cleanup_free_section_addr_info
+ (struct section_addr_info *));
+
extern struct cleanup *make_cleanup_close (int fd);
extern struct cleanup *make_cleanup_bfd_close (bfd *abfd);
extern char *phex (ULONGEST l, int sizeof_l);
extern char *phex_nz (ULONGEST l, int sizeof_l);
+extern char *int_string (LONGEST, int, int, int, int);
/* Like paddr() only print/scan raw CORE_ADDR. The output from
core_addr_to_string() can be passed direct to
extern const char *core_addr_to_string_nz (const CORE_ADDR addr);
extern CORE_ADDR string_to_core_addr (const char *my_string);
+/* Return a string that contains a number formatted as a hex
+ string. */
+extern char *hex_string (LONGEST);
+extern char *hex_string_custom (LONGEST, int);
+
extern void fprintf_symbol_filtered (struct ui_file *, char *,
enum language, int);
extern char *mstrsave (void *, const char *);
-/* Robust versions of same. Throw an internal error when no memory,
- guard against stray NULL arguments. */
-extern void *xmcalloc (void *md, size_t number, size_t size);
-extern void xmfree (void *md, void *ptr);
-
/* xmalloc(), xrealloc() and xcalloc() have already been declared in
"libiberty.h". */
extern void xfree (void *);
Libiberty thingies are no longer declared here. We include libiberty.h
above, instead. */
-#ifndef GETENV_PROVIDED
-extern char *getenv (const char *);
-#endif
-
/* From other system libraries */
#ifdef HAVE_STDDEF_H
#endif
-/* We take the address of fclose later, but some stdio's forget
- to declare this. We can't always declare it since there's
- no way to declare the parameters without upsetting some compiler
- somewhere. */
-
-#ifndef FCLOSE_PROVIDED
-extern int fclose (FILE *);
-#endif
-
#ifndef atof
extern double atof (const char *); /* X3.159-1989 4.10.1.1 */
#endif
#endif /* Not GNU C */
#endif /* alloca not defined */
-/* Is GDB multi-arch? If there's a "tm.h" file, it is not. */
-#ifndef GDB_MULTI_ARCH
-#ifdef GDB_TM_FILE
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-#else
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PURE
-#endif
-#endif
-
/* Dynamic target-system-dependent parameters for GDB. */
#include "gdbarch.h"
extern void (*deprecated_set_hook) (struct cmd_list_element * c);
-extern NORETURN void (*deprecated_error_hook) (void) ATTR_NORETURN;
+extern void (*deprecated_error_hook) (void);
extern void (*deprecated_error_begin_hook) (void);