yasm/plugins/dbg
Biswapriyo Nath a277a590f0
Fix detecting Windows platform (#204)
This replaces _MSC_VER macro with _WIN32 because the
former one is for MSVC and Visual Studio only and is
not defined in mingw environment. Wherease, _WIN32
macro is the proper way to check Windows platform
irrespective of compiler toolchain.

See the following official link for more info
https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
2023-05-12 21:06:53 -07:00
..
CMakeLists.txt Clean up plugins CMakeLists a bit. 2008-05-24 18:32:39 +00:00
dbg-objfmt.c Add cmake build infrastructure. 2008-05-22 09:08:03 +00:00
init_plugin.c Fix detecting Windows platform (#204) 2023-05-12 21:06:53 -07:00
README Update plugin README files for Windows. 2008-05-24 19:00:48 +00:00

This directory demonstrates how to build a basic plugin.
It does not need access to the yasm source, only an installed yasm.

To build:
  mkdir objdir
  cd objdir
  cmake ..
  make

Testing (on Windows):
  yasm -N Release/dbgmod.dll -f dbg -
     db 5
     ^Z

Testing (on Unix):
  yasm -N ./libdbgmod.so -f dbg -
     db 5
     ^D

Result lines will have PLUGIN prefixed to the function calls; this
demonstrates the plugin is being used rather than the builtin dbg module.