linux-mips-fnet
[Top] [All Lists]

Re: abort instruction for Mips?

To: Andreas Jaeger <aj@suse.de>
Subject: Re: abort instruction for Mips?
From: Dominic Sweetman <dom@algor.co.uk>
Date: Thu, 3 Feb 2000 09:05:50 GMT
Cc: linux-mips@fnet.fr
In-reply-to: <u8iu06g00v.fsf@gromit.rhein-neckar.de>
References: <u8iu06g00v.fsf@gromit.rhein-neckar.de>
Andreas Jaeger (aj@suse.de) writes:

> For glibc I could use [1] an abort instruction as fail safe to abort a
> program.  Is there any way to achieve this?

Unless someone comes up with some Linux-recommended prior art, 

  break 255

should work.  It's a breakpoint for the debugger, but it's
probably a good thing that a debugger should catch an abort.  An
astute debugger may look at the code value and complain further.

Dominic Sweetman
dom@algor.co.uk

<Prev in Thread] Current Thread [Next in Thread>