Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » weird symbols resolving with tianocore project(CDT resolves symbols during indexing, but loses them when index completes)
weird symbols resolving with tianocore project [message #1704945] Tue, 11 August 2015 01:36 Go to next message
Vladimir Olovyannikov is currently offline Vladimir OlovyannikovFriend
Messages: 1
Registered: August 2015
Junior Member
Hi,
Before today I had no issues with the CDT indexer (be it a Linux kernel for ARM, Android, or some other complex projects). However, now when I want to get my hands dirty with UEFI using opensource Tianocore and Arm Juno board, and when I am trying to get the project indexed properly in Eclipse (tried several versions - Juno, Kepler, Luna, and now Mars) several definitions are not resolved. What is interesting is that when index is in progress Eclipse shows those defs as resolved, and I can verify and see that they were really resolved. However, when index completes, they are shown as unresolved, however, pressing F3 brings up a window with selections (see the attached picture).
index.php/fa/22855/0/
All the missing definitions are for the file the cursor is on.
How this file is invoked:
#include <Library/ArmPlatformLib.h>
- will include
#include <PiPei.h>
which in turn includes
#include <Uefi/UefiBaseType.h>
which includes
#include <Base.h>
which finally
#include <ProcessorBind.h>
, where
//
  // Assume standard AARCH64 alignment.
  //
  typedef unsigned long long  UINT64;
  typedef long long           INT64;
  typedef unsigned int        UINT32;
  typedef int                 INT32;
  typedef unsigned short      UINT16;
  typedef unsigned short      CHAR16;
  typedef short               INT16;
  typedef unsigned char       BOOLEAN;
  typedef unsigned char       UINT8;
  typedef char                CHAR8;
  typedef signed char         INT8;

This file is duplicated (with slightly different content depending on the CPU) for different chips, and depends on include line (-I).
I have specified include path based on the -I on the gcc command line:
index.php/fa/22856/0/
What am I doing wrong? How do I get these symbols to get resolved? The project builds fine under Eclipse.

Thank you!
Re: weird symbols resolving with tianocore project [message #1731348 is a reply to message #1704945] Wed, 04 May 2016 13:35 Go to previous message
Diego Medaglia is currently offline Diego MedagliaFriend
Messages: 1
Registered: May 2016
Junior Member
I got some success by adding include files in Project>>Properties>>Preprocessor Include Paths, Macros, etc.>>CDT User Setting Entries.

Included files were:
MdePkg/Include/Uefi (this is a directory)
MdePkg/Include/Base.h
MdePkg/Include/<arch>/ProcessorBind.h

The indexer still gets confused about Pcds and strings defined in the .uni files, but it's a start Wink
Previous Topic:Bug in the project properties => C/C++ Build => Settings
Next Topic:[MAC OS X] FLTK C++ Compilation Error
Goto Forum:
  


Current Time: Thu Apr 25 13:09:59 GMT 2024

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

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

Back to the top