This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Fix --target=vax-dec-vms5.5; Was: [Bug-gdb] gdb-5.0: cross build for VAX on Solaris fails (patch included)
- To: Volker Borchert <bt at teknon dot de>, GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] Fix --target=vax-dec-vms5.5; Was: [Bug-gdb] gdb-5.0: cross build for VAX on Solaris fails (patch included)
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 09 Nov 2000 17:40:20 +1100
- References: <200011081302.eA8D2EU17717@Iapetos.teknon.de>
FYI,
I've checked in the attatched which fixes a number of errors/warnings
for the target vax-dec-vms5.5. I don't know if it actually works :-)
Andrew
Thu Nov 9 17:16:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
* MAINTAINERS: Specify the vax-dec-vms5.5 target tupple.
* vax-tdep.c: Include "gdbcore.h", "frame.h" and "value.h".
(vax_print_insn): Change ``d'' to a const char pointer.
Index: MAINTAINERS
===================================================================
RCS file: /cvs/src/src/gdb/MAINTAINERS,v
retrieving revision 1.53
diff -p -r1.53 MAINTAINERS
*** MAINTAINERS 2000/10/20 08:21:45 1.53
--- MAINTAINERS 2000/11/09 06:37:17
*************** maintainer works with the native maintai
*** 92,98 ****
tic80 maintenance only (tic80-coff)
v850 maintenance only (v850-elf)
! vax maintenance only (?)
w65 maintenance only (?)
z8k maintenance only (?)
--- 92,98 ----
tic80 maintenance only (tic80-coff)
v850 maintenance only (v850-elf)
! vax maintenance only (vax-dec-vms5.5)
w65 maintenance only (?)
z8k maintenance only (?)
Index: vax-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/vax-tdep.c,v
retrieving revision 1.2
diff -p -r1.2 vax-tdep.c
*** vax-tdep.c 2000/07/30 01:48:28 1.2
--- vax-tdep.c 2000/11/09 06:37:19
***************
*** 21,26 ****
--- 21,29 ----
#include "defs.h"
#include "symtab.h"
#include "opcode/vax.h"
+ #include "gdbcore.h"
+ #include "frame.h"
+ #include "value.h"
/* Vax instructions are never longer than this. */
#define MAXLEN 62
*************** vax_print_insn (CORE_ADDR memaddr, disas
*** 80,86 ****
unsigned char buffer[MAXLEN];
register int i;
register unsigned char *p;
! register char *d;
int status = (*info->read_memory_func) (memaddr, buffer, MAXLEN, info);
if (status != 0)
--- 83,89 ----
unsigned char buffer[MAXLEN];
register int i;
register unsigned char *p;
! const char *d;
int status = (*info->read_memory_func) (memaddr, buffer, MAXLEN, info);
if (status != 0)