diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-19 01:58:50 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-19 01:58:50 +0000 |
commit | 9136fe4948dba592c179b5c7930f6dc2ca0bbe5d (patch) | |
tree | 64ae2677506fab7a43a92bfed26fb720811de91c /gdb | |
parent | 3ba6a043d4888ab5b227c98addbeffa36299ea0d (diff) | |
download | gdb-9136fe4948dba592c179b5c7930f6dc2ca0bbe5d.zip gdb-9136fe4948dba592c179b5c7930f6dc2ca0bbe5d.tar.gz gdb-9136fe4948dba592c179b5c7930f6dc2ca0bbe5d.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/target.h | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8bb0ee1..26f215e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,7 +1,3 @@ -Thu Apr 18 17:35:47 1991 Jim Kingdon (kingdon at cygint.cygnus.com) - - * Rename Makefile.srcdir to Makefile.sdir. - Mon Apr 15 21:45:35 1991 Jim Kingdon (kingdon at cygint.cygnus.com) * utils.c (_initialize_utils): Rename "set demangle" to diff --git a/gdb/target.h b/gdb/target.h index 924f4aa..7bc64f0 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -47,6 +47,10 @@ enum strata { struct target_ops { char *to_shortname; /* Name this target type */ char *to_longname; /* Name for printing */ + /* Documentation. Does not include trailing newline, and + starts with a one-line description (probably similar to + to_longname). */ + char *to_doc; #ifdef __STDC__ void (*to_open) (char *name, int from_tty); void (*to_close) (int quitting); @@ -140,6 +144,9 @@ extern struct target_ops *current_target; #define target_shortname (current_target->to_shortname) #define target_longname (current_target->to_longname) +/* The open routine takes the rest of the parameters from the command, + and (if successful) pushes a new target onto the stack. + Targets should supply this routine, if only to provide an error message. */ #define target_open(name, from_tty) \ (*current_target->to_open) (name, from_tty) @@ -397,10 +404,12 @@ extern int target_xfer_memory(); void add_target (struct target_ops *); int push_target (struct target_ops *); int unpush_target (struct target_ops *); -void pop_target (); +void target_preopen (int); +void pop_target (void); #else void add_target (); int push_target (); int unpush_target (); +void target_preopen (); void pop_target (); #endif |