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

Fix various warnings under Visual Studio #169

Merged
merged 6 commits into from Sep 28, 2016
Merged

Fix various warnings under Visual Studio #169

merged 6 commits into from Sep 28, 2016

Conversation

pefoley2
Copy link
Contributor

@pefoley2 pefoley2 commented Sep 4, 2016

No description provided.

@pefoley2
Copy link
Contributor Author

Ping?

@@ -361,8 +364,8 @@ static struct trap_mapping_header *getStaticTrapMap(unsigned long addr, unsigned
+ curSecn.SizeOfRawData
- 16);
if (0 != strncmp("DYNINST_REWRITE", str, 15)) {
fprintf(stderr, "ERROR IN RTLIB: getStaticTrapMap found bad string [%s] at %lx %s[%d]\n",
str, str, __FILE__,__LINE__);
Copy link
Member

Choose a reason for hiding this comment

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

This should be [%s] at %p (%s[%d]) to capture the string as a string and as a pointer for debugging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Member

@wrwilliams wrwilliams left a comment

Choose a reason for hiding this comment

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

Can we split off the DynC-enabling fixes (this commit and previous) from the warning cleanup?

@pefoley2
Copy link
Contributor Author

dynC split off into #184

@pefoley2 pefoley2 merged commit c9a5e4a into dyninst:master Sep 28, 2016
@pefoley2 pefoley2 deleted the vs_warn branch September 28, 2016 03:44
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

Successfully merging this pull request may close these issues.

None yet

2 participants