This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Add command 'generate-core-file'
- From: Michael Snyder <msnyder at redhat dot com>
- To: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- Cc: Michael Snyder <msnyder at cygnus dot com>, gdb-patches at sources dot redhat dot com
- Date: Wed, 09 Jan 2002 10:45:18 -0800
- Subject: Re: [PATCH] Add command 'generate-core-file'
- Organization: Red Hat, Inc.
- References: <4.2.0.58.20020109100614.01ac2088@ics.u-strasbg.fr>
Pierre Muller wrote:
>
> At 01:36 09/01/2002 , vous avez écrit:
> >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.
>
> Michael, your patch causes win32-nat compilation failure:
>
> 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-utils.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\
>
> 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
>
> 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)
>
> So something needs to be done ....
Oops -- sorry. That bit was looking forward to a future plan for
making corefiles for things like remote targets and simulators.
I've stripped it out now.