This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [New WinCE support] [patch 4/4] The bulk of the code.
I get an error when I try to compile
gdbserver on cygwin.
gcc -Wall -g -O2 -I. -I../../../src/gdb/gdbserver
-I../../../src/gdb/gdbserve
r/../regformats -I../../../src/gdb/gdbserver/../../include -I../../bfd
-I../../.
./src/gdb/gdbserver/../../bfd -o gdbserver.exe inferiors.o regcache.o
remote-u
tils.o server.o signals.o target.o utils.o version.o mem-break.o reg-i386.o
win
32-low.o win32-i386-low.o \
win32-i386-low.o: In function `do_fetch_inferior_registers':
/usr/local/src/cvs/build/gdb/gdbserver/../../../src/gdb/gdbserver/win32-i386
-low
.c:63: undefined reference to `_regptr'
collect2: ld returned 1 exit status
make[3]: *** [gdbserver.exe] Error 1
It seems like you forgot to
commit some change in win32-low.c
because
at /usr/local/src/cvs/src/gdb/gdbserver
$ grep regptr *
ChangeLog: (regptr): New.
ChangeLog: (do_child_store_inferior_registers): Use regptr.
win32-arm-low.c: char *context_offset = regptr (&th->context, r);
win32-i386-low.c: char *context_offset = regptr (&th->context, r);
win32-i386-low.c: register in it's CONTEXT structure. In this case regptr
wil
l return
win32-low.h: register in it's CONTEXT structure. In this case regptr
will r
eturn
win32-low.h:extern char * regptr (CONTEXT* c, int r);
So I suppose that you have a local modification of win32-low.c
that implements regptr function,
unless I am missing something else.
Could you please try to fix that problem?
Thanks in advance,
Pierre Muller
Chargé de recherches
Institut Charles Sadron
6, rue Boussingault
F 67083 Strasbourg Cedex
Tél.?: +(33)3-88-41-40-07