This is the mail archive of the gdb-patches@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]
Other format: [Raw text]

Re: [PATCH] Add command 'generate-core-file'


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 ....



Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99


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