From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@sourceware.cygnus.com
Subject: Re: RFA: symfile.c: Fix for GDB crash when rereading symbols
Date: Sat, 01 Apr 2000 00:00:00 -0000 [thread overview]
Message-ID: <38CFE802.E14@cygnus.com> (raw)
In-Reply-To: <200003141046.LAA08835@reisser.regent.e-technik.tu-muenchen.de>
Peter.Schauer wrote:
>
> symfile.c:reread_symbols does not clear the new msymbol hash tables in the
> objfile, causing stale pointers and a GDB crash during the reread.exp
> test on Solaris.
>
> Here is a fix:
>
> * symfile.c (reread_symbols): Clear msymbol hash table.
I've checked it in. Thanks again.
Michael
From eliz@delorie.com Sat Apr 01 00:00:00 2000
From: Eli Zaretskii <eliz@delorie.com>
To: gdb-patches@sourceware.cygnus.com
Subject: [PATCH] Some compiler warnings removed
Date: Sat, 01 Apr 2000 00:00:00 -0000
Message-id: <200002232235.RAA18817@indy.delorie.com>
X-SW-Source: 2000-q1/msg00344.html
Content-length: 6205
Here's my share of shutting up "gcc -Wall -W". Is "foo = foo;" an
okay solution for unused argument foo?
These diffs are against Feb 17 snapshot. I hope they are still
relevant and apply cleanly.
2000-02-23 Eli Zaretskii <eliz@is.elta.co.il>
* utils.c [__GO32__]: Include pc.h, for prototypes of ScreenCols
and ScreenRows.
* ser-go32.c: Include string.h, for prototype of strncasecmp.
(dpmi_regs, dpmi_sregs): Remove unused variables.
(dos_flush_input): Return a value, to prevent compiler warning.
* main.c (captured_command_loop): Prevent gcc from complaining
about unused argument.
* gdbtypes.c (count_virtual_fns): Make sure vfuncs is initialized
to zero.
* expprint.c (dump_prefix_expression): Use %ld in format and cast
sizeof(union exp_element) to long, to prevent GCC from complaining
about format/argument mismatch.
(dump_postfix_expression): Likewise.
* blockframe.c (nonnull_frame_chain_valid)
(pc_in_call_dummy_before_text_end)
(pc_in_call_dummy_after_text_end)
(pc_in_call_dummy_at_entry_point, generic_pc_in_call_dummy):
Prevent gcc from complaining about unused arguments.
--- gdb/blockframe.c~0 Wed Dec 22 21:45:02 1999
+++ gdb/blockframe.c Wed Feb 23 16:51:44 2000
@@ -70,6 +70,7 @@ nonnull_frame_chain_valid (chain, thisfr
CORE_ADDR chain;
struct frame_info *thisframe;
{
+ thisframe = thisframe;
return ((chain) != 0);
}
@@ -1035,6 +1036,7 @@ pc_in_call_dummy_before_text_end (pc, sp
CORE_ADDR sp;
CORE_ADDR frame_address;
{
+ sp = frame_address;
return ((pc) >= text_end - CALL_DUMMY_LENGTH
&& (pc) <= text_end + DECR_PC_AFTER_BREAK);
}
@@ -1045,6 +1047,7 @@ pc_in_call_dummy_after_text_end (pc, sp,
CORE_ADDR sp;
CORE_ADDR frame_address;
{
+ sp = frame_address;
return ((pc) >= text_end
&& (pc) <= text_end + CALL_DUMMY_LENGTH + DECR_PC_AFTER_BREAK);
}
@@ -1084,6 +1087,7 @@ pc_in_call_dummy_at_entry_point (pc, sp,
CORE_ADDR sp;
CORE_ADDR frame_address;
{
+ sp = frame_address;
return ((pc) >= CALL_DUMMY_ADDRESS ()
&& (pc) <= (CALL_DUMMY_ADDRESS () + DECR_PC_AFTER_BREAK));
}
@@ -1158,6 +1162,7 @@ generic_pc_in_call_dummy (pc, sp, fp)
CORE_ADDR sp;
CORE_ADDR fp;
{
+ fp = fp;
/* if find_dummy_frame succeeds, then PC is in a call dummy */
/* Note: SP and not FP is passed on. */
return (generic_find_dummy_frame (pc, sp) != 0);
--- gdb/expprint.c~0 Wed Feb 2 00:21:06 2000
+++ gdb/expprint.c Wed Feb 23 17:11:22 2000
@@ -710,9 +710,9 @@ dump_prefix_expression (exp, stream, not
print_expression (exp, stream);
else
fprintf_filtered (stream, "Type printing not yet supported....");
- fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %d bytes each.\n",
+ fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %ld bytes each.\n",
exp->language_defn->la_name, exp->nelts,
- sizeof (union exp_element));
+ (long) sizeof (union exp_element));
fprintf_filtered (stream, "\t%5s %20s %16s %s\n", "Index", "Opcode",
"Hex Value", "String Value");
for (elt = 0; elt < exp->nelts; elt++)
@@ -986,9 +986,9 @@ dump_postfix_expression (exp, stream, no
print_expression (exp, stream);
else
fputs_filtered ("Type printing not yet supported....", stream);
- fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %d bytes each.\n",
+ fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %ld bytes each.\n",
exp->language_defn->la_name, exp->nelts,
- sizeof (union exp_element));
+ (long) sizeof (union exp_element));
fputs_filtered ("\n", stream);
for (elt = 0; elt < exp->nelts;)
--- gdb/gdbtypes.c~0 Tue Dec 14 01:05:30 1999
+++ gdb/gdbtypes.c Wed Feb 23 17:13:34 2000
@@ -2041,7 +2041,7 @@ count_virtual_fns (dclass)
struct type *dclass;
{
int fn, oi; /* function and overloaded instance indices */
- int vfuncs; /* count to return */
+ int vfuncs = 0; /* count to return */
/* recurse on bases that can share virtual table */
struct type *pbc = primary_base_class (dclass);
--- gdb/i386-tdep.c~0 Tue Oct 19 02:46:36 1999
+++ gdb/i386-tdep.c Wed Feb 23 12:17:20 2000
@@ -702,9 +702,9 @@ i386_extract_return_value (type, regbuf,
char regbuf[REGISTER_BYTES];
char *valbuf;
{
- /* On AIX and i386 GNU/Linux, floating point values are returned in
- floating point registers. */
-#if defined(I386_AIX_TARGET) || defined(I386_GNULINUX_TARGET)
+ /* On AIX, i386 GNU/Linux and DJGPP, floating point values are
+ returned in floating point registers. */
+#if defined(I386_AIX_TARGET) || defined(I386_GNULINUX_TARGET) || defined(I386_DJGPP_TARGET)
if (TYPE_CODE_FLT == TYPE_CODE (type))
{
double d;
@@ -720,7 +720,7 @@ i386_extract_return_value (type, regbuf,
store_floating (valbuf, TYPE_LENGTH (type), d);
}
else
-#endif /* I386_AIX_TARGET || I386_GNULINUX_TARGET*/
+#endif /* I386_AIX_TARGET || I386_GNULINUX_TARGET || I386_DJGPP_TARGET */
{
#if defined(LOW_RETURN_REGNUM)
int len = TYPE_LENGTH (type);
--- gdb/main.c~0 Mon Feb 7 00:19:34 2000
+++ gdb/main.c Wed Feb 23 16:48:54 2000
@@ -93,6 +93,7 @@ extern char *external_editor_command;
static int
captured_command_loop (void *data)
{
+ data = data;
if (command_loop_hook == NULL)
command_loop ();
else
--- gdb/ser-go32.c~0 Wed Feb 2 00:21:10 2000
+++ gdb/ser-go32.c Wed Feb 23 17:18:50 2000
@@ -127,15 +127,12 @@
#define MSR_DDSR 0x02
#define MSR_DCTS 0x01
+#include <string.h>
#include <dos.h>
#include <go32.h>
#include <dpmi.h>
typedef unsigned long u_long;
-/* DPMI Communication */
-static union REGS dpmi_regs;
-static struct SREGS dpmi_sregs;
-
/* 16550 rx fifo trigger point */
#define FIFO_TRIGGER FIFO_TRIGGER_4
@@ -693,6 +690,7 @@ dos_flush_input (scb)
if (port->fifo)
outb (port, com_fifo, FIFO_ENABLE | FIFO_RCV_RST | FIFO_TRIGGER);
enable ();
+ return 0;
}
static void
--- gdb/utils.c~0 Wed Feb 2 00:21:10 2000
+++ gdb/utils.c Wed Feb 23 17:45:36 2000
@@ -31,6 +31,10 @@
#include <term.h>
#endif
+#ifdef __GO32__
+#include <pc.h>
+#endif
+
/* SunOS's curses.h has a '#define reg register' in it. Thank you Sun. */
#ifdef reg
#undef reg
From ac131313@cygnus.com Sat Apr 01 00:00:00 2000
From: Andrew Cagney <ac131313@cygnus.com>
To: GDB Patches <gdb-patches@sourceware.cygnus.com>
Subject: Re: [PATCH] acconfig.h tweeks - HAVE_PTRACE_GETREGS
Date: Sat, 01 Apr 2000 00:00:00 -0000
Message-id: <38DFF791.56C5036F@cygnus.com>
References: <38DF0EDF.9927F6CC@cygnus.com>
X-SW-Source: 2000-q1/msg01070.html
Content-length: 1713
Andrew Cagney wrote:
> Index: acconfig.h
> ===================================================================
> RCS file: /cvs/src/src/gdb/acconfig.h,v
> retrieving revision 1.1.1.5
> diff -p -r1.1.1.5 acconfig.h
> *** acconfig.h 2000/01/06 03:06:35 1.1.1.5
> --- acconfig.h 2000/03/27 07:24:20
> ***************
> *** 84,87 ****
> --- 84,90 ----
> #undef HAVE_STRUCT_MEMBER_SS_WIDE
>
> /* Define if <sys/ptrace.h> defines the PTRACE_GETXFPREGS request. */
> + #undef HAVE_PTRACE_GETREGS
> +
> + /* Define if <sys/ptrace.h> defines the PTRACE_GETXFPREGS request. */
> #undef HAVE_PTRACE_GETXFPREGS
The attatched fixes an obvious typo. (Thanks Fernando.)
Andrew
Tue Mar 28 09:59:00 2000 Andrew Cagney <cagney@b1.cygnus.com>
* acconfig.h: Fix typo in comment describing HAVE_PTRACE_GETREGS.
* config.h: Regenerate.
Index: acconfig.h
===================================================================
RCS file: /cvs/src/src/gdb/acconfig.h,v
retrieving revision 1.2
diff -p -r1.2 acconfig.h
*** acconfig.h 2000/03/27 07:31:37 1.2
--- acconfig.h 2000/03/28 00:02:15
***************
*** 83,89 ****
/* Set to true if the save_state_t structure has the ss_wide member */
#undef HAVE_STRUCT_MEMBER_SS_WIDE
! /* Define if <sys/ptrace.h> defines the PTRACE_GETXFPREGS request. */
#undef HAVE_PTRACE_GETREGS
/* Define if <sys/ptrace.h> defines the PTRACE_GETXFPREGS request. */
--- 83,89 ----
/* Set to true if the save_state_t structure has the ss_wide member */
#undef HAVE_STRUCT_MEMBER_SS_WIDE
! /* Define if <sys/ptrace.h> defines the PTRACE_GETREGS request. */
#undef HAVE_PTRACE_GETREGS
/* Define if <sys/ptrace.h> defines the PTRACE_GETXFPREGS request. */
From cgf@cygnus.com Sat Apr 01 00:00:00 2000
From: Chris Faylor <cgf@cygnus.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: GDB Patches <gdb-patches@sourceware.cygnus.com>
Subject: Re: [PATCH] Include "gdb_wait.h"
Date: Sat, 01 Apr 2000 00:00:00 -0000
Message-id: <20000228010642.A14479@cygnus.com>
References: <38BA0111.C69DA62A@cygnus.com>
X-SW-Source: 2000-q1/msg00394.html
Content-length: 1133
Actually, it seems that the line should be completely eliminated. It
has no meaning to Windows CE.
Also, shouldn't that be "gdb-wait.h"? I thought there was a "no underscore
in filenames" rule in gdb.
cgf
On Mon, Feb 28, 2000 at 04:01:05PM +1100, Andrew Cagney wrote:
>Chris,
>
>Noticed this one. It's been applied.
>
> Andrew
>Mon Feb 28 13:34:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
>
> * wince.c: Include "gdb_wait.h" and not "wait.h".
>
>Index: wince.c
>===================================================================
>RCS file: /cvs/src/src/gdb/wince.c,v
>retrieving revision 1.1
>diff -p -r1.1 wince.c
>*** wince.c 2000/02/24 21:39:15 1.1
>--- wince.c 2000/02/28 04:58:23
>***************
>*** 33,39 ****
> #include "frame.h" /* required by inferior.h */
> #include "inferior.h"
> #include "target.h"
>! #include "wait.h"
> #include "gdbcore.h"
> #include "command.h"
> #include <signal.h>
>--- 33,39 ----
> #include "frame.h" /* required by inferior.h */
> #include "inferior.h"
> #include "target.h"
>! #include "gdb_wait.h"
> #include "gdbcore.h"
> #include "command.h"
> #include <signal.h>
prev parent reply other threads:[~2000-04-01 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200003141046.LAA08835@reisser.regent.e-technik.tu-muenchen.de>
2000-03-14 10:20 ` Michael Snyder
2000-04-01 0:00 ` Michael Snyder
2000-04-01 0:00 ` Michael Snyder [this message]
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=38CFE802.E14@cygnus.com \
--to=msnyder@cygnus.com \
--cc=gdb-patches@sourceware.cygnus.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