Skip to content

Correct memap path handling on windows #5775

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

Merged
merged 9 commits into from
Jan 8, 2018

Conversation

theotherjimmy
Copy link
Contributor

@theotherjimmy theotherjimmy commented Jan 2, 2018

Includes a parser refactor, as I got a bit irritated by seeing _gcc
suffixed method names.

Resolves #5772

Todo

  • A test for path handling
  • A test for GCC including builtin parsing
  • A test for multi-parameter cmd line parsing with IAR

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 3, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jan 3, 2018

Build : SUCCESS

Build number : 792
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5775/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

Copy link
Contributor

@adbridge adbridge left a comment

Choose a reason for hiding this comment

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

Couple of minor comments but I wouldn't necessarily block the PR on them


for i in self.all_sections:
return value - A section name, if a new section was found, False
Copy link
Contributor

Choose a reason for hiding this comment

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

I know you didn't add this function per se but it seems like bad programming practice to have different return types for the same return variable. E.g. Returning False implies a Boolean return type but returning a value implies something else....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is so extremely common in python, just with None instead of False


return '[lib]/' + object_name

return join('[lib]', test_re_obj_name.group(2),
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be good to have a comment saying what group(2) and (3) actually are ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can add that.

@mbed-ci
Copy link

mbed-ci commented Jan 3, 2018

@mbed-ci
Copy link

mbed-ci commented Jan 4, 2018

@theotherjimmy theotherjimmy merged commit e301a5b into ARMmbed:master Jan 8, 2018
@theotherjimmy theotherjimmy deleted the pathsep-memap branch January 8, 2018 16:37
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.

Wrong default stats-depth parameter on Windows
4 participants