atom feed4 messages in org.freebsd.freebsd-hackersRe: Need help with DDB (IPfilter 3.0....
FromSent OnAttachments
Andrew V. StesinJun 7, 1996 4:37 am 
Bruce EvansJun 7, 1996 5:53 pm 
Andrew V. StesinJun 10, 1996 12:45 am 
Bruce EvansJun 10, 1996 12:55 am 
Subject:Re: Need help with DDB (IPfilter 3.0.4, logging panices FreeBSD)
From:Andrew V. Stesin (ste@elvisti.kiev.ua)
Date:Jun 10, 1996 12:45:50 am
List:org.freebsd.freebsd-hackers

Hello,

# bcopy (and all other functions written in assembler) doesn't set up the # frame pointer, so stack traces in it don't work right. Usually, the # previous function's args are shown as bcopy's args and the previous # function's name isn't shown. They are easy to see by examining the # stack (x/x $esp,10).

Oh, thanks. Didn't know this.

# >The kernel has "options DDB", no compiler optimization, # # Not even the default -O?

Yes, I threw it away, being afraid to get even more strange results from the debugger. Today CPUs _are_ fast enough. :)

# >config(8) had '-g' switch (note: linkage of the kernel failed with this # >switch combo; ld didn't find _memcmp symbol, why? I added libc.a to the # # memcmp is a C library function that isn't available in the kernel.

I guess that with '-g' present gcc doesn't put an inline equivalent of it in the resulting code?

Thanks! (I'll probably try it once more, but I hope I localized the erroneous code already. Stupid me -- why didn't I realize that "block in log body ..." never actually logged "body" for me? :(

--

With best regards -- Andrew Stesin.

+380 (44) 2760188 +380 (44) 2713457 +380 (44) 2713560

"You may delegate authority, but not responsibility." Frank's Management Rule #1.