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/9884] Inefficient code in function default_print_registers_info


------- 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.


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