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 6785961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:11:22+00:00 2026-05-26T17:11:22+00:00

Stepping through C code in gdb using Eclipse, I noticed that for a variable

  • 0

Stepping through C code in gdb using Eclipse, I noticed that for a variable char* sval gdb prints (in Expressions tab):

  • Expression: sval
  • Type: char*
  • Value: 0x7fffd9d79840 “BIDPRICE”

However I know that the value should be something different (say, “BIDZSPD”) because it was assigned a few lines above. Indeed, the value of sval[3] is ‘Z’, as expected.

Then I noticed the following in the expressions view, same as in mouse-over on a variable:

Name : sval
Details:0x7fffd9d79840 "BIDZSPD"
Default:0x7fffd9d79840 "BIDPRICE"
Decimal:140736848173120
Hex:0x7fffd9d79840
Binary:11111111111111111011001110101111001100001000000
Octal:03777773165714100

Looks like different representations of char pointer, but why Details is different from Default? Should I interpret “Default” as previous value? Why Default is shown as expression value, and not current value?

  • 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-26T17:11:22+00:00Added an answer on May 26, 2026 at 5:11 pm

    Full build fixed it. This is one of the things one needs to keep in mind when working with C++: if things look really screwy (like gdb reporting different values by the same address), you have to bite the bullet and do a full build.

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

Sidebar

Related Questions

I'm stepping through code using Eclipse PDT. When I mouseover an array it says
You're stepping through C/C++ code and have just called a Win32 API that has
I was stepping through some simple Objective-C code with gdb (inside of Xcode) and
While stepping through code today, I noticed something unexpected. This statement: if Object.respond_to? :hello
I'm using GDB to step through the code. The problem is my code has
Using C# in Visual Studio 2008 and stepping through a function in the debugger
I would like to implement or use functionality that allows stepping through a Table
So I'm (remotely) debugging a java/jboss application in Eclipse, stepping through line by line.
What can be done to skip through the parts of code when stepping through
So I am stepping through my code and now I run the project again

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.