sprintf (buf, "Unknown thread_db state code: %d", statecode);
sprintf (buf, "Unknown libthread_db state code: %d", statecode);
td_state_string (td_thr_state_e statecode){  static struct string_map    td_thr_state_table[] =  {    {TD_THR_ANY_STATE, "any state"},    {TD_THR_UNKNOWN, "unknown"},    {TD_THR_STOPPED, "stopped"},    {TD_THR_RUN, "run"},    {TD_THR_ACTIVE, "active"},    {TD_THR_ZOMBIE, "zombie"},    {TD_THR_SLEEP, "sleep"},    {TD_THR_STOPPED_ASLEEP, "stopped asleep"}  };  const int td_thr_state_table_size = sizeof td_thr_state_table / sizeof (struct string_map);  int i;  static char buf[50];  for (i = 0; i < td_thr_state_table_size; i++)    if (td_thr_state_table[i].num == statecode)      return td_thr_state_table[i].str;  sprintf (buf, "Unknown thread_db state code: %d", statecode);  return buf;}