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

Fixes for DDR #1222

Merged
merged 136 commits into from
Aug 16, 2017
Merged

Fixes for DDR #1222

merged 136 commits into from
Aug 16, 2017

Conversation

youngar
Copy link
Contributor

@youngar youngar commented Jun 6, 2017

Continuing from #1014.

This PR introduces the following changes:

  • Code reorganization
  • Cmake compilation support
  • Two phase superset generation:
    • generate IL for all compilation units
    • combine generated IL into one cohesive IL
  • Many small improvements to better support IL generation for different platforms and compilers
  • Building DDR in our CI

youngar and others added 30 commits April 12, 2017 20:38
We currently are missing a call to dwarf_attr() to fetch the
DW_AT_comp_dir attribute.  This call was there previously, but lost in
change 055c3bf.  This means that attr
will always be NULL.

On my Linux machine, dwarf_formatstring() will segfault when passed attr
with a value of NULL.  The manual states that dwarf_formatstring() will
return DW_DLE_ARGUMENT if "Either of arguments or ret was NULL", but
also states "The form of argument attr must be one of DW_FORM_string or
DW_FORM_strp".

Signed-off-by: Andrew Young <[email protected]>
Signed-off-by: Andrew Young <[email protected]>
dwarf_hasattr() only returns DW_DLV_ERROR in the case of an internal
dwarf library error, not in the case of no attribute present. If the Die
has no compilation directory, hasAttr will be false. The correct thing
to do here is to check the value of hasAttr.

Signed-off-by: Andrew Young <[email protected]>
Signed-off-by: Andrew Young <[email protected]>
Causing a compile failure on OSX.

Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Build DDR as part of OMR. Use standard OMR configuration.
Move the DDR libraries from src to lib/$libname
Move the DDR tools from src to tools/$toolname
Move headers to include/ddr/
include headers by their full path "ddr/*.hpp"
Capitalize Makefile names

Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Signed-off-by: Robert Young <[email protected]>
Also update testing instructions to reflect the current location.

Signed-off-by: Andrew Young <[email protected]>
Signed-off-by: Andrew Young <[email protected]>
Signed-off-by: Andrew Young <[email protected]>
rwy7 and others added 4 commits August 1, 2017 12:54
@@ -19,7 +19,7 @@
#ifndef MODIFIERS_HPP
#define MODIFIERS_HPP

#include <string>
#include "ddr/std/string.hpp"
#include <vector>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does vector also need a compatibility header?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't think of a reason it would

@@ -22,7 +22,7 @@
#include "ddr/config.hpp"

#include <set>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And set too?

@youngar youngar changed the title WIP: Fixes for DDR Fixes for DDR Aug 2, 2017
Signed-off-by: Robert Young <[email protected]>
@youngar youngar changed the title Fixes for DDR WIP: Fixes for DDR Aug 2, 2017
@youngar
Copy link
Contributor Author

youngar commented Aug 4, 2017

I have created a CQ and uploaded a patch for this change. For those who are members of the project, the CQ is here: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=13962. I will try to keep this PR updated with the CQ status.

@youngar youngar changed the title WIP: Fixes for DDR Fixes for DDR Aug 5, 2017
@youngar
Copy link
Contributor Author

youngar commented Aug 11, 2017

This CQ has been approved!

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

Successfully merging this pull request may close these issues.

5 participants