-
Notifications
You must be signed in to change notification settings - Fork 218
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
MIEngine: Set MajorVersion from the correct place #1441
MIEngine: Set MajorVersion from the correct place #1441
Conversation
We were previously setting the MajorGdbVersion when the process exited and this was too late. We need to set this OnStateChanged so we can use this to opt for the latest gdb MI commands. Signed-off-by: intel-rganesh rakesh.ganesh@intel.com
Rather than scraping the initialization log after the fact, I think we should just process the line here. Something like:
Refers to: src/MICore/Debugger.cs:961 in 46756e5. [](commit_id = 46756e5, deletion_comment = False) |
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.
See other comments
Try to initialize the gdb version as soon as we add the line to the initialization log. Also, add exception handling when setting major gdb version. Signed-off-by: intel-rganesh rakesh.ganesh@intel.com
054b2a4
to
827da1b
Compare
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.
Aside from putting back line 495 now, looks good to me.
Clear initialization log as before. Signed-off-by: intel-rganesh rakesh.ganesh@intel.com
We were previously setting the MajorGdbVersion when the process exited and this was too late.
We need to set this OnStateChanged so we can use this to opt for the latest gdb MI commands.
Additionally include Intel GNU gdb example when fetching the GDB version.
Signed-off-by: intel-rganesh rakesh.ganesh@intel.com