This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Clarifications regarding BDM GDB Insight for M68k
- From: "Prasanna - Khanapur" <bdm_future at rediffmail dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 15 Apr 2002 11:30:48 -0000
- Subject: Clarifications regarding BDM GDB Insight for M68k
- Reply-to: "Prasanna - Khanapur" <bdm_future at rediffmail dot com>
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.
I ran the configure and make file :
>./configure --target=m68k-bdm-elf
>make
I faced few problems for which I made some fixes, some header
files where not included so included the corresponding the files
needed.
But at the end that is in the final linking of the gdb.exe I had
faced the following errors:
************************************************************************************************************
gcc -g -O2 -Wl,--subsystem,console -o gdb.exe main.o
libgdb.a ../bfd/libbfd.a ../readline/libreadline.a
../opcodes/libopcodes.a ./../intl/libintl.a
../libiberty/libiberty.a `if test -r ../libtermcap/libtermcap.a;
then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`
../libgui/src/libgui.a
-L/home/taxi/insight-5.0/insight-5.0/itcl/itcl/win -litcl30
-L/home/taxi/insight-5.0/insight-5.0/itcl/itk/win -litk30
-L/home/taxi/insight-5.0/insight-5.0/tix/win/tcl8.0 -ltix4180
-L/home/taxi/insight-5.0/insight-5.0/tk/win -ltk80
-L/home/taxi/insight-5.0/insight-5.0/tcl/win -ltcl80 -lm -lm
../libiberty/libiberty.a -luser32 -lshell32 -lgdi32 -lcomdlg32
-ladvapi32
libgdb.a(gdbtk.o): In function `gdbtk_init':
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:450:
undefined reference to `ide_create_messagebox_command'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:453:
undefined reference to `ide_create_sizebox_command'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:455:
undefined reference to `ide_create_winprint_command'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:457:
undefined reference to `ide_create_win_grab_command'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:462:
undefined reference to `ide_create_shell_execute_command'
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'
../libgui/src/libgui.a(tkTable.o): In function `TableDisplay':
/home/taxi/insight-5.0/insight-5.0/libgui/src/tkTable.c:1188:
undefined reference to `XSetClipRectangles'
../libgui/src/libgui.a(tkTable.o): In function
`TableValidateChange':
/home/taxi/insight-5.0/insight-5.0/libgui/src/tkTable.c:2481:
undefined reference to `XSync'
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
*********************************************************************************************************
After analysing the above errors in the function 'gdbtk_init' I
found that _WIN32 is not defined in the compilation
of some files like tclmsgbox.c ,tclsizebox.c etc..
Do I need to give any other parameter for the while running the
./confiure file such that this _WIN32 is added on to the makefiles
directly?
To solve the problem I defined -D_WIN32 as one of the compiler
options in the makefile.in.
After that I gave again compilation this time the follwing error
is reported
*********************************************************************************************************
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 this functions in the whole directory but could not
find them.
If anybody can help out with few of above problems it would be
help.
Please let me know whether whatever I have done is correct.
Regards
Prasanna.