[4.30 x64] PB_DEBUGGER_Unicode not working?

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

[4.30 x64] PB_DEBUGGER_Unicode not working?

Post by lexvictory »

With this compiled into a userlib:

Code: Select all

Import ""
PB_DEBUGGER_SendError(Message.p-ascii)
PB_DEBUGGER_SendWarning(Message.p-ascii)
PB_DEBUGGER_FileExists(*Filename)
PB_DEBUGGER_CheckLabel(*Label)
PB_DEBUGGER_Unicode.i
EndImport

ProcedureDLL TB_DebugCheckUnicode()
  ProcedureReturn PB_DEBUGGER_Unicode
EndProcedure
Using TB_DebugCheckUnicode() from inside another userlib, it always returns 0 (whether the userlib and/or test program is/are compiled in unicode mode).
Even using PB_DEBUGGER_Unicode directly in ASM, it's always 0.

I don't get any unresolved externals, so do correct me if I have done something wrong.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Well, it works fine from all the C libs.

Are you sure TailBite isn't prefixing it to become a local variable or something like that ?
quidquid Latine dictum sit altum videtur
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

no prefix:

Code: Select all

PB_TB_DebugCheckUnicode:
PS26=48
SUB    rsp,40
; ProcedureReturn PB_DEBUGGER_Unicode
MOV    rax,qword [PB_DEBUGGER_Unicode]
JMP   _EndProcedure27
; EndProcedure
XOR    rax,rax
_EndProcedure27:
ADD    rsp,40
RET
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

For some strange reason it's working fine today - ASM code is even the same...
Yesterday not even doing an If PB_DEBUGGER_Unicode in the TailBite wrapper function for PB_DEBUGGER_SendError worked...

:shock:

Sorry to be of bother.


However, there is a prefixed PB_DEBUGGER_Unicode symbol in the shared asm (that doesn't get used), presumably because this gives me a symbol already defined error compiling with F5:

Code: Select all

Import "" 
PB_DEBUGGER_Unicode.i
EndImport

Procedure test()
  ProcedureReturn PB_DEBUGGER_Unicode
EndProcedure
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Post Reply