Fix s390x build.

This commit is contained in:
aoliva 2006-07-11 18:04:22 +00:00
commit 21721b8b21
2 changed files with 106 additions and 97 deletions

View file

@ -1,7 +1,7 @@
Index: gdb-6.5/gdb/configure
===================================================================
--- gdb-6.5.orig/gdb/configure 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/configure 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/configure 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/configure 2006-07-11 15:01:23.000000000 -0300
@@ -20125,7 +20125,8 @@ fi
# gdb/doc/gdbint.texinfo.
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
@ -14,8 +14,8 @@ Index: gdb-6.5/gdb/configure
if test x${CFLAGS+set} = xset; then
Index: gdb-6.5/gdb/mi/mi-cmd-env.c
===================================================================
--- gdb-6.5.orig/gdb/mi/mi-cmd-env.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-cmd-env.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/mi/mi-cmd-env.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-cmd-env.c 2006-07-11 15:01:23.000000000 -0300
@@ -126,7 +126,7 @@ mi_cmd_env_path (char *command, char **a
static struct mi_opt opts[] =
{
@ -36,8 +36,8 @@ Index: gdb-6.5/gdb/mi/mi-cmd-env.c
dont_repeat ();
Index: gdb-6.5/gdb/mi/mi-getopt.c
===================================================================
--- gdb-6.5.orig/gdb/mi/mi-getopt.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-getopt.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/mi/mi-getopt.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-getopt.c 2006-07-11 15:01:23.000000000 -0300
@@ -82,7 +82,7 @@ mi_valid_noargs (const char *prefix, int
char *optarg;
static struct mi_opt opts[] =
@ -49,8 +49,8 @@ Index: gdb-6.5/gdb/mi/mi-getopt.c
if (mi_getopt (prefix, argc, argv, opts, &optind, &optarg) == -1)
Index: gdb-6.5/gdb/mi/mi-cmd-break.c
===================================================================
--- gdb-6.5.orig/gdb/mi/mi-cmd-break.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-cmd-break.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/mi/mi-cmd-break.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-cmd-break.c 2006-07-11 15:01:23.000000000 -0300
@@ -90,7 +90,7 @@ mi_cmd_break_insert (char *command, char
{"c", CONDITION_OPT, 1},
{"i", IGNORE_COUNT_OPT, 1},
@ -71,8 +71,8 @@ Index: gdb-6.5/gdb/mi/mi-cmd-break.c
/* Parse arguments. */
Index: gdb-6.5/gdb/mi/mi-cmd-disas.c
===================================================================
--- gdb-6.5.orig/gdb/mi/mi-cmd-disas.c 2006-07-11 02:47:12.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-cmd-disas.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/mi/mi-cmd-disas.c 2006-07-11 15:01:22.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-cmd-disas.c 2006-07-11 15:01:23.000000000 -0300
@@ -84,7 +84,7 @@ mi_cmd_disassemble (char *command, char
{"n", NUM_OPT, 1},
{"s", START_OPT, 1},
@ -84,8 +84,8 @@ Index: gdb-6.5/gdb/mi/mi-cmd-disas.c
/* Get the options with their arguments. Keep track of what we
Index: gdb-6.5/gdb/mi/mi-main.c
===================================================================
--- gdb-6.5.orig/gdb/mi/mi-main.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-main.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/mi/mi-main.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/mi/mi-main.c 2006-07-11 15:01:23.000000000 -0300
@@ -773,7 +773,7 @@ mi_cmd_data_read_memory (char *command,
static struct mi_opt opts[] =
{
@ -106,8 +106,8 @@ Index: gdb-6.5/gdb/mi/mi-main.c
while (1)
Index: gdb-6.5/gdb/p-valprint.c
===================================================================
--- gdb-6.5.orig/gdb/p-valprint.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/p-valprint.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/p-valprint.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/p-valprint.c 2006-07-11 15:01:23.000000000 -0300
@@ -753,7 +753,7 @@ pascal_object_print_value_fields (struct
int dont_print_statmem)
{
@ -128,8 +128,8 @@ Index: gdb-6.5/gdb/p-valprint.c
int i, n_baseclasses = TYPE_N_BASECLASSES (type);
Index: gdb-6.5/gdb/cp-valprint.c
===================================================================
--- gdb-6.5.orig/gdb/cp-valprint.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/cp-valprint.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/cp-valprint.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/cp-valprint.c 2006-07-11 15:01:23.000000000 -0300
@@ -265,7 +265,7 @@ cp_print_value_fields (struct type *type
struct type **dont_print_vb,int dont_print_statmem)
{
@ -150,8 +150,8 @@ Index: gdb-6.5/gdb/cp-valprint.c
int i, n_baseclasses = TYPE_N_BASECLASSES (type);
Index: gdb-6.5/gdb/tui/tui-layout.c
===================================================================
--- gdb-6.5.orig/gdb/tui/tui-layout.c 2006-07-11 02:47:12.000000000 -0300
+++ gdb-6.5/gdb/tui/tui-layout.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/tui/tui-layout.c 2006-07-11 15:01:22.000000000 -0300
+++ gdb-6.5/gdb/tui/tui-layout.c 2006-07-11 15:01:23.000000000 -0300
@@ -755,7 +755,7 @@ show_source_disasm_command (void)
if (TUI_DISASM_WIN == NULL)
{
@ -190,8 +190,8 @@ Index: gdb-6.5/gdb/tui/tui-layout.c
tui_term_width (),
Index: gdb-6.5/gdb/testsuite/gdb.base/move-dir.h
===================================================================
--- gdb-6.5.orig/gdb/testsuite/gdb.base/move-dir.h 2006-07-11 02:47:12.000000000 -0300
+++ gdb-6.5/gdb/testsuite/gdb.base/move-dir.h 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/testsuite/gdb.base/move-dir.h 2006-07-11 15:01:23.000000000 -0300
+++ gdb-6.5/gdb/testsuite/gdb.base/move-dir.h 2006-07-11 15:01:23.000000000 -0300
@@ -1,4 +1,4 @@
-#include <stdlib.h>
+#include <stdio.h>
@ -200,8 +200,8 @@ Index: gdb-6.5/gdb/testsuite/gdb.base/move-dir.h
const char* ostring = "other";
Index: gdb-6.5/gdb/testsuite/gdb.base/sigrepeat.c
===================================================================
--- gdb-6.5.orig/gdb/testsuite/gdb.base/sigrepeat.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/testsuite/gdb.base/sigrepeat.c 2006-07-11 02:47:23.000000000 -0300
--- gdb-6.5.orig/gdb/testsuite/gdb.base/sigrepeat.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/testsuite/gdb.base/sigrepeat.c 2006-07-11 15:01:23.000000000 -0300
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
@ -212,9 +212,19 @@ Index: gdb-6.5/gdb/testsuite/gdb.base/sigrepeat.c
static volatile int done[2];
Index: gdb-6.5/gdb/s390-tdep.c
===================================================================
--- gdb-6.5.orig/gdb/s390-tdep.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/s390-tdep.c 2006-07-11 02:47:23.000000000 -0300
@@ -2309,6 +2309,9 @@ s390_return_value (struct gdbarch *gdbar
--- gdb-6.5.orig/gdb/s390-tdep.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/s390-tdep.c 2006-07-11 15:02:37.000000000 -0300
@@ -2277,6 +2277,9 @@ s390_return_value (struct gdbarch *gdbar
case RETURN_VALUE_STRUCT_CONVENTION:
error (_("Cannot set function return value."));
break;
+
+ default:
+ break;
}
}
else if (out)
@@ -2309,6 +2312,9 @@ s390_return_value (struct gdbarch *gdbar
case RETURN_VALUE_STRUCT_CONVENTION:
error (_("Function return value unknown."));
break;
@ -226,8 +236,8 @@ Index: gdb-6.5/gdb/s390-tdep.c
Index: gdb-6.5/gdb/remote.c
===================================================================
--- gdb-6.5.orig/gdb/remote.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/remote.c 2006-07-11 02:49:02.000000000 -0300
--- gdb-6.5.orig/gdb/remote.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/remote.c 2006-07-11 15:02:32.000000000 -0300
@@ -2523,10 +2523,10 @@ cleanup_sigint_signal_handler (void *dum
{
signal (SIGINT, handle_sigint);
@ -243,8 +253,8 @@ Index: gdb-6.5/gdb/remote.c
Index: gdb-6.5/gdb/f-exp.y
===================================================================
--- gdb-6.5.orig/gdb/f-exp.y 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/f-exp.y 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/f-exp.y 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/f-exp.y 2006-07-11 15:01:23.000000000 -0300
@@ -567,6 +567,8 @@ ptype : typebase
case tp_function:
follow_type = lookup_function_type (follow_type);
@ -256,8 +266,8 @@ Index: gdb-6.5/gdb/f-exp.y
}
Index: gdb-6.5/gdb/remote-fileio.c
===================================================================
--- gdb-6.5.orig/gdb/remote-fileio.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/remote-fileio.c 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/remote-fileio.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/remote-fileio.c 2006-07-11 15:01:23.000000000 -0300
@@ -1317,19 +1317,19 @@ static struct {
char *name;
void (*func)(char *);
@ -293,8 +303,8 @@ Index: gdb-6.5/gdb/remote-fileio.c
static int
Index: gdb-6.5/gdb/source.c
===================================================================
--- gdb-6.5.orig/gdb/source.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/source.c 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/source.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/source.c 2006-07-11 15:01:23.000000000 -0300
@@ -160,7 +160,7 @@ get_current_source_symtab_and_line (void
void
set_default_source_symtab_and_line (void)
@ -315,8 +325,8 @@ Index: gdb-6.5/gdb/source.c
Index: gdb-6.5/gdb/symfile.c
===================================================================
--- gdb-6.5.orig/gdb/symfile.c 2006-07-11 02:47:11.000000000 -0300
+++ gdb-6.5/gdb/symfile.c 2006-07-11 02:52:26.000000000 -0300
--- gdb-6.5.orig/gdb/symfile.c 2006-07-11 15:01:22.000000000 -0300
+++ gdb-6.5/gdb/symfile.c 2006-07-11 15:02:34.000000000 -0300
@@ -2877,6 +2877,8 @@ add_psymbol_with_dem_name_to_list (char
deprecated_bcache (buf, dem_namelength + 1, objfile->psymbol_cache);
break;
@ -328,8 +338,8 @@ Index: gdb-6.5/gdb/symfile.c
/* val and coreaddr are mutually exclusive, one of them *will* be zero */
Index: gdb-6.5/gdb/linespec.c
===================================================================
--- gdb-6.5.orig/gdb/linespec.c 2006-07-11 02:47:12.000000000 -0300
+++ gdb-6.5/gdb/linespec.c 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/linespec.c 2006-07-11 15:01:23.000000000 -0300
+++ gdb-6.5/gdb/linespec.c 2006-07-11 15:01:23.000000000 -0300
@@ -1631,7 +1631,7 @@ static struct symtabs_and_lines
find_method (int funfirstline, char ***canonical, char *saved_arg,
char *copy, struct type *t, struct symbol *sym_class)
@ -341,8 +351,8 @@ Index: gdb-6.5/gdb/linespec.c
struct symbol **sym_arr = alloca (total_number_of_methods (t)
Index: gdb-6.5/gdb/macroscope.c
===================================================================
--- gdb-6.5.orig/gdb/macroscope.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/macroscope.c 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/macroscope.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/macroscope.c 2006-07-11 15:01:23.000000000 -0300
@@ -33,7 +33,7 @@
struct macro_scope *
sal_macro_scope (struct symtab_and_line sal)
@ -382,8 +392,8 @@ Index: gdb-6.5/gdb/macroscope.c
/* If there's a selected frame, use its PC. */
Index: gdb-6.5/gdb/target.c
===================================================================
--- gdb-6.5.orig/gdb/target.c 2006-07-11 02:47:12.000000000 -0300
+++ gdb-6.5/gdb/target.c 2006-07-11 02:52:25.000000000 -0300
--- gdb-6.5.orig/gdb/target.c 2006-07-11 15:01:22.000000000 -0300
+++ gdb-6.5/gdb/target.c 2006-07-11 15:02:33.000000000 -0300
@@ -1142,6 +1142,9 @@ target_xfer_memory (CORE_ADDR memaddr, g
if (!write)
return EIO;
@ -406,8 +416,8 @@ Index: gdb-6.5/gdb/target.c
if (region->attrib.cache)
Index: gdb-6.5/gdb/gdb-events.c
===================================================================
--- gdb-6.5.orig/gdb/gdb-events.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/gdb-events.c 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/gdb-events.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/gdb-events.c 2006-07-11 15:01:23.000000000 -0300
@@ -321,6 +321,8 @@ gdb_events_deliver (struct gdb_events *v
case architecture_changed:
vector->architecture_changed ();
@ -419,8 +429,8 @@ Index: gdb-6.5/gdb/gdb-events.c
xfree (event);
Index: gdb-6.5/gdb/dwarf2read.c
===================================================================
--- gdb-6.5.orig/gdb/dwarf2read.c 2006-07-11 02:47:12.000000000 -0300
+++ gdb-6.5/gdb/dwarf2read.c 2006-07-11 02:52:25.000000000 -0300
--- gdb-6.5.orig/gdb/dwarf2read.c 2006-07-11 15:01:23.000000000 -0300
+++ gdb-6.5/gdb/dwarf2read.c 2006-07-11 15:02:33.000000000 -0300
@@ -9179,6 +9179,7 @@ dwarf_decode_macros (struct line_header
for (;;)
{
@ -453,8 +463,8 @@ Index: gdb-6.5/gdb/dwarf2read.c
{
Index: gdb-6.5/gdb/stabsread.c
===================================================================
--- gdb-6.5.orig/gdb/stabsread.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/stabsread.c 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/stabsread.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/stabsread.c 2006-07-11 15:01:23.000000000 -0300
@@ -1794,7 +1794,8 @@ again:
struct type *domain = read_type (pp, objfile);
struct type *return_type;
@ -467,8 +477,8 @@ Index: gdb-6.5/gdb/stabsread.c
/* Invalid member type data format. */
Index: gdb-6.5/gdb/dwarf2expr.c
===================================================================
--- gdb-6.5.orig/gdb/dwarf2expr.c 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/dwarf2expr.c 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/dwarf2expr.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/dwarf2expr.c 2006-07-11 15:01:23.000000000 -0300
@@ -559,6 +559,8 @@ execute_stack_op (struct dwarf_expr_cont
op_ptr = read_uleb128 (op_ptr, op_end, &reg);
result += reg;
@ -480,8 +490,8 @@ Index: gdb-6.5/gdb/dwarf2expr.c
Index: gdb-6.5/gdb/varobj.c
===================================================================
--- gdb-6.5.orig/gdb/varobj.c 2006-07-11 02:47:21.000000000 -0300
+++ gdb-6.5/gdb/varobj.c 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/varobj.c 2006-07-11 15:01:22.000000000 -0300
+++ gdb-6.5/gdb/varobj.c 2006-07-11 15:01:23.000000000 -0300
@@ -325,10 +325,9 @@ struct language_specific
/* Array of known source language routines. */
@ -536,8 +546,8 @@ Index: gdb-6.5/gdb/varobj.c
var->root->rootvar = var;
Index: gdb-6.5/gdb/configure.ac
===================================================================
--- gdb-6.5.orig/gdb/configure.ac 2006-07-11 02:46:52.000000000 -0300
+++ gdb-6.5/gdb/configure.ac 2006-07-11 02:47:24.000000000 -0300
--- gdb-6.5.orig/gdb/configure.ac 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/configure.ac 2006-07-11 15:01:23.000000000 -0300
@@ -1133,7 +1133,8 @@ fi
# gdb/doc/gdbint.texinfo.
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
@ -550,8 +560,8 @@ Index: gdb-6.5/gdb/configure.ac
if test x${CFLAGS+set} = xset; then
Index: gdb-6.5/gdb/doublest.c
===================================================================
--- gdb-6.5.orig/gdb/doublest.c 2005-12-17 20:33:59.000000000 -0200
+++ gdb-6.5/gdb/doublest.c 2006-07-11 02:55:55.000000000 -0300
--- gdb-6.5.orig/gdb/doublest.c 2006-07-11 15:00:08.000000000 -0300
+++ gdb-6.5/gdb/doublest.c 2006-07-11 15:01:23.000000000 -0300
@@ -94,15 +94,10 @@ get_field (const bfd_byte *data, enum fl
{
result |= (unsigned long)*(data + cur_byte) << cur_bitshift;