Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Sorry, still search question


cdt-dev-admin@xxxxxxxxxxx wrote on 11/09/2004 04:40:19 AM:

> John Camelon wrote:
> >Selection Search currently does not work for macro definitions/usage.
>
> John, thanks a lot for the clarification.
>
> But I have the very similar problem with functions too. I was sure that this
> is somehow connected...:-(
>
>    I have a text, for example:
>
> if (plrvw_FindPCI())
>    return(-1);
>
> 1. How can I jump to the plrvw_FindPCI() code(body), which resides in another
> file pci.c of this project? F3 (and all other search functions on right mouse
> button) returns error message in status line.


There currently is an enhancement request open for Find Definition.  This functionality is still not available as of yet.  
Vote for https://bugs.eclipse.org/bugs/show_bug.cgi?id=69063 if you are interested in seeing this for CDT 3.0.  

> 2. Is there any way to jump to the plrvw_FindPCI() prototype, which
> resides in
> plrvw.h file included?


If the file is included as we parse the file that uses plrvw_FindPCI(), F3 should take you there.  
You have most likely uncovered a bug.   If you enable indexing and indexer problem markers (off the
Project property page) you can see what type of problems the parser believes it is enountering.  

Thanks
JohnC

> --
>
> > Hello, all.
> >    I run Eclipse 3.0.1 and CDT 2.0.2 on RH9/GTK.
> >    I have an ordinary C-project (Linux driver) with 3 files as a
> > managed build.
> > All indexing options are ON.
> >
> >    File myinclude.h contains:
> > #define RD_DE_REG      10
> >    File myc.c contains somewhere in the code:
> > f = open(Dev, RD_DE_REG);
> >
> >    If I put a cursor on RD_DE_REG and press F3 (open declaration), I
> > see search
> > panel for a while and then the text "the operation is unavailable for
> the
> > current selection" in the status bar appears in red.
> >    The same result is for Gtrl-G.
> >    If I do Ctrl-H and ask to search for RD_DE_REG in the workspace for
> all
> > occurrences in C/C++ tab, I receive only one reference to the
> myinclude.h
> > file.
> >    The behavior is the same with function declarations/usage.
> >
> >    The thing seem to be very basic, therefore I am sure I missed
> > something very
> > basic too.
> >
> >    I shall be very thankful for any help...
> >
> > --
> > Leon Pollak
> > leonp at plris dot com
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top