This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]