|Re: [hatari-devel] Loading symbol info from program DRI/GST symbol table|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
On maanantai 08 huhtikuu 2013, Laurent Sallafranque wrote:
> In my code, all my symbols are in lower case.
> The compiler or the hatari debugger transforms them in UPPER case.
Hatari debugger doesn't do anything like that.
Does "OPT X+" instead of, or in addition to "OPT D+",
fix the symbol table your linker generates?
> Would it be possible to make them case insensitive ?
> For example, I wanted to :
> > d my_function
> Unrecognized number prefix in 'my_function'!
> Invalid address value 'my_function'!
Use TAB completion. Symbol name TAB-completion *is* case-insensitive,
and it completes the name to correct case.
Note that symbol name matching (done after you press enter)
itself must be case-sensitive, because e.g. C language is case
sensitive ("foobar" and "FOOBAR" are different symbols).
> > d MY_FUNCTION
> $0617da : 2f39 0006 3372 move.l $63372,-(sp)
> $0617e0 : 3f3c 0049 move.w #$49,-(sp)
> $0617e4 : 4e41 trap #1
> I copy the label from my source code to check the code into the hatari
> Le 08/04/2013 19:58, Laurent Sallafranque a écrit :
> > HI,
> > That's absolutely perfect !
> > OPT D+ was the answear.
> > Eero, the symbols directly in the debugger is really a great
> > improvement, thanks a lot.
> > Regards
> > Laurent
> > Le 08/04/2013 04:24, Miro Kropác(ek a écrit :
> >> According to my Devpac v2 manual, Devpac's linker generates DRI
> >> symbol table
> >> with "-D" option and "-X" option produces extended symbol
> >> information (hopefully same as GST).
> >> If I'm not mistaken, you can set this directly in Devpac, either in
> >> Options or as OPT directive directly in the source. For example OPT
> >> D- disables symbols, I guess OPT D+ enables them.
> >> As for GCC, at least by default GCC outputs a.out format symbol
> >> table,
> >> I don't know whether there's an option to generate DRI/GST format.
> >> -Wl,--traditional-format