* Cannot build GDB for arm-elf targets under cygwin...
@ 2001-06-20 11:17 João Cadamuro Junior
2001-06-20 21:07 ` Cliff Tsai
2001-06-21 0:56 ` Fernando Nasser
0 siblings, 2 replies; 5+ messages in thread
From: João Cadamuro Junior @ 2001-06-20 11:17 UTC (permalink / raw)
To: gdb
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3668 bytes --]
Hello,
I'm trying to build insight and gdb for arm-elf targets from weekly
snapshots under cygwin-1.3.2, and it is impossible over the last one
month.
Host system: PC 'running' Windows 2000 (SP2) and with the lastest cygwin
release (cygwin-1.3.2, with gcc-2.95.3-5) installed.
The file .../insight+dejagnu-200106XX/gdb/remote-rdi.c doesn't compile.
The first error found was...
gcc -mwin32 -c -g -I. -I/src/gdb/insight+dejagnu-20010619/gdb
-I/src/gdb/insight+dejagnu-20010619/gdb/config -DHAVE_CONFIG_H
-I/src/gdb/insight+dejagnu-20010619/gdb/../include/opcode
-I/src/gdb/insight+dejagnu-20010619/gdb/../readline/.. -I../bfd
-I/src/gdb/insight+dejagnu-20010619/gdb/../bfd
-I/src/gdb/insight+dejagnu-20010619/gdb/../include -I../intl
-I/src/gdb/insight+dejagnu-20010619/gdb/../intl -DGDBTK -DUI_OUT=1
-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
-Wpointer-arith -Wuninitialized
/src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c
In file included from
/src/gdb/insight+dejagnu-20010619/gdb/rdi-share/ardi.h:17,
from
/src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:44:
/src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:167: warning:
`FOPEN_WB' redefined
/src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:16:
warning: this is the location of the previous definition
/src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:168: warning:
`FOPEN_RB' redefined
/src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:15:
warning: this is the location of the previous definition
/src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:183: parse error
make[1]: *** [remote-rdi.o] Error 1
This error is an obvious lack of parenthesis in the line 183 of the
host.h file...
But, even correcting the error, I get the following...
gcc -mwin32 -c -g -I. -I/src/gdb/insight+dejagnu-20010619/gdb
-I/src/gdb/insight+dejagnu-20010619/gdb/config -DHAVE_CONFIG_H
-I/src/gdb/insight+dejagnu-20010619/gdb/../include/opcode
-I/src/gdb/insight+dejagnu-20010619/gdb/../readline/.. -I../bfd
-I/src/gdb/insight+dejagnu-20010619/gdb/../bfd
-I/src/gdb/insight+dejagnu-20010619/gdb/../include -I../intl
-I/src/gdb/insight+dejagnu-20010619/gdb/../intl -DGDBTK -DUI_OUT=1
-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
-Wpointer-arith -Wuninitialized
/src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c
In file included from
/src/gdb/insight+dejagnu-20010619/gdb/rdi-share/ardi.h:17,
from
/src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:44:
/src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:167: warning:
`FOPEN_WB' redefined
/src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:16:
warning: this is the location of the previous definition
/src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:168: warning:
`FOPEN_RB' redefined
/src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:15:
warning: this is the location of the previous definition
cc1.exe: warning: -Wuninitialized is not supported without -O
/src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:518: conflicting
types for `arm_rdi_wait'
/src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:80: previous
declaration of `arm_rdi_wait'
make[1]: *** [remote-rdi.o] Error 1
This error came because the prototype (line 80) and the implementation
(line 518) of the funcion 'arm_rdi_wait' in the "remote-rdi.c" file are
different.
In this point, before trying to modify the source code again, I decide
to ask to GDB list what is the most wise choice for my arm-elf debugger
(even because I'll need the RDI target!). Any sugestions???
Thanks in advance,
João Cadamuro Junior
LIT / CPDTT / CEFET-PR
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Cannot build GDB for arm-elf targets under cygwin... 2001-06-20 11:17 Cannot build GDB for arm-elf targets under cygwin João Cadamuro Junior @ 2001-06-20 21:07 ` Cliff Tsai 2001-06-21 0:56 ` Fernando Nasser 1 sibling, 0 replies; 5+ messages in thread From: Cliff Tsai @ 2001-06-20 21:07 UTC (permalink / raw) To: João Cadamuro Junior, gdb [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 4125 bytes --] Try snapshot. I use insight+dejagnu-20010425!No Problem at all! ----- Original Message ----- From: "João Cadamuro Junior" <cadamuro@lit.cpdtt.cefetpr.br> To: "gdb" <gdb@sources.redhat.com> Sent: Thursday, June 21, 2001 2:16 AM Subject: Cannot build GDB for arm-elf targets under cygwin... > Hello, > > I'm trying to build insight and gdb for arm-elf targets from weekly > snapshots under cygwin-1.3.2, and it is impossible over the last one > month. > > Host system: PC 'running' Windows 2000 (SP2) and with the lastest cygwin > release (cygwin-1.3.2, with gcc-2.95.3-5) installed. > > The file .../insight+dejagnu-200106XX/gdb/remote-rdi.c doesn't compile. > > The first error found was... > > gcc -mwin32 -c -g -I. -I/src/gdb/insight+dejagnu-20010619/gdb > -I/src/gdb/insight+dejagnu-20010619/gdb/config -DHAVE_CONFIG_H > -I/src/gdb/insight+dejagnu-20010619/gdb/../include/opcode > -I/src/gdb/insight+dejagnu-20010619/gdb/../readline/.. -I../bfd > -I/src/gdb/insight+dejagnu-20010619/gdb/../bfd > -I/src/gdb/insight+dejagnu-20010619/gdb/../include -I../intl > -I/src/gdb/insight+dejagnu-20010619/gdb/../intl -DGDBTK -DUI_OUT=1 > -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses > -Wpointer-arith -Wuninitialized > /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c > In file included from > /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/ardi.h:17, > from > /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:44: > /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:167: warning: > `FOPEN_WB' redefined > /src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:16: > warning: this is the location of the previous definition > /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:168: warning: > `FOPEN_RB' redefined > /src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:15: > warning: this is the location of the previous definition > /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:183: parse error > make[1]: *** [remote-rdi.o] Error 1 > > This error is an obvious lack of parenthesis in the line 183 of the > host.h file... > > But, even correcting the error, I get the following... > > gcc -mwin32 -c -g -I. -I/src/gdb/insight+dejagnu-20010619/gdb > -I/src/gdb/insight+dejagnu-20010619/gdb/config -DHAVE_CONFIG_H > -I/src/gdb/insight+dejagnu-20010619/gdb/../include/opcode > -I/src/gdb/insight+dejagnu-20010619/gdb/../readline/.. -I../bfd > -I/src/gdb/insight+dejagnu-20010619/gdb/../bfd > -I/src/gdb/insight+dejagnu-20010619/gdb/../include -I../intl > -I/src/gdb/insight+dejagnu-20010619/gdb/../intl -DGDBTK -DUI_OUT=1 > -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses > -Wpointer-arith -Wuninitialized > /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c > In file included from > /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/ardi.h:17, > from > /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:44: > /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:167: warning: > `FOPEN_WB' redefined > /src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:16: > warning: this is the location of the previous definition > /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:168: warning: > `FOPEN_RB' redefined > /src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:15: > warning: this is the location of the previous definition > cc1.exe: warning: -Wuninitialized is not supported without -O > /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:518: conflicting > types for `arm_rdi_wait' > /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:80: previous > declaration of `arm_rdi_wait' > make[1]: *** [remote-rdi.o] Error 1 > > This error came because the prototype (line 80) and the implementation > (line 518) of the funcion 'arm_rdi_wait' in the "remote-rdi.c" file are > different. > > In this point, before trying to modify the source code again, I decide > to ask to GDB list what is the most wise choice for my arm-elf debugger > (even because I'll need the RDI target!). Any sugestions??? > > > Thanks in advance, > > João Cadamuro Junior > LIT / CPDTT / CEFET-PR > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cannot build GDB for arm-elf targets under cygwin... 2001-06-20 11:17 Cannot build GDB for arm-elf targets under cygwin João Cadamuro Junior 2001-06-20 21:07 ` Cliff Tsai @ 2001-06-21 0:56 ` Fernando Nasser 2001-06-21 0:59 ` Fernando Nasser 2001-06-21 6:34 ` João Cadamuro Junior 1 sibling, 2 replies; 5+ messages in thread From: Fernando Nasser @ 2001-06-21 0:56 UTC (permalink / raw) To: João Cadamuro Junior; +Cc: gdb Joao, Please try this patch and let me know if it is compiling now. Thank you for reporting this. Regards, Fernando -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cannot build GDB for arm-elf targets under cygwin... 2001-06-21 0:56 ` Fernando Nasser @ 2001-06-21 0:59 ` Fernando Nasser 2001-06-21 6:34 ` João Cadamuro Junior 1 sibling, 0 replies; 5+ messages in thread From: Fernando Nasser @ 2001-06-21 0:59 UTC (permalink / raw) To: João Cadamuro Junior, gdb Of course, you will need the patch... :-) I have attached it this time. Fernando Nasser wrote: > > Joao, > > Please try this patch and let me know if it is compiling now. > > Thank you for reporting this. > -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9 Index: remote-rdi.c =================================================================== RCS file: /cvs/src/src/gdb/remote-rdi.c,v retrieving revision 1.16 diff -c -p -r1.16 remote-rdi.c *** remote-rdi.c 2001/05/04 04:15:26 1.16 --- remote-rdi.c 2001/06/21 07:54:11 *************** static void arm_rdi_mourn (void); *** 77,83 **** static void arm_rdi_send (char *buf); ! static int arm_rdi_wait (ptid_t ptid, struct target_waitstatus *status); static void arm_rdi_kill (void); --- 77,83 ---- static void arm_rdi_send (char *buf); ! static ptid_t arm_rdi_wait (ptid_t ptid, struct target_waitstatus *status); static void arm_rdi_kill (void); Index: rdi-share/host.h =================================================================== RCS file: /cvs/src/src/gdb/rdi-share/host.h,v retrieving revision 1.2 diff -c -p -r1.2 host.h *** host.h 2001/06/10 16:25:51 1.2 --- host.h 2001/06/21 07:54:11 *************** typedef char *ArgvType; *** 180,186 **** # define FILENAME_MAX 256 #endif ! #if (!defined(__STDC__) && !defined(__cplusplus) || defined(COMPILING_ON_SUNOS) /* Use bcopy rather than memmove, as memmove is not available. */ /* There does not seem to be a header for bcopy. */ void bcopy(const char *src, char *dst, int length); --- 180,186 ---- # define FILENAME_MAX 256 #endif ! #if (!defined(__STDC__) && !defined(__cplusplus)) || defined(COMPILING_ON_SUNOS) /* Use bcopy rather than memmove, as memmove is not available. */ /* There does not seem to be a header for bcopy. */ void bcopy(const char *src, char *dst, int length); From qqi@world.std.com Thu Jun 21 06:08:00 2001 From: Quality Quorum <qqi@world.std.com> To: Daniel Jacobowitz <dmj+@andrew.cmu.edu> Cc: gdb@sources.redhat.com Subject: Re: Who owns gdbserver? Date: Thu, 21 Jun 2001 06:08:00 -0000 Message-id: <Pine.SGI.4.21.0106210903050.12138-100000@world.std.com> References: <20010620221224.A19552@nevyn.them.org> X-SW-Source: 2001-06/msg00171.html Content-length: 1451 On Wed, 20 Jun 2001, Daniel Jacobowitz wrote: > No one admits to it, in MAINTAINERS at least... > > I am considering some fairly invasive changes to it, between some signal > problems I've been having, more Linux ports, and threads. It would be nice > to establish a clear owner before I do that. > > On a related note, I'm trying to think of a way to eliminate some of the > crasser code duplication between gdb and gdbserver - or rather, right now > it's mostly a lack of code duplication, causing gdbserver not to work > terribly well. The ideal solution would be to abstract the details of > managing a Unix inferior via ptrace to the point where I can link the same > files into gdbserver, but there are of course some intractable issues - > setting the shared library debugging breakpoint, for instance. Before I > begin working on this, does anyone have any thoughts? Is someone out there > working on a similar thing before I waste my time? I put together rproxy, which is in essense exteneded gdbserver, look at gbd section on my web site http://world.std.com/~qqi Also, if you are talking about threads support over remote GDB protocol there is some stuff there. The only caveat there is that in the coming update I am going to change licensing from GPL to BSD. > Daniel Jacobowitz Carnegie Mellon University > MontaVista Software Debian GNU/Linux Developer Thanks, Aleksey ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cannot build GDB for arm-elf targets under cygwin... 2001-06-21 0:56 ` Fernando Nasser 2001-06-21 0:59 ` Fernando Nasser @ 2001-06-21 6:34 ` João Cadamuro Junior 1 sibling, 0 replies; 5+ messages in thread From: João Cadamuro Junior @ 2001-06-21 6:34 UTC (permalink / raw) To: Fernando Nasser; +Cc: gdb [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 487 bytes --] Dear Fernando, After applying the patch in the "insight+dejagnu-20010619", it has compiled fine! Thank you very much!!! João Cadamuro Junior LIT / CPDTT / CEFET-PR Fernando Nasser wrote: > Joao, > > Please try this patch and let me know if it is compiling now. > > Thank you for reporting this. > > Regards, > Fernando > > -- > Fernando Nasser > Red Hat Canada Ltd. E-Mail: fnasser@redhat.com > 2323 Yonge Street, Suite #300 > Toronto, Ontario M4P 2C9 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-06-21 6:34 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-06-20 11:17 Cannot build GDB for arm-elf targets under cygwin João Cadamuro Junior 2001-06-20 21:07 ` Cliff Tsai 2001-06-21 0:56 ` Fernando Nasser 2001-06-21 0:59 ` Fernando Nasser 2001-06-21 6:34 ` João Cadamuro Junior
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox