This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RE: [PATCH] Add support for scanf, gets in h8300 simulator
- From: Andrew Volkov <Andrew dot Volkov at transas dot com>
- To: "Dhananjay R. Deshpande" <dhananjayd at kpit dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 3 Jun 2002 14:07:03 +0400
- Subject: RE: [PATCH] Add support for scanf, gets in h8300 simulator
Hi Dhananjay
>>Maybe now is time to change ugly "magic" 0xc4 vector to something more
>>correct(ex. trap for h8s)? Because on many h8h/h8s chips,
>vectors 0xc4 and
>> 0xc8 are busy under peripheries.
>
>There is a trapa instruction available in H8300/H and H8/S but
>not in H8300. With current implementation, it will be same for
>all. If we implement trapa for H8300/H and H8300/S, still we
>will have to support the H8300/L with current implementation.
Yes I told about move to trapa for h8s/h and for 0xc4/0xc8 for other.
Because on h8s/h you WILL have problems with this vectors.
>Since nothing is actually written at 0xc4 and 0xc8, it should
>not be a problem for code running on target using those
>peripherals. Users can put there vector handler at those vectors.
H-m-m, I don't think its a good idea to mix application and debug code in
interrupt.
Especially when you could split it without pain.
Andrey