ket

Forum Replies Created

Viewing 15 posts - 166 through 180 (of 266 total)
  • Author
    Posts
  • in reply to: Setting breakpoints in C++ code #2676
    ket
    Participant

    Hi,

    Thank you for the additional information, we will use it to recreate, diagnose and fix the issue.

    In the meantime you can use the following workaround to set breakpoints in your app:
    1. Attach to the process as usual.
    2. Press on ”Break all”.
    3. Look for the “Show a list of all source files” button in the GDB Session window, you may have to enlarge the window to see it. Click on the button.
    4. This tool lists all source files GDB knows, you can also open those files in VS with the tool and set breakpoints as usual in them. VisualGDB will fetch the files from the remote machine automatically.

    Lastly you can also set breakpoints manually in the GDB Session window.

    in reply to: GCC 4.8? #2682
    ket
    Participant

    Hi,

    Yes, for you can find the arm-eabi toolchain here: http://gnutoolchains.com/arm-eabi/

    in reply to: Setting breakpoints in C++ code #2674
    ket
    Participant

    Hi,

    We need more information to diagnose the issue. Could you please post a screenshot showing the code, the breakpoint window and gdb log?

    in reply to: QT Raspberry local build on windows #2672
    ket
    Participant

    Hi,

    Reinstall the latest Raspberry Pi toolchain from http://gnutoolchains.com/raspberry/ . It was updated a couple of days ago to also include the test tool.

    in reply to: smarTTY connection failure #2664
    ket
    Participant

    Hi,

    Most likely the key file format is not supported by libssh2 that SmarTTY uses. Please try other authentication methods.

    in reply to: Bootloader #2659
    ket
    Participant

    Hi,

    You can change the linker script to control the way the code is placed into memory. Look into the build output of your project. The pre-last line building the elf file includes the linker script that specifies the starting address. Edit that lds file to start from a different address.
    Please note that if you simply relocate the start of the flash memory to the new address, the ISR vector will also be placed there that is probably not a valid configuration.

    in reply to: Having trouble with file includes #2644
    ket
    Participant

    Hi,

    gcc does not support recursive include directories. The point about include paths is to be able to pick and choose which directories to include. Your current IDE is probably adding all the subfolders to includes automatically.

    There is nothing wrong with separating files into folders, it only means that you either need to refer to them based on their relative paths or add the folder paths to include directories. The usual point about making subfolders for code is to be able to include only partial subsets for compilation to reduce compile time for some targets. If many subfolders of headers need to be included, then there is usually a master header file to include instead which in turn refers to all the headers in their subdirectories. For Visual Studio c/c++ projects creating actual subfolders to sort the code for more convenient development is not necessary as the folders in Solution Explorer are virtual anyway and you can create as many virtual folders as you want while still having all the code in one physical folder. You can switch viewing modes in Solution Explorer by enabling and disabling the “Show All Files” button at the top.

    in reply to: Waiting for a background operation… #2639
    ket
    Participant

    Hi,

    Are you using Texane/ST-Link or OpenOCD?

    in reply to: Having trouble with file includes #2642
    ket
    Participant

    Hi,

    If the errors you are getting are compilation errors, then you need to add include directories. If you are using VisualGDB makefiles, then simply go to VisualGDB Project Properties and add the include directories(the directories your files are directly in) to the include directories list in the makefile settings. If you are using your own makefiles, then you need to add the equivalent -I statements to your build recipes.

    If the errors are Visual Studio IntelliSense errors, then again go to VisualGDB Project Properties and add the directories to the IntelliSense directories list. If you are using VisualGDB makefiles, then all include directories are added to IntelliSense directories automatically.

    in reply to: break points issue #2635
    ket
    Participant

    Hi,

    VisualGDB first tries to use the full path when setting breakpoints. If that fails, then the path from ‘info sources’ is used.

    To analyze the breakpoint issue further please give us a full GDB log. So please enable diagnostic logging in the GDB settings page of VisualGDB Project Properties. Then start debugging, replicate your scenario i.e. try to set a breakpoint, stop debugging, send us the gdb log file from your project directory.

    in reply to: Help using toolchain on custom hardware. #2627
    ket
    Participant

    Hi,

    Those flags should normally avoid using any not explicitly specified libraries. It is hard to say more without even seeing a single error message you are having.
    Of course another thing to remember with cross-compilation is that the shared libraries used for building and running are not necessarily the same.

    in reply to: Precompiled headers #2632
    ket
    Participant

    Hi,

    The precompiled header setting only applies to Windows projects in Visual Studio.

    However, you can replicate the same behavior also with gcc/make. Look in gcc documentation for hints on how to modify the makefile:
    http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html

    in reply to: break points issue #2633
    ket
    Participant

    Hi,

    First of all make sure that all of the code is built in debug mode with symbols. If your project depends on libraries that you want to debug as well, these libraries must also be built with symbols.

    Secondly, have you tried the breakpoints diagnostic tool to fix the path mapping? It is described in the breakpoint problem diagnosing tutorial (relevant from point 19 onwards):
    http://visualgdb.com/tutorials/linux/bp-diag/

    in reply to: VisualGDB exited with code 1 #2626
    ket
    Participant

    Hi,

    This error means to look inside the Output tool window for more clues as the problem cannot be mapped to source files.

    Add include paths in VisualGDB Project Properties in Makefile settings. Depending on NDK version it may prefer relative paths.

    Do not include STL headers manually to includes, it can give compilation problems, setting the STL in Application.mk is enough. The Android build system will then fetch the headers doing building automatically. Do add the appropriate STL header include to IntelliSense directories, along with …android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include/bits as it contains the stl definitions, including this will solve most of the IntelliSense errors.

    in reply to: Native Heap Leak Detection #2625
    ket
    Participant

    Hi,

    Thanks for the great idea. Currently heap inspection is not part of VisualGDB features. Overall adding functionalities from DDMS to Visual Studio through VisualGDB is in our plans.

    As VisualGDB version 4.1. is already approaching release, we have added heap inspection to the planned feature list of VisualGDB version 4.2.

Viewing 15 posts - 166 through 180 (of 266 total)