This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[patch/ob] Delete GDB_select_frame()
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: insight at sources dot redhat dot com
- Date: Sat, 04 May 2002 15:07:40 -0400
- Subject: [patch/ob] Delete GDB_select_frame()
FYI, I've committed the attached as obvious. As best I can tell, the
functions are not being used. I suspect this is a hangover from pre
gdb/varobj.c.
enjoy,
Andrew
2002-05-04 Andrew Cagney <ac131313@redhat.com>
* generic/gdbtk-wrapper.h (GDB_select_frame): Delete declaration.
* generic/gdbtk-wrapper.c (GDB_select_frame): Delete function.
(wrap_select_frame): Delete function.
Index: generic/gdbtk-wrapper.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-wrapper.c,v
retrieving revision 1.7
diff -u -r1.7 gdbtk-wrapper.c
--- generic/gdbtk-wrapper.c 21 Apr 2002 22:52:41 -0000 1.7
+++ generic/gdbtk-wrapper.c 4 May 2002 19:04:17 -0000
@@ -37,8 +37,6 @@
int format, int deref_ref, int recurse,
enum val_prettyprint pretty);
-gdb_result GDB_select_frame (struct frame_info *, int);
-
gdb_result GDB_value_equal (value_ptr, value_ptr, int *);
gdb_result GDB_parse_exp_1 (char **stringptr, struct block *block, int comma,
@@ -94,8 +92,6 @@
static int wrap_val_print (char *);
-static int wrap_select_frame (char *);
-
static int wrap_value_equal (char *);
static int wrap_parse_exp_1 (char *opaque_arg);
@@ -256,28 +252,6 @@
(*args)->result =
(char *) evaluate_expression ((struct expression *) (*args)->args[0]);
- return 1;
-}
-
-gdb_result
-GDB_select_frame (struct frame_info *fi, int level)
-{
- struct gdb_wrapper_arguments args;
-
- args.args[0] = (char *) fi;
- args.args[1] = (char *) &level;
-
- return call_wrapped_function ((catch_errors_ftype *) wrap_select_frame, &args);
-}
-
-static int
-wrap_select_frame (char *a)
-{
- struct gdb_wrapper_arguments **args = (struct gdb_wrapper_arguments **) a;
- int level = *(int *) (*args)->args[1];
- struct frame_info *fi = (struct frame_info *) (*args)->args[0];
-
- select_frame (fi, level);
return 1;
}
Index: generic/gdbtk-wrapper.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-wrapper.h,v
retrieving revision 1.6
diff -u -r1.6 gdbtk-wrapper.h
--- generic/gdbtk-wrapper.h 21 Apr 2002 22:52:41 -0000 1.6
+++ generic/gdbtk-wrapper.h 4 May 2002 19:04:17 -0000
@@ -44,7 +44,6 @@
function. */
extern gdb_result GDB_evaluate_expression (struct expression *expr,
value_ptr * val);
-extern gdb_result GDB_select_frame (struct frame_info *fi, int level);
extern gdb_result GDB_type_print (value_ptr val, char *varstring,
struct ui_file *stream, int show);
extern gdb_result GDB_val_print (struct type *type, char *valaddr,