mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-24 10:24:55 +00:00
* linespec.c (decode_line_2): Sort the list of methods
alphabetically before presenting the user with a selection menu.
This commit is contained in:
parent
7949c2a0b4
commit
e0a4d1083e
@ -1,3 +1,9 @@
|
||||
2012-03-01 Keith Seitz <keiths@redhat.com>
|
||||
|
||||
* linespec.c (decode_line_2): Sort the list of methods
|
||||
alphabetically before presenting the user with a selection
|
||||
menu.
|
||||
|
||||
2012-03-01 Doug Evans <dje@google.com>
|
||||
|
||||
* dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
|
||||
|
@ -650,6 +650,11 @@ decode_line_2 (struct linespec_state *self,
|
||||
return;
|
||||
}
|
||||
|
||||
/* Sort the list of method names alphabetically. */
|
||||
qsort (VEC_address (const_char_ptr, item_names),
|
||||
VEC_length (const_char_ptr, item_names),
|
||||
sizeof (const_char_ptr), compare_strings);
|
||||
|
||||
printf_unfiltered (_("[0] cancel\n[1] all\n"));
|
||||
for (i = 0; VEC_iterate (const_char_ptr, item_names, i, iter); ++i)
|
||||
printf_unfiltered ("[%d] %s\n", i + 2, iter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user