Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8978453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:37:01+00:00 2026-06-15T19:37:01+00:00

I need to debug a C++ application (compiled with g++-4.5) with gdb on interactive

  • 0

I need to debug a C++ application (compiled with g++-4.5) with gdb on interactive console. I know very little about it, except the start, list and bt commands. I’m not asking for a tutorial about it, as I’ve found plenty with my old friend google. I just need a little bit help with something I cannot find in the help or references.

The C++ application is a UnitTest++ runner, that links several shared libraries. All these libraries have been built with the appropiate flags for debug information (-ggdb -O0) and I just need a way to set a breakpoint at a certain source file of one of the shared libraries. I’m not sure how I am supposed to navigate to that listing and set the breakpoints

Any gdb guru still out there wanting to lend a hand?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:37:02+00:00Added an answer on June 15, 2026 at 7:37 pm

    To set breakpoint use break command in gdb. You can use the alias b also.

    Example if you want to break at line 61 in file.cpp

    (gdb) b file.cpp:61

    OR

    (gdb) b "file.cpp":61

    If you want to break at a method in a class, type the class name at the gdb prompt and press tab, it will show you all the methods in the class, you can then set breakpoint like this.

    Example a method display() in class Foo

    (gdb) b Foo::display()

    If you want a more interacive/GUI mode then use Data Display Debugger(DDD) or go for Eclipse CDT

    To see the status of shared libraries loaded, use info shared

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to debug my application to look for content in variables and so
I am developing a application which uses location services. I need to debug the
I have a very specific case that I need to debug. I need to
I need to Log messages only when application is running in debug mode. I
I need to profile an application compiled with intel's compiler via VC++. I'm using
I need to debug a C application on the cell processor, and later to
I need to debug remote java code with IntelliJ Idea 10.5 (Ultimate Edition) When
I need to debug a class library project that is provided to the main
I need to debug some binary crash using IDA Pro. What is the command-line
I sometimes need to debug JS in other browsers, and it would be really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.