From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27175 invoked by alias); 9 Jan 2002 18:50:40 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27123 invoked from network); 9 Jan 2002 18:50:30 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 9 Jan 2002 18:50:30 -0000 Received: from redhat.com (reddwarf.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id KAA03538; Wed, 9 Jan 2002 10:50:22 -0800 (PST) Message-ID: <3C3C8FBE.9E37DA26@redhat.com> Date: Wed, 09 Jan 2002 10:50:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Pierre Muller CC: Michael Snyder , gdb-patches@sources.redhat.com Subject: Re: [PATCH] Add command 'generate-core-file' References: <4.2.0.58.20020109100614.01ac2088@ics.u-strasbg.fr> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by cygnus.com id KAA03538 X-SW-Source: 2002-01/txt/msg00186.txt.bz2 Pierre Muller wrote: >=20 > At 01:36 09/01/2002 , vous avez =E9crit: > >OK, after moving the gcore functionality from linux-gcore.c to > >linux-proc.c, I'm going to commit this. Here is the patch as > >committed. Hopefully I haven't left anything out. >=20 > Michael, your patch causes win32-nat compilation failure: >=20 > muller@LAOCOON ~/gdb/build/gdb > $ make > rm -f gdb.exe > gcc -g -O2 -o gdb.exe \ > main.o libgdb.a cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-ut= ils.o m > i-out.o mi-console.o mi-cmds.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o= mi-cmd > -disas.o mi-main.o mi-parse.o mi-getopt.o ../bfd/libbfd.a ../readline/= libread > line.a ../opcodes/libopcodes.a ./../intl/libintl.a ../libiberty/libiberty= .a `if > test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a;= else e > cho -ltermcap; fi` -lm ../libiberty/libiberty.a -luser32 -limagehlp\ >=20 > libgdb.a(exec.o): In function `exec_make_note_section': > /home/muller/gdb/build/gdb/../../src/gdb/exec.c:792: undefined reference = to `elf > core_write_prpsinfo' > collect2: ld returned 1 exit status > make: *** [gdb.exe] Error 1 >=20 > This comes from the fact that elfcore_write_prpsinfo is not compiled > #if defined (HAVE_PRPSINFO_T) || defined (HAVE_PSINFO_T) > char * > elfcore_write_prpsinfo (abfd, buf, bufsiz, fname, psargs) >=20 > So something needs to be done .... Oops -- sorry. That bit was looking forward to a future plan for=20 making corefiles for things like remote targets and simulators. I've stripped it out now.