Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFC] s/PTRACE_ARG3_TYPE/PTRACE_TYPE_ARG3/g ?
Date: Wed, 11 Aug 2004 22:01:00 -0000	[thread overview]
Message-ID: <20040811220121.GF25562@gnat.com> (raw)

configure now automatically detects the type of arg3 in ptrace,
and sets PTRACE_TYPE_ARG3. But the code mostly uses the historical
PTRACE_ARG3_TYPE. I suggest we do a global search-and-replace of
the latter by the former. There are a bunch of C file that use
the old macro. Once the macro is gone, we can delete their definitions
in the config files as an obvious change.

Opinions?

List of C files that use it:

        alphabsd-nat.c
        amd64bsd-nat.c
        armnbsd-nat.c
        gdbserver/linux-low.c
        hppabsd-nat.c
        hppah-nat.c
        i386bsd-nat.c
        ia64-linux-nat.c
        inferior.h
        infptrace.c
        inftarg.c
        infttrace.c
        infttrace.h
        linux-nat.c
        lynx-nat.c
        m68kbsd-nat.c
        m68klinux-nat.c
        m88kbsd-nat.c
        mipsnbsd-nat.c
        ns32knbsd-nat.c
        ppc-linux-nat.c
        ppcnbsd-nat.c
        ppcobsd-nat.c
        shnbsd-nat.c
        sparc-nat.c
        vaxbsd-nat.c

List of config files that define it:

        config/alpha/nm-linux.h
        config/alpha/nm-osf.h
        config/i386/nm-linux64.h
        config/ia64/nm-linux.h
        config/mips/nm-linux.h
        config/nm-bsd.h
        config/nm-lynx.h
        config/nm-nbsd.h
        config/pa/nm-hppah.h
        config/powerpc/nm-aix.h
        config/powerpc/nm-ppc64-linux.h
        config/rs6000/xm-aix4.h
        config/s390/nm-linux.h
        config/sparc/nm-linux.h

Unfortunately, I will probably not be around to make that change.
But this is the kind of change a guy named cagney has become an expert
at doing. :-).

And we also need to remove it from the gdbint doc, btw.

-- 
Joel


             reply	other threads:[~2004-08-11 22:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-11 22:01 Joel Brobecker [this message]
2004-08-12  1:26 ` Andrew Cagney
2004-08-12  9:18   ` Mark Kettenis

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=20040811220121.GF25562@gnat.com \
    --to=brobecker@gnat.com \
    --cc=gdb-patches@sources.redhat.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