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

  • SEARCH
  • Home
  • 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 6944221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:16:48+00:00 2026-05-27T13:16:48+00:00

When debugging with GDB during one debug session it becomes slower and slower over

  • 0

When debugging with GDB during one debug session it becomes slower and slower over time. Even simplest operations like step over and step into can take dozens of seconds and sometimes even minutes.

I was debugging a rather big project (Chromium browser). The only reason I could think of was that gdb is getting slower over time because it loads more and more symbols and it takes longer to work with them. However Chromium compiles entire code into one huge executable, which contains all symbols which should be loaded in the very beginning. Thus symbol database won’t grow during the debugging. Moreover why would one need to look up symbols just to perform step over or step into operation?

While testing I have tried using gdb with front-ends (Eclipse, QtCreator, Emacs) and from the command line to confirm that this is not an IDE problem. Both use cases demonstrate same problem, however it seems like it starts to appear sooner in IDEs (probably because IDE also loads symbols for the watch view, call stack, list of threads etc.).

Why is GDB getting slower? Is it a design flaw, a bug or some specific problem in my computer? Are there any free alternatives to GDB that work faster?

  • 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-05-27T13:16:48+00:00Added an answer on May 27, 2026 at 1:16 pm

    Why is GDB getting slower?

    It’s a bug. Try newer version of GDB (preferably current CVS snapshot). If the problem is still there, report it to GDB bugzilla with repro instructions.

    all symbols which should be loaded in the very beginning.

    GDB loads partial symbols (psymbols) on startup, and reads more “on-demand”, so some growth is expected.

    why would one need to look up symbols just to perform step over or step into

    In order to step over or into, GDB would likely need line tables for the current translation unit (TU). If your “step into” operation takes you to a new TU, then new line tables would have to be loaded.

    Still, it should not take GDB anywhere near minutes to step or next.

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

Sidebar

Related Questions

I am trying to learn how to debug programs with gdb following Debugging with
I encountered such error when executing ni command during gdb debugging: Warning: Cannot insert
Debugging with gdb, any c++ code that uses STL/boost is still a nightmare. Anyone
I am debugging with GDB a crunching number C++ program. It takes 10 minutes
while debugging a C++ program with GDB, is it possible somehow to add comments
People use gdb on and off for debugging, of course there are lots of
Debugging asp.net websites/web projects in visual studio.net 2005 with Firefox is loads slower than
I'm debugging with the Codesourcery version of gdb for ARM (i.e. arm-none-eabi-gdb) and attempting
So I am debugging an x86 program using GDB. I am in a certain
I'm debugging a program with GDB. unsigned int example = ~0; gives me: (gdb)

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.