public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/15643] New: Current thread support (qC) don't work with remote target
@ 2013-06-18 13:17 vgiraud at neotion dot com
2013-06-18 13:20 ` [Bug remote/15643] " vgiraud at neotion dot com
0 siblings, 1 reply; 2+ messages in thread
From: vgiraud at neotion dot com @ 2013-06-18 13:17 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15643
Bug ID: 15643
Summary: Current thread support (qC) don't work with remote
target
Product: gdb
Version: 7.6
Status: NEW
Severity: normal
Priority: P2
Component: remote
Assignee: unassigned at sourceware dot org
Reporter: vgiraud at neotion dot com
Hi,
Each time I want to print the thread list in GDB I've got an error because
openOCD try to read at 0x0.
After lots of reading and observations I found that GDB always say that the
last thread is the current one (using '*').
So, using traces, I found that GDB ask to OpenOCD which one is the current
thread before knowing wich one is it because I haven't yet upload an
executable, so it send 0 as current thread (as it was initialized).
(OpenOCD part)
rtos.c:rtos_thread_packet
else if (strstr(packet, "qC")) {
if (target->rtos != NULL) {
char buffer[15];
int size;
size = snprintf(buffer, 15, "QC%08X",
(int)target->rtos->current_thread);
This send 'QC00000000X' to GDB, saying that current is 0 on 1 to X listed
threads.
If I hardcode 'QC00000002' for example, it works well (if current thread is 2
of course).
So I found that the problem is GDB asking for current thread (using qC) too
early when we are using remote target. We need to wait the loading of
executable (when OepnOCD read symbol and threads infos).
Is anyone having same problem? Or having something to try.
P.S: I use eCos.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug remote/15643] Current thread support (qC) don't work with remote target
2013-06-18 13:17 [Bug remote/15643] New: Current thread support (qC) don't work with remote target vgiraud at neotion dot com
@ 2013-06-18 13:20 ` vgiraud at neotion dot com
0 siblings, 0 replies; 2+ messages in thread
From: vgiraud at neotion dot com @ 2013-06-18 13:20 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15643
Vivien Giraud <vgiraud at neotion dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |remote
CC| |vgiraud at neotion dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-18 13:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-18 13:17 [Bug remote/15643] New: Current thread support (qC) don't work with remote target vgiraud at neotion dot com
2013-06-18 13:20 ` [Bug remote/15643] " vgiraud at neotion dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).