This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232529 - Can't navigate to externed variable declaration
Summary: Can't navigate to externed variable declaration
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-10 17:21 UTC by ikogan
Modified: 2013-07-12 05:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ikogan 2013-07-10 17:21:12 UTC
Navigation to externed function works, but for a variable it keeps going to same extern ... line. Would be good to be able to navigate to the place where the variable is originally defined at.
Comment 1 Jiri Prox 2013-07-11 05:42:14 UTC
Can you please provide sample of code where can be demonstrated the requested behavior?

What type of navigation do you use (go to declaration, go to source etc...)?
Comment 2 ikogan 2013-07-11 18:01:58 UTC
Here is an example:

From NandTest.c:
..................................
extern void gvf_KillTasks(void); //!< from ShutdownTask.c
extern TCB_PTR Shutdown_task; //!< from ShutdownTask.c
.......................................................
Somewhere in the same file:
 

gvf_KillTasks(); - navigate to declaration takes me to the body of the function in a different file (ShutdownTask.c).
smx_TaskDelete(&Shutdown_task); - navigate to Shutdown_task decration takes me to the extern TCB_PTR Shutdown_task; //!< from ShutdownTask.c line in the same file (see above). Trying to navigate to declaration from this line just jumps to the beginning of the same line. The variable is declared in a different file (ShutdownTask.c).