OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gdb-6.8/] [pre-binutils-2.20.1-sync/] [gdb/] [main.c] - Diff between revs 24 and 131

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 24 Rev 131
Line 111... Line 111...
     loop. */
     loop. */
  quit_command (NULL, instream == stdin);
  quit_command (NULL, instream == stdin);
  return 1;
  return 1;
}
}
 
 
 
/* JPB: Some picky Ubuntu GCC compilers don't like the result of getcwd being
 
   ignored (even if you cast it to void). So capture the value and ignore
 
   THAT. */
static int
static int
captured_main (void *data)
captured_main (void *data)
{
{
 
  char *res;                    /* For getcwd result */
 
 
  struct captured_main_args *context = data;
  struct captured_main_args *context = data;
  int argc = context->argc;
  int argc = context->argc;
  char **argv = context->argv;
  char **argv = context->argv;
  static int quiet = 0;
  static int quiet = 0;
  static int batch = 0;
  static int batch = 0;
Line 186... Line 191...
  quit_flag = 0;
  quit_flag = 0;
  line = (char *) xmalloc (linesize);
  line = (char *) xmalloc (linesize);
  line[0] = '\0';                /* Terminate saved (now empty) cmd line */
  line[0] = '\0';                /* Terminate saved (now empty) cmd line */
  instream = stdin;
  instream = stdin;
 
 
  getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
  res = getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));       /* JPB */
  current_directory = gdb_dirbuf;
  current_directory = gdb_dirbuf;
 
 
  gdb_stdout = stdio_fileopen (stdout);
  gdb_stdout = stdio_fileopen (stdout);
  gdb_stderr = stdio_fileopen (stderr);
  gdb_stderr = stdio_fileopen (stderr);
  gdb_stdlog = gdb_stderr;      /* for moment */
  gdb_stdlog = gdb_stderr;      /* for moment */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.