This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC PATCH] hppa-hpux-tdep.c: Fix host dependency.


On 11-Mar-13, at 11:29 AM, Pedro Alves wrote:

Would you be able to help giving this patch a quick try
on HP-UX?

Patched file compiles fine on both hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. I think the trampoline works on hppa64:

(gdb) p var
$4 = (tree) 0x800003fffdeaab48
(gdb) p debug_tree (var)
<var_decl 800003fffdeaab48 D.1404
type <integer_type 800003fffddc97e0 long unsigned int public unsigned DI
size <integer_cst 800003fffddc05a0 constant 64>
unit size <integer_cst 800003fffddc05c0 constant 8>
align 64 symtab 0 alias set -1 canonical type 800003fffddc97e0 precision 64 min <integer_cst 800003fffddc09a0 0> max <integer_cst 800003fffddc0980 18446744073709551615>>
used unsigned ignored DI file /test/gnu/gcc/gcc/gcc/testsuite/ gcc.c-torture/compile/pr55921.c line 10 col 1 size <integer_cst 800003fffddc05a0 64> unit size <integer_cst 800003fffddc05c0 8>
align 64 context <function_decl 800003fffde9d700 foo>>
$5 = void
(gdb)


Haven't tested 32-bit yet.

There is one small unrelated issue that needs fixing:

gcc -g -O2 -I. -I../../src/gdb -I../../src/gdb/common -I../../src/ gdb/config -DLOCALEDIR="\"/opt/gnu64/share/locale\"" -DHAVE_CONFIG_H - I../../src/gdb/../include/opcode -I../../src/gdb/../opcodes/.. -I../../ src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/ gdb/../include -I../libdecnumber -I../../src/gdb/../libdecnumber - I../../src/gdb/gnulib/import -Ibuild-gnulib/import -DTUI=1 -Wall - Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno- pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch - Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Werror -c -o hppa-hpux-nat.o -MT hppa-hpux-nat.o -MMD - MP -MF .deps/hppa-hpux-nat.Tpo ../../src/gdb/hppa-hpux-nat.c
../../src/gdb/hppa-hpux-nat.c:45:1: error: no previous prototype for 'hppa_hpux_save_state_offset' [-Werror=missing-prototypes]
cc1: all warnings being treated as errors


Believe the function should be static.

Dave
--
John David Anglin	dave.anglin@bell.net




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]