NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/51322



The following reply was made to PR kern/51322; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/51322
Date: Thu, 7 Jul 2016 16:53:29 +0000

 On Thu, Jul 07, 2016 at 01:05:00PM +0000, coypu%SDF.ORG@localhost wrote:
  >  I was wondering if KASSERT itself can be modified so the prototype is
  >  the same, but gcc will not optimize out the things used in the test.
 
 Probably better not to slow down the code just because gdb doesn't
 know how to find things.
 
 (when gdb says "optimized out", it doesn't mean that the value's not
 there, it means gdb doesn't know how to find it because it's e.g. in
 some scratch register and not in what gdb thinks of as a "variable")
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index