• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisiond1343a2a72c897e208e869ac967e2d149cb77ae9 (tree)
Time1991-04-19 10:38:14
AuthorJim Kingdon <jkingdon@engr...>
CommiterJim Kingdon

Log Message

* source.c: Rename directories_info to show_directories.
(_initialize_values): Rename "info directories" to "show directories".

Change Summary

Incremental Difference

--- a/gdb/source.c
+++ b/gdb/source.c
@@ -22,6 +22,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
2222 #include "symtab.h"
2323 #include "param.h"
2424 #include "command.h"
25+#include "gdbcmd.h"
2526 #include "frame.h"
2627
2728 #ifdef USG
@@ -137,7 +138,7 @@ select_source_symtab (s)
137138 }
138139
139140 static void
140-directories_info ()
141+show_directories ()
141142 {
142143 printf ("Source directories searched: %s\n", source_path);
143144 }
@@ -194,7 +195,7 @@ directory_command (dirname, from_tty)
194195 else
195196 mod_path (dirname, from_tty, &source_path);
196197 if (from_tty)
197- directories_info ();
198+ show_directories ();
198199 forget_cached_source_info ();
199200 }
200201
@@ -910,7 +911,7 @@ list_command (arg, from_tty)
910911 else if (no_end)
911912 print_source_lines (sal.symtab,
912913 max (sal.line - (lines_to_list () / 2), 1),
913- sal.line + 5, 0);
914+ sal.line + (lines_to_list() / 2), 0);
914915 else
915916 print_source_lines (sal.symtab, sal.line,
916917 (dummy_end
@@ -1141,10 +1142,11 @@ DIR can also be $cwd for the current working directory, or $cdir for the\n\
11411142 directory in which the source file was compiled into object code.\n\
11421143 With no argument, reset the search path to $cdir:$cwd, the default.");
11431144
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\
11461147 $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);
11481150
11491151 add_info ("source", source_info,
11501152 "Information about the current source file.");