GDB and debugging techniques

Páxina inicial
Anexos:
Mensaxe orixinal
+ (text/plain)
Borrar esta mensaxe
Responder a esta mensaxe
Autor: AlanDayleyalandd@consultpros.com
Data:  
Asunto: GDB and debugging techniques
At 11:08 PM 2/9/01 -0700, you wrote:

>I've seen some people do
>
>if ( 0 == foo )
>{
>     ...
>}

>
>in C to try to avoid this particular "dumb error."
>(Just try compiling using "if ( 0 = foo )" )


I know that tip but after all the math classes it is so natural to me to
put the variable first that I still make the stupid mistake on
occasion. It is hard to learn new tricks sometimes!

Alan