From ccd9a834f9e89916a0413cff791d5acfe97f8eb5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 19 Apr 2002 19:28:54 +0000 Subject: [PATCH] go32-nat.c (store_register): Cast &a_tss to `char *', to avoid compiler warning. config/djgpp/README: Update. --- gdb/ChangeLog | 7 +++++++ gdb/config/djgpp/README | 15 ++++++++------- gdb/go32-nat.c | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 86bf890..51f98cc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2002-04-19 Eli Zaretskii + + * config/djgpp/README: Update. + + * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a + compiler warnings. + 2002-04-19 Jason Thorpe * alpha-tdep.c (setup_arbitrary_frame): Rename... diff --git a/gdb/config/djgpp/README b/gdb/config/djgpp/README index 2427b64..805e1df 100644 --- a/gdb/config/djgpp/README +++ b/gdb/config/djgpp/README @@ -98,16 +98,17 @@ follows: 3. How to build ------------ -The source distribution available from DJGPP archives is already -configured for DJGPP v2.x, so if you only want to compile it, just -invoke Make: +If the source distribution available from DJGPP archives is already +configured for DJGPP v2.x (if it is, you will find files named +`Makefile' in each subdirectory), then just invoke Make: make -To build a package downloaded from a GNU FTP site, you will need o -configure it first. You will also need to configure it if you want to -change the configuration options (e.g., compile without support for the -GDBMI interface). To configure GDB, type this command: +To build a package that is not yet configured, or if you downloaded +GDB from a GNU FTP site, you will need to configure it first. You +will also need to configure it if you want to change the configuration +options (e.g., compile without support for the GDBMI interface). To +configure GDB, type this command: sh ./gdb/config/djgpp/djconfig.sh diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 31ac8d3..7b64b17 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -491,7 +491,7 @@ static void store_register (int regno) { if (regno < FP0_REGNUM) - regcache_collect (regno, (void *) &a_tss + regno_mapping[regno].tss_ofs); + regcache_collect (regno, (char *) &a_tss + regno_mapping[regno].tss_ofs); else if (FP_REGNUM_P (regno) || FPC_REGNUM_P (regno)) i387_fill_fsave ((char *) &npx, regno); else -- 2.7.4