aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 01:38:14 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 01:38:14 +0000
commitd1343a2a72c897e208e869ac967e2d149cb77ae9 (patch)
treef379149238fae88636d1436b3fc4da1da8e61e36 /gdb/source.c
parentf2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b (diff)
downloadgdb-d1343a2a72c897e208e869ac967e2d149cb77ae9.zip
gdb-d1343a2a72c897e208e869ac967e2d149cb77ae9.tar.gz
gdb-d1343a2a72c897e208e869ac967e2d149cb77ae9.tar.bz2
* source.c: Rename directories_info to show_directories.
(_initialize_values): Rename "info directories" to "show directories".
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/source.c b/gdb/source.c
index ebc7041..6ad887a 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -22,6 +22,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "symtab.h"
#include "param.h"
#include "command.h"
+#include "gdbcmd.h"
#include "frame.h"
#ifdef USG
@@ -137,7 +138,7 @@ select_source_symtab (s)
}
static void
-directories_info ()
+show_directories ()
{
printf ("Source directories searched: %s\n", source_path);
}
@@ -194,7 +195,7 @@ directory_command (dirname, from_tty)
else
mod_path (dirname, from_tty, &source_path);
if (from_tty)
- directories_info ();
+ show_directories ();
forget_cached_source_info ();
}
@@ -910,7 +911,7 @@ list_command (arg, from_tty)
else if (no_end)
print_source_lines (sal.symtab,
max (sal.line - (lines_to_list () / 2), 1),
- sal.line + 5, 0);
+ sal.line + (lines_to_list() / 2), 0);
else
print_source_lines (sal.symtab, sal.line,
(dummy_end
@@ -1141,10 +1142,11 @@ DIR can also be $cwd for the current working directory, or $cdir for the\n\
directory in which the source file was compiled into object code.\n\
With no argument, reset the search path to $cdir:$cwd, the default.");
- add_info ("directories", directories_info,
- "Current search path for finding source files.\n\
+ add_cmd ("directories", no_class, show_directories,
+ "Current search path for finding source files.\n\
$cwd in the path means the current working directory.\n\
-$cdir in the path means the compilation directory of the source file.");
+$cdir in the path means the compilation directory of the source file.",
+ &showlist);
add_info ("source", source_info,
"Information about the current source file.");