public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: muller@ics.u-strasbg.fr (Pierre Muller)
Cc: gdb-patches@sourceware.org, insight@sourceware.org
Subject: Re: [RFC] Insight build problem: was [06/15] Per-breakpoint architecture support
Date: Tue, 07 Jul 2009 15:26:00 -0000	[thread overview]
Message-ID: <200907071526.n67FQIPu022540@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <001801c9ff01$5b1ae830$1150b890$@u-strasbg.fr> from "Pierre Muller" at Jul 07, 2009 02:49:24 PM

Pierre Muller wrote:

>    This seems harmless as the function is not in any header, but
> this function is used in gdbtk sources.
>    I don't really know if gdbtk failures qualify for patches
> as such, but it seems to me that it would be difficult to 
> change the gdbtk-bp.c code to avoid using this function.

Ah, I must have thought the missing static was just an oversight.
(And the overlooked the change when putting together the ChangeLog
entry, sorry.)

>   Is this failure a sufficient reason to accept this patch 
> or should we go another route (maybe add set_raw_breakpoint
> to breakpoint.h header ?).

It's not particularly nice, but I'm OK with leaving it the way
it was for now ...   Longer term we should find out why the
exported interfaces like set_breakpoint are not suitable for gdbtk,
and extend them if necessary.

> @@ -4396,8 +4397,9 @@ static void free_bp_location (struct bp_
>  
>  /* Helper to set_raw_breakpoint below.  Creates a breakpoint
>     that has type BPTYPE and has no locations as yet.  */
> +/* This function is used in gdbtk sources and thus can not be made static.
> */
>  
> -static struct breakpoint *
> +struct breakpoint *
>  set_raw_breakpoint_without_location (struct gdbarch *gdbarch,
>  				     enum bptype bptype)
>  {

This chunk seems unnecessary; set_raw_breakpoint_without_location
was static before my patch as well.

The rest is OK.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com

  reply	other threads:[~2009-07-07 15:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200906091517.n59FHee6030279@d12av02.megacenter.de.ibm.com>
     [not found] ` <200907021716.n62HG5WD005817@d12av02.megacenter.de.ibm.com>
2009-07-07 12:49   ` Pierre Muller
2009-07-07 15:26     ` Ulrich Weigand [this message]
2009-07-07 22:30       ` Pierre Muller

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=200907071526.n67FQIPu022540@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=insight@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).