Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Unable to attach source
Unable to attach source [message #86549] Fri, 21 November 2003 16:28 Go to next message
Eclipse UserFriend
Originally posted by: jim.brown.mindspring.com

I'm attempting to step into a library that I built
with command line tools with make and gcc.

When I step into it, I get C/C++ File Editor message
Source not found.
I press the Attach Source... button,
file system directory
next
browse to the directory where the source is.
Finish

Nothing changes. Still no source.

I'm not sure what the "associate with" part of the
dialog is supposed to do. Anything I can find in the
documentation about associate or attach has to do with
java classes and jar files.

Any help appreciated.
I'm on Solaris 9 and MinGW on WIn XP. Same problem both
places

Jim
Re: Unable to attach source [message #86564 is a reply to message #86549] Fri, 21 November 2003 19:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailkhod.rogers.com

What is the path that debugger is looking for? Is it the same as you
specified in the "Attach source" dialog?

<jim.brown@mindspring.com> wrote in message
news:3FBE8370.3070501@mindspring.com...
> I'm attempting to step into a library that I built
> with command line tools with make and gcc.
>
> When I step into it, I get C/C++ File Editor message
> Source not found.
> I press the Attach Source... button,
> file system directory
> next
> browse to the directory where the source is.
> Finish
>
> Nothing changes. Still no source.
>
> I'm not sure what the "associate with" part of the
> dialog is supposed to do. Anything I can find in the
> documentation about associate or attach has to do with
> java classes and jar files.
>
> Any help appreciated.
> I'm on Solaris 9 and MinGW on WIn XP. Same problem both
> places
>
> Jim
>
Re: Unable to attach source [message #86579 is a reply to message #86564] Fri, 21 November 2003 23:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jim.brown.mindspring.com

I'm not sure how to tell what path the debugger is looking for.
I tried browsing to the directory that contains the source
and I tried entering an absolute path to the directory.

Mikhail Khodjaiants wrote:
> What is the path that debugger is looking for? Is it the same as you
> specified in the "Attach source" dialog?
>
> <jim.brown@mindspring.com> wrote in message
> news:3FBE8370.3070501@mindspring.com...
>
>>I'm attempting to step into a library that I built
>>with command line tools with make and gcc.
>>
>>When I step into it, I get C/C++ File Editor message
>>Source not found.
>>I press the Attach Source... button,
>>file system directory
>>next
>>browse to the directory where the source is.
>>Finish
>>
>>Nothing changes. Still no source.
>>
>>I'm not sure what the "associate with" part of the
>>dialog is supposed to do. Anything I can find in the
>>documentation about associate or attach has to do with
>>java classes and jar files.
>>
>>Any help appreciated.
>>I'm on Solaris 9 and MinGW on WIn XP. Same problem both
>>places
>>
>>Jim
>>
>
>
>
Re: Unable to attach source [message #86621 is a reply to message #86579] Sat, 22 November 2003 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailkhod.rogers.com

When debugger doesn't find a source it displays a special editor with the
"Attach source" button. The message in the editor contains the name of file
the debugger is looking for.

<jim.brown@mindspring.com> wrote in message
news:3FBEECAF.4050200@mindspring.com...
> I'm not sure how to tell what path the debugger is looking for.
> I tried browsing to the directory that contains the source
> and I tried entering an absolute path to the directory.
>
> Mikhail Khodjaiants wrote:
> > What is the path that debugger is looking for? Is it the same as you
> > specified in the "Attach source" dialog?
> >
> > <jim.brown@mindspring.com> wrote in message
> > news:3FBE8370.3070501@mindspring.com...
> >
> >>I'm attempting to step into a library that I built
> >>with command line tools with make and gcc.
> >>
> >>When I step into it, I get C/C++ File Editor message
> >>Source not found.
> >>I press the Attach Source... button,
> >>file system directory
> >>next
> >>browse to the directory where the source is.
> >>Finish
> >>
> >>Nothing changes. Still no source.
> >>
> >>I'm not sure what the "associate with" part of the
> >>dialog is supposed to do. Anything I can find in the
> >>documentation about associate or attach has to do with
> >>java classes and jar files.
> >>
> >>Any help appreciated.
> >>I'm on Solaris 9 and MinGW on WIn XP. Same problem both
> >>places
> >>
> >>Jim
> >>
> >
> >
> >
>
Re: Unable to attach source [message #86647 is a reply to message #86621] Sat, 22 November 2003 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jim.brown.mindspring.com

Now I see the path name.

I'm in my home directory and I execute ./eclipse/eclipse
The source I want is in a directory in my home directory.
The path I see in the "Attach source" is a relative path
from my home directory. "src/file.cpp"

I guessed that maybe I needed to start eclipse from the
directory where the executable is. I tried that but it
made no difference. Attach source still says "src/file.cpp"

Does this suggest anything I should try?

Jim


Mikhail Khodjaiants wrote:
> When debugger doesn't find a source it displays a special editor with the
> "Attach source" button. The message in the editor contains the name of file
> the debugger is looking for.
>
> <jim.brown@mindspring.com> wrote in message
> news:3FBEECAF.4050200@mindspring.com...
>
>>I'm not sure how to tell what path the debugger is looking for.
>>I tried browsing to the directory that contains the source
>>and I tried entering an absolute path to the directory.
>>
>>Mikhail Khodjaiants wrote:
>>
>>>What is the path that debugger is looking for? Is it the same as you
>>>specified in the "Attach source" dialog?
>>>
>>><jim.brown@mindspring.com> wrote in message
>>>news:3FBE8370.3070501@mindspring.com...
>>>
>>>
>>>>I'm attempting to step into a library that I built
>>>>with command line tools with make and gcc.
>>>>
>>>>When I step into it, I get C/C++ File Editor message
>>>>Source not found.
>>>>I press the Attach Source... button,
>>>>file system directory
>>>>next
>>>>browse to the directory where the source is.
>>>>Finish
>>>>
>>>>Nothing changes. Still no source.
>>>>
>>>>I'm not sure what the "associate with" part of the
>>>>dialog is supposed to do. Anything I can find in the
>>>>documentation about associate or attach has to do with
>>>>java classes and jar files.
>>>>
>>>>Any help appreciated.
>>>>I'm on Solaris 9 and MinGW on WIn XP. Same problem both
>>>>places
>>>>
>>>>Jim
>>>>
>>>
>>>
>>>
>
>
Re: Unable to attach source [message #86670 is a reply to message #86549] Sat, 22 November 2003 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jim.brown.mindspring.com

Just some further information. I decided to check out that the
GNU tools were set up OK. I wrote a simple make file,
build my test program that uses the shared lib I want to debug,
ran ddd and got in to the shared library OK.

This tells me that I'm doing something - probably trivially - wrong
in eclipse. If I can get eclipse to attach the source for my
shared library, I can begin debugging in earnest.

Any suggestions welcome.

Jim

jim.brown@mindspring.com wrote:
> I'm attempting to step into a library that I built
> with command line tools with make and gcc.
>
> When I step into it, I get C/C++ File Editor message
> Source not found.
> I press the Attach Source... button,
> file system directory
> next
> browse to the directory where the source is.
> Finish
>
> Nothing changes. Still no source.
>
> I'm not sure what the "associate with" part of the
> dialog is supposed to do. Anything I can find in the
> documentation about associate or attach has to do with
> java classes and jar files.
>
> Any help appreciated.
> I'm on Solaris 9 and MinGW on WIn XP. Same problem both
> places
>
> Jim
>
Re: Unable to attach source [message #87250 is a reply to message #86647] Mon, 24 November 2003 12:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Just add your home directory as an additional source location. On Windows it
should look like "C:\home..", on Solaris - "/home/...". Uncheck the
"Assosciate" option. This should work.

<jim.brown@mindspring.com> wrote in message
news:3FBF92CE.80405@mindspring.com...
> Now I see the path name.
>
> I'm in my home directory and I execute ./eclipse/eclipse
> The source I want is in a directory in my home directory.
> The path I see in the "Attach source" is a relative path
> from my home directory. "src/file.cpp"
>
> I guessed that maybe I needed to start eclipse from the
> directory where the executable is. I tried that but it
> made no difference. Attach source still says "src/file.cpp"
>
> Does this suggest anything I should try?
>
> Jim
>
>
> Mikhail Khodjaiants wrote:
> > When debugger doesn't find a source it displays a special editor with
the
> > "Attach source" button. The message in the editor contains the name of
file
> > the debugger is looking for.
> >
> > <jim.brown@mindspring.com> wrote in message
> > news:3FBEECAF.4050200@mindspring.com...
> >
> >>I'm not sure how to tell what path the debugger is looking for.
> >>I tried browsing to the directory that contains the source
> >>and I tried entering an absolute path to the directory.
> >>
> >>Mikhail Khodjaiants wrote:
> >>
> >>>What is the path that debugger is looking for? Is it the same as you
> >>>specified in the "Attach source" dialog?
> >>>
> >>><jim.brown@mindspring.com> wrote in message
> >>>news:3FBE8370.3070501@mindspring.com...
> >>>
> >>>
> >>>>I'm attempting to step into a library that I built
> >>>>with command line tools with make and gcc.
> >>>>
> >>>>When I step into it, I get C/C++ File Editor message
> >>>>Source not found.
> >>>>I press the Attach Source... button,
> >>>>file system directory
> >>>>next
> >>>>browse to the directory where the source is.
> >>>>Finish
> >>>>
> >>>>Nothing changes. Still no source.
> >>>>
> >>>>I'm not sure what the "associate with" part of the
> >>>>dialog is supposed to do. Anything I can find in the
> >>>>documentation about associate or attach has to do with
> >>>>java classes and jar files.
> >>>>
> >>>>Any help appreciated.
> >>>>I'm on Solaris 9 and MinGW on WIn XP. Same problem both
> >>>>places
> >>>>
> >>>>Jim
> >>>>
> >>>
> >>>
> >>>
> >
> >
>
Re: Unable to attach source [message #87265 is a reply to message #86647] Mon, 24 November 2003 12:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Just add your home directory as an additional source location. On Windows it
should look like "C:\home..", on Solaris - "/home/...". Uncheck the
"Assosciate" option. This should work.

<jim.brown@mindspring.com> wrote in message
news:3FBF92CE.80405@mindspring.com...
> Now I see the path name.
>
> I'm in my home directory and I execute ./eclipse/eclipse
> The source I want is in a directory in my home directory.
> The path I see in the "Attach source" is a relative path
> from my home directory. "src/file.cpp"
>
> I guessed that maybe I needed to start eclipse from the
> directory where the executable is. I tried that but it
> made no difference. Attach source still says "src/file.cpp"
>
> Does this suggest anything I should try?
>
> Jim
>
>
> Mikhail Khodjaiants wrote:
> > When debugger doesn't find a source it displays a special editor with
the
> > "Attach source" button. The message in the editor contains the name of
file
> > the debugger is looking for.
> >
> > <jim.brown@mindspring.com> wrote in message
> > news:3FBEECAF.4050200@mindspring.com...
> >
> >>I'm not sure how to tell what path the debugger is looking for.
> >>I tried browsing to the directory that contains the source
> >>and I tried entering an absolute path to the directory.
> >>
> >>Mikhail Khodjaiants wrote:
> >>
> >>>What is the path that debugger is looking for? Is it the same as you
> >>>specified in the "Attach source" dialog?
> >>>
> >>><jim.brown@mindspring.com> wrote in message
> >>>news:3FBE8370.3070501@mindspring.com...
> >>>
> >>>
> >>>>I'm attempting to step into a library that I built
> >>>>with command line tools with make and gcc.
> >>>>
> >>>>When I step into it, I get C/C++ File Editor message
> >>>>Source not found.
> >>>>I press the Attach Source... button,
> >>>>file system directory
> >>>>next
> >>>>browse to the directory where the source is.
> >>>>Finish
> >>>>
> >>>>Nothing changes. Still no source.
> >>>>
> >>>>I'm not sure what the "associate with" part of the
> >>>>dialog is supposed to do. Anything I can find in the
> >>>>documentation about associate or attach has to do with
> >>>>java classes and jar files.
> >>>>
> >>>>Any help appreciated.
> >>>>I'm on Solaris 9 and MinGW on WIn XP. Same problem both
> >>>>places
> >>>>
> >>>>Jim
> >>>>
> >>>
> >>>
> >>>
> >
> >
>
Re: Unable to attach source [message #87302 is a reply to message #87250] Mon, 24 November 2003 13:52 Go to previous message
Eclipse UserFriend
Originally posted by: jim.brown.mindspring.com

Adding my home directory as a source location worked.
I think this is the final step to getting the system
set up so I can work on my code.

Many Many Thanks.

Jim


Mikhail Khodjaiants wrote:
> Just add your home directory as an additional source location. On Windows it
> should look like "C:\home..", on Solaris - "/home/...". Uncheck the
> "Assosciate" option. This should work.
>
> <jim.brown@mindspring.com> wrote in message
> news:3FBF92CE.80405@mindspring.com...
>
>>Now I see the path name.
>>
>>I'm in my home directory and I execute ./eclipse/eclipse
>>The source I want is in a directory in my home directory.
>>The path I see in the "Attach source" is a relative path
>>from my home directory. "src/file.cpp"
>>
>>I guessed that maybe I needed to start eclipse from the
>>directory where the executable is. I tried that but it
>>made no difference. Attach source still says "src/file.cpp"
>>
>>Does this suggest anything I should try?
>>
>>Jim
>>
>>
>>Mikhail Khodjaiants wrote:
>>
>>>When debugger doesn't find a source it displays a special editor with
>>
> the
>
>>>"Attach source" button. The message in the editor contains the name of
>>
> file
>
>>>the debugger is looking for.
>>>
>>><jim.brown@mindspring.com> wrote in message
>>>news:3FBEECAF.4050200@mindspring.com...
>>>
>>>
>>>>I'm not sure how to tell what path the debugger is looking for.
>>>>I tried browsing to the directory that contains the source
>>>>and I tried entering an absolute path to the directory.
>>>>
>>>>Mikhail Khodjaiants wrote:
>>>>
>>>>
>>>>>What is the path that debugger is looking for? Is it the same as you
>>>>>specified in the "Attach source" dialog?
>>>>>
>>>>><jim.brown@mindspring.com> wrote in message
>>>>>news:3FBE8370.3070501@mindspring.com...
>>>>>
>>>>>
>>>>>
>>>>>>I'm attempting to step into a library that I built
>>>>>>with command line tools with make and gcc.
>>>>>>
>>>>>>When I step into it, I get C/C++ File Editor message
>>>>>>Source not found.
>>>>>>I press the Attach Source... button,
>>>>>>file system directory
>>>>>>next
>>>>>>browse to the directory where the source is.
>>>>>>Finish
>>>>>>
>>>>>>Nothing changes. Still no source.
>>>>>>
>>>>>>I'm not sure what the "associate with" part of the
>>>>>>dialog is supposed to do. Anything I can find in the
>>>>>>documentation about associate or attach has to do with
>>>>>>java classes and jar files.
>>>>>>
>>>>>>Any help appreciated.
>>>>>>I'm on Solaris 9 and MinGW on WIn XP. Same problem both
>>>>>>places
>>>>>>
>>>>>>Jim
>>>>>>
>>>>>
>>>>>
>>>>>
>>>
>
>
Previous Topic:What are relative paths relative to
Next Topic:outline view and classes
Goto Forum:
  


Current Time: Sat Jul 05 12:25:28 EDT 2025

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

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

Back to the top