Date: Tue, 9 May 1995 07:00:03 -0700 (PDT) From: "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> To: gj@FreeBSD.org Cc: FreeBSD-hackers@FreeBSD.org (FreeBSD hackers) Subject: Re: This one looks very very suspecious to me.... Message-ID: <199505091400.HAA02907@gndrsh.aac.dev.com> In-Reply-To: <m0s8pOC-0005OqC@rks32.pcs.dec.com> from "gj%pcs.dec.com@inet-gw-1.pa.dec.com" at May 9, 95 01:31:52 pm
next in thread | previous in thread | raw e-mail | index | archive | help
>
>
> > While going through all the -Wcomment errors I have found one that
> > look very suspecious:
> >
> > /usr/src/gnu/usr.bin/gdb/gdb/freebsd-nat.c:489: warning: `/*' within comment
> >
> > This is the snip of code around that:
> >
> > static CORE_ADDR
> > kvtophys (fd, addr)
> > CORE_ADDR addr;
> > {
> > CORE_ADDR v;
> > struct pte pte;
> > static CORE_ADDR PTD = -1;
> > CORE_ADDR current_ptd;
> >
> > /*if (devmem && kfd > 0)
> > return (addr);
> > /*
> > * If we're looking at the kernel stack,
> > * munge the address to refer to the user space mapping instead;
> > * that way we get the requested process's kstack, not the running one.
> > */
> >
> >
> > Now, did some one really mean to comment out the if (devmem) or is this
> > an error???? Gdb experts please step forward and tell me to either
> > close the comment after the if, or removed the comment start before it.
>
> EEEK! Boy, did I f*ck that up !
>
> This should definitely be commented out, or even better, totally removed.
> This is a left-over from when I ported gdb many moons ago and was trying
> out various things. Seems to me there may be a few more corpses like this
> laying around in gdb, but as long as they don't start to stink....:-)
Okay, I deleted the 2 lines... no big deal, it just caused a warning and
it was unclear on what way to go with it.
--
Rod Grimes rgrimes@gndrsh.aac.dev.com
Accurate Automation Company Custom computers for FreeBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505091400.HAA02907>
