This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [rfa] Change line to long


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]