This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Re: Clarifications regarding BDM GDB Insight for M68k
- From: "Prasanna - Khanapur" <bdm_future at rediffmail dot com>
- To: insight at sources dot redhat dot com
- Cc: "Keith Seitz" <keiths at redhat dot com>
- Date: 15 Apr 2002 16:17:10 -0000
- Subject: Re: Re: Clarifications regarding BDM GDB Insight for M68k
- Reply-to: "Prasanna - Khanapur" <bdm_future at rediffmail dot com>
hello,
Thanks for the info.
According to the following link:
http://www.vas-gmbh.de/software/mpcbdm
for running the bdm,I have to use the Insight-GDB 5.0 version
itself.
I could solve the undefined reference in libgui using -D_WIN32.
But the few other error still persists as fallows:
*****************************************************
gcc -g -O2 -Wl,--subsystem,console -o gdb.exe main.o
libgdb.a ../bfd/libbfd.a ../readline/libreadl
libgdb.a(gdbtk.o): In function `initialize_gdbtk':
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:603:
undefined reference to `FreeConsole'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609:
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609:
undefined reference to `GetFileType'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:620:
undefined reference to `AllocConsole'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:621:
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:624:
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:627:
undefined reference to `GetStdHandle'
collect2: ld returned 1 exit status
make[1]: *** [gdb.exe] Error 1
make[1]: Leaving directory
`/home/taxi/insight-5.0/insight-5.0/gdb'
make: *** [all-gdb] Error 2
******************************************************
I searched for the function "FreeConsole()" and could find it in
the /cygwin/lib/w32api/ in the libkernel32.a.
The following was output after nm.exe:
*****************************************************
$ nm libkernel32.a |grep FreeConsole
00000000 T _FreeConsole@0
00000000 I __imp__FreeConsole@0
****************************************************
So I guess that the definition of the unreferenced function is
present in the libkernel32.a.
I added the libkernel32.a to the final linking of gdb.exe.
But still the error persist , what could be the problem?
Am I using the right library or does the order of the linking
matters?
Regards
Prasanna
On Mon, 15 Apr 2002 Keith Seitz wrote :
>On 15 Apr 2002, Prasanna - Khanapur wrote:
>
> > Hello,
> > I'm trying to make Insight GDB BDM for M68k processor in
>cygwin
> > environment on an WINNT machine.
> > I installed the latest cygwin version on the WINNT and
> > uncomopressed the insight-5.0.tar.bz2 file on the cygwin
>dir.
>
>Insight-5.0 is not the latest version. Make sure you are trying
>to build
>insight-5.1.
>
>Your libgui problems should be fixed by using "-mwin32". There
>was a
>change in gcc for cygwin between 5.0 and 5.1 which necessitates
>this flag.
>I don't recall if the 5.1 branch sources have this in it or not,
>so it
>might be needed there. (And don't include '-mwin32' everywhere --
>just put
>it where needed.)
>
>Please verify which version of insight you are trying to build
>and get
>back to us.
>
>Keith
>
>