This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
From: Benjamin Gamsa <ben@sys.toronto.edu> Date: Wed, 3 Mar 1999 23:21:00 -0500 I've included below a patch to gdb-4.17.85 to support the IRIX 64-bit ABI. I've tried to keep the changes in line with the general structure of gdb, but it still contains a few hacks. In particular, I'm not sure about the configure stuff; such as how to specify that I want to build for 64bit SGI targets rather than the default 32 bit target (for now I just default irix6 to a new configuration file irix6-64, rather than the previous irix5 that built the 32 bit version; this is clearly wrong). Thanks for working on this! You're right, this will need some more tinkering before it can go into the repository. Ideally, GDB would be able to auto-detect whether an executable is 32- or 64-bit and adjust its computations dynamically; so instead of assuming a particular format of stack frame, the macros expand into functions that look at a per-executable variable before jumping into the real code. If that isn't going to work, perhaps because of old stupid ifdefs in GDB that wire it to a particular size, then you will need to have a separate config. I would suggest a name like mips-sgi-irix6n64, with mips-sgi-irix6 falling back to the old 32-bit version. Although I've done some simple preliminary testing to verify that it can at least step through 64 bit programs and read variables, more testing is clearly needed. You can give your port a pretty good workout by using the GDB testsuite. All the DejaGNU bits needed are on the ftp site, just build/install it, go to gdb/testsuite in the objdir, and do "make check". Stan