Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » asm int 3, abort();
asm int 3, abort(); [message #10420] Sun, 08 July 2007 13:31 Go to next message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

#ifndef __NOASSEMBLY__
#if defined(_DEBUG) && defined(CPU_X86)
#ifdef COMPILER_MSC
_asm int 3
#endif

#endif
#endif
#else
write(2, msg, strlen(msg));
write(2, "\n", 1);
#endif
LOG(GetLastErrorMessage());
abort();

better would be to use with MSVC:

Microsoft Specific
Causes a breakpoint in your code, where the user will be prompted to run the debugger.


<intrin.h>
void __debugbreak();

is similar to: __asm { int 3 }} on an x86 computer.

[Updated on: Sun, 08 July 2007 13:33]

Report message to a moderator

Re: asm int 3, abort(); [message #10429 is a reply to message #10420] Mon, 09 July 2007 09:38 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Does not seem to work with MSC 7.1....
Re: asm int 3, abort(); [message #10435 is a reply to message #10429] Mon, 09 July 2007 10:56 Go to previous messageGo to next message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

But will work with msvc8 x64, msvc8 ARM where asm int 3 will not.
Re: asm int 3, abort(); [message #10438 is a reply to message #10435] Mon, 09 July 2007 12:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
arturbac wrote on Mon, 09 July 2007 04:56

But will work with msvc8 x64, msvc8 ARM where asm int 3 will not.



Yes, just wanted to say I would rather made it x64/MSC and ARM/MSC specific....

If you can, please provide the tested (on x64 at least) patch.

Mirek
Re: asm int 3, abort(); [message #10448 is a reply to message #10438] Mon, 09 July 2007 23:23 Go to previous messageGo to next message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

tested with x64 & MSVC8.
  • Attachment: Util.cpp
    (Size: 19.59KB, Downloaded 321 times)
Re: asm int 3, abort(); [message #10453 is a reply to message #10448] Tue, 10 July 2007 05:14 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
What is with TimeStop::ToString?

Mirek
Re: asm int 3, abort(); [message #10458 is a reply to message #10453] Tue, 10 July 2007 11:20 Go to previous message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

Ignore it please. I forget about that change, sorry.
Previous Topic: 64bit pointers
Next Topic: Gate() or flow control problem
Goto Forum:
  


Current Time: Fri Mar 29 15:34:07 CET 2024

Total time taken to generate the page: 0.02950 seconds