List Info

Thread: Wrong current execution position!




Wrong current execution position!
user name
2006-05-16 11:35:48
Hi all:
    As I using the gdb-6.3 to do my debugging jobs. Recently
I meet a
"wrong current execution position" problem.
 My working dir is as following:
 working/
 working/A
 working/B
 working/C
  working/D/E/a.out

 my source files and object files are separated in those
folders.

 When I am debugging, I added the source search dir in gdb.
Something
like "dir $/working/"

 But, as I step tracing the source code in the working/B
directory,
the current execution position is on the wrong place,
somewhere likes
in the comments.

 Could any kind man tell me how to solve this problem??
Thanx very very much....

 Dave.


-- 
Win, Che-Neng.
System  on Chip Design  Lab.
Dept. of Computer Science and Information Engineering,
National Chung Cheng University
E-mail : s88.twacm.org
phone:0963024006
Wrong current execution position!
user name
2006-05-16 12:39:00
On Tue, May 16, 2006 at 07:35:48PM +0800, s88 wrote:
> But, as I step tracing the source code in the working/B
directory,
> the current execution position is on the wrong place,
somewhere likes
> in the comments.

Were you in the correct file?  If you were, then it is
likely that
either (A) the compiler has emitted bogus debugging
information, or
(B) the version of the file GDB was reading was different
from the
version used when you compiled.

-- 
Daniel Jacobowitz
CodeSourcery
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )