NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/51649: PRIxREGISTER and PTRACE_REG_* mismatch
The following reply was made to PR kern/51649; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/51649: PRIxREGISTER and PTRACE_REG_* mismatch
Date: Fri, 25 Nov 2016 10:54:06 +0100
While it might sound a natural choice, there is no gurantee that struct
reg members (and so the PTRACE_REG_* accesor results) are of type register_t.
There seem to be no standards defining it and the only other user that
I can find is libproc, which uses "unsigned long".
So I would suggest to make the test use %lx and explicitly cast all
PTRACE_REG_* values to unsigned long for the printf.
Martin
Home |
Main Index |
Thread Index |
Old Index