Changeset View
Changeset View
Standalone View
Standalone View
contrib/gdb/gdb/linespec.c
Show First 20 Lines • Show All 1,083 Lines • ▼ Show 20 Lines | decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab, | ||||
values.sals = NULL; | values.sals = NULL; | ||||
values.nelts = 0; | values.nelts = 0; | ||||
if (file_symtab != NULL) | if (file_symtab != NULL) | ||||
block = BLOCKVECTOR_BLOCK (BLOCKVECTOR (file_symtab), STATIC_BLOCK); | block = BLOCKVECTOR_BLOCK (BLOCKVECTOR (file_symtab), STATIC_BLOCK); | ||||
else | else | ||||
block = get_selected_block (0); | block = get_selected_block (0); | ||||
copy = find_imps (file_symtab, block, *argptr, NULL, &i1, &i2); | copy = find_imps (file_symtab, block, *argptr, NULL, (unsigned int *)&i1, (unsigned int *)&i2); | ||||
if (i1 > 0) | if (i1 > 0) | ||||
{ | { | ||||
sym_arr = (struct symbol **) alloca ((i1 + 1) * sizeof (struct symbol *)); | sym_arr = (struct symbol **) alloca ((i1 + 1) * sizeof (struct symbol *)); | ||||
sym_arr[i1] = 0; | sym_arr[i1] = 0; | ||||
copy = find_imps (file_symtab, block, *argptr, sym_arr, &i1, &i2); | copy = find_imps (file_symtab, block, *argptr, sym_arr, (unsigned int *)&i1, (unsigned int *)&i2); | ||||
*argptr = copy; | *argptr = copy; | ||||
} | } | ||||
/* i1 now represents the TOTAL number of matches found. | /* i1 now represents the TOTAL number of matches found. | ||||
i2 represents how many HIGH-LEVEL (struct symbol) matches, | i2 represents how many HIGH-LEVEL (struct symbol) matches, | ||||
which will come first in the sym_arr array. Any low-level | which will come first in the sym_arr array. Any low-level | ||||
(minimal_symbol) matches will follow those. */ | (minimal_symbol) matches will follow those. */ | ||||
▲ Show 20 Lines • Show All 743 Lines • Show Last 20 Lines |