Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
212db44f
Commit
212db44f
authored
May 23, 2011
by
Alan Bowman
Committed by
Øyvind Harboe
May 25, 2011
Browse files
Report actual current thread
parent
a57daf23
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rtos/rtos.c
View file @
212db44f
...
...
@@ -453,7 +453,17 @@ int gdb_thread_packet(struct connection *connection, struct target *target, char
}
else
if
(
strstr
(
packet
,
"qC"
))
{
gdb_put_packet
(
connection
,
"QC0"
,
3
);
if
(
target
->
rtos
!=
NULL
)
{
char
buffer
[
15
];
int
size
;
size
=
snprintf
(
buffer
,
15
,
"QC%08X"
,
(
int
)
target
->
rtos
->
current_thread
);
gdb_put_packet
(
connection
,
buffer
,
size
);
}
else
{
gdb_put_packet
(
connection
,
"QC0"
,
3
);
}
return
ERROR_OK
;
}
else
if
(
packet
[
0
]
==
'T'
)
// Is thread alive?
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment