This is the mail archive of the gdb-testers@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] |
I found the following patch necessary to persuade 4.17.86 to build
under HPUX 9.03, where there is no PA 2.0 support:
*** hppa-tdep.c~ Thu Mar 4 17:12:09 1999
--- hppa-tdep.c Sun Mar 14 18:34:20 1999
***************
*** 2427,2433 ****
Note that to avoid "C" doing typed pointer arithmetic, we
have to cast away the type in our offset calculation:
otherwise we get an offset of 1! */
- save_state_t temp;
/* NB: The ss_wide field is not available previous to HPUX 10.20,
so to avoid compile-time warnings, we only compile this for
--- 2427,2432 ----
***************
*** 2435,2440 ****
--- 2434,2441 ----
if we're debugging a PA 2.0 processor, so this should not cause
problems. */
#if CPU_HPPA_RISC_20
+ save_state_t temp;
+
offset = ((int) &temp.ss_wide) - ((int) &temp);
#endif
regaddr = offset + regnum * 8;
Although it now builds OK, it doesn't work --- the run command forks
a subprocess but the subprocess never seems to get as far as actually
running the target program. It looks like it's hanging up while the
subprocess is still running a shell, if ps is to be believed:
tgl 21107 11905 0 18:57:22 ttyp6 0:00 gdb cjpeg
tgl 21108 21107 0 18:57:41 ttyp6 0:00 /bin/ksh -c exec /users/tgl/jpeg/src/cjpeg <testimg.ppm
Any suggestions on debugging that?
regards, tom lane