Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. how to configure project for debugging when cross compiling
Forum Updated to NodeBB v4.3 + New Features

how to configure project for debugging when cross compiling

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Waldi79
    wrote on 22 Jan 2016, 09:01 last edited by
    #1

    Hello,

    I am developing on an ubuntu box an application for a arm v7 based embedded board.

    I am facing problems when debuging the cross compiled arm project. When the debugger starts, I get the following suspicious output:

    Debugging starts
    Listening on port 10001
    Remote debugging from host 10.1.0.3
    while parsing target description (at line 1): Target description specified unknown architecture "arm"
    Could not load XML target description; ignoring
    Unable to find dynamic linker breakpoint function.
    GDB will be unable to debug shared library initializers
    and track explicitly loaded dynamic code
    

    then the application starts and all qDebug() output is displayed in the
    application output pane.

    When the app reaches the first breakpoint, the following error message appears:

    Signal Received
    The inferior stopped because it received a signal from the operating system.

    Signal name: SIGSEGV
    Signal meaning: Segmentation fault

    The embedded board has no gdbserver preinstalled, so I downloaded the source and cross
    compiled it. As far as I see, there is no malfunction whatssoever with gdbserver.

    Further, I missing the basic understanding how cross debugging works. How does gdb handle the different
    executable types. gdbserver in my understanding is only a hose for gdb information to and from the target.
    Is there a better documentation available?

    Waldi

    1 Reply Last reply
    0
    • S Offline
      S Offline
      skypuppy
      wrote on 22 Jan 2016, 18:37 last edited by
      #2

      Bear in mind that I have NO idea what I'm talking about. However, if using QtCreator, have you set up your "kit" under tools on the big computer (not the embedded one?) :)
      Which platform are you using? I'm trying to get RPi2 and Beaglebone Black (BBBj) to cooperate with Qt Creator on Debian Wheezy Linux PC, and so far, not working at all. So take my suggestion with a grain of salt.

      Also, you can run the full Qt on the arm (without using a host PC) with lots and lots and lots of patience and diligence. I got it to work on an RPi2 (mostly) but not yet on a BBB.

      Good luck.

      1 Reply Last reply
      0

      1/2

      22 Jan 2016, 09:01

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved