From mboxrd@z Thu Jan 1 00:00:00 1970 From: toddpw@wrs.com (Todd Whitesel) To: gdb-patches@cygnus.com Subject: Re: libgdb.a Date: Thu, 01 Apr 1999 00:00:00 -0000 Message-id: <199903110056.QAA00306@alabama.wrs.com> References: <36E70EE3.3D0937F1@cygnus.com> X-SW-Source: 1999-q1/msg00081.html >target-architectures during startup, it would probably be more prudent to leave >most of that task until the point where GDB knew exactly which architecture was >being debugged. Yes, and this sounds like an example where multi-level initialization is a Good Thing(TM). I would love it if more things in GDB were "constructored" and not #define'd or hardcoded. Right now (read 4.17) with many remote targets you can't know the exact register list until you probe the target to find out what it is, yet the reg_names[] array is statically initialized (because on ptrace unix platforms that Just Worked), and we're just lucky that the rest of GDB adapts well to having reg_names[] edited after initialization. -- Todd Whitesel toddpw @ wrs.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: toddpw@wrs.com (Todd Whitesel) To: gdb-patches@cygnus.com Subject: Re: libgdb.a Date: Wed, 10 Mar 1999 16:56:00 -0000 Message-ID: <199903110056.QAA00306@alabama.wrs.com> References: <36E70EE3.3D0937F1@cygnus.com> X-SW-Source: 1999-03/msg00027.html Message-ID: <19990310165600.h7TwvdzQttutKwQ5JBMQGrHj2UXTgxJD5xzPP9kBQkA@z> >target-architectures during startup, it would probably be more prudent to leave >most of that task until the point where GDB knew exactly which architecture was >being debugged. Yes, and this sounds like an example where multi-level initialization is a Good Thing(TM). I would love it if more things in GDB were "constructored" and not #define'd or hardcoded. Right now (read 4.17) with many remote targets you can't know the exact register list until you probe the target to find out what it is, yet the reg_names[] array is statically initialized (because on ptrace unix platforms that Just Worked), and we're just lucky that the rest of GDB adapts well to having reg_names[] edited after initialization. -- Todd Whitesel toddpw @ wrs.com