gdb can't find local static variables with gcc-4.4.6-3 in RHEL 6

Solution Verified - Updated -

Issue

  • If compiled with gcc-4.4.6-3, gdb is unable to find local static variables. This makes debugging some issues that require examining local static variables literally impossible.

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • gcc-4.4.6-3
  • gdb < 7.2-60

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content