return without first initializing ``reg''.
+2004-11-18 Kevin Buettner <kevinb@redhat.com>
+
+ * thread-db.c (thread_db_set_thread_reg): Don't allow a successful
+ return without first initializing ``reg''.
+
2004-10-20 Jim Blandy <jimb@redhat.com>
Use the libthread_db 'td_symbol_list' function to look up all the
GREGSET_T gregset;
td_err_e ret;
+ /* Initialize reg to 0 in the event that we return early due to a
+ register being unsupported. */
+ gdbserv_ulonglong_to_reg (serv, 0LL, reg);
+
if (thread == NULL)
thread = process->event_thread; /* Default to the event thread. */