21 #ifdef IN_PROCESS_AGENT
22 # define PREFIX "ipa: "
23 # define TOOLNAME "GDBserver in-process agent"
25 # define PREFIX "gdbserver: "
26 # define TOOLNAME "GDBserver"
35 PREFIX "ran out of memory while trying to allocate %lu bytes\n",
36 (
unsigned long) size);
46 char *ret = strdup (s);
64 err =
"unknown error";
66 combined = (
char *)
alloca (strlen (err) + strlen (
string) + 3);
67 strcpy (combined,
string);
68 strcat (combined,
": ");
69 strcat (combined, err);
71 error (
"%s.", combined);
77 verror (
const char *
string, va_list args)
79 #ifdef IN_PROCESS_AGENT
81 vfprintf (stderr,
string, args);
82 fprintf (stderr,
"\n");
93 vfprintf (stderr,
string, args);
94 fprintf (stderr,
"\n");
103 %s:%d: A problem internal to " TOOLNAME " has been detected.\n", file, line);
104 vfprintf (stderr, fmt, args);
105 fprintf (stderr,
"\n");
115 %s:%d: A problem internal to " TOOLNAME " has been detected.\n", file, line);
116 vfprintf (stderr, fmt, args);
117 fprintf (stderr,
"\n");
void vwarning(const char *string, va_list args)
char * pfildes(gdb_fildes_t fd)
char * plongest(LONGEST l)
void verror(const char *string, va_list args)
char * paddress(CORE_ADDR addr)
char * xstrdup(const char *s)
void internal_verror(const char *file, int line, const char *fmt, va_list args)
void prepare_to_throw_exception(void)
void internal_vwarning(const char *file, int line, const char *fmt, va_list args)
char * phex_nz(ULONGEST l, int sizeof_l)
void throw_verror(enum errors error, const char *fmt, va_list ap)
void perror_with_name(const char *string)
void malloc_failure(long size)
void error(const char *fmt,...)