From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24898 invoked by alias); 3 Jun 2002 10:07:40 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23754 invoked from network); 3 Jun 2002 10:07:10 -0000 Received: from unknown (HELO harvester.transas.com) (193.125.200.2) by sources.redhat.com with SMTP; 3 Jun 2002 10:07:10 -0000 Received: from localhost (localhost [127.0.0.1]) by harvester.transas.com (Postfix) with SMTP id 2597E6B828; Mon, 3 Jun 2002 14:07:09 +0400 (MSD) Received: from clue.transas.com (clue.transas.com [10.0.0.42]) by harvester.transas.com (Postfix) with ESMTP id 194836B820; Mon, 3 Jun 2002 14:07:04 +0400 (MSD) Received: by clue.transas.com with Internet Mail Service (5.5.2653.19) id ; Mon, 3 Jun 2002 14:07:04 +0400 Message-ID: <2E74F312D6980D459F3A05492BA40F8DEC0BE3@clue.transas.com> From: Andrew Volkov To: "Dhananjay R. Deshpande" Cc: gdb-patches@sources.redhat.com Subject: RE: [PATCH] Add support for scanf, gets in h8300 simulator Date: Mon, 03 Jun 2002 03:07:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2002-06/txt/msg00035.txt.bz2 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