This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

Re: GDB and threads (1/2)


MIME-Version: 1.0
Message-ID: <15088.14236.183030.719803@spanky.love.edu>
Date: Wed, 2 May 2001 11:36:44 -0500
X-Face: \h9Jg:Cuivl4S*UP-)gO.6O=T]]@ncM*tn4zG);)lk#4|lqEx=*talx?.<li^!8ecK]}3L-
	6`ZQW3}kxy*5]B<KA"&iBl58"/$W-0PP`B7c%'XczR)8T0VN47L`rQlu8qBIX4TJ|v'D%:k7GO%v4A
	Os>Gk,dMQU2)ptPC17cpBzm(l'M|H8BUF1&]dDCxZ.c~Wy6-j,^V1E(NtX$FpkkdnJixsJHE95JlhO
	5\M3jh'YiO7KPCn0~W`Ro44_TB@&JuuqRqgPL'0/{):7rU-%.*@/>q?1&Ed
Reply-To: alk@pobox.com
To: kevinb@cygnus.com
Cc: gdb@sources.redhat.com
Subject: Re: GDB and threads
X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid
User-Agent: SEMI/1.13.7 (Awazu) CLIME/1.13.6 (=?ISO-2022-JP?B?GyRCQ2YbKEI=?=
 =?ISO-2022-JP?B?GyRCJU4+MRsoQg==?=) MULE XEmacs/21.1 (patch 14) (Cuyahoga
 Valley) (i386-redhat-linux)
Content-Type: text/plain; charset=US-ASCII


--_YVmJRpp5VK2N8/oUQ4vmdXwqG2ZsnTa/pAJ6py0
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit


I'm using HEAD branch binutils from CVS at 
  CVSROOT=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/src
and used your example program to reproduce Jiva DeVoe's
problem.  I configure binutils as follows:
  ../binutils/configure --prefix=/usr/local/pkgs/gcc --enable-threads=pthreads --enable-gdbtk=no
I am running on RedHat 7.1:
  Linux spanky 2.4.2-ac17 #6 Sun Mar 11 00:10:33 CST 2001 i686 unknown

A build from CVS two weeks ago on RH7.0 with the same kernel did not
exhibit this problem.  Here is a transcript of the session
illustrating the problem as I observed it:


--_YVmJRpp5VK2N8/oUQ4vmdXwqG2ZsnTa/pAJ6py0
Content-Type: text/plain
Content-Description: gdb.log
Content-Disposition: inline;
	filename="gdb.log"
Content-Transfer-Encoding: 7bit

GNU gdb 5.0
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i686-pc-linux-gnu".../home/tony/.gdbinit:91: Error in sourced command file:
No symbol table is loaded.  Use the "file" command.

(gdb) run
run
Starting program: /usr/home/tony/w/tmp/a.out 

Program received signal SIG32, Real-time event 32.
0x40071965 in sigsuspend () from /lib/libc.so.6
(gdb) a
b
c
d
e
inf thr
inf thr
(gdb) where
where
#0  0x40071965 in sigsuspend () from /lib/libc.so.6
#1  0x40036b19 in pthread_setconcurrency () from /lib/libpthread.so.0
#2  0x40036bea in pthread_create () from /lib/libpthread.so.0
#3  0x08048630 in main () at threadsegv.c:27
#4  0x40060237 in __libc_start_main () from /lib/libc.so.6
(gdb) cont
cont
Continuing.

Program received signal SIG32, Real-time event 32.
0x40071965 in sigsuspend () from /lib/libc.so.6
(gdb) A
B
C
inf thr
inf thr
(gdb) where
where
#0  0x40071965 in sigsuspend () from /lib/libc.so.6
#1  0x40036b19 in pthread_setconcurrency () from /lib/libpthread.so.0
#2  0x40036bea in pthread_create () from /lib/libpthread.so.0
#3  0x08048647 in main () at threadsegv.c:28
#4  0x40060237 in __libc_start_main () from /lib/libc.so.6
(gdb) c
c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x40036d90 in pthread_create () from /lib/libpthread.so.0
(gdb) inf thr
inf thr
(gdb) cont
cont
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) 

--_YVmJRpp5VK2N8/oUQ4vmdXwqG2ZsnTa/pAJ6py0
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit


I attach the config.log and config.status in case these are of any use
to you:


--_YVmJRpp5VK2N8/oUQ4vmdXwqG2ZsnTa/pAJ6py0
Content-Type: text/plain
Content-Description: config.log
Content-Disposition: inline;
	filename="config.log"
Content-Transfer-Encoding: 7bit

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:578: checking whether to enable maintainer-specific portions of Makefiles
configure:604: checking for gcc
configure:717: checking whether the C compiler (gcc -g -O2 ) works
configure:733: gcc -o conftest -g -O2   conftest.c  1>&5
configure:759: checking whether the C compiler (gcc -g -O2 ) is a cross-compiler
configure:764: checking whether we are using GNU C
configure:792: checking whether gcc accepts -g
configure:824: checking how to run the C preprocessor
configure:904: checking for AIX
configure:928: checking for POSIXized ISC
configure:952: checking for gcc option to accept ANSI C
configure:1005: gcc  -c -g -O2  conftest.c 1>&5
configure:1076: checking host system type
configure:1097: checking target system type
configure:1115: checking build system type
configure:1140: checking whether make sets ${MAKE}
configure:1169: checking for ranlib
configure:1197: checking for ANSI C header files
configure:1301: checking for working const
configure:1376: checking for inline
configure:1416: checking for off_t
configure:1449: checking for size_t
configure:1484: checking for working alloca.h
configure:1517: checking for alloca
configure:1719: checking for unistd.h
configure:1758: checking for getpagesize
configure:1811: checking for working mmap
configure:1987: checking for argz.h
configure:1987: checking for limits.h
configure:1987: checking for locale.h
configure:1987: checking for nl_types.h
configure:1987: checking for malloc.h
configure:1987: checking for string.h
configure:1987: checking for unistd.h
configure:1987: checking for values.h
configure:1987: checking for sys/param.h
configure:2027: checking for getcwd
configure:2027: checking for munmap
configure:2027: checking for putenv
configure:2027: checking for setenv
configure:2027: checking for setlocale
configure:2027: checking for strchr
configure:2027: checking for strcasecmp
configure:2027: checking for __argz_count
configure:2027: checking for __argz_stringify
configure:2027: checking for __argz_next
configure:2146: checking for LC_MESSAGES
configure:2179: checking whether NLS is requested
configure:2199: checking whether included gettext is requested
configure:2218: checking for libintl.h
configure:2245: checking for gettext in libc
configure:2348: checking for msgfmt
configure:2382: checking for dcgettext
configure:2437: checking for gmsgfmt
configure:2473: checking for xgettext
configure:2513: gcc -o conftest -g -O2   conftest.c  1>&5
configure:2866: checking for mawk
configure:2866: checking for gawk
configure:2907: checking for a BSD compatible install
configure:2968: checking for ar
configure:3000: checking for ranlib
configure:3067: checking for dlltool
configure:3099: checking for windres
configure:3133: checking for bison
configure:3167: checking for mig
configure:3218: checking return type of signal handlers
configure:3260: checking for ANSI C header files
configure:3384: checking for ctype.h
configure:3384: checking for endian.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for nlist.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3390:19: nlist.h: No such file or directory
configure: failed program was:
#line 3389 "configure"
#include "confdefs.h"
#include <nlist.h>
configure:3384: checking for link.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for thread_db.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for proc_service.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3390:26: proc_service.h: No such file or directory
configure: failed program was:
#line 3389 "configure"
#include "confdefs.h"
#include <proc_service.h>
configure:3384: checking for memory.h
configure:3384: checking for objlist.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3390:21: objlist.h: No such file or directory
configure: failed program was:
#line 3389 "configure"
#include "confdefs.h"
#include <objlist.h>
configure:3384: checking for ptrace.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3390:20: ptrace.h: No such file or directory
configure: failed program was:
#line 3389 "configure"
#include "confdefs.h"
#include <ptrace.h>
configure:3384: checking for sgtty.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for stddef.h
configure:3384: checking for stdlib.h
configure:3384: checking for string.h
configure:3384: checking for sys/procfs.h
configure:3384: checking for sys/ptrace.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for sys/reg.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for stdint.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for term.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for termio.h
configure:3384: checking for termios.h
configure:3384: checking for unistd.h
configure:3384: checking for wait.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for sys/wait.h
configure:3384: checking for wchar.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for wctype.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for asm/debugreg.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for sys/debugreg.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for sys/select.h
configure:3384: checking for time.h
configure:3384: checking for sys/file.h
configure:3384: checking for sys/ioctl.h
configure:3384: checking for sys/user.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for sys/fault.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3390:23: sys/fault.h: No such file or directory
configure: failed program was:
#line 3389 "configure"
#include "confdefs.h"
#include <sys/fault.h>
configure:3384: checking for sys/syscall.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for dirent.h
configure:3384: checking for sys/ndir.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3390:22: sys/ndir.h: No such file or directory
configure: failed program was:
#line 3389 "configure"
#include "confdefs.h"
#include <sys/ndir.h>
configure:3384: checking for sys/dir.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for ndir.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3390:18: ndir.h: No such file or directory
configure: failed program was:
#line 3389 "configure"
#include "confdefs.h"
#include <ndir.h>
configure:3384: checking for curses.h
configure:3384: checking for ncurses.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for poll.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3384: checking for sys/poll.h
configure:3394: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3421: checking whether stat file-mode macros are broken
configure:3478: checking for working const
configure:3556: checking for setpgid
configure:3584: gcc -o conftest -g -O2   conftest.c  1>&5
configure:3556: checking for sbrk
configure:3556: checking for sigaction
configure:3584: gcc -o conftest -g -O2   conftest.c  1>&5
configure:3556: checking for isascii
configure:3584: gcc -o conftest -g -O2   conftest.c  1>&5
configure:3556: checking for bzero
configure:3556: checking for bcopy
configure:3556: checking for btowc
configure:3584: gcc -o conftest -g -O2   conftest.c  1>&5
configure:3556: checking for poll
configure:3584: gcc -o conftest -g -O2   conftest.c  1>&5
configure:3556: checking for sigprocmask
configure:3584: gcc -o conftest -g -O2   conftest.c  1>&5
configure:3609: checking for pid_t
configure:3643: checking for vfork.h
configure:3678: checking for working vfork
configure:3854: checking for working alloca.h
configure:3887: checking for alloca
configure:4089: checking for r_fs in struct reg
configure:4101: gcc -c -g -O2  conftest.c 1>&5
configure:4095:25: machine/reg.h: No such file or directory
configure: In function `main':
configure:4097: storage size of `r' isn't known
configure: failed program was:
#line 4094 "configure"
#include "confdefs.h"
#include <machine/reg.h>
int main() {
struct reg r; r.r_fs;
; return 0; }
configure:4121: checking for r_gs in struct reg
configure:4133: gcc -c -g -O2  conftest.c 1>&5
configure:4127:25: machine/reg.h: No such file or directory
configure: In function `main':
configure:4129: storage size of `r' isn't known
configure: failed program was:
#line 4126 "configure"
#include "confdefs.h"
#include <machine/reg.h>
int main() {
struct reg r; r.r_gs;
; return 0; }
configure:4155: checking for PTRACE_GETREGS
configure:4167: gcc -c -g -O2  conftest.c 1>&5
configure:4189: checking for PTRACE_GETFPXREGS
configure:4201: gcc -c -g -O2  conftest.c 1>&5
configure:4223: checking for PT_GETDBREGS
configure:4236: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:4232: `PT_GETDBREGS' undeclared (first use in this function)
configure:4232: (Each undeclared identifier is reported only once
configure:4232: for each function it appears in.)
configure: failed program was:
#line 4228 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/ptrace.h>
int main() {
PT_GETDBREGS;
; return 0; }
configure:4258: checking for socketpair in -lsocket
configure:4277: gcc -o conftest -g -O2   conftest.c -lsocket   1>&5
/usr/local/pkgs/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
configure: failed program was:
#line 4266 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char socketpair();

int main() {
socketpair()
; return 0; }
configure:4307: checking for socketpair
configure:4335: gcc -o conftest -g -O2   conftest.c  1>&5
configure:4362: checking whether malloc must be declared
configure:4409: checking whether realloc must be declared
configure:4456: checking whether free must be declared
configure:4503: checking whether strerror must be declared
configure:4529: gcc -c -g -O2  conftest.c 1>&5
configure:4550: checking whether strdup must be declared
configure:4576: gcc -c -g -O2  conftest.c 1>&5
configure:4597: checking whether strstr must be declared
configure:4650: checking for HPUX save_state structure
configure:4653:32: machine/save_state.h: No such file or directory
configure:4668:32: machine/save_state.h: No such file or directory
configure:4737: checking for pstatus_t in sys/procfs.h
configure:4773: checking for prrun_t in sys/procfs.h
configure:4787: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:4783: `prrun_t' undeclared (first use in this function)
configure:4783: (Each undeclared identifier is reported only once
configure:4783: for each function it appears in.)
configure:4783: parse error before "avar"
configure: failed program was:
#line 4778 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
prrun_t avar
; return 0; }
configure:4809: checking for gregset_t in sys/procfs.h
configure:4823: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:4819: `gregset_t' undeclared (first use in this function)
configure:4819: (Each undeclared identifier is reported only once
configure:4819: for each function it appears in.)
configure:4819: parse error before "avar"
configure: failed program was:
#line 4814 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
gregset_t avar
; return 0; }
configure:4845: checking for fpregset_t in sys/procfs.h
configure:4859: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:4855: `fpregset_t' undeclared (first use in this function)
configure:4855: (Each undeclared identifier is reported only once
configure:4855: for each function it appears in.)
configure:4855: parse error before "avar"
configure: failed program was:
#line 4850 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
fpregset_t avar
; return 0; }
configure:4881: checking for prgregset_t in sys/procfs.h
configure:4895: gcc -c -g -O2  conftest.c 1>&5
configure:4917: checking for prfpregset_t in sys/procfs.h
configure:4931: gcc -c -g -O2  conftest.c 1>&5
configure:4953: checking for prgregset32_t in sys/procfs.h
configure:4967: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:4963: `prgregset32_t' undeclared (first use in this function)
configure:4963: (Each undeclared identifier is reported only once
configure:4963: for each function it appears in.)
configure:4963: parse error before "avar"
configure: failed program was:
#line 4958 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
prgregset32_t avar
; return 0; }
configure:4989: checking for prfpregset32_t in sys/procfs.h
configure:5003: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:4999: `prfpregset32_t' undeclared (first use in this function)
configure:4999: (Each undeclared identifier is reported only once
configure:4999: for each function it appears in.)
configure:4999: parse error before "avar"
configure: failed program was:
#line 4994 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
prfpregset32_t avar
; return 0; }
configure:5025: checking for lwpid_t in sys/procfs.h
configure:5039: gcc -c -g -O2  conftest.c 1>&5
configure:5061: checking for psaddr_t in sys/procfs.h
configure:5075: gcc -c -g -O2  conftest.c 1>&5
configure:5097: checking for prsysent_t in sys/procfs.h
configure:5111: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:5107: `prsysent_t' undeclared (first use in this function)
configure:5107: (Each undeclared identifier is reported only once
configure:5107: for each function it appears in.)
configure:5107: parse error before "avar"
configure: failed program was:
#line 5102 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
prsysent_t avar
; return 0; }
configure:5133: checking for pr_sigset_t in sys/procfs.h
configure:5147: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:5143: `pr_sigset_t' undeclared (first use in this function)
configure:5143: (Each undeclared identifier is reported only once
configure:5143: for each function it appears in.)
configure:5143: parse error before "avar"
configure: failed program was:
#line 5138 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
pr_sigset_t avar
; return 0; }
configure:5169: checking for pr_sigaction64_t in sys/procfs.h
configure:5183: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:5179: `pr_sigaction64_t' undeclared (first use in this function)
configure:5179: (Each undeclared identifier is reported only once
configure:5179: for each function it appears in.)
configure:5179: parse error before "avar"
configure: failed program was:
#line 5174 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
pr_sigaction64_t avar
; return 0; }
configure:5205: checking for pr_siginfo64_t in sys/procfs.h
configure:5219: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:5215: `pr_siginfo64_t' undeclared (first use in this function)
configure:5215: (Each undeclared identifier is reported only once
configure:5215: for each function it appears in.)
configure:5215: parse error before "avar"
configure: failed program was:
#line 5210 "configure"
#include "confdefs.h"

#define _SYSCALL32
#include <sys/procfs.h>
int main() {
pr_siginfo64_t avar
; return 0; }
configure:5246: checking whether prfpregset_t type is broken
configure:5264: gcc -o conftest -g -O2   conftest.c  1>&5
configure:5289: checking for PIOCSET ioctl entry in sys/procfs.h
configure:5307: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:5302: `PIOCSET' undeclared (first use in this function)
configure:5302: (Each undeclared identifier is reported only once
configure:5302: for each function it appears in.)
configure: failed program was:
#line 5294 "configure"
#include "confdefs.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/procfs.h>

int main() {

    int dummy;;
    dummy = ioctl(0, PIOCSET, &dummy);
  
; return 0; }
configure:5331: checking for member l_addr in struct link_map
configure:5343: gcc -c -g -O2  conftest.c 1>&5
configure:5365: checking for member lm_addr in struct link_map
configure:5378: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:5374: structure has no member named `lm_addr'
configure: failed program was:
#line 5370 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <link.h>
int main() {
struct link_map lm; (void) lm.lm_addr;
; return 0; }
configure:5400: checking for member som_addr in struct so_map
configure:5413: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:5409: storage size of `lm' isn't known
configure: failed program was:
#line 5405 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <link.h>
int main() {
struct so_map lm; (void) lm.som_addr;
; return 0; }
configure:5435: checking for struct link_map32 in sys/link.h
configure:5448: gcc -c -g -O2  conftest.c 1>&5
configure:5442:22: sys/link.h: No such file or directory
configure: In function `main':
configure:5444: storage size of `l' isn't known
configure: failed program was:
#line 5440 "configure"
#include "confdefs.h"
#define _SYSCALL32
#include <sys/link.h>
int main() {
struct link_map32 l;
; return 0; }
configure:5470: checking for main in -lm
configure:5514: checking for wctype in -lc
configure:5533: gcc -o conftest -g -O2   conftest.c -lc  -lm  1>&5
configure:5603: checking for long long support in compiler
configure:5618: gcc -c -g -O2  conftest.c 1>&5
configure:5640: checking for long long support in printf
configure:5662: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:5686: checking for long double support in compiler
configure:5698: gcc -c -g -O2  conftest.c 1>&5
configure:5720: checking for long double support in printf
configure:5738: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:5762: checking for long double support in scanf
configure:5780: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:5806: checking for unistd.h
configure:5845: checking for getpagesize
configure:5898: checking for working mmap
configure:6418: checking compiler warning flags
configure:6527: checking for cygwin
configure:6570: checking for tgetent in -lncurses
configure:6589: gcc -o conftest -g -O2   conftest.c -lncurses  -lm  1>&5
configure:7847: checking for X
configure:8330: checking whether ln -s works
configure:8354: checking for Cygwin environment
configure:8387: checking for mingw32 environment
configure:8418: checking for executable suffix

--_YVmJRpp5VK2N8/oUQ4vmdXwqG2ZsnTa/pAJ6py0
Content-Type: text/plain
Content-Description: config.status
Content-Disposition: inline;
	filename="config.status"
Content-Transfer-Encoding: 7bit

#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host spanky:
#
# ../../binutils/gdb/configure  --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --prefix=/usr/local/pkgs/gcc --srcdir=../../binutils/gdb --with-gnu-as --with-gnu-ld --enable-threads=posix --enable-gdbtk=no --cache-file=../config.cache
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
for ac_option
do
  case "$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running ${CONFIG_SHELL-/bin/sh} ../../binutils/gdb/configure  --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --prefix=/usr/local/pkgs/gcc --srcdir=../../binutils/gdb --with-gnu-as --with-gnu-ld --enable-threads=posix --enable-gdbtk=no --cache-file=../config.cache --no-create --no-recursion"
    exec ${CONFIG_SHELL-/bin/sh} ../../binutils/gdb/configure  --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --prefix=/usr/local/pkgs/gcc --srcdir=../../binutils/gdb --with-gnu-as --with-gnu-ld --enable-threads=posix --enable-gdbtk=no --cache-file=../config.cache --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "./config.status generated by autoconf version 2.13"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "$ac_cs_usage"; exit 0 ;;
  *) echo "$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=../../binutils/gdb
ac_given_INSTALL="/usr/bin/install -c"

trap 'rm -fr Makefile .gdbinit config.h conftest*; exit 1' 1 2 15

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF


s%@SHELL@%/bin/sh%g
s%@CFLAGS@%-g -O2%g
s%@CPPFLAGS@%%g
s%@CXXFLAGS@%-g -O2%g
s%@FFLAGS@%%g
s%@DEFS@%-DHAVE_CONFIG_H%g
s%@LDFLAGS@%%g
s%@LIBS@%-lm %g
s%@exec_prefix@%${prefix}%g
s%@prefix@%/usr/local/pkgs/gcc%g
s%@program_transform_name@%s,x,x,%g
s%@bindir@%${exec_prefix}/bin%g
s%@sbindir@%${exec_prefix}/sbin%g
s%@libexecdir@%${exec_prefix}/libexec%g
s%@datadir@%${prefix}/share%g
s%@sysconfdir@%${prefix}/etc%g
s%@sharedstatedir@%${prefix}/com%g
s%@localstatedir@%${prefix}/var%g
s%@libdir@%${exec_prefix}/lib%g
s%@includedir@%${prefix}/include%g
s%@oldincludedir@%/usr/include%g
s%@infodir@%${prefix}/info%g
s%@mandir@%${prefix}/man%g
s%@MAINTAINER_MODE_TRUE@%#%g
s%@MAINTAINER_MODE_FALSE@%%g
s%@MAINT@%#%g
s%@CC@%gcc%g
s%@CPP@%gcc -E%g
s%@host@%i686-pc-linux-gnu%g
s%@host_alias@%i686-pc-linux-gnu%g
s%@host_cpu@%i686%g
s%@host_vendor@%pc%g
s%@host_os@%linux-gnu%g
s%@target@%i686-pc-linux-gnu%g
s%@target_alias@%i686-pc-linux-gnu%g
s%@target_cpu@%i686%g
s%@target_vendor@%pc%g
s%@target_os@%linux-gnu%g
s%@build@%i686-pc-linux-gnu%g
s%@build_alias@%i686-pc-linux-gnu%g
s%@build_cpu@%i686%g
s%@build_vendor@%pc%g
s%@build_os@%linux-gnu%g
s%@SET_MAKE@%%g
s%@RANLIB@%ranlib%g
s%@ALLOCA@%%g
s%@USE_NLS@%yes%g
s%@MSGFMT@%/usr/bin/msgfmt%g
s%@GMSGFMT@%/usr/bin/msgfmt%g
s%@XGETTEXT@%/usr/bin/xgettext%g
s%@USE_INCLUDED_LIBINTL@%no%g
s%@CATALOGS@%%g
s%@CATOBJEXT@%.gmo%g
s%@DATADIRNAME@%share%g
s%@GMOFILES@%%g
s%@INSTOBJEXT@%.mo%g
s%@INTLDEPS@%%g
s%@INTLLIBS@%%g
s%@INTLOBJS@%%g
s%@POFILES@%%g
s%@POSUB@%po%g
s%@INCLUDE_LOCALE_H@%#include <locale.h>%g
s%@GT_NO@%%g
s%@GT_YES@%#YES#%g
s%@MKINSTALLDIRS@%$(srcdir)/../../mkinstalldirs%g
s%@l@%%g
s%@AWK@%gawk%g
s%@INSTALL_PROGRAM@%${INSTALL}%g
s%@INSTALL_SCRIPT@%${INSTALL_PROGRAM}%g
s%@INSTALL_DATA@%${INSTALL} -m 644%g
s%@AR@%ar%g
s%@DLLTOOL@%dlltool%g
s%@WINDRES@%windres%g
s%@YACC@%bison -y%g
s%@MIG@%mig%g
s%@CONFIG_LDFLAGS@%%g
s%@UIOUT_CFLAGS@%-DUI_OUT=1%g
s%@WARN_CFLAGS@% -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized%g
s%@WERROR_CFLAGS@%%g
s%@MMALLOC_CFLAGS@%%g
s%@MMALLOC@%%g
s%@REGEX@%gnu-regex.o%g
s%@SER_HARDWIRE@%ser-unix.o ser-pipe.o ser-tcp.o%g
s%@TERM_LIB@%-lncurses%g
s%@WIN32LIBS@%%g
s%@LIBGUI@%../libgui/src/libgui.a%g
s%@GUI_CFLAGS_X@%-I../../binutils/gdb/../libgui/src%g
s%@WIN32LDAPP@%%g
s%@TCL_VERSION@%%g
s%@TCL_MAJOR_VERSION@%%g
s%@TCL_MINOR_VERSION@%%g
s%@TCL_CC@%%g
s%@TCL_DEFS@%%g
s%@TCL_SHLIB_CFLAGS@%%g
s%@TCL_SHLIB_LD@%%g
s%@TCL_SHLIB_LD_LIBS@%%g
s%@TCL_SHLIB_SUFFIX@%%g
s%@TCL_DL_LIBS@%%g
s%@TCL_LD_FLAGS@%%g
s%@TCL_LD_SEARCH_FLAGS@%%g
s%@TCL_COMPAT_OBJS@%%g
s%@TCL_RANLIB@%%g
s%@TCL_BUILD_LIB_SPEC@%%g
s%@TCL_LIB_SPEC@%%g
s%@TCL_LIB_VERSIONS_OK@%%g
s%@TK_VERSION@%%g
s%@TK_DEFS@%%g
s%@TK_BUILD_INCLUDES@%%g
s%@TK_XINCLUDES@%%g
s%@TK_XLIBSW@%%g
s%@TK_BUILD_LIB_SPEC@%%g
s%@TK_LIB_SPEC@%%g
s%@TCLHDIR@%%g
s%@TKHDIR@%%g
s%@ITCLHDIR@%%g
s%@ITKHDIR@%%g
s%@TIXHDIR@%%g
s%@ITCL_VERSION@%%g
s%@ITCL_DEFS@%%g
s%@ITCL_BUILD_INCLUDES@%%g
s%@ITCL_BUILD_LIB_SPEC@%%g
s%@ITCL_LIB_SPEC@%%g
s%@ITK_VERSION@%%g
s%@ITK_DEFS@%%g
s%@ITK_BUILD_INCLUDES@%%g
s%@ITK_BUILD_LIB_SPEC@%%g
s%@ITK_LIB_SPEC@%%g
s%@TIX_VERSION@%%g
s%@TIX_BUILD_LIB_SPEC@%%g
s%@X_CFLAGS@%%g
s%@X_LDFLAGS@%%g
s%@X_LIBS@%%g
s%@ITCLLIB@%%g
s%@ITCL_DEPS@%%g
s%@ITKLIB@%%g
s%@ITK_DEPS@%%g
s%@TIXLIB@%%g
s%@TIX_DEPS@%%g
s%@GDBTKLIBS@%%g
s%@GDBTK_CFLAGS@%%g
s%@IGNORE_SIM@%%g
s%@IGNORE_SIM_OBS@%%g
s%@ENABLE_CFLAGS@% $(SUBDIR_CLI_CFLAGS)%g
s%@CONFIG_OBS@% $(SUBDIR_CLI_OBS)%g
s%@CONFIG_LIB_OBS@%%g
s%@CONFIG_DEPS@% $(SUBDIR_CLI_DEPS)%g
s%@CONFIG_SRCS@% $(SUBDIR_CLI_SRCS)%g
s%@CONFIG_INITS@% $(SUBDIR_CLI_INITS)%g
s%@CONFIG_ALL@% $(SUBDIR_CLI_ALL)%g
s%@CONFIG_CLEAN@% $(SUBDIR_CLI_CLEAN)%g
s%@CONFIG_INSTALL@% $(SUBDIR_CLI_INSTALL)%g
s%@CONFIG_UNINSTALL@% $(SUBDIR_CLI_UNINSTALL)%g
s%@HLDFLAGS@%%g
s%@HLDENV@%%g
s%@target_subdir@%%g
/@host_makefile_frag@/r ../../binutils/gdb/config/i386/linux.mh
s%@host_makefile_frag@%%g
/@target_makefile_frag@/r ../../binutils/gdb/config/i386/linux.mt
s%@target_makefile_frag@%%g
s%@frags@% ../../binutils/gdb/config/i386/linux.mh ../../binutils/gdb/config/i386/linux.mt%g
s%@SUBDIRS@%doc testsuite nlm%g
s%@xm_h@%xm.h%g
s%@tm_h@%tm.h%g
s%@nm_h@%nm.h%g
s%@LN_S@%ln -s%g
s%@EXEEXT@%%g
s%@subdirs@%doc testsuite gdbserver%g

CEOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi

CONFIG_FILES=${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac

  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

if test "${CONFIG_HEADERS+set}" != set; then
  CONFIG_HEADERS="config.h:config.in"
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
${ac_eA}STDC_HEADERS${ac_eB}STDC_HEADERS${ac_eC}1${ac_eD}
${ac_dA}HAVE_ALLOCA_H${ac_dB}HAVE_ALLOCA_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_ALLOCA_H${ac_uB}HAVE_ALLOCA_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_ALLOCA_H${ac_eB}HAVE_ALLOCA_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_ALLOCA${ac_dB}HAVE_ALLOCA${ac_dC}1${ac_dD}
${ac_uA}HAVE_ALLOCA${ac_uB}HAVE_ALLOCA${ac_uC}1${ac_uD}
${ac_eA}HAVE_ALLOCA${ac_eB}HAVE_ALLOCA${ac_eC}1${ac_eD}
${ac_dA}HAVE_UNISTD_H${ac_dB}HAVE_UNISTD_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_UNISTD_H${ac_uB}HAVE_UNISTD_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_UNISTD_H${ac_eB}HAVE_UNISTD_H${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_GETPAGESIZE${ac_dB}HAVE_GETPAGESIZE${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETPAGESIZE${ac_uB}HAVE_GETPAGESIZE${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETPAGESIZE${ac_eB}HAVE_GETPAGESIZE${ac_eC}1${ac_eD}
${ac_dA}HAVE_MMAP${ac_dB}HAVE_MMAP${ac_dC}1${ac_dD}
${ac_uA}HAVE_MMAP${ac_uB}HAVE_MMAP${ac_uC}1${ac_uD}
${ac_eA}HAVE_MMAP${ac_eB}HAVE_MMAP${ac_eC}1${ac_eD}
${ac_dA}HAVE_ARGZ_H${ac_dB}HAVE_ARGZ_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_ARGZ_H${ac_uB}HAVE_ARGZ_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_ARGZ_H${ac_eB}HAVE_ARGZ_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_LIMITS_H${ac_dB}HAVE_LIMITS_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_LIMITS_H${ac_uB}HAVE_LIMITS_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_LIMITS_H${ac_eB}HAVE_LIMITS_H${ac_eC}1${ac_eD}
CEOF


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