This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Fix compilation of ada-lang.c
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 17 Jun 2003 23:22:16 +0200
- Subject: [PATCH]: Fix compilation of ada-lang.c
Hi!
I've committed this patch (obvious) to fix compilation of ada-lang.c
Stephane
2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
* ada-lang.c (scan_discrim_bound): Name first argument.
(ada_add_block_symbols): Remove BLOCK_SYM to use local variable
declared by ALL_BLOCK_SYMBOLS.
Index: ada-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-lang.c,v
retrieving revision 1.29
diff -u -p -r1.29 ada-lang.c
--- ada-lang.c 11 Jun 2003 23:29:46 -0000 1.29
+++ ada-lang.c 17 Jun 2003 21:19:54 -0000
@@ -4038,8 +4038,6 @@ ada_add_block_symbols (struct block *blo
ALL_BLOCK_SYMBOLS (block, iter, sym)
{
- struct symbol *sym = BLOCK_SYM (block, i);
-
if (SYMBOL_DOMAIN (sym) == domain)
{
int cmp;
@@ -7710,7 +7708,7 @@ ada_vax_float_print_function (struct typ
not alter *PX and *PNEW_K if unsuccessful. */
static int
-scan_discrim_bound (char *, int k, struct value *dval, LONGEST * px,
+scan_discrim_bound (char *str, int k, struct value *dval, LONGEST * px,
int *pnew_k)
{
static char *bound_buffer = NULL;