diff options
author | Stu Grossman <grossman@cygnus> | 1994-10-21 00:59:20 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1994-10-21 00:59:20 +0000 |
commit | 479f0f18d4a77e04b32cc7062ee31310b876e16b (patch) | |
tree | 3d0b2d2df5646de9741407942764a2e4981beed6 /gdb/defs.h | |
parent | 1b79c34daa80f7cbbc3c16d603d44f482f9296bf (diff) | |
download | gdb-479f0f18d4a77e04b32cc7062ee31310b876e16b.zip gdb-479f0f18d4a77e04b32cc7062ee31310b876e16b.tar.gz gdb-479f0f18d4a77e04b32cc7062ee31310b876e16b.tar.bz2 |
* defs.h, infrun.c (wait_for_inferior), top.c: Call
target_wait_hook to allow GUI to handle blocking for inferior. Call
call_command_hook in execute_command to provide means for wrapping
commands with GUI state change updates.
* gdbtk.c (gdb_cmd): Force GUI into idle mode when errors occur.
* (gdb_stop): New tcl command to stop the target process.
* (x_event, gdbtk_wait): Allow GUI to interrupt gdb out of target
waits.
* (gdbtk_call_command): Wrapper around command processing to
alert GUI of target state changes.
* (gdbtk_init): Get the fd of X server for doing async
notification of X events (via x_event). Setup new hooks.
* gdbtk.tcl: Add scrollbars to assembly and command windows.
* Change window foreground & background colors.
* Create margin tag for breakpoints in source and assembly windows.
* Add new routines to be invoked when target state changes to/from
idle.
* Add start of expression window.
* Change bindings of mouse button 1 in assembly and source window
to just set or clear breakpoints when in the margin tag.
* Change shape of register window to be more vertical to better
reflect it's contents.
* Add stop button.
* Cleanup some code around command window bindings.
* infrun.c (wait_for_inferior): Make sure
through_sigtramp_breakpoint is non-null before deleting.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 32 |
1 files changed, 31 insertions, 1 deletions
@@ -689,7 +689,7 @@ extern char *strerror PARAMS ((int)); /* 4.11.6.2 */ # endif /* Not GNU C */ #endif /* alloca not defined */ -/* TARGET_BYTE_ORDER and HOST_BYTE_ORDER must be defined to one of these. */ +/* HOST_BYTE_ORDER must be defined to one of these. */ #if !defined (BIG_ENDIAN) #define BIG_ENDIAN 4321 @@ -706,6 +706,17 @@ extern char *strerror PARAMS ((int)); /* 4.11.6.2 */ #include "tm.h" +#ifdef TARGET_BYTE_ORDER_SELECTABLE +/* The target endianness is selectable at runtime. Define + TARGET_BYTE_ORDER to be a variable. The user can use the `set + endian' command to change it. */ +#undef TARGET_BYTE_ORDER +#define TARGET_BYTE_ORDER target_byte_order +extern int target_byte_order; +#endif + +extern void set_endian_from_file PARAMS ((bfd *)); + /* Number of bits in a char or unsigned char for the target machine. Just like CHAR_BIT in <limits.h> but describes the target machine. */ #if !defined (TARGET_CHAR_BIT) @@ -778,6 +789,8 @@ extern char *strerror PARAMS ((int)); /* 4.11.6.2 */ from byte/word byte order. */ #if !defined (BITS_BIG_ENDIAN) +#ifndef TARGET_BYTE_ORDER_SELECTABLE + #if TARGET_BYTE_ORDER == BIG_ENDIAN #define BITS_BIG_ENDIAN 1 #endif /* Big endian. */ @@ -785,6 +798,12 @@ extern char *strerror PARAMS ((int)); /* 4.11.6.2 */ #if TARGET_BYTE_ORDER == LITTLE_ENDIAN #define BITS_BIG_ENDIAN 0 #endif /* Little endian. */ + +#else /* defined (TARGET_BYTE_ORDER_SELECTABLE) */ + +#define BITS_BIG_ENDIAN (TARGET_BYTE_ORDER == BIG_ENDIAN) + +#endif /* defined (TARGET_BYTE_ORDER_SELECTABLE) */ #endif /* BITS_BIG_ENDIAN not defined. */ /* In findvar.c. */ @@ -854,6 +873,17 @@ extern void (*enable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); extern void (*disable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); extern void (*interactive_hook) PARAMS ((void)); +#ifdef __STDC__ +struct target_waitstatus; +struct cmd_list_element; +#endif + +extern int (*target_wait_hook) PARAMS ((int pid, + struct target_waitstatus *status)); + +extern void (*call_command_hook) PARAMS ((struct cmd_list_element *c, + char *cmd, int from_tty)); + /* Inhibit window interface if non-zero. */ extern int no_windows; |