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

Input event sequence #187

Merged
merged 16 commits into from
Apr 28, 2018
Merged

Input event sequence #187

merged 16 commits into from
Apr 28, 2018

Conversation

sabel83
Copy link
Member

@sabel83 sabel83 commented Apr 2, 2018

No description provided.

@sabel83 sabel83 force-pushed the input_event_sequence branch 2 times, most recently from 86f85db to 67b69c3 Compare April 2, 2018 19:41
* When a template is instantiated in the environment (eg. by files included
into the shell) and then an instantiation attempt of the same template
with the same arguments is debugged with mdb, only the memoization is
shown and the original instantiation is not displayed in the debugger.
Copy link
Member

Choose a reason for hiding this comment

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

This might be a usability regression. I think it's common to include a whole cpp into a metashell session which already instantiates the problematic template, which is then later debugged. Can we provide some kind of workaround proposal for the user if this is the case?

One workaround could be to debug the whole environment, and inserting a breakpoint for the template in question. This approach could become difficult if the original name of the type is hidden under multiple layers of typedefs and such and specifying the breakpoint regex is impossible.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have restored the old behaviour by adding filter_replay_instantiations.

@sabel83 sabel83 force-pushed the input_event_sequence branch 4 times, most recently from aad566a to d27918a Compare April 15, 2018 13:40
@coveralls
Copy link

coveralls commented Apr 15, 2018

Coverage Status

Coverage decreased (-0.1%) to 79.714% when pulling 47812b8 on sabel83:input_event_sequence into 46064ef on metashell:master.

@sabel83 sabel83 force-pushed the input_event_sequence branch 2 times, most recently from 688c315 to 0268318 Compare April 15, 2018 18:40
Also apart from template instantiation and memoization events, all template
events are made unique nodes of the metaprogram graph to avoid moving events to
the wrong parents (or removing them from the graph) because of different events
getting merged due to having the same name, point of instantiation and source
location.
@sabel83 sabel83 merged commit fa8bd4c into metashell:master Apr 28, 2018
@sabel83 sabel83 deleted the input_event_sequence branch April 28, 2018 12:24
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

3 participants