From owner-freebsd-hackers Mon Mar 25 13:18:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from imr1.aus.deuba.com (bagheera.aus.deuba.com [203.0.62.7]) by hub.freebsd.org (Postfix) with ESMTP id 9820837B405 for ; Mon, 25 Mar 2002 13:18:49 -0800 (PST) Received: from imr1.aus.deuba.com by imr1.aus.deuba.com id g2PLIkHR022496; Tue, 26 Mar 2002 08:18:46 +1100 (EST) Received: from merton.aus.deuba.com by imr1.aus.deuba.com id g2PLIjn2022487; Tue, 26 Mar 2002 08:18:45 +1100 (EST) Received: (qmail 1504 invoked by uid 107); 25 Mar 2002 21:18:45 -0000 Message-ID: <20020325211845.1503.qmail@merton.aus.deuba.com> From: callum.gibson@db.com Subject: Re: Missing PT_READ_U To: bakul@bitblocks.com Date: Tue, 26 Mar 2002 08:18:45 +1100 (EST) Cc: hackers@FreeBSD.ORG, peter@wemm.org In-Reply-To: <200203251945.OAA08115@renown.cnchost.com> from "bakul@bitblocks.com" at Mar 25, 2002 11:45:23 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG bakul@bitblocks.com writes: }Julian Elischer's diff as applied to the 4.5-RELEASE included }below. With this change ups-3.37-beta4 compiled unchanged. } }But note that you still can't change any registers. If }PT_WRITE_U is added back to the FreeBSD-4.x branch, no change }is necessary to ups. So how about it, Peter Wemm? I'm actually getting crashes in ups (on 4.5, compiled on 4.4) whenever the debugged program receives a signal. I assume putting back PT_READ_U will be sufficient to fix this? }The other alternative is to change ups to understand }PT_{SET,GET}{REGS,FPREGS} -- this would be needed for }FreeBSD-5 in any case. But this is not a quick change as ups }uses PTRACE_{PEEK,POKE}USER for dealing with registers and }signals and these need to be replaced something more }discriminating. I took a quick look at it but then got }distracted. Also, not every arch. has separate FP regs and I }didn't look deep enough in ups to figure out how to add }machine dependent code like this. Hopefully some enterprising young programmer in the ups camp will be able to help out (when an alternate interface exists - is it in -current now?). Unfortunately, I don't have knowledge to hack inside ups to that degree. C Callum Gibson callum.gibson@db.com Global Markets IT, Deutsche Bank, Australia 61 2 9258 1620 ### The opinions in this message are mine and not Deutsche's ### To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message