diff options
author | Fred Fish <fnf@specifix.com> | 1994-06-23 00:08:09 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1994-06-23 00:08:09 +0000 |
commit | b7ec5b8da56966c85857d052f713fde753f1d1dc (patch) | |
tree | 990a461dfb1a181fb9896fc7fc3d428c3226fc33 /gdb/top.c | |
parent | 3bf36e67e2528f0cb0ba9f9911ab362e20e1e23f (diff) | |
download | gdb-b7ec5b8da56966c85857d052f713fde753f1d1dc.zip gdb-b7ec5b8da56966c85857d052f713fde753f1d1dc.tar.gz gdb-b7ec5b8da56966c85857d052f713fde753f1d1dc.tar.bz2 |
* energize-patches, main.c (main), top.c (gdb_init, pwd_command),
top.h: Change all occurances of dirbuf to gdb_dirbuf. Collides
with global variable of same name in libnsl.so on UnixWare.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -253,7 +253,7 @@ FILE *instream; char *current_directory; /* The directory name is actually stored here (usually). */ -char dirbuf[1024]; +char gdb_dirbuf[1024]; /* Function to call before reading a command, if nonzero. The function receives two args: an input stream, @@ -484,8 +484,8 @@ gdb_init () { /* Run the init function of each source file */ - getcwd (dirbuf, sizeof (dirbuf)); - current_directory = dirbuf; + getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)); + current_directory = gdb_dirbuf; init_cmd_lists (); /* This needs to be done first */ initialize_all_files (); @@ -1878,11 +1878,11 @@ pwd_command (args, from_tty) int from_tty; { if (args) error ("The \"pwd\" command does not take an argument: %s", args); - getcwd (dirbuf, sizeof (dirbuf)); + getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)); - if (!STREQ (dirbuf, current_directory)) + if (!STREQ (gdb_dirbuf, current_directory)) printf_unfiltered ("Working directory %s\n (canonically %s).\n", - current_directory, dirbuf); + current_directory, gdb_dirbuf); else printf_unfiltered ("Working directory %s.\n", current_directory); } |