Hi, trying to build gdb-6.5 (and 6.4) on HP-UX 11.00 and SGI IRIX 6.5 with native CC compiler I need the following small patches for gdb.
for reference I include the compiler messages below... HP-UX: ----- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< --- diff -ur orig.028681/gdb-6.5/gdb/hppa-hpux-tdep.c gdb-6.5/gdb/hppa-hpux-tdep.c --- orig.028681/gdb-6.5/gdb/hppa-hpux-tdep.c 2006-05-10 22:30:02.000000000 +0200 +++ gdb-6.5/gdb/hppa-hpux-tdep.c 2006-10-27 11:35:40.000000000 +0200 @@ -1951,7 +1951,7 @@ if (flags & HPPA_HPUX_SS_INSYSCALL) write_register_pid (HPPA_R31_REGNUM, pc | 0x3, ptid); - return hppa_write_pc (pc, ptid); + hppa_write_pc (pc, ptid); } static CORE_ADDR ----- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< --- IRIX: ----- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< --- diff -ur orig.028681/gdb-6.5/gdb/cli/cli-cmds.c gdb-6.5/gdb/cli/cli-cmds.c --- orig.028681/gdb-6.5/gdb/cli/cli-cmds.c 2006-01-23 17:28:37.000000000 +0100 +++ gdb-6.5/gdb/cli/cli-cmds.c 2006-10-27 11:34:17.000000000 +0200 @@ -667,9 +667,9 @@ list_command (char *arg, int from_tty) { struct symtabs_and_lines sals, sals_end; - struct symtab_and_line sal = { }; - struct symtab_and_line sal_end = { }; - struct symtab_and_line cursal = { }; + struct symtab_and_line sal = { 0 }; + struct symtab_and_line sal_end = { 0 }; + struct symtab_and_line cursal = { 0 }; struct symbol *sym; char *arg1; int no_end = 1; diff -ur orig.028681/gdb-6.5/gdb/source.c gdb-6.5/gdb/source.c --- orig.028681/gdb-6.5/gdb/source.c 2006-02-25 05:36:39.000000000 +0100 +++ gdb-6.5/gdb/source.c 2006-10-27 11:36:13.000000000 +0200 @@ -139,7 +139,7 @@ struct symtab_and_line get_current_source_symtab_and_line (void) { - struct symtab_and_line cursal = { }; + struct symtab_and_line cursal = { 0 }; cursal.symtab = current_source_symtab; cursal.line = current_source_line; @@ -178,7 +178,7 @@ struct symtab_and_line set_current_source_symtab_and_line (const struct symtab_and_line *sal) { - struct symtab_and_line cursal = { }; + struct symtab_and_line cursal = { 0 }; cursal.symtab = current_source_symtab; cursal.line = current_source_line; ----- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< --- and here is the compiler log for the problems: HP-UX messages: ----- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< --- cc -Ae +DAportable -D_HPUX_SOURCE -I/usr/local/libiconv/include -I/usr/local/gettext/include -c -g -DPA_SOM_ONLY=1 -I. -I/soft/gdb/gdb-6.5/gdb-6.5/gdb -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../include/opcode -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../readline/.. -I../bfd -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../bfd -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../include -I../intl -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../intl -DMI_OUT=1 -DTUI=1 /soft/gdb/gdb-6.5/gdb-6.5/gdb/hppa-tdep.c ... cc: "/soft/gdb/gdb-6.5/gdb-6.5/gdb/hppa-hpux-tdep.c", line 1954: error 1610: Attempting to return value from function of type void. ----- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< --- IRIX messages: ----- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< --- cc -n32 -mips3 -I/usr/local/libiconv/include -I/usr/local/gettext/include -c -g -I. -I/soft/gdb/gdb-6.5/gdb-6.5/gdb -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../include/opcode -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../readline/.. -I../bfd -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../bfd -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../include -I../intl -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../intl -DMI_OUT=1 -DTUI=1 /soft/gdb/gdb-6.5/gdb-6.5/gdb/cli/cli-cmds.c ... cc-1029 cc: ERROR File = /soft/gdb/gdb-6.5/gdb-6.5/gdb/cli/cli-cmds.c, Line = 670 An expression is expected at this point. struct symtab_and_line sal = { }; ^ cc-1029 cc: ERROR File = /soft/gdb/gdb-6.5/gdb-6.5/gdb/cli/cli-cmds.c, Line = 671 An expression is expected at this point. struct symtab_and_line sal_end = { }; ^ cc-1029 cc: ERROR File = /soft/gdb/gdb-6.5/gdb-6.5/gdb/cli/cli-cmds.c, Line = 672 An expression is expected at this point. struct symtab_and_line cursal = { }; ^ 3 errors detected in the compilation of "/soft/gdb/gdb-6.5/gdb-6.5/gdb/cli/cli-cmds.c". cc -n32 -mips3 -I/usr/local/libiconv/include -I/usr/local/gettext/include -c -g -I. -I/soft/gdb/gdb-6.5/gdb-6.5/gdb -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../include/opcode -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../readline/.. -I../bfd -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../bfd -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../include -I../intl -I/soft/gdb/gdb-6.5/gdb-6.5/gdb/../intl -DMI_OUT=1 -DTUI=1 /soft/gdb/gdb-6.5/gdb-6.5/gdb/source.c cc-1029 cc: ERROR File = /soft/gdb/gdb-6.5/gdb-6.5/gdb/source.c, Line = 142 An expression is expected at this point. struct symtab_and_line cursal = { }; ^ cc-1174 cc: WARNING File = /soft/gdb/gdb-6.5/gdb-6.5/gdb/source.c, Line = 163 The variable "cursal" was declared but never referenced. struct symtab_and_line cursal; ^ cc-1029 cc: ERROR File = /soft/gdb/gdb-6.5/gdb-6.5/gdb/source.c, Line = 181 An expression is expected at this point. struct symtab_and_line cursal = { }; ^ 2 errors detected in the compilation of "/soft/gdb/gdb-6.5/gdb-6.5/gdb/source.c". ----- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8< --- Harald Koenig -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig \/\/\/\/\/\/\/\/\/ science+computing ag // / \\ \ [EMAIL PROTECTED] ^^^^^ ^^^^^ _______________________________________________ bug-gdb mailing list bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb