+2002-05-11 Eric Christopher <echristo@redhat.com>
+
+ * mips-tdep.c (mips_double_register_type): Fix thinko.
+ (mips_single_register_type): Ditto.
+ * MAINTAINERS: Add self.
+
2002-05-11 Mark Kettenis <kettenis@gnu.org>
* i387-nat.c (i387_supply_register, i387_fill_fsave,
* config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
(struct gdbarch_tdep): Add new fields for new registers and ABI
info.
-
+
* sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
(NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
due to a misplaced N_LBRAC entry.
2002-05-09 Elena Zannoni <ezannoni@redhat.com>
-
- From Daniel Berlin <dan@cgsoftware.com>
+
+ From Daniel Berlin <dan@cgsoftware.com>
* linespec.c (find_toplevel_char): '<' and '>' also increase and
decrease the depth we are at, in the case of templates.
-
+
2002-05-09 Daniel Jacobowitz <drow@mvista.com>
* mips-tdep.c (mips_float_register_type): New function.
* arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
- strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
+ strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
str r(0123),[sp,#nn].
- (arm_skip_prologue): Ditto. Also make disassembly
+ (arm_skip_prologue): Ditto. Also make disassembly
order-independent by placing it in a loop.
2002-05-06 Michael Snyder <msnyder@redhat.com>
* arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
(ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
- * arm-tdep.c (arm_store_return_value): Use them.
+ * arm-tdep.c (arm_store_return_value): Use them.
Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
* remote-rdp.c (remote_rdp_fetch_register): Use
ARM_MAX_REGISTER_RAW_SIZE.
2002-05-07 Michal Ludvig <mludvig@suse.cz>
- * dwarf2cfi.c: Code cleanup, removed unused variables,
+ * dwarf2cfi.c: Code cleanup, removed unused variables,
added default labels to switch {} statements.
* x86-64-tdep.c: Ditto.
* x86-64-linux-nat.c: Ditto.
* p-lang.h (is_pascal_string_type): Declaration changed,
new sixth argument of type char ** added.
- * p-lang.c (is_pascal_string_type): Implementation
+ * p-lang.c (is_pascal_string_type): Implementation
changed. Args length_pos, length_size, string_pos, char_size
can now be NULL. New argument arrayname set to the field
name of the char array. Return value set to char array
field index plus one.
- * p-valprint.c (pascal_val_print): Adapt to new declaration of
+ * p-valprint.c (pascal_val_print): Adapt to new declaration of
is_pascal_string_type function.
2002-05-02 Andrew Cagney <cagney@redhat.com>
* x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
* x86-64-tdep.c (i386_gdbarch_init): Ditto.
(x86_64_register_info_table): Added comments with register numbers.
-
+
2002-04-29 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (rs6000_extract_return_value,
vectors.
(ppc_sysv_abi_push_arguments): Handle vector parameters.
* ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
-
+
2002-04-24 Pierre Muller <ics.u-strasbg.fr>
* hpread.c (hpread_psymtab_to_symtab_1,
2002-04-24 Pierre Muller <ics.u-strasbg.fr>
* remote-array.c (printf_monitor, write_monitor,
- array_insert_breakpoint, array_remove_breakpoint ):
+ array_insert_breakpoint, array_remove_breakpoint ):
Replace fprintf (stderr,...
with fprintf_unfiltered (gdb_stderr,....
* remote-es.c: Likewise.
2002-04-26 Andrew Cagney <ac131313@redhat.com>
- * stack.c (selected_frame_level):
+ * stack.c (selected_frame_level):
(select_frame): Do not set selected_frame_level.
* frame.h (selected_frame_level): Delete declaration.
2002-04-24 Michael Snyder <msnyder@redhat.com>
- * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
+ * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
loop. Add handling for "str lr, [sp, #-4]!" and for saves
of argument regs ("str r(0123), [r11, #-nn"]).
- (arm_skip_prologue): Better handling for frameless functions.
+ (arm_skip_prologue): Better handling for frameless functions.
Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
(arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
2002-04-24 Michal Ludvig <mludvig@suse.cz>
* gdbserver/linux-low.c (regsets_fetch_inferior_registers),
- (regsets_store_inferior_registers): Removed cast to int from
+ (regsets_store_inferior_registers): Removed cast to int from
ptrace() calls.
* gdbserver/regcache.h: Added declaration of struct inferior_info.
2002-04-22 H.J. Lu (hjl@gnu.org)
* c-exp.y (typebase): Support
-
+
[long|long long|short] [signed|unsigned] [int|]
and
(supply_gregset): Likewise.
2002-04-22 J. Brobecker <brobecker@gnat.com>
-
+
* symfile.h (get_section_index): Define.
* symfile.c (get_section_index): New function.
* mdebugread.c (SC_IS_SBSS): New macro.
* gdbarch.sh (gdbarch_update_p): Keep the list of architectures
sorted in most most-recent-used order. Document.
* gdbarch.h, gdbarch.c: Regenerate.
-
+
2002-04-20 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
* gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
* gdbarch.h, gdbarch.c: Regenerate.
-
+
* defs.h (breakpoint_from_pc_fn): Delete type definition.
* target.h (memory_breakpoint_from_pc): Update declaration.
* config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
* gdbarch.sh (LANG): Set to ``c''.
2002-04-15 Andrew Cagney <ac131313@redhat.com>
-
+
* PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
-
+
2002-04-15 Andrew Cagney <ac131313@redhat.com>
* bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
* hpread.c (hpread_get_lntt): Add declaration.
Also fix PR gdb/391.
-
+
2002-04-14 Andrew Cagney <ac131313@redhat.com>
* acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
* aclocal.m4, configure: Re-generate.
Fix PR gdb/391.
-
+
2002-04-14 Elena Zannoni <ezannoni@redhat.com>
* mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
(PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2002-04-04 Jim Ingham <jingham@apple.com>
-
+
* valarith.c (find_size_for_pointer_math): New function, either returns
the size for a pointer's target, returns 1 for void *, or errors for
incomplete types.
* parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
declarations. Update copyright.
Fix PR gdb/251.
-
+
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/Makefile.in: Add stamp-h target.
whether breakpoints need to be removed from overlay load addr.
Handle bp_hardware_breakpoint as well as bp_breakpoint.
(bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
- (create_overlay_event_breakpoint, enable_overlay_breakpoints,
+ (create_overlay_event_breakpoint, enable_overlay_breakpoints,
disable_overlay_breakpoints): Update overlay_events_enabled.
2002-04-04 Daniel Jacobowitz <drow@mvista.com>
2002-04-04 Michal Ludvig <mludvig@suse.cz>
- * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
+ * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
change sync with glibc.
2002-04-03 Jim Blandy <jimb@redhat.com>
* configure.in: Call AC_C_INLINE.
* configure: Regenerated.
-
+
2002-04-01 Daniel Jacobowitz <drow@mvista.com>
* rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2002-03-26 Michael Snyder <msnyder@redhat.com>
Andrew Cagney <cagney@redhat.com>
- * cli/cli-dump.c: New file. Dump memory to file,
+ * cli/cli-dump.c: New file. Dump memory to file,
restore file to memory.
* cli/cli-dump.h: New file.
* Makefile.in: Add rules, dependencies for cli-dump.o.
if ((read_register (PS_REGNUM) & ST0_FR) == 0)
return 1;
#endif
-
+
return 0;
}
internal_error (__FILE__, __LINE__,
"mips_mask_address_p: bad switch");
return -1;
- }
+ }
}
static void
internal_error (__FILE__, __LINE__,
"show_mask_address: bad switch");
break;
- }
+ }
}
/* Should call_function allocate stack space for a struct return? */
we basically have to look at symbol information for the function
that we stopped in, which tells us *which* register (if any) is
the base of the frame pointer, and what offset from that register
- the frame itself is at.
+ the frame itself is at.
This presents a problem when trying to examine a stack in memory
(that isn't executing at the moment), using the "frame" command. We
mips_type_needs_double_align (struct type *type)
{
enum type_code typecode = TYPE_CODE (type);
-
+
if (typecode == TYPE_CODE_FLT && TYPE_LENGTH (type) == 8)
return 1;
else if (typecode == TYPE_CODE_STRUCT)
}
else if (typecode == TYPE_CODE_UNION)
{
- int i, n;
+ int i, n;
n = TYPE_NFIELDS (type);
for (i = 0; i < n; i++)
fprintf_unfiltered (gdb_stdlog, " longword_offset=0x%lx",
(long) longword_offset);
}
-
+
addr = sp + stack_offset + longword_offset;
if (mips_debug)
{
LONGEST regval = extract_unsigned_integer (val, partial_len);
- /* A non-floating-point argument being passed in a
+ /* A non-floating-point argument being passed in a
general register. If a struct or union, and if
the remaining length is smaller than the register
size, we have to adjust the register value on
* procedure calls. Dest_Reg (see tm-mips.h) must also be saved.
* In addition, we must save the PC, PUSH_FP_REGNUM, MMLO/-HI
* and FP Control/Status registers.
- *
+ *
*
* Dummy frame layout:
* (high memory)
static struct type *
mips_float_register_type (void)
{
- if (TARGET_BYTE_ORDER == BFD_BIG_ENDIAN)
+ if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
return builtin_type_ieee_single_big;
else
return builtin_type_ieee_single_little;
static struct type *
mips_double_register_type (void)
{
- if (TARGET_BYTE_ORDER == BFD_BIG_ENDIAN)
+ if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
return builtin_type_ieee_double_big;
else
return builtin_type_ieee_double_little;
mips_read_fp_register_single (regno, rare_buffer + 4);
mips_read_fp_register_single (regno + 1, rare_buffer);
}
- else
+ else
{
mips_read_fp_register_single (regno, rare_buffer);
mips_read_fp_register_single (regno + 1, rare_buffer + 4);
offset = REGISTER_RAW_SIZE (regnum) - REGISTER_VIRTUAL_SIZE (regnum);
else
offset = 0;
-
+
print_scalar_formatted (raw_buffer + offset,
REGISTER_VIRTUAL_TYPE (regnum),
'x', 0, gdb_stdout);
}
}
-/* Replacement for generic do_registers_info.
+/* Replacement for generic do_registers_info.
Print regs in pretty columns. */
static int
mips_read_fp_register_double (regnum, raw_buffer);
doub = unpack_double (mips_double_register_type (), raw_buffer, &inv3);
-
+
printf_filtered (" %-5s", REGISTER_NAME (regnum));
if (inv1)
printf_filtered (": <invalid float>");
mips_read_fp_register_double (regnum, raw_buffer);
doub = unpack_double (mips_double_register_type (), raw_buffer, &inv3);
-
+
printf_filtered (" %-5s: ", REGISTER_NAME (regnum));
if (inv1)
printf_filtered ("<invalid float>");
it's definitely a 16-bit function. Otherwise, we have to just
guess that if the address passed in is odd, it's 16-bits. */
if (proc_desc)
- info->mach = pc_is_mips16 (PROC_LOW_ADDR (proc_desc)) ?
+ info->mach = pc_is_mips16 (PROC_LOW_ADDR (proc_desc)) ?
bfd_mach_mips16 : TM_PRINT_INSN_MACH;
else
- info->mach = pc_is_mips16 (memaddr) ?
+ info->mach = pc_is_mips16 (memaddr) ?
bfd_mach_mips16 : TM_PRINT_INSN_MACH;
/* Round down the instruction address to the appropriate boundary. */
{
if (num < 32)
return num;
- else
+ else
return num + FP0_REGNUM - 38;
}
tdep->mips_last_fp_arg_regnum = FPA0_REGNUM + 4 - 1;
tdep->mips_regs_have_home_p = 1;
tdep->gdb_target_is_mips64 = 1;
- tdep->default_mask_address_p = 0;
+ tdep->default_mask_address_p = 0;
set_gdbarch_long_bit (gdbarch, 32);
set_gdbarch_ptr_bit (gdbarch, 32);
set_gdbarch_long_long_bit (gdbarch, 64);
flag in object files because to do so would make it impossible to
link with libraries compiled without "-gp32". This is
unnecessarily restrictive.
-
+
We could solve this problem by adding "-gp32" multilibs to gcc,
but to set this flag before gcc is built with such multilibs will
break too many systems.''
When non-zero, mips specific debugging is enabled.", &setdebuglist),
&showdebuglist);
}
-