Results 1 to 6 of 6

Thread: GDB and QT : Debugging woes

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: GDB and QT : Debugging woes

    hi all




    please find the attached png image for more idea on the problem

    when setting a break point to the function showHoldLines, the breakpoint is set in the correct file.

    while setting a break point to the function fn_1, the break point is set in the incorrect file.

    i see this problem in most of the functions that use STL containers.

    anybody knows what is happening.

    thanks and regards.
    B

  2. #2
    Join Date
    Feb 2008
    Posts
    10
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Re: GDB and QT : Debugging woes

    The listing may, in fact, not be erroneous. The functions that you talk about are trivial, with little content. fn_1 doesn't actually do anything - it declares something that isn't used. The compiler may be inlining functions and simplifying the code because it can, even with little or no optimization turned on. Many compilers can and will do this even without the inline keyword. When this happens, the symbol information for the method that gets inlined can be lost - there's nothing left of "your" code. (This is actually a difficult problem for debugger writers - which I was many lifetimes ago.) In these cases, the debugger is showing the sources for the code that remains in the generated stream of instructions that implement your program.

Similar Threads

  1. Replies: 3
    Last Post: 6th September 2010, 23:00
  2. Eclipse woes
    By Petr_Kropotkin in forum Qt-based Software
    Replies: 1
    Last Post: 10th February 2010, 16:40
  3. Layout woes
    By hgiese in forum Qt Programming
    Replies: 2
    Last Post: 3rd September 2009, 20:29
  4. More SQLite Woes and onFocus Woes
    By morraine in forum Newbie
    Replies: 1
    Last Post: 13th August 2008, 13:14
  5. QGridLayout woes
    By para in forum Newbie
    Replies: 3
    Last Post: 16th October 2006, 22:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.