Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Sourcelookup
Sourcelookup [message #153501] Fri, 09 September 2005 06:02 Go to next message
Eclipse UserFriend
Hi all,


I am having a problem with source lookup in my debugger, there is
a situation where i have to do the following

ex.

there is asource file name main.c

main.c

void thread ( ) {

thread_clock(); //this is a #define an a header file called
T.h

while(1) {

some function

clock_sleep() //this is a function which is
defined in T.h
}

}

T.h


#define thread_clock() "some stuff"


void clock_sleep() {

return externallibaryfunction call "whose source is not available
only object files are"

}

so when i do a step over the clock_sleep function i get a display no
source found becuase it cannot find source implementation for the external
libary.

so what i need to do is to get rid of that no source found error and just
have to following debug flow

from main.c go into the T.h file line where clock_sleep() is defined do
nothing there and return back to the main.c next line. Please let me know
what can i do with such a situation

regards,

Sheldon.
Re: Sourcelookup [message #153530 is a reply to message #153501] Fri, 09 September 2005 11:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

I'm not sure that I understand it right, but if you step into a function
with the source code that is not in your project simply add the directory
with the source to your source lookup path. And don't step into a function
with no source file avialable to avoid the "Source Not Found" message.

"Sheldon" <sheldond@gmail.com> wrote in message
news:64ceebe3ec79178e031ab3981188af3d$1@www.eclipse.org...
> Hi all,
>
>
> I am having a problem with source lookup in my debugger, there is
> a situation where i have to do the following
>
> ex.
> there is asource file name main.c
>
> main.c
>
> void thread ( ) {
>
> thread_clock(); //this is a #define an a header file called
> T.h
>
> while(1) {
> some function
>
> clock_sleep() //this is a function which is
> defined in T.h }
>
> }
>
> T.h
>
>
> #define thread_clock() "some stuff"
>
>
> void clock_sleep() {
>
> return externallibaryfunction call "whose source is not available
> only object files are"
> }
> so when i do a step over the clock_sleep function i get a
> display no source found becuase it cannot find source implementation for
> the external libary.
>
> so what i need to do is to get rid of that no source found error and just
> have to following debug flow
>
> from main.c go into the T.h file line where clock_sleep() is defined do
> nothing there and return back to the main.c next line. Please let me know
> what can i do with such a situation
>
> regards,
>
> Sheldon.
>
Re: Sourcelookup [message #154198 is a reply to message #153530] Thu, 15 September 2005 01:54 Go to previous message
Eclipse UserFriend
Hi,


Thanx for the information,but the real cause of my problem is
the GDB debugger i am using. It is basically cribbing over inline
functions that the reason it cannot find the appropriate source.


regards,
Sheldon
Previous Topic:Step Over in debugger
Next Topic:problems view - how to extend the description
Goto Forum:
  


Current Time: Thu Jul 17 22:24:37 EDT 2025

Powered by FUDForum. Page generated in 0.07662 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top