Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamldebug does not support -pack'ed modules #4403

Closed
vicuna opened this issue Sep 24, 2007 · 2 comments
Closed

ocamldebug does not support -pack'ed modules #4403

vicuna opened this issue Sep 24, 2007 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 24, 2007

Original bug ID: 4403
Reporter: blume
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2011-05-29T10:14:15Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.10+dev
Fixed in version: 3.11.1+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: paul_stravers

Bug description

ocamldebug gets confused when loading a program using modules created by -pack.
If the program contains several packages containing modules with the same name,
e.g.,

Foo1.Bar1
Foo1.Bar2
Foo2.Bar1
Foo2.Bar2

then it will display the source code of, say, Foo1.Bar1 whenever the program
executes code in either Foo1.Bar1 or Foo2.Bar1. Furthermore, the break command
does not work:

break Foo1.Bar1.some_function

results in "unknown identifier ..."

break @ Foo1.Bar1 #56

results in "syntax error"

break @ Bar1 #56

results in "there is no event at that location"

(All error messages reported from memory.)

File attachments

@vicuna
Copy link
Author

vicuna commented Nov 11, 2008

Comment author: paul_stravers

I checked with the latest CVS (tag: release311) but the problem is still present. Our company (10 engineers, rapidly growing) develops in ocaml and bug 4403 has been nagging us for some time...

To reproduce the problem with a small example, untar the attached file pack_debug.tgz', type make' in the unpacked directory, then follow the script in README.

If there is anything we can do to contribute to the resolution of PR 4403, please let us know.

Kind regards,
Paul Stravers

@vicuna
Copy link
Author

vicuna commented Apr 19, 2009

Comment author: @xavierleroy

Improved ocamldebug's handling of packed modules (X. Clerc). Will go in 3.11.1.

@vicuna vicuna closed this as completed May 29, 2011
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant