diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-09-30 20:18:52 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-09-30 20:18:52 +0000 |
commit | 3c927fc96109ac289b7fd14f5ca3022c509a0d26 (patch) | |
tree | 54b370ac10ae3bb066c6fe11b49552b14f590682 /gdb | |
parent | b1a6c2c1ec2975dafc6f40a0a44b2c2ad8cb8085 (diff) | |
download | gdb-3c927fc96109ac289b7fd14f5ca3022c509a0d26.tar.gz |
2002-09-29 Andrew Cagney <ac131313@redhat.com>kseitz_interps-20020930-merge
* mi-out.c (mi_version): New function.
* mi-out.h (mi_version): Declare.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/mi/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mi/mi-out.c | 9 | ||||
-rw-r--r-- | gdb/mi/mi-out.h | 3 |
3 files changed, 17 insertions, 0 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog index 86bec4a0632..dca5af32e5e 100644 --- a/gdb/mi/ChangeLog +++ b/gdb/mi/ChangeLog @@ -1,3 +1,8 @@ +2002-09-29 Andrew Cagney <ac131313@redhat.com> + + * mi-out.c (mi_version): New function. + * mi-out.h (mi_version): Declare. + 2002-09-27 Andrew Cagney <ac131313@redhat.com> From 2002-07-12 Mo DeJong <supermo@bayarea.net> diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 947720bc10c..f7ed7ecfbdc 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -428,6 +428,15 @@ mi_out_put (struct ui_out *uiout, ui_file_rewind (data->buffer); } +/* Current MI version. */ + +int +mi_version (struct ui_out *uiout) +{ + struct ui_out_data *data = ui_out_data (uiout); + return data->mi_version; +} + /* initalize private members at startup */ struct ui_out * diff --git a/gdb/mi/mi-out.h b/gdb/mi/mi-out.h index 1ae693f4761..817f2eb53b9 100644 --- a/gdb/mi/mi-out.h +++ b/gdb/mi/mi-out.h @@ -30,4 +30,7 @@ extern void mi_out_put (struct ui_out *uiout, struct ui_file *stream); extern void mi_out_rewind (struct ui_out *uiout); extern void mi_out_buffered (struct ui_out *uiout, char *string); +/* Return the version number of the current MI. */ +extern int mi_version (struct ui_out *uiout); + #endif /* MI_OUT_H */ |