From: rdbrown@mira.net
To: gdb-patches@sources.redhat.com
Subject: Patch: gdb/config/pa/nm-hppah.h: Warning removal
Date: Mon, 23 Dec 2002 01:41:00 -0000 [thread overview]
Message-ID: <20021223095058.GA5665@urtur> (raw)
Eliminate warnings of the following form on hppa2.0n-hp-hpux11.00.
gcc -c -g -O2 -D__HP_CURSES -Dvfork=fork -I. -I../../gdb+dejagnu-20021220/gdb \
-I../../gdb+dejagnu-20021220/gdb/config \
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H \
-I../../gdb+dejagnu-20021220/gdb/../include/opcode \
-I../../gdb+dejagnu-20021220/gdb/../readline/.. \
-I../bfd -I../../gdb+dejagnu-20021220/gdb/../bfd \
-I../../gdb+dejagnu-20021220/gdb/../include -I../intl \
-I../../gdb+dejagnu-20021220/gdb/../intl -DMI_OUT=1 -DUI_OUT=1 \
-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses \
-Wpointer-arith - Wuninitialized ../../gdb+dejagnu-20021220/gdb/main.c
In file included from tm.h:87,
from ../../gdb+dejagnu-20021220/gdb/defs.h:776,
from ../../gdb+dejagnu-20021220/gdb/main.c:23:
../../gdb+dejagnu-20021220/gdb/config/pa/tm-hppa.h:324:1: warning: \
"CANNOT_STORE_REGISTER" redefined
In file included from nm.h:23,
from ../../gdb+dejagnu-20021220/gdb/defs.h:768,
from ../../gdb+dejagnu-20021220/gdb/main.c:23:
../../gdb+dejagnu-20021220/gdb/config/pa/nm-hppah.h:59:1: warning: \
this is the location of the previous definition
gdb/config/pa/tm-hppa.h now declares CANNOT_STORE_REGISTER as
hppa_cannot_store_register so delete the old inline definition.
Other duplicate definitions are in the follow two files.
gdb/config/pa/nm-hppab.h:#define CANNOT_STORE_REGISTER(regno)
gdb/config/pa/nm-hppao.h:#define CANNOT_STORE_REGISTER(regno)
(Copyright assigned.)
2002-12-23 Rodney Brown <rbrown64@csc.com.au>
* config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
--- gdb/config/pa/nm-hppah.h.orig 2002-12-22 13:14:34.000000000 +1100
+++ gdb/config/pa/nm-hppah.h 2002-12-23 19:52:41.000000000 +1100
@@ -1,5 +1,5 @@
/* Native support for HPPA-RISC machine running HPUX, for GDB.
- Copyright 1991, 1992, 1994, 1996, 1998, 1999, 2000
+ Copyright 1991, 1992, 1994, 1996, 1998, 1999, 2000, 2002
Free Software Foundation, Inc.
This file is part of GDB.
@@ -48,20 +48,6 @@
user space will crap out HPUX. */
#define NEED_TEXT_START_END 1
-/* This macro defines the register numbers (from REGISTER_NAMES) that
- are effectively unavailable to the user through ptrace(). It allows
- us to include the whole register set in REGISTER_NAMES (inorder to
- better support remote debugging). If it is used in
- fetch/store_inferior_registers() gdb will not complain about I/O errors
- on fetching these registers. If all registers in REGISTER_NAMES
- are available, then return false (0). */
-
-#define CANNOT_STORE_REGISTER(regno) \
- ((regno) == 0) || \
- ((regno) == PCSQ_HEAD_REGNUM) || \
- ((regno) >= PCSQ_TAIL_REGNUM && (regno) < IPSW_REGNUM) || \
- ((regno) > IPSW_REGNUM && (regno) < FP4_REGNUM)
-
/* In hppah-nat.c: */
#define FETCH_INFERIOR_REGISTERS
#define CHILD_XFER_MEMORY
next reply other threads:[~2002-12-23 9:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-23 1:41 rdbrown [this message]
2002-12-23 10:21 ` Daniel Jacobowitz
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=20021223095058.GA5665@urtur \
--to=rdbrown@mira.net \
--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