Variables name with $ sign?(debug)

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

Variables name with $ sign?(debug)

Postby Kuan Hsu » Feb 11, 2018 13:35

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: 821
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Variables name with $ sign?(debug)

Postby SARG » Feb 11, 2018 16:16

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 :-)

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 1 guest