Variables name with $ sign?(debug)

Linux specific questions.
Post Reply
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Variables name with $ sign?(debug)

Post by Kuan Hsu »

I'm learning debug now, I wrote a simple file and compile with -g option, It success but the name of variables are with $ sign while debuging, ex: I$0

Code: Select all

cls
dim as integer i = 100
i += 50
sleep
end
I use gcc to wrote a same simple file, the name of variable is I without $ sign.
Can I make the name of variables without $ sign in freeBASIC?
SARG
Posts: 1763
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Variables name with $ sign?(debug)

Post by SARG »

Kuan Hsu wrote: Can I make the name of variables without $ sign in freeBASIC?
You can't. When using -gcc (instead of gas) the translation in C by FBC changes names adding $ and numbers and creates a lot of additional variables.
I had to do a lot of job in fbdebugger to retrieve the initial names and clean the variables. You can look at its source code. Good luck.

So it's easier to debug, with a debugger not with print etc ;-), using the gas version.

If help needed. I'm still there :-)
Post Reply