aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2005-08-05 21:08:54 +0000
committerFred Fish <fnf@specifix.com>2005-08-05 21:08:54 +0000
commit9c833c827518f1b9857da489901bd18fab3aa3c2 (patch)
tree96485891d011c79ab4c37036d9acaaa3606a4bf2
parent5545ea57294bd01b8a33e667e5b1fa4713e07905 (diff)
downloadgdb-9c833c827518f1b9857da489901bd18fab3aa3c2.zip
gdb-9c833c827518f1b9857da489901bd18fab3aa3c2.tar.gz
gdb-9c833c827518f1b9857da489901bd18fab3aa3c2.tar.bz2
Reviewed and approved by Mark Kettenis <mark.kettenis@xs4all.nl>
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.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/defs.h1
-rw-r--r--gdb/stack.c10
3 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8f5cfdb..4331a31 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+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.
diff --git a/gdb/defs.h b/gdb/defs.h
index 1880bc0..2f0e2e6 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1099,7 +1099,6 @@ extern void (*deprecated_show_load_progress) (const char *section,
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)
diff --git a/gdb/stack.c b/gdb/stack.c
index 5a0c1f9..cd6e009 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -60,6 +60,8 @@ void _initialize_stack (void);
/* 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 *);
@@ -844,7 +846,7 @@ parse_frame_specification_1 (const char *frame_exp, const char *message,
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);
@@ -932,15 +934,13 @@ frame_info (char *addr_exp, int from_tty)
{
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);