Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Tristan Gingold <gingold@adacore.com>
Cc: "gdb-patches@sourceware.org ml" <gdb-patches@sourceware.org>,
	       Rupp Douglas <rupp@adacore.com>
Subject: Re: RFA: New port: ia64-hp-openvms (3/3) - ia64-vms-tdep.c
Date: Wed, 22 Feb 2012 19:39:00 -0000	[thread overview]
Message-ID: <4F4542C7.4070504@redhat.com> (raw)
In-Reply-To: <5ED28A1C-018A-4060-9D16-CABBB23EB860@adacore.com>

On 02/21/2012 04:07 PM, Tristan Gingold wrote:
> 
> On Feb 15, 2012, at 1:17 PM, Pedro Alves wrote:

>> Ah, missed that.  Fine with me to stay with malloc.  What does
>> libunwind do when one returns -UNW_ENOMEM?
> 
> My understanding is that libunwind properly propagate the error, and Â…
> 
>>  Does GDB end up recovering correctly,
>> or do we end up busted anyway?
> 
> Â… gdb recovers.

I was hoping you'd quickly just hack an unconditional "return -UNW_ENOMEM;"
to find it out, but ...

> But because it is so likely that gdb will fail later, I have switched to xmalloc/xfree.

... then it doesn't matter.

Okay.  Just some minor nits below.

> diff --git a/configure.ac b/configure.ac
> index 9d48e90..c24fff4 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -929,8 +929,8 @@ case "${target}" in
>      noconfigdirs="$noconfigdirs libgui itcl ld"
>      ;;
>    ia64*-*-*vms*)
> -    # No gdb or ld support yet.
> -    noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
> +    # No ld support yet.
> +    noconfigdirs="$noconfigdirs libgui itcl ld"
>      ;;
>    i[[3456789]]86-w64-mingw*)
>      ;;

Remember this should be synced with gcc. (and needs a ChangeLog entry).

> +ia64-*-*vms*)
> +	# Target: Intel IA-64 running OpenVMS
> +	gdb_target_obs="ia64-tdep.o ia64-vms-tdep.o"
> +	;;

This deserves a NEWS entry (New targets).  (No need to wait for that
to commit this).

> +#include "defs.h"
> +#include "frame-unwind.h"
> +#include "ia64-tdep.h"
> +#include "osabi.h"
> +#include "gdbtypes.h"
> +#include "solib.h"

Interesting dependency.  If not needed, please remove (and all other
unnecessary includes).

> +#include "target.h"
> +#include "frame.h"
> +#include "regcache.h"
> +#include "gdbcore.h"
> +#include "inferior.h"

> +/* Libunwind callback accessor function for cleanup.  */
> +static void

Empty line between comment and function, please.  Here and elsewhere.

> +ia64_vms_put_unwind_info (unw_addr_space_t as,

-- 
Pedro Alves


  reply	other threads:[~2012-02-22 19:33 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 13:07 RFA: New port: ia64-hp-openvms (0/3) Tristan Gingold
2012-02-10 13:21 ` RFA: New port: ia64-hp-openvms (1/3) - new osabi Tristan Gingold
2012-02-10 13:27   ` RFA: New port: ia64-hp-openvms (3/3) - ia64-vms-tdep.c Tristan Gingold
2012-02-14 17:50     ` Pedro Alves
2012-02-15  9:14       ` Tristan Gingold
2012-02-15 12:57         ` Pedro Alves
2012-02-21 16:23           ` Tristan Gingold
2012-02-22 19:39             ` Pedro Alves [this message]
2012-02-22 19:53               ` Douglas Rupp
2012-02-24 14:17                 ` Tristan Gingold
2012-02-24 14:16               ` Tristan Gingold
2012-02-24 14:29                 ` Pedro Alves
2012-03-05 11:58                   ` Tristan Gingold
2012-02-12  9:36   ` RFA: New port: ia64-hp-openvms (1/3) - new osabi Mark Kettenis
2012-02-10 13:23 ` RFA: New port: ia64-hp-openvms (2/3) Tristan Gingold
2012-02-12  9:39   ` Mark Kettenis
2012-02-13  8:45     ` Tristan Gingold
2012-02-14 17:36   ` Pedro Alves
2012-02-14 17:40     ` Pedro Alves
2012-02-21 16:08     ` RFA: New port: ia64-hp-openvms (2/3) - v2 Tristan Gingold
2012-02-22 19:41       ` Pedro Alves
2012-02-10 13:44 ` RFA: New port: ia64-hp-openvms - the stub Tristan Gingold
2012-02-10 19:06   ` Douglas Rupp
2012-02-13  8:43     ` Tristan Gingold
2012-02-14 18:09   ` Pedro Alves
2012-02-21 17:08     ` Tristan Gingold
2012-02-22 20:25       ` Pedro Alves
2012-02-24  9:24         ` Tristan Gingold
2012-02-24 11:06           ` Pedro Alves
2012-02-24 11:24             ` Tristan Gingold
2012-02-24 12:17               ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F4542C7.4070504@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=gingold@adacore.com \
    --cc=rupp@adacore.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox