diff options
author | Basile Starynkevitch <basile.starynkevitch@inria.fr> | 2004-04-20 09:30:18 +0000 |
---|---|---|
committer | Basile Starynkevitch <basile.starynkevitch@inria.fr> | 2004-04-20 09:30:18 +0000 |
commit | dd1fbbff255e4df8e05fc49789b957ffee2e378d (patch) | |
tree | 260069198106e4d3826a8c43884b5e50896c30dc /tools | |
parent | 74b1741fe08f9c1da5a96f3b13c06aaa84625f7a (diff) |
produced dump with prologue and epilogue
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6240 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dumpobj.ml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/dumpobj.ml b/tools/dumpobj.ml index 4605b765a..5b9a85b4c 100644 --- a/tools/dumpobj.ml +++ b/tools/dumpobj.ml @@ -522,13 +522,17 @@ let dump_exe ic = let main() = for i = 1 to Array.length Sys.argv - 1 do - let ic = open_in_bin Sys.argv.(i) in + let filnam = Sys.argv.(i) in + let ic = open_in_bin filnam in + if i>1 then print_newline (); + printf "## start of ocaml dump of %S\n%!" filnam; begin try objfile := false; dump_exe ic with Bytesections.Bad_magic_number -> objfile := true; seek_in ic 0; dump_obj (Sys.argv.(i)) ic end; - close_in ic + close_in ic; + printf "## end of ocaml dump of %S\n%!" filnam; done; exit 0 |