Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Using breakpoint instead of SIGUSR2 #1

Merged
merged 5 commits into from
Jul 1, 2016
Merged

Conversation

nadeaudi
Copy link
Contributor

This change goes with commit 6219514b827280595fc9cd5a25fcd665f8b0d35f of GPUDebugSDK for which a pull request has also been made. It modify GDB to use a breakpoint inserted inside GPUDebugSDK during initialisation to allow this library to notify GDB of GPU breakpoint stops.

@@ -303,6 +303,9 @@ static struct breakpoint_ops longjmp_breakpoint_ops;
breakpoints. */
struct breakpoint_ops bkpt_breakpoint_ops;

/* The breapoint_ops structure to be used in HSA library breakpoint */
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor typo "breakpoint_ops"

-Updating the name of the function used to stop from TriggerStop to TriggerGPUBreakpointStop to follow the refactoring in GPUDebugSDK.
@perhaad perhaad self-assigned this Jun 29, 2016
}
ui_out_text (uiout, ", ");

return PRINT_SRC_AND_LOC;
Copy link
Contributor

Choose a reason for hiding this comment

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

I was trying this out internally and I noticed that it should be
"return PRINT_NOTHING".
The PRINT_SRC_AND_LOC prints information about the trigger function. I feel that the trigger is something internal to the debugger and not related to debugging the application.

@perhaad perhaad merged commit e14c714 into rocmarchive:master Jul 1, 2016
nadeaudi pushed a commit to nadeaudi/ROCm-GDB that referenced this pull request Sep 19, 2016
Using breakpoints instead of SIGUSR2.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants