On 07/22/2012 12:32 PM, Andreas Schwab wrote: > Keith Seitz writes: > >> + for (i = 0; VEC_iterate (symbolp, ls->labels.label_symbols, i, sym); ++i) >> + { >> + symbol_to_sal (&sal, state->funfirstline, sym); >> + add_sal_to_sals (state, &sals, &sal, >> + SYMBOL_NATURAL_NAME (sym)); > > If symbol_to_sal returns 0 then sal is uninitialized. > Nice catch, Andreas. I propose the attached patch. I guess this should be considered for inclusion on 7.5. [What say ye?] Keith ChangeLog 2012-07-23 Keith Seitz * linespec.c (convert_linespec_to_sal): Don't add any symbols to the result vector if symbol_to_sal returns zero.