Denis

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Debug inline function from include file #2772
    Denis
    Participant

    Ok…
    my project scenario:

    directory structure located on Windows PC:

    
    my_project                                             <- !!! - this dir is windows share for linux
    |-  lin-driver-prj
    |     -  driver files
    |
    |-  test-apps
    |       |-  test-app-1
    |       |     |- main.cpp
    |       |     |- header.h                         <- !!! - inline functions debug normal (all OK)
    |       |     |- test-app-1.vcxproj
    |       |     - test-app-1.Debug.vgdbsettings
    |       |
    |       |-  test-app-2
    |               - files...
    |
    - common-hdr-1.h                          <- !!! - inline functions debug from common-hdr-1.h FROM VisualGDB CACHE
    

    Project located on windows PC. my_project directory - is windows share for linux.
    VisualGDB project settings:
    - File sync - use share to sync
    - Share forlder mode - manually
    - Local directory - $(ProjectDir)
    - Remote directory - "rootprj_from_win" <- this is linux mount point for windows share "my_project". Files "common-hdr-1.h" and "header.h" are part of project "test-app-1".
    include file path settings - set to "." and "....".
    inline functions from "header.h" debug normal.
    inline functions from "common-hdr-1.h" debug from VisualGDB cache.
    If i move "header.h" to the same location as "common-hdr-1.h", then "header.h" will debug from VisualGDB cache too.

    Hope this help to reproduce this behavior.

    Summary IMHO:
    if i use
    #include
    #include
    #include "header.h"
    #include "common-hdr.h"

    "sys/ioctl.h" and "errno.h" - are linux system include files. They are not part of the project. They are external project dependencies. And they must opens from CACHE.
    "header.h" - is part of the project (included in project as file), located in the project directory. And it must opens from it's location (not from cache).
    "common-hdr.h" - is part of the project (included in project as file), not located the project directory. And it must opens from it's location too (not from cache).

    Thanks.

Viewing 1 post (of 1 total)