Tue Sep 28 09:45:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)

* symmisc.c (print_symbol): Use %02x not %2x for LOC_CONST_BYTES.

	Clean up problems with targets and hosts that have 64 bit longs
	and pointers and 32 bit ints.
	* breakpoint.c, buildsym.c, c-lang.c, c-valprint.c, ch-lang.c,
	ch-valprint.c, core.c, cp-valprint.c, dbxread.c, exec.c,
	expprint.c, gdbtypes.c, infcmd.c, language.c, language.h,
	m2-lang.c, maint.c, mips-tdep.c, mipsread.c, partial-stab.h,
	printcmd.c, remote-vx.c, solib.c, source.c, stack.c, symfile.c,
	symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
	Change all printf formats from %x to %lx if outputting an address.
	Change la_*_format to use long format.
	local_hex_string, local_hex_string_custom now take an unsigned long
	argument, change all callers.
	* coffread.c (read_coff_symtab):  Remove superfluous cast for
	complaint output.
	* dbxread.c (end_psymtab):  Cast MSYMBOL_INFO to long, not int.
	* findvar.c, value.h (write_register):  Change register value to long.
	* gdbtypes.h (struct type):  Change `bitsize' to long as
	TYPE_FIELD_STATIC_PHYSNAME uses this field as a pointer.
	* inferior.h (struct inferior_status):  Change type of stop_pc to
	CORE_ADDR.
	* language.h (local_octal_string, local_octal_string_custom):
	Remove prototype, the functions are neither defined nor used.
	* mipsread.c (parse_symbol):  Use temporary variable for bitsize as
	f->bitsize is a long now.
	* objfiles.c (add_to_objfile_sections, build_objfile_section_table):
	Use unsigned long casts instead of int for abusing sections_end
	pointer as integer.
	* stack.c (parse_frame_specification):  Change type of `args' to
	CORE_ADDR for SETUP_ARBITRARY_FRAME.

	* printcmd.c (make_vasize):  Allow redefinition via MAKEVA_SIZE.
	* mipsread.c (parse_type):  Alpha cc now supports the t->continued
	bit, update algorithm to match the way the compiler uses it.
This commit is contained in:
Jim Kingdon
1993-09-28 17:43:25 +00:00
parent aca4585c94
commit 5573d7d4b1
24 changed files with 250 additions and 211 deletions

View File

@@ -168,8 +168,7 @@ value_fetch_lazy PARAMS ((value val));
/* If ARG is an enum, convert it to an integer. */
#define COERCE_ENUM(arg) \
{ if (TYPE_CODE (VALUE_TYPE (arg)) == TYPE_CODE_REF) \
arg = value_ind (arg); \
{ COERCE_REF (arg); \
if (TYPE_CODE (VALUE_TYPE (arg)) == TYPE_CODE_ENUM) \
arg = value_cast (builtin_type_unsigned_int, arg); \
}
@@ -218,132 +217,98 @@ unpack_long PARAMS ((struct type *type, char *valaddr));
extern double
unpack_double PARAMS ((struct type *type, char *valaddr, int *invp));
extern CORE_ADDR
unpack_pointer PARAMS ((struct type *type, char *valaddr));
extern CORE_ADDR unpack_pointer PARAMS ((struct type *type, char *valaddr));
extern LONGEST
unpack_field_as_long PARAMS ((struct type *type, char *valaddr,
int fieldno));
extern LONGEST unpack_field_as_long PARAMS ((struct type *type, char *valaddr,
int fieldno));
extern value
value_from_longest PARAMS ((struct type *type, LONGEST num));
extern value value_from_longest PARAMS ((struct type *type, LONGEST num));
extern value
value_from_double PARAMS ((struct type *type, double num));
extern value value_from_double PARAMS ((struct type *type, double num));
extern value
value_at PARAMS ((struct type *type, CORE_ADDR addr));
extern value value_at PARAMS ((struct type *type, CORE_ADDR addr));
extern value
value_at_lazy PARAMS ((struct type *type, CORE_ADDR addr));
extern value value_at_lazy PARAMS ((struct type *type, CORE_ADDR addr));
/* FIXME: Assumes equivalence of "struct frame_info *" and "FRAME" */
extern value
value_from_register PARAMS ((struct type *type, int regnum,
struct frame_info * frame));
extern value value_from_register PARAMS ((struct type *type, int regnum,
struct frame_info * frame));
extern value
value_of_variable PARAMS ((struct symbol *var));
extern value value_of_variable PARAMS ((struct symbol *var, struct block *b));
extern value
value_of_register PARAMS ((int regnum));
extern value value_of_register PARAMS ((int regnum));
/* FIXME: Assumes equivalence of "struct frame_info *" and "FRAME" */
extern value
read_var_value PARAMS ((struct symbol *var, struct frame_info *frame));
extern value read_var_value PARAMS ((struct symbol *var,
struct frame_info *frame));
/* FIXME: Assumes equivalence of "struct frame_info *" and "FRAME" */
extern value
locate_var_value PARAMS ((struct symbol *var, struct frame_info *frame));
extern value locate_var_value PARAMS ((struct symbol *var,
struct frame_info *frame));
extern value
allocate_value PARAMS ((struct type *type));
extern value allocate_value PARAMS ((struct type *type));
extern value
allocate_repeat_value PARAMS ((struct type *type, int count));
extern value allocate_repeat_value PARAMS ((struct type *type, int count));
extern value
value_mark PARAMS ((void));
extern value value_mark PARAMS ((void));
extern void
value_free_to_mark PARAMS ((value mark));
extern void value_free_to_mark PARAMS ((value mark));
extern value
value_string PARAMS ((char *ptr, int len));
extern value value_string PARAMS ((char *ptr, int len));
extern value
value_array PARAMS ((int lowbound, int highbound, value *elemvec));
extern value value_array PARAMS ((int lowbound, int highbound,
value *elemvec));
extern value
value_concat PARAMS ((value arg1, value arg2));
extern value value_concat PARAMS ((value arg1, value arg2));
extern value
value_binop PARAMS ((value arg1, value arg2, enum exp_opcode op));
extern value value_binop PARAMS ((value arg1, value arg2, enum exp_opcode op));
extern value
value_add PARAMS ((value arg1, value arg2));
extern value value_add PARAMS ((value arg1, value arg2));
extern value
value_sub PARAMS ((value arg1, value arg2));
extern value value_sub PARAMS ((value arg1, value arg2));
extern value
value_coerce_array PARAMS ((value arg1));
extern value value_coerce_array PARAMS ((value arg1));
extern value
value_coerce_function PARAMS ((value arg1));
extern value value_coerce_function PARAMS ((value arg1));
extern value
value_ind PARAMS ((value arg1));
extern value value_ind PARAMS ((value arg1));
extern value
value_addr PARAMS ((value arg1));
extern value value_addr PARAMS ((value arg1));
extern value
value_assign PARAMS ((value toval, value fromval));
extern value value_assign PARAMS ((value toval, value fromval));
extern value
value_neg PARAMS ((value arg1));
extern value value_neg PARAMS ((value arg1));
extern value
value_complement PARAMS ((value arg1));
extern value value_complement PARAMS ((value arg1));
extern value
value_struct_elt PARAMS ((value *argp, value *args, char *name,
int *static_memfuncp, char *err));
extern value value_struct_elt PARAMS ((value *argp, value *args, char *name,
int *static_memfuncp, char *err));
extern value
value_struct_elt_for_reference PARAMS ((struct type *domain,
int offset,
struct type *curtype,
char *name,
struct type *intype));
extern value value_struct_elt_for_reference PARAMS ((struct type *domain,
int offset,
struct type *curtype,
char *name,
struct type *intype));
extern value
value_field PARAMS ((value arg1, int fieldno));
extern value value_field PARAMS ((value arg1, int fieldno));
extern value
value_primitive_field PARAMS ((value arg1, int offset, int fieldno,
struct type *arg_type));
extern value value_primitive_field PARAMS ((value arg1, int offset,
int fieldno,
struct type *arg_type));
extern value
value_cast PARAMS ((struct type *type, value arg2));
extern value value_cast PARAMS ((struct type *type, value arg2));
extern value
value_zero PARAMS ((struct type *type, enum lval_type lv));
extern value value_zero PARAMS ((struct type *type, enum lval_type lv));
extern value
value_repeat PARAMS ((value arg1, int count));
extern value value_repeat PARAMS ((value arg1, int count));
extern value
value_subscript PARAMS ((value array, value idx));
extern value value_subscript PARAMS ((value array, value idx));
extern value
value_from_vtable_info PARAMS ((value arg, struct type *type));
extern value value_from_vtable_info PARAMS ((value arg, struct type *type));
extern value
value_being_returned PARAMS ((struct type *valtype,
char retbuf[REGISTER_BYTES],
int struct_return));
extern value value_being_returned PARAMS ((struct type *valtype,
char retbuf[REGISTER_BYTES],
int struct_return));
extern int
using_struct_return PARAMS ((value function, CORE_ADDR funcaddr,
@@ -455,7 +420,7 @@ extern CORE_ADDR
read_register PARAMS ((int regno));
extern void
write_register PARAMS ((int regno, int val));
write_register PARAMS ((int regno, long val));
extern void
supply_register PARAMS ((int regno, char *val));
@@ -467,7 +432,7 @@ get_saved_register PARAMS ((char *raw_buffer, int *optimized,
int regnum, enum lval_type *lval));
extern void
modify_field PARAMS ((char *addr, int fieldval, int bitpos, int bitsize));
modify_field PARAMS ((char *addr, LONGEST fieldval, int bitpos, int bitsize));
extern void
type_print PARAMS ((struct type *type, char *varstring, FILE *stream,
@@ -478,7 +443,7 @@ baseclass_addr PARAMS ((struct type *type, int index, char *valaddr,
value *valuep, int *errp));
extern void
print_longest PARAMS ((FILE *stream, char format, int use_local,
print_longest PARAMS ((FILE *stream, int format, int use_local,
LONGEST value));
extern void