summaryrefslogtreecommitdiff
path: root/plugins/dbg/README
blob: d4fdbc58ef7cf5249456520f5a9aee9b7622a624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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.