This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems building ecgs-19980803 on i386-nextstep

  In message <9808081316.AA03566@hobbes.dbag.ulm.DaimlerBenz.COM>you write:
  > Now let's see what's wrong:
  > ~/Library/nobackup/egcs-19980803/objdir/gcc> gdb ./gencheck
  > GDB is free software and you are welcome to distribute copies of it
  >  under certain conditions; type "show copying" to see the conditions.
  > There is absolutely no warranty for GDB; type "show warranty" for details.
  > GDB 4.7 (NeXT 3.1), Copyright 1992 Free Software Foundation, Inc...
  > Reading symbols from  
  > /Users/tschwarz/Library/nobackup/egcs-19980803/objdir/gcc/gencheck...done.
  > Reading symbols from /usr/shlib/libsys_s.B.shlib...done.
  > Breakpoint 1 at 0x505a693
  > Breakpoint 2 at 0x505a344
  > Function "fancy_abort" not defined.
  > (gdb) run
  > Starting program:  
  > /Users/tschwarz/Library/nobackup/egcs-19980803/objdir/gcc/gencheck
  > /* This file is generated using gencheck. Do not edit. */
  > Program generated(1): Memory access exception on address 0x6850900f  
  > (invalid address).
  > Reading in symbols for ../../gcc/gencheck.c...done.
  > 0x2983 in main (argc=?, argv=0xbffffc1c) at ../../gcc/gencheck.c:53
  > 53        for (i = 0; tree_codes[i]; i++)
  > (gdb) l
  > 48            usage ();
  > 49            exit (1);
  > 50          }
  > 51
  > 52        printf ("/* This file is generated using gencheck. Do not  
  > edit. */\n");
  > 53        for (i = 0; tree_codes[i]; i++)
  > 54          {
  > 55            printf ("#define %s_CHECK(t)\tTREE_CHECK (t, %s)\n",
  > 56                    tree_codes[i], tree_codes[i]);
  > 57            printf ("#define %s_CHECK1(t)\tTREE_CHECK1 (t, %s)\n",
  > (gdb) The program is running.  Quit anyway? (y or n) y
Can you dig into this further?  ie, debug it like you would any other
hunk of code?  There's nothing particularly tricky happening here.  The
code wants to walk down the array of tree_codes and do something on each

What is the value of "i"?  What is "tree_nodes[i]"?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]