This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] Change line to long
- To: ac131313 at cygnus dot com, chastain at cygnus dot com, gdb-patches at sourceware dot cygnus dot com, kevinb at cygnus dot com
- Subject: Re: [rfa] Change line to long
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Thu, 1 Feb 2001 17:00:21 -0800
> In this case, the rule would mean that the type of
> ``line'' should be at least as wide as an unsigned long (because
> that's what is used in dwarf2read.c).
Right now dwarf2read.c silently shortens from the line numbers from
unsigned long to unsigned int:
/* read_file_scope */
unsigned int line_offset = 0;
...
line_offset = DW_UNSND (attr);
IMHO we may as well make the native gdb width 'unsigned int' and then,
when we find them, add errors or warnings in the case where gdb reads
a line number and it exceeds the bounds of the representation.
Michael