This is the mail archive of the gdb-prs@sourceware.org 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]
Other format: [Raw text]

[Bug gdb/9885] New: field for register names too narrow


In the function default_print_registers_info in file infcmd.c, there is the code

      print_spaces_filtered (15 - strlen (gdbarch_register_name
                                          (gdbarch, i)), file);

which assumes that a register names contains at most 15 characters; this is not
true for e.g. the ARC processor, where names may be as much as 22 characters

It would be helpful if this number were made larger; but a better solution would
be to add a function e.g. gdbarch_max_register_name_length which could be called
here instead of using an integer literal.

-- 
           Summary: field for register names too narrow
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: richard dot stuckey at arc dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=9885

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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