From 5d3055ad4f759240ae4b865a49f6283d02caf801 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 18 Dec 2012 19:25:24 +0000 Subject: [PATCH] * symfile.c (list_overlays_command, map_overlay_command) (unmap_overlay_command): Now static. --- gdb/ChangeLog | 5 +++++ gdb/symfile.c | 12 +++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb57bec..ef1dcab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2012-12-12 Tom Tromey + * symfile.c (list_overlays_command, map_overlay_command) + (unmap_overlay_command): Now static. + +2012-12-12 Tom Tromey + * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document", "define", "while", and "if" commands. * cli/cli-script.c (while_command, if_command, define_command) diff --git a/gdb/symfile.c b/gdb/symfile.c index fc908b3..33113c3 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -100,12 +100,6 @@ static void decrement_reading_symtab (void *); static void overlay_invalidate_all (void); -void list_overlays_command (char *, int); - -void map_overlay_command (char *, int); - -void unmap_overlay_command (char *, int); - static void overlay_auto_command (char *, int); static void overlay_manual_command (char *, int); @@ -3296,7 +3290,7 @@ find_pc_mapped_section (CORE_ADDR pc) /* Function: list_overlays_command Print a list of mapped sections and their PC ranges. */ -void +static void list_overlays_command (char *args, int from_tty) { int nmapped = 0; @@ -3336,7 +3330,7 @@ list_overlays_command (char *args, int from_tty) /* Function: map_overlay_command Mark the named section as mapped (ie. residing at its VMA address). */ -void +static void map_overlay_command (char *args, int from_tty) { struct objfile *objfile, *objfile2; @@ -3381,7 +3375,7 @@ map_overlay_command (char *args, int from_tty) Mark the overlay section as unmapped (ie. resident in its LMA address range, rather than the VMA range). */ -void +static void unmap_overlay_command (char *args, int from_tty) { struct objfile *objfile; -- 2.7.4