Re: gdb 6.3 C++ breakpoint in constructor/destructor patch

Daniel Jacobowitz
2005-05-01T21:56:14Z

On Sun, May 01, 2005 at 10:53:05PM +0200, Thomas Maier wrote:
> Ok, hmm, then the code in find_line_symtab() must not return one symtab,
> which is used to find one or more references to the lineno, it must return
> a list of symtabs with references to this lineno. Means, a similar search
> over all symtabs which is already done in find_line_symtab().
> Would that be enough to handle the file:lineno case?
>
> (If yes it think a new function like find_multi_line_symtab() is the best
> way to do it, then in decode_all_digits() fill in the sals with the found
> symtabs + linenos)

It's a representation problem. I found it much more effective to have
decode_line_1 only return one symtab_and_line structure, and then
expand them to multiple PCs later, regardless of whether the symtab
returned was the only relevant one. Otherwise, things like "list" will
get confused.

--
Daniel Jacobowitz
CodeSourcery, LLC