This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Error while debugging using GDB6.6 for Renesas H8300 target
- From: qinwei<qinwei at sunnorth dot com dot cn>
- To: gdb at sourceware dot org
- Date: Thu, 4 Jan 2007 10:26:43 +0800
- Subject: RE: Error while debugging using GDB6.6 for Renesas H8300 target
> Hi,
>
> I have successfully built GDB6.6 for Renesas H8300 target.
> While debugging, I encountered the following error for the
> command "target sim",
> //-----------------------------------
> $ h8300-elf-gdb a.out
> (gdb) target sim
> gdbsim: invalid option -- E
> unable to create simulator instance
> //-----------------------------------
> I compiled the program as follows,
> h8300-elf-gcc -ms -g test.c
>
> The same command works in GDB6.5 without any errors.
> The target H8300 is "Big endian" and there is no command line option
> to specify "Endian" type for H8300 toolchain.
> Can you help in resolving this error?
Hi Jaydeep,
Command "target sim" calls function "sim_open" which is a interface
between
GDB and simulator.
In GDB-6.5, the "argv" passed to this function is:
argv[0] = "gdbsim";
argv[1] = 0;
In GDB-6.6, the "argv" passed to this function is:
argv[0] = "gdbsim";
argv[1] = "-E";
argv[2] = "big"; /* when you choose big endian */
argv[3] = 0;
Maybe function "sim_open" in H8300 simulator returns error status in the
latter case.
Please check that.
Best regards,
Qinwei
Mail qinwei@sunnorth.com.cn
Phone +86-010-62981668-2708
Fax +86-010-62985972