From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Ingham To: Jim Blandy Cc: gdb-patches@sourceware.cygnus.com Subject: Re: RFA: handle sparse register sets in Insight register window Date: Fri, 24 Mar 2000 16:49:00 -0000 Message-ID: <14556.3528.975208.843365@leda.cygnus.com> References: <200003242326.SAA17809@zwingli.cygnus.com> X-SW-Source: 2000-03/msg00575.html Message-ID: <20000324164900.KkeONHcefr6K8nv0ZGpYqLXb7rZd73eU1cJZMuTXJxA@z> Jim, This looks okay, but in half the uses you only want the names of the register, so wouldn't it be better to add a flag to gdb_regnames to print out the index, so: gdb_regnames just prints out the names, and gdb_regnames -index prints out the list of pairs? This would be simpler and faster on the Tcl end. You can check for the flag in gdb_regnames, and use the last argument of map_arg_registers to pass in the value. Jim