-
Notifications
You must be signed in to change notification settings - Fork 124
Cache register names #458
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
Cache register names #458
Conversation
|
Sorry that two unrelated commits appear in the same PR. |
|
|
| // but for now we just retrieve them every time to keep it simple. | ||
| const names = await this.getRegisterNames(); | ||
| if (!this.regNames) { | ||
| this.regNames = await this.getRegisterNames(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the idea is good, but we need to store the regnames per inferior (you may switch between multiple ones via UI), not globally, as the inferiors can have different registers (example: server in 64 bit and client in 32 bit (or vice versa), attached to both)
GitMensch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check the scope of the caching and add a ChangeLog entry as well (one for each commit, but I'm not convinced yet that the second commit should be merged - maybe focus on the register caching here and discuss dropping the setting [which also needs a ChangeLog entry] separately)
|
rest LGTM, just GitMensch's comment |
Please don't remove this functionality, it is not meaningless. I've used this for many years and others have as well. Was there some problem you were trying to solve by removing this? In the original PR thread (see here), I described how this works for an "attach" when used in combination with gdbserver where the application does not start running immediately. In that context it is valid to run the application to the entry point. |
|
Close this PR first. When I'm ready, I'll submit a new one. |
Cache register names