+Wed Jun 22 16:54:15 1994 Fred Fish (fnf@cygnus.com)
+
+ * 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.
+
Wed Jun 22 14:40:52 1994 Kung Hsu (kung@mexican.cygnus.com)
* symtab.c (decode_line_1): fix a bug in dealing with '<>'
\f
***************
*** 1920,1929 ****
- getcwd (dirbuf, sizeof (dirbuf));
+ getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
- if (strcmp (dirbuf, current_directory))
+ if (strcmp (gdb_dirbuf, current_directory))
! printf ("Working directory %s\n (canonically %s).\n",
- current_directory, dirbuf);
+ current_directory, gdb_dirbuf);
else
! printf ("Working directory %s.\n", current_directory);
}
static void
--- 1931,1940 ----
- getcwd (dirbuf, sizeof (dirbuf));
+ getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
- if (strcmp (dirbuf, current_directory))
+ if (strcmp (gdb_dirbuf, current_directory))
! printf_filtered ("Working directory %s\n (canonically %s).\n",
- current_directory, dirbuf);
+ current_directory, gdb_dirbuf);
else
! printf_filtered ("Working directory %s.\n", current_directory);
}
line[0] = '\0'; /* Terminate saved (now empty) cmd line */
instream = stdin;
- getcwd (dirbuf, sizeof (dirbuf));
- current_directory = dirbuf;
+ getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
+ current_directory = gdb_dirbuf;
/* Parse arguments and options. */
{
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,
{
/* 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 ();
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);
}
extern char *line;
extern int linesize;
extern FILE *instream;
-extern char dirbuf[1024];
+extern char gdb_dirbuf[1024];
extern int inhibit_gdbinit;
extern int epoch_interface;
extern char gdbinit[];