Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  Debugging strips compile module_info

xpdoka
Posted: Wed Oct 25, 2006 8:22 am Reply with quote
User Joined: 16 Oct 2006 Posts: 52
Hello,

It appears that any kind of debugging activity strips
compile information from the module_info.
This is very inconvenient when debugging 24/7 systems which
use this information, e.g. for automatic code upgrades...

The problem exists from at least R8, through to R11, and at
least on Linux and MacOSX.

MacOSX 10.4.7, R11B1:

Eshell V5.5.1 (abort with ^G)
1> compile:file(foo, [debug_info]).
{ok,foo}
2> foo:module_info(compile).
[{options,[debug_info]},
{version,"4.4.1"},
{time,{2006,10,19,20,41,43}},
{source,"/Users/xpdoka/tmp/foo.erl"}]
3> int:i(foo).
{module,foo}
4> foo:module_info(compile).
[]

Linux FC4, R10B10:

Eshell V5.4.13 (abort with ^G)
1> compile:file(foo, [debug_info]).
compile:file(foo, [debug_info]).
{ok,foo}
2> foo:module_info(compile).
foo:module_info(compile).
[{options,[debug_info]},
{version,"4.3.12"},
{time,{2006,10,19,14,52,41}},
{source,"/home/dw/tmp/foo.erl"}]
3> int:i(foo).
int:i(foo).
{module,foo}
4> foo:module_info(compile).
foo:module_info(compile).
[]

Linux FC4, R8:

Eshell V5.1.2 (abort with ^G)
1> compile:file(foo, [debug_info]).
compile:file(foo, [debug_info]).
{ok,foo}
2> foo:module_info(compile).
foo:module_info(compile).
[{options,[v3,debug_info]},{version,"4.0.1"},{time,{2006,10,19,14,58,54}}]
3> int:i(foo).
int:i(foo).
{module,foo}
4> foo:module_info(compile).
foo:module_info(compile).
[]

Regards,

Dominic Williams
http://www.dominicwilliams.net

----






_______________________________________________
erlang-bugs mailing list
erlang-bugs@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-bugs
Post recived from mailinglist
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum