This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFC: patch to allow building on HPUX 11
- To: gdb-patches at sources dot redhat dot com
- Subject: RFC: patch to allow building on HPUX 11
- From: Paul Hilfinger <hilfingr at gnat dot com>
- Date: Sat, 10 Feb 2001 18:55:13 -0500 (EST)
I had to make the following patch to get the current sources to compile
on HPUX 11.0.
A related question: I also found that I needed to add -D__STDC_EXT__
to CFLAGS in order to get uint64_t defined when used HP header files.
Is this something that ought to be added to the configuration files, or is
some other change appropriate instead?
Paul Hilfinger
Ada Core Technologies
2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
* hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
argument to parameter list and to call in order to conform to
to_xfer_memory field of struct target_ops.
Index: gdb/hpux-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/hpux-thread.c,v
retrieving revision 1.5
diff -c -3 -p -r1.5 hpux-thread.c
*** hpux-thread.c 2000/09/05 22:46:57 1.5
--- hpux-thread.c 2001/02/10 23:49:48
*************** hpux_thread_xfer_memory (CORE_ADDR memad
*** 434,440 ****
static int
hpux_thread_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
! int dowrite, struct target_ops *target)
{
int retval;
struct cleanup *old_chain;
--- 434,441 ----
static int
hpux_thread_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
! int dowrite, struct mem_attrib *attribs,
! struct target_ops *target)
{
int retval;
struct cleanup *old_chain;
*************** hpux_thread_xfer_memory (CORE_ADDR memad
*** 443,449 ****
inferior_pid = main_pid;
! retval = child_ops.to_xfer_memory (memaddr, myaddr, len, dowrite, target);
do_cleanups (old_chain);
--- 444,451 ----
inferior_pid = main_pid;
! retval =
! child_ops.to_xfer_memory (memaddr, myaddr, len, dowrite, attribs, target);
do_cleanups (old_chain);