Change symbol::line to unsigned int
commit72a8f763233c11052b8b7eee5d2d8fb23e118c97
authorTom Tromey <tromey@adacore.com>
Wed, 22 Mar 2023 19:43:03 +0000 (22 13:43 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 27 Mar 2023 14:37:14 +0000 (27 08:37 -0600)
tree3435935b42e9be3fe4efd09bf111102b877295e0
parent7005080802d695d112530a7c24c9d3d44ee109a3
Change symbol::line to unsigned int

A user here at AdaCore noticed that, when debugging a certain program,
a stack frame reported line 34358, where it should have been line
99894.

After debugging a bit, I discovered:

(top) p (99894 & ~65536)
$60 = 34358

That line, symbol::line is too narrow.

This patch widens the member and changes all the uses that currently
use the narrower type.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/compile/compile-c-symbols.c
gdb/compile/compile-cplus-symbols.c
gdb/compile/compile-cplus-types.c
gdb/symtab.h
gdb/testsuite/gdb.python/lotsa-lines.exp [new file with mode: 0644]