mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
for current naming of thread groups (iN, not N).
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
|
||||||
|
|
||||||
|
* mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
|
||||||
|
for current naming of thread groups (iN, not N).
|
||||||
|
|
||||||
2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
|
2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||||
|
|
||||||
* ada-lang.c (ada_operator_length): Constify `struct expression'.
|
* ada-lang.c (ada_operator_length): Constify `struct expression'.
|
||||||
|
@ -817,10 +817,15 @@ mi_cmd_list_thread_groups (char *command, char **argv, int argc)
|
|||||||
for (; optind < argc; ++optind)
|
for (; optind < argc; ++optind)
|
||||||
{
|
{
|
||||||
char *end;
|
char *end;
|
||||||
int inf = strtoul (argv[optind], &end, 0);
|
int inf;
|
||||||
|
|
||||||
|
if (*(argv[optind]) != 'i')
|
||||||
|
error ("invalid syntax of group id '%s'", argv[optind]);
|
||||||
|
|
||||||
|
inf = strtoul (argv[optind] + 1, &end, 0);
|
||||||
|
|
||||||
if (*end != '\0')
|
if (*end != '\0')
|
||||||
error ("invalid group id '%s'", argv[optind]);
|
error ("invalid syntax of group id '%s'", argv[optind]);
|
||||||
VEC_safe_push (int, ids, inf);
|
VEC_safe_push (int, ids, inf);
|
||||||
}
|
}
|
||||||
if (VEC_length (int, ids) > 1)
|
if (VEC_length (int, ids) > 1)
|
||||||
@ -837,11 +842,13 @@ mi_cmd_list_thread_groups (char *command, char **argv, int argc)
|
|||||||
else if (VEC_length (int, ids) == 1)
|
else if (VEC_length (int, ids) == 1)
|
||||||
{
|
{
|
||||||
/* Local thread groups, single id. */
|
/* Local thread groups, single id. */
|
||||||
int pid = *VEC_address (int, ids);
|
int id = *VEC_address (int, ids);
|
||||||
|
struct inferior *inf = find_inferior_id (id);
|
||||||
|
|
||||||
if (!in_inferior_list (pid))
|
if (!inf)
|
||||||
error ("Invalid thread group id '%d'", pid);
|
error ("Non-existent thread group id '%d'", id);
|
||||||
print_thread_info (uiout, -1, pid);
|
|
||||||
|
print_thread_info (uiout, -1, inf->pid);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user