Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Stripping debug symbols from a debug binary
Forum Updated to NodeBB v4.3 + New Features

Stripping debug symbols from a debug binary

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 3.9k Views 1 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.
  • S Offline
    S Offline
    sandeepsastry
    wrote on last edited by
    #1

    Problem statement: When I encounter a crash in application and get a core file, I should be able to do a back trace and find detailed information.

    Possible solution: I can use a debug version of the binary (using the debug keyword in the .pro file). The downside is, I cannot use debug binary for customer releases.

    I know that in gcc/Makefile I can compile my code with -g option and then strip the debug symbols (after stripping debug symbols, the binary is equivalent to a release version). Store the stripped debug symbols. Then if I encounter crash, using gdb I can supply the stored debug symbols to the release binary and can get detailed stack trace. More information can be found in the below links "Your text to link here...":http://stackoverflow.com/questions/866721/how-to-generate-gcc-debug-symbol-outside-the-build-target
    and "Your text to link here...":http://marcioandreyoliveira.blogspot.ae/2008/03/how-to-debug-striped-programs-with-gdb.html

    Question: Using Qt and QMake how can I achieve the same thing? Basically if I get a crash on release version, how can I get detailed back trace? What are the possible approaches?

    Thanks,
    -Sandeep

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sandeepsastry
      wrote on last edited by
      #2

      I found out that I can do the same thing with Qt and QMake, as it of-course uses gnu Makefile internally. But is it the only and right way of doing or any other alternatives available?

      Thanks,
      -Sandeep

      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