aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/m68k
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-04-05 04:22:08 +0000
committerFred Fish <fnf@specifix.com>1996-04-05 04:22:08 +0000
commit72ae15f6b0b419e5bb334a232f00f5710e8597ba (patch)
tree876ae6825109279adddc5811d37c6f7fb8e86d07 /gdb/config/m68k
parentab1aa5cd6cd1e18814c20c8801e989fc260b8ee9 (diff)
downloadgdb-72ae15f6b0b419e5bb334a232f00f5710e8597ba.zip
gdb-72ae15f6b0b419e5bb334a232f00f5710e8597ba.tar.gz
gdb-72ae15f6b0b419e5bb334a232f00f5710e8597ba.tar.bz2
* configure.in: Check for setpgid function.
* config.in: Regenerate with autoheader. * configure: Regenerate with autoconf. * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL if it is actually defined. (gdb_setpgid): Use HAVE_SETPGID. * ch-exp.c: Change include of <string.h> to "gdb_string.h". * c-exp.y: Ditto. * f-exp.y: Ditto. * m2-exp.y: Ditto. * c-exp.y: Include <ctype.h>. * serial.c: Ditto. * config/m68k/nm-news.h: Add typedef for pid_t which is apparently missing from <sys/types.h>. Enclose entire file in NM_NEWS_H ifndef and define when included. * config/mips/nm-news-mips.h: Ditto. * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
Diffstat (limited to 'gdb/config/m68k')
-rw-r--r--gdb/config/m68k/nm-news.h10
-rw-r--r--gdb/config/m68k/tm-m68k.h10
2 files changed, 13 insertions, 7 deletions
diff --git a/gdb/config/m68k/nm-news.h b/gdb/config/m68k/nm-news.h
index 0062147..643d217 100644
--- a/gdb/config/m68k/nm-news.h
+++ b/gdb/config/m68k/nm-news.h
@@ -1,5 +1,5 @@
/* Parameters for execution on a Sony/NEWS, for GDB, the GNU debugger.
- Copyright 1987, 1989, 1992 Free Software Foundation, Inc.
+ Copyright 1987, 1989, 1992, 1996 Free Software Foundation, Inc.
This file is part of GDB.
@@ -17,4 +17,10 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-/* This file intentionally empty. */
+#ifndef NM_HEWS_H
+#define NM_NEWS_H 1
+
+/* Supply missing typedef needed in inftarg.c */
+typedef int pid_t;
+
+#endif /* NM_NEWS_H */
diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h
index 62ba9b1..4d284b5 100644
--- a/gdb/config/m68k/tm-m68k.h
+++ b/gdb/config/m68k/tm-m68k.h
@@ -156,9 +156,9 @@ extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \
{ \
- double val; \
- floatformat_to_double (&floatformat_m68881_ext, (FROM), &val); \
- store_floating ((TO), TYPE_LENGTH (TYPE), val); \
+ double dbl_tmp_val; \
+ floatformat_to_double (&floatformat_m68881_ext, (FROM), &dbl_tmp_val); \
+ store_floating ((TO), TYPE_LENGTH (TYPE), dbl_tmp_val); \
}
/* Convert data from virtual format with type TYPE in buffer FROM
@@ -166,8 +166,8 @@ extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \
{ \
- double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
- floatformat_from_double (&floatformat_m68881_ext, &val, (TO)); \
+ double dbl_tmp_val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
+ floatformat_from_double (&floatformat_m68881_ext, &dbl_tmp_val, (TO)); \
}
/* Return the GDB type object for the "standard" data type