mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-23 01:03:28 +08:00
dedcc91de6
* callback.[ch]: New files. * remote-rdp.c: Support for the ARM RDP monitor. * Makefile: Update. * arm-tdep.c (arm_othernames): New. (_initialize_arm_tdep): install 'othernames' command. (arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New. * configure.in: Check for termios.h, termio.h and sgtty.h. (i[345]86-*-win32*): New host. * configure: Regenerated. * inflow.c: Clean up inclusions. * main.c (main): Check for WINGDB, not WIN32. * printcmd.c (do_examine): Put QUIT test in loop. * remote-hms.c (e7000_load): Delete. (hms_ops): Point to generic_load instead. * remote-hms.c (hms_ops): Point to generic_load. * remote-sim.c (sim_callback_write_stdout): Becomes gdbsim_write_stdout. (gdbsim_load): Call generic_load. * remote-utils.c (gr_load_image): Delete. * ser-unix.c (terminal.h): Include instead of havig own #if tree. (hardwire_flush_input): Reset input buffer too. * source.c (openp): If WIN32 then open file in binary mode. * terminal.h: Configure IO mechanism using autoconf defines if available and not overriden. * utils.c (quit, pollquit, notice_quit): WIN32 check becomes WINGDB check. * config/arm/arm.mt (TDEPFILES): Add remote-rdp.o * config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes TARGET_BYTE_ORDER_SELECTABLE. (ADDR_BITS_REMOVE): New. (ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New. (INST_xx): New (FRAME_FIND_SAVED_REGS): Pass the right argument. (arm_get_next_pc): Declare. * mswin/prebuilt/*/bfdtarget.h (SELECT_ARCHITECTURES): Need leading &.
42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
#ifndef CALLBACK_H
|
|
#define CALLBACK_H
|
|
typedef struct host_callback_struct host_callback;
|
|
|
|
#define MAX_CALLBACK_FDS 10
|
|
|
|
struct host_callback_struct
|
|
{
|
|
int (*close) PARAMS ((host_callback *,int));
|
|
int (*get_errno) PARAMS ((host_callback *));
|
|
int (*isatty) PARAMS ((host_callback *, int));
|
|
int (*lseek) PARAMS ((host_callback *, int, long , int));
|
|
int (*open) PARAMS ((host_callback *, const char*, int mode));
|
|
int (*read) PARAMS ((host_callback *,int, char *, int));
|
|
int (*read_stdin) PARAMS (( host_callback *, char *, int));
|
|
int (*rename) PARAMS ((host_callback *, const char *, const char *));
|
|
int (*system) PARAMS ((host_callback *, const char *));
|
|
long (*time) PARAMS ((host_callback *, long *));
|
|
int (*unlink) PARAMS ((host_callback *, const char *));
|
|
int (*write) PARAMS ((host_callback *,int, const char *, int));
|
|
int (*write_stdout) PARAMS ((host_callback *, const char *, int));
|
|
|
|
|
|
/* Used when the target has gone away, so we can close open
|
|
handles and free memory etc etc. */
|
|
int (*shutdown) PARAMS ((host_callback *));
|
|
int (*init) PARAMS ((host_callback *));
|
|
|
|
/* Talk to the user on a console. */
|
|
void (*printf_filtered) PARAMS ((host_callback *, const char *, ...));
|
|
|
|
int last_errno; /* host format */
|
|
|
|
int fdmap[MAX_CALLBACK_FDS];
|
|
char fdopen[MAX_CALLBACK_FDS];
|
|
char alwaysopen[MAX_CALLBACK_FDS];
|
|
};
|
|
#endif
|
|
|
|
|
|
extern host_callback default_callback;
|