www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/10/01:54:06

Date: Wed, 10 Jul 1996 08:48:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Gilles Bouthenot <megar AT msrwww DOT fc-net DOT fr>
Cc: djgpp AT delorie DOT com
Subject: Re: req help about fsdb and variable symbols
In-Reply-To: <1.5.4.32.19960709232421.0067ee50@msrwww.fc-net.fr>
Message-Id: <Pine.SUN.3.91.960710084310.3598G-100000@is>
Mime-Version: 1.0

On Wed, 10 Jul 1996, Gilles Bouthenot wrote:

> main()
> {
>  unsigned byte *fname;
>
>  gets(fname);
>  puts(fname);
> }
[snip]
> It seems that fsdb can't access to variables with their symbol names. (gdb
> work fine). 

Prepend an underscore to any name of a C identifier, and FSDB will
recognize it (e.g. use `_fname' in the above program instead of `fname'). 
FSDB is NOT a source-level debugger, so it only knows the symbols in 
their assembly-language format.  If you debug a C++ program, you will 
have to know how the C++ compiler mangled the name of the symbol to use 
it with FSDB.

> I didn't manage to find _any_ doc about fsdb.

Did you press that F1 key inside FSDB?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019