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

Debugging information in native code #5505

Closed
vicuna opened this issue Feb 14, 2012 · 2 comments
Closed

Debugging information in native code #5505

vicuna opened this issue Feb 14, 2012 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Feb 14, 2012

Original bug ID: 5505
Reporter: cgillot
Assigned to: @protz
Status: closed (set by @xavierleroy on 2013-08-31T10:46:31Z)
Resolution: fixed
Priority: low
Severity: feature
Category: back end (clambda to assembly)
Duplicate of: #5487

Bug description

I've a c++ project using caml as extension language, calling (native) ocaml code via callbacks.
I would like to be able to debug both c++ and ocaml code in gdb, since the coupling between the languages is quite high.

Up to now, I've changed some asmcomp files in order to emit amd64 line informations.

Code based on the one found at :
http://blog.techno-barje.fr/post/2008/11/09/Ocaml-native-code-debugging/

The only meaningful code is in asmcomp/amd64/emit.mlp (the real symbols emission), and in bytecomp/translcore.ml (decorating lazy constructs).
The rest is transporting the information from one place to another.

Is it possible to have a more portable (and less hackish) version ?

File attachments

@vicuna
Copy link
Author

vicuna commented Feb 14, 2012

Comment author: @protz

I believe what you want is discussed at length in another issue.

Thanks,

jonathan

@vicuna
Copy link
Author

vicuna commented Feb 14, 2012

Comment author: cgillot

Thank you for redirecting me, I should have searched a bit longer.

Camille

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant