Re: Debug problem

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

 



Hi Yogesh,

Two things to try:

1) try using -O0 on all the files.

Optimization can cause the debugger to do "funny" things.  You may be
running into those "funny" things.  When debugging optimized code, you
should expect "funny" things, since the optimizer can rearrange the
resulting code such that it is not necessarily a 1:1 mapping to the source
code (but should be functionally the same, for compliant & correct source
code).

Disabling optimization should stop those "funny" things.

2) Upgrade your compiler and debugger to the current released versions.

GCC - 4.2.0

gdb - 6.6

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux