This is the mail archive of the gdb-patches@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]

Re: [patch] mips-tdep: info registers


On Fri, Mar 06, 2009 at 12:00:31AM -0500, Aleksandar Ristovski wrote:
> Maybe adding gdbarch_regname_to_regnum or something like that (which would 
> avoid iterating through the registers and comparing returned register 
> names).

Let's keep optimization separate from functionality; there's a
function in user-regs.h to do the lookup and if it's too slow it can
be converted to use a hash table.

-- 
Daniel Jacobowitz
CodeSourcery


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