Yee Man Chan wrote:
>
> Hi,
>
> I am starting to play with Squid source. I am dealing with 2.2S5 and running
> under RedHat Linux 6.0. I ran GNU gdb comes with the distribution to see how
> Squid works. Then I find something I can't explain:
>
> 1. I added a function to Squid that takes a StoreEntry * e as a parameter. I
> find that even if I did nothing to the parameter, when I step through the
> function, the value of the pointer changes. The same thing happens to e->
> mem_obj as well. Why?
Bet you a dollar that the compiler's optimised it out, once it's
realised that nothing's happened to it. Guess number two is that you're
corrupting the stack.
D
Received on Mon Sep 27 1999 - 21:13:20 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:17 MST