GNU Binutils with patches for OS216
Revision | d1343a2a72c897e208e869ac967e2d149cb77ae9 (tree) |
---|---|
Time | 1991-04-19 10:38:14 |
Author | Jim Kingdon <jkingdon@engr...> |
Commiter | Jim Kingdon |
* source.c: Rename directories_info to show_directories.
(_initialize_values): Rename "info directories" to "show directories".
@@ -22,6 +22,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
22 | 22 | #include "symtab.h" |
23 | 23 | #include "param.h" |
24 | 24 | #include "command.h" |
25 | +#include "gdbcmd.h" | |
25 | 26 | #include "frame.h" |
26 | 27 | |
27 | 28 | #ifdef USG |
@@ -137,7 +138,7 @@ select_source_symtab (s) | ||
137 | 138 | } |
138 | 139 | |
139 | 140 | static void |
140 | -directories_info () | |
141 | +show_directories () | |
141 | 142 | { |
142 | 143 | printf ("Source directories searched: %s\n", source_path); |
143 | 144 | } |
@@ -194,7 +195,7 @@ directory_command (dirname, from_tty) | ||
194 | 195 | else |
195 | 196 | mod_path (dirname, from_tty, &source_path); |
196 | 197 | if (from_tty) |
197 | - directories_info (); | |
198 | + show_directories (); | |
198 | 199 | forget_cached_source_info (); |
199 | 200 | } |
200 | 201 |
@@ -910,7 +911,7 @@ list_command (arg, from_tty) | ||
910 | 911 | else if (no_end) |
911 | 912 | print_source_lines (sal.symtab, |
912 | 913 | max (sal.line - (lines_to_list () / 2), 1), |
913 | - sal.line + 5, 0); | |
914 | + sal.line + (lines_to_list() / 2), 0); | |
914 | 915 | else |
915 | 916 | print_source_lines (sal.symtab, sal.line, |
916 | 917 | (dummy_end |
@@ -1141,10 +1142,11 @@ DIR can also be $cwd for the current working directory, or $cdir for the\n\ | ||
1141 | 1142 | directory in which the source file was compiled into object code.\n\ |
1142 | 1143 | With no argument, reset the search path to $cdir:$cwd, the default."); |
1143 | 1144 | |
1144 | - add_info ("directories", directories_info, | |
1145 | - "Current search path for finding source files.\n\ | |
1145 | + add_cmd ("directories", no_class, show_directories, | |
1146 | + "Current search path for finding source files.\n\ | |
1146 | 1147 | $cwd in the path means the current working directory.\n\ |
1147 | -$cdir in the path means the compilation directory of the source file."); | |
1148 | +$cdir in the path means the compilation directory of the source file.", | |
1149 | + &showlist); | |
1148 | 1150 | |
1149 | 1151 | add_info ("source", source_info, |
1150 | 1152 | "Information about the current source file."); |