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. Linuxfb plugin platform cannot use gdb to debug QT programs normally

Linuxfb plugin platform cannot use gdb to debug QT programs normally

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 262 Views
  • 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.
  • M Offline
    M Offline
    monkey_lqd
    wrote on last edited by
    #1

    Hardware resources: PC / embedded development version

    Operating system: linux

    problem:
    On the Linux operating system, debug the QT program. QT platform plugin I use linuxfb. I use gdb to debug QT programs with UI. (QT console program does not have the following problems)

    The debugging steps are as follows:

    Step 1: Start the program through gdb

    gdb test

    Step 2: After entering gdb, set the program startup parameters

    set args -platform linuxfb

    Step 3: Start debugging

    (gdb) r

    Step 4: Press ctrl + c to interrupt gdb debugging

    At this time, gdb prompts the following information:

    [Inferior 1 (process 28879) exited with code 01]

    Then enter:
    (gdb) bt

    gdb prompt: No stack.

    Then enter continue

    gdb prompt: The program is not being run.

    This is a very strange question. If I set the startup parameters to be set args -platform xcb or set args -platform eglfs. Then the above problems will not occur during the gdb debugging process.
    Does anyone know why this is happening?

    1 Reply Last reply
    0

    • Login

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