This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/9884] Inefficient code in function default_print_registers_info
- From: "bauermann at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 8 Mar 2009 06:05:34 -0000
- Subject: [Bug gdb/9884] Inefficient code in function default_print_registers_info
- References: <20090223163959.9884.richard.stuckey@arc.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bauermann at sourceware dot org 2009-03-08 06:05 -------
I just had a look at the implementation of gdbarch_register_name for some
architectures, and the function is quite efficient, normaly just a few compares
and an array access. Perhaps it's a bit more complex for arches which use a
target description XML, I didn't look much into it. But even then it doesn't
seem to me it would be a problem.
Are you having actual performance issues in GDB because of this? If not, I'd
like to just close this. Not that it would be difficult to apply the code
snippet you mention, but I wouldn't like to start a trend of having bugzillas
opened for cosmetic issues in the source code...
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9884
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.