This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog remote.c
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Wed, 14 Aug 2013 18:17:50 +0000
- Subject: src/gdb ChangeLog remote.c
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2013-08-14 18:17:50
Modified files:
gdb : ChangeLog remote.c
Log message:
move some static thread state into remote_state
This moves a few static variables from thread-info functions into
remote_state. Pedro said on irc that these functions implement the
ancient thread-discovery method and that he wouldn't be surprised if
they had rotted; nevertheless it seems safer to me to make them
explicitly per-remote.
This necessitated moving a couple of macros and a typedef earlier in
the file.
* remote.c (struct remote_state) <echo_nextthread, nextthread,
resultthreadlist>: New fields.
(OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
(remote_get_threadlist, remote_threadlist_iterator): Use
new fields. Remove static variables.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15905&r2=1.15906
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/remote.c.diff?cvsroot=src&r1=1.575&r2=1.576