Thread: Function and variable names visible in disassembler/debugger

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    204

    Function and variable names visible in disassembler/debugger

    I've been examining some compiled code with OllyDbg. I've noticed that I can see the names of classes, functions, and variables. Is OllyDbg extrapolating this information from my source code? Or, is this information actually contained in the compiled code?

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    No, the "debug information" comes either from some separate "symbol files" or are present inside the executable itself. The debugger does not read the source code, but can match the debug information to the source code so you can see source code instead of assembly.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. wrong variable value from debugger on x64
    By George2 in forum Windows Programming
    Replies: 1
    Last Post: 07-11-2008, 01:57 AM
  2. How to manage variable and function names
    By jefflieu in forum C++ Programming
    Replies: 14
    Last Post: 02-07-2008, 03:33 AM
  3. Variable file names with fopen function?
    By Chickenhawk in forum C Programming
    Replies: 5
    Last Post: 07-26-2006, 04:38 PM
  4. Variable Names based on Variable Values
    By mrpickle in forum C++ Programming
    Replies: 6
    Last Post: 01-27-2003, 10:33 AM
  5. Valid variable and function names
    By sean in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-29-2002, 12:30 PM