It is currently Fri Apr 03, 2020 5:43 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [4.30 x64] PB_DEBUGGER_Unicode not working?
PostPosted: Thu Feb 26, 2009 9:57 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
With this compiled into a userlib:
Code:
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!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 26, 2009 1:28 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5797
Location: Germany
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 27, 2009 5:43 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
no prefix:
Code:
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!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Mar 01, 2009 11:36 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
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:
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!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye