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

Line numbers in error messages #18

Open
Matthias-R opened this issue May 18, 2016 · 1 comment
Open

Line numbers in error messages #18

Matthias-R opened this issue May 18, 2016 · 1 comment

Comments

@Matthias-R
Copy link

When svd2ada terminates with an error message, it would be extremely helpful to get a line number (referring to the *.svd file) to locate the root cause of the problem.

I think i proposed that before, as a side note in another issue.

To me, http://docs.adacore.com/xmlada-docs/dom.html#adding-information-to-the-tree reads like it's possible to add line numbers even when using the DOM parser.
Have you already checked this possibility? You probably have the opportunity to get infos directly from the XML/Ada experts... 😉

@lambourg
Copy link
Member

Do you have a specific example of error message where such line information would have been useful?

I don't see such information that easy to provide in general, as the parsing of the xml file is performed in a first pass (that should generally not generate errors, supposing the svd file is valid), and then forgets completely about the DOM tree when actually processing the SVD data to generate the bindings.

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

No branches or pull requests

2 participants