+2005-08-02 Fred Fish <fnf@specifix.com>
+
+ * defs.h (parse_frame_specification): Remove prototype.
+ * stack.c (parse_frame_specification): Add prototype and
+ make function static.
+ (frame_info): Move common code outside if..then..else.
+
2005-08-01 Daniel Jacobowitz <dan@codesourcery.com>
* value.c (value_contents_writeable): Use value_contents_raw.
extern void (*deprecated_print_frame_info_listing_hook) (struct symtab * s,
int line, int stopline,
int noerror);
-extern struct frame_info *parse_frame_specification (char *frame_exp);
extern int (*deprecated_query_hook) (const char *, va_list)
ATTRIBUTE_FPTR_PRINTF(1,0);
extern void (*deprecated_warning_hook) (const char *, va_list)
/* Prototypes for local functions. */
+static struct frame_info *parse_frame_specification (char *frame_exp);
+
static void down_command (char *, int);
static void down_silently_base (char *);
error (_("Too many args in frame specification"));
}
-struct frame_info *
+static struct frame_info *
parse_frame_specification (char *frame_exp)
{
return parse_frame_specification_1 (frame_exp, NULL, NULL);
{
printf_filtered (_("Stack level %d, frame at "),
frame_relative_level (fi));
- deprecated_print_address_numeric (get_frame_base (fi), 1, gdb_stdout);
- printf_filtered (":\n");
}
else
{
printf_filtered (_("Stack frame at "));
- deprecated_print_address_numeric (get_frame_base (fi), 1, gdb_stdout);
- printf_filtered (":\n");
}
+ deprecated_print_address_numeric (get_frame_base (fi), 1, gdb_stdout);
+ printf_filtered (":\n");
printf_filtered (" %s = ", pc_regname);
deprecated_print_address_numeric (get_frame_pc (fi), 1, gdb_stdout);