From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30159 invoked by alias); 21 Nov 2001 21:10:37 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30104 invoked from network); 21 Nov 2001 21:10:34 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sourceware.cygnus.com with SMTP; 21 Nov 2001 21:10:34 -0000 Received: from telocity.telocity.com (taarna.cygnus.com [205.180.230.102]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id JAA07366; Wed, 21 Nov 2001 09:00:27 -0800 (PST) Message-ID: <3BFBDD0C.4831@redhat.com> Date: Thu, 08 Nov 2001 15:21:00 -0000 From: Michael Snyder X-Mailer: Mozilla 3.04 (Win95; I) MIME-Version: 1.0 To: Pierre Muller CC: Michael Snyder , gdb-patches@sources.redhat.com Subject: Re: [RFA] Add ix86 target to asm-source.exp test References: <4.2.0.58.20011121123209.01841fa0@ics.u-strasbg.fr> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2001-11/txt/msg00170.txt.bz2 Pierre Muller wrote: > > At 02:51 21/11/2001 , vous avez écrit: > > >This is a minimal port of the asm-source test to the i[3456]86 target. > >This runs successfully on a Linux x86 machine, but will probably need > >some work to make it run on other ix86 platforms (esp. embedded). > > comment "exit (0)" > > .macro gdbasm_exit0 > > hlt > > .endm > > Is it reasonable to include a priviledged instruction > at that point ? > All depends if this code is possibly executed... The code is not intended to be executed, I just put the halt there to make sure that it would terminate if it ran away. And in fact it does terminate, on Linux, with a SEGV signal.