Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update plugin README files for Windows.

svn path=/trunk/yasm/; revision=2106
  • Loading branch information...
commit 13665a69db954e8ab1dee0f160330c16df98bbab 1 parent e09d5a7
@PeterJohnson PeterJohnson authored
Showing with 25 additions and 8 deletions.
  1. +4 −2 plugins/README
  2. +9 −3 plugins/dbg/README
  3. +12 −3 plugins/x86/README
View
6 plugins/README
@@ -10,11 +10,13 @@ The plugins are written to be compiled against an *installed* yasm.
Plugins may be loaded on the yasm command line using the -N command line
option, e.g.:
yasm -N ./libdbgmod.so
+ yasm -N Release/dbgmod.dll
yasm -N /usr/local/lib/libx86mod
(the .so will be automatically appended)
If no directory path is specified, yasm will search in standard library
locations (e.g. LD_LIBRARY_PATH, the rpath of the yasm executable, etc) to
-try to load the plugin. Thus the last example could likely be written:
- yasm -N libx86mod
+try to load the plugin. Thus the last example (after installing the plugin)
+could likely be written:
+ yasm -N x86mod
Plugins may override builtin modules like x86.
View
12 plugins/dbg/README
@@ -7,9 +7,15 @@ To build:
cmake ..
make
-Testing:
+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)
+
+Result lines will have PLUGIN prefixed to the function calls; this
+demonstrates the plugin is being used rather than the builtin dbg module.
View
15 plugins/x86/README
@@ -1,10 +1,19 @@
This directory demonstrates how to build a yasm builtin module as a plugin.
This can be useful for integrating custom changes without
rebuilding/reinstalling yasm.
-It requires access to the yasm source.
-The yasm source directory must be defined to cmake, e.g.
+It requires access to the yasm source. It defaults to assuming it is being
+built inside of the yasm source tree.
+
+To build:
mkdir objdir
cd objdir
- cmake -DYASM_SOURCE_DIR=/home/foo/yasm ..
+ cmake ..
make
+
+Testing (on Windows):
+ yasm -N Release/x86mod.dll -f x86 ...
+
+Testing (on Unix):
+ yasm -N ./libx86mod.so -f x86 ...
+
Please sign in to comment.
Something went wrong with that request. Please try again.