This is the mail archive of the gdb-testers@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

Re: New GDB snapshot available


>>>>> Jim Blandy writes:

 > In preparation for the release of GDB 4.18, there is a new GDB
 > snapshot available, 4.17.85.  Please give it a try on your system, and
 > then send me a message describing any serious problems you found.
 > Even if it performs flawlessly, drop me a line anyway to tell me what
 > kind of system you tried it on.

On Linux 2.2.2 with glibc 2.1, egcs 1.1.1 I configured with:

./configure --prefix=/usr --enable-tui --disable-nls  --with-x
and got the following error:

/opt/egcs/bin/gcc -c -g -O2    -I. -I.. -I. -I./.. -I./../config -DHAVE_CONFIG_H -I./../../readline -I../../bfd -I./../../bfd  -I./../../include -I../../intl -I./../../intl  tui.c
tui.c: In function `_tuiReset':
tui.c:801: structure has no member named `sg_flags'
tui.c:805: `RAW' undeclared (first use in this function)
tui.c:805: (Each undeclared identifier is reported only once
tui.c:805: for each function it appears in.)
tui.c:805: `VTDELAY' undeclared (first use in this function)
tui.c:805: `ALLDELAY' undeclared (first use in this function)
tui.c:806: structure has no member named `sg_flags'
tui.c:806: `CRMOD' undeclared (first use in this function)
tui.c:806: `ANYP' undeclared (first use in this function)

struct termio is defined on my system as:
struct termio
  {
    unsigned short int c_iflag;         /* input mode flags */
    unsigned short int c_oflag;         /* output mode flags */
    unsigned short int c_cflag;         /* control mode flags */
    unsigned short int c_lflag;         /* local mode flags */
    unsigned char c_line;               /* line discipline */
    unsigned char c_cc[NCC];            /* control characters */
};

Looking at the code it seem that the wrong path is compiled.  Since
USG is not defined the #ifndef USG is executed.  After manually
defining USG in this file, it compiled.

The next error was:
tuiLayout.c: In function `_extractDisplayStartAddr':
tuiLayout.c:639: too few arguments to function `find_line_pc'
make[2]: *** [tuiLayout.o] Error 1

find_line_pc is defined to take three arguments in gdb/symtab.h:
find_line_pc PARAMS ((struct symtab *, int, CORE_ADDR *));

But is called with only two at the following places:
gdb/tui/tuiLayout.c:      addr = (Opaque) find_line_pc (
gdb/tui/tuiSourceWin.c:      tuiUpdateSourceWindowsWithAddr ((Opaque) find_line_pc (s, line));
gdb/tui/tuiSourceWin.c: tuiShowDisassem ((Opaque) find_line_pc (s, line));
gdb/tui/tuiWin.c:           line = (Opaque) find_line_pc (s, current_source_line);

It looks like tui is broken in general for now, I'm recompiling now
without tui support.

Btw. has --with-x any effects (a grep didn't reveal anything) or
should it get removed?

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de