* Re: Wrong current execution position!
[not found] <c9d32f760605160429kdf43b72od119e9b91b064f03@mail.gmail.com>
@ 2006-05-16 13:06 ` s88
[not found] ` <20060516123859.GA29593@nevyn.them.org>
0 siblings, 1 reply; 2+ messages in thread
From: s88 @ 2006-05-16 13:06 UTC (permalink / raw)
To: gdb
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 ${MY_HOME}/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.tw@acm.org
phone:0963024006
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Wrong current execution position!
[not found] ` <20060516123859.GA29593@nevyn.them.org>
@ 2006-05-16 16:10 ` s88
0 siblings, 0 replies; 2+ messages in thread
From: s88 @ 2006-05-16 16:10 UTC (permalink / raw)
To: s88, gdb
Thank you Daniel!!
I have already solved my problem....
I'm stocked in the situation (B) you mentioned.
I do the MAKE under the working/ dir for the library, but I forgot to
update(re-MAKE) the execution file in the working/D/E/a.out...
What a stupid man I am?! :D
anyway Thankx!!
Dave.
On 5/16/06, Daniel Jacobowitz <drow@false.org> wrote:
> 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
>
--
Win, Che-Neng.
System on Chip Design Lab.
Dept. of Computer Science and Information Engineering,
National Chung Cheng University
E-mail : s88.tw@acm.org
phone:0963024006
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-16 13:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <c9d32f760605160429kdf43b72od119e9b91b064f03@mail.gmail.com>
2006-05-16 13:06 ` Wrong current execution position! s88
[not found] ` <20060516123859.GA29593@nevyn.them.org>
2006-05-16 16:10 ` s88
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox