Preliminary Patch - H8/300 - Normal Mode for GDB 6.0

Shrinivas Atre ShrinivasA@KPITCummins.com
Thu Sep 4 09:49:00 GMT 2003


Hi,

I have written following patches to GDB 6.0 to support Normal Mode targets for Renesas H8/300H and H8S chips.

However I am facing problem with these patches.  

The problem is as follows.

When debugging (h8300-elf-gdb) normal mode programs with sim as target, the simulator does a SIGTRAP while running the program. 

The program goes into the case 
	case O (O_SLEEP, SN):		/* sleep */

in function sim_resume in file sim/h8300/compile.c and stops with SIGTRAP.

I cannot run the program in GDB.

However no problem occurs when the program is run on the simulator (h8300-elf-run) outside the gdb. i.e. $ h8300-elf-run a.out

This runs very well.

Can someone guide me what is missing in these patches ?

Similar patch works well with GDB 5.3.

Regards,
Shrinivas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h8300-tdep.diff
Type: application/octet-stream
Size: 4881 bytes
Desc: h8300-tdep.diff
URL: <http://sourceware.org/pipermail/gdb/attachments/20030904/899ad338/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile.diff
Type: application/octet-stream
Size: 10021 bytes
Desc: compile.diff
URL: <http://sourceware.org/pipermail/gdb/attachments/20030904/899ad338/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h8300-dis.diff
Type: application/octet-stream
Size: 691 bytes
Desc: h8300-dis.diff
URL: <http://sourceware.org/pipermail/gdb/attachments/20030904/899ad338/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coff-h8300.diff
Type: application/octet-stream
Size: 1804 bytes
Desc: coff-h8300.diff
URL: <http://sourceware.org/pipermail/gdb/attachments/20030904/899ad338/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tm-h8300.diff
Type: application/octet-stream
Size: 433 bytes
Desc: tm-h8300.diff
URL: <http://sourceware.org/pipermail/gdb/attachments/20030904/899ad338/attachment-0004.obj>


More information about the Gdb mailing list