Andrew Cagney
0b434a0046
From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
...
* regcache.c (supply_register): Add missing argument to
register_buffer call.
2002-06-27 18:28:23 +00:00
Andrew Cagney
f30e5a77b9
* Makefile.in (init.c): Drop -e option to grep. Not necessary and
...
Solaris /bin/grep does not not like it. From Peter Schauer.
2002-06-27 15:49:23 +00:00
Andrew Cagney
b9aa90c9a1
* gdbint.texinfo (User Interface): ISO C rather than ISO-C.
...
(Coding): Clarify ISO C version that GDB assumes.
2002-06-27 15:30:32 +00:00
Andrew Cagney
6aa4d13aab
Zap remainder of gdb.threads-hp directory.
2002-06-27 03:58:32 +00:00
gdbadmin
bc4ce01189
*** empty log message ***
2002-06-27 00:00:03 +00:00
Tom Tromey
40dd22482b
* gdbint.texinfo (User Interface): Mention add_setshow_cmd and
2002-06-26 20:58:48 +00:00
Tom Tromey
9f064c9519
* command.h (add_setshow_cmd): Declare.
...
(add_setshow_cmd_full): Declare.
* cli/cli-decode.c (add_setshow_cmd): No longer static. Now
returns void. Use add_setshow_cmd_full.
(add_setshow_cmd_full): New function.
(add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
(add_setshow_boolean_cmd): Likewise.
2002-06-26 20:58:17 +00:00
Jason Thorpe
7655ea9277
Remove files checked in by mistake.
2002-06-26 18:37:26 +00:00
Jason Thorpe
099c7589fe
* config/vax/tm-vax.h: Protect from multiple inclusion.
...
(TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
(SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
* config/vax/tm-vaxbsd.h: ...here. New file.
* config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2002-06-26 17:39:30 +00:00
Jason Thorpe
1d049c5e1d
* config/vax/tm-vax.h (BREAKPOINT): Remove.
...
(BELIEVE_PCC_PROMOTION): Remove.
(AP_REGNUM): Move to...
* config/vax/nm-vax.h: ...here.
* vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
(vax_breakpoint_from_pc): New function.
(vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
and gdbarch_believe_pcc_promotion.
2002-06-26 17:20:36 +00:00
Grace Sainsbury
6300c360ea
* config/m68k/tm-m68k.h: Rearrange code so macros not in the
...
gdbarch vector are at the top.
(NUM_REGS): Remove.
(FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
(FRAME_ARGS_ADDRESS): Remove.
(FRAME_LOCALS_ADDRESS): Remove.
(FRAME_NUM_ARGS): Remove.
(FRAME_ARGS_SKIP): Remove.
* m68k-tdep.c (enum): Add eumeration of special register numbers.
(m68k_gdbarch_init): Add gdbarch initializations for macros
undefined in tm-m68k.h
2002-06-26 17:09:30 +00:00
Jason Thorpe
4791e09145
* Makefile.in (vax_tdep_h): Define.
...
(vax-tdep.o): Use $(vax_tdep_h).
* vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
(vax_dump_tdep): New function.
(_initialize_vax_tdep): Register vax_dump_tdep.
* vax-tdep.h: Include osabi.h.
(struct gdbarch_tdep): New.
2002-06-26 16:07:16 +00:00
Andrew Cagney
da130f98ef
* frame.h (deprecated_generic_find_dummy_frame): Rename
...
generic_find_dummy_frame.
* blockframe.c (generic_find_dummy_frame): Make static.
(deprecated_generic_find_dummy_frame): New function.
* sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
generic_find_dummy_frame with deprecated_find_dummy_frame.
(sh64_nofp_frame_init_saved_regs): Ditto.
(sh_fp_frame_init_saved_regs): Ditto.
* s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
(s390_frame_chain): Ditto.
* cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2002-06-26 15:28:46 +00:00
Grace Sainsbury
e5014cdae2
made regname function const char *
2002-06-26 15:27:48 +00:00
Grace Sainsbury
1c617db829
* monitor.h: Add the function regname to monitor_ops
...
structure. This way NUM_REGS does not have to be a constant.
* monitor.c (monitor_fetch_register): Added support for regname
function. The function is called if the array regnames is NULL.
(monitor_store_register): Same.
* cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces regnames array.
(init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
cpu32bug_cmds.regname to point to new function.
* abug-rom.c (abug_regname): Same as above.
(init_abug_cmds): Same.
* dbug-rom.c (dbug_regname): Same as above.
(init_dbug_cmds): Same.
* remote-est.c (est_regname): Same.
(init_est_cmds): Same.
* rom68k-rom.c (rom68k_regname): Same.
(init_rom68k_cmds): Same.
2002-06-26 15:14:32 +00:00
Tom Tromey
ea9365bb21
* breakpoint.c (delete_command): Don't repeat `delete' commands.
2002-06-26 05:20:04 +00:00
gdbadmin
93e0c1ccea
*** empty log message ***
2002-06-26 00:00:20 +00:00
Andrew Cagney
72cec14173
* infrun.c (stop_registers): Change variable's type to ``struct
...
regcache'''.
(xmalloc_inferior_status): Delete function.
(free_inferior_status): Delete function.
(normal_stop): Use regcache_cpy.
(struct inferior_status): Change type of fields ``stop_registers''
and ``registers'' to ``struct regcache''.
(write_inferior_status_register): Use regcache_write.
(save_inferior_status): Instead of calling
xmalloc_inferior_status, allocate the inf_status buffer directly.
Use regcache_dup_no_passthrough and regcache_dup to save the
buffers.
(restore_inferior_status): Use regcache_xfree and regcache_cpy.
Replace the stop_registers regcache instead of overriding it. Use
regcache_xfree. Instead of calling free_inferior_status, xfree
the buffer directly.
(discard_inferior_status): Use regcache_xfree. Instead of calling
free_inferior_status, xfree the buffer directly.
(build_infrun): Use regcache_xmalloc.
(_initialize_infrun): Delete redundant call to build_infrun.
* Makefile.in (infcmd.o): Add $(regcache_h).
* infcmd.c: Include "regcache.h".
(run_stack_dummy): Use deprecated_grub_regcache_for_registers to
obtain the address of `stop_registers' register buffer.
(print_return_value): Ditto.
* inferior.h (struct regcache): Add opaque declaration.
(stop_registers): Change variable's declared type to ``struct
regcache''.
2002-06-25 18:38:57 +00:00
Don Howard
bfac230e83
2002-06-25 Don Howard <dhoward@redhat.com>
...
* gdb.texinfo (Memory Region Attributes): Document new behavior
for 'mem' command.
2002-06-25 07:23:29 +00:00
Tom Tromey
c0e624e73f
* cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
...
* target.c (initialize_targets): Fixed typo in
trust-readonly-sections `show' documentation.
2002-06-25 05:39:18 +00:00
Tom Tromey
defc6f8c58
* main.c: Marked all strings with _().
2002-06-25 05:35:16 +00:00
gdbadmin
b73e359047
*** empty log message ***
2002-06-25 00:00:02 +00:00
Don Howard
2b236d8208
2002-06-24 Don Howard <dhoward@redhat.com>
...
* memattr.c (create_mem_region): Treat hi == 0 as a special case
that means max CORE_ADDR+1.
(lookup_mem_region): Ditto.
(mem_info_command): Ditto.
2002-06-24 22:08:30 +00:00
Grace Sainsbury
942dc0e9ec
* config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
...
(REGISTER_BYTES_OK): Remove.
(REGISTER_BYTES): Remove.
(STORE_STRUCT_RETURN): Remove.
(DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
(STORE_RETURN_VALUE): Remove.
(DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
(FRAME_CHAIN): Remove.
(FRAMELESS_FUNCTION_INVOCATION): Remove.
(FRAME_SAVED_PC): Remove.
* m68k-tdep.c (m68k_register_bytes_ok):Add.
(m68k_store_struct_return): Add.
(m68k_deprecated_extract_return_value): Add.
(m68k_deprecated_extract_struct_value_address): Add.
(m68k_store_return_value): Add.
(m68k_frame_chain): Add.
(m68k_frameless_function_invocation): Add.
(m68k_frame_saved_pc): Add.
(m68k_gdbarch_init): added set_gdbarch calls for new
functions and deleted macros.
2002-06-24 17:48:43 +00:00
Tom Tromey
03c30d4dcf
* Makefile.in (HFILES_NO_SRCDIR): Remove old files.
...
(ALLDEPFILES): Likewise.
(udiheaders): Removed.
(udip2soc.o): Likewise.
(udi2go32.o): Likewise.
(udr.o): Likewise.
(HFILES_WITH_SRCDIR): Don't mention udiheaders.
2002-06-24 04:47:09 +00:00
gdbadmin
29d6403aff
*** empty log message ***
2002-06-24 00:00:09 +00:00
gdbadmin
e7d838cb85
*** empty log message ***
2002-06-23 00:00:38 +00:00
Andrew Cagney
8cf8c2b853
* gdb.base/selftest.exp (do_stes_and_next): Skip calls to
...
setlocale, bindtextdomain and textdomain.
2002-06-22 22:19:37 +00:00
Andrew Cagney
06a6ac572a
* infrun.c (_initialize_infrun): Delete unnecessary call to
...
build_infrun.
2002-06-22 22:04:33 +00:00
Andrew Cagney
37e7137227
* regcache.h: Update comments describing the regcache_cpy family
...
of functions.
(regcache_save, regcache_restore): Delete declaration.
(regcache_save_no_passthrough): Delete declaration.
(regcache_restore_no_passthrough): Delete declaration.
* regcache.c (regcache_save): Delete function.
(regcache_save_no_passthrough): Delete function.
(regcache_restore): Delete function.
(regcache_restore_no_passthrough): Delete function.
2002-06-22 21:18:32 +00:00
Andrew Cagney
78f6d055c0
* config/m68k/tm-m68k.h: Fix typo.
...
(FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
(m68k_frame_init_saved_regs): Declare.
2002-06-22 00:33:56 +00:00
Jim Blandy
78b119cb5d
Remove some vestiges of Harris 88k support.
...
* dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
register numbering quirk.
* elfread.c (elf_symtab_read): Remove `#if' block for skipping
odd symbols occurring in Harris 88k ELF targets.
2002-06-22 00:05:59 +00:00
gdbadmin
6fc56307d4
*** empty log message ***
2002-06-22 00:00:39 +00:00
Tom Tromey
0fbb3da7b7
* gdb_locale.h: New file.
...
* Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
(defs_h): Added gdb_locale.h.
* configure, config.in: Rebuilt.
* configure.in (PACKAGE): Define.
* defs.h: Include gdb_locale.h.
* main.c (captured_main): Call setlocale, bindtextdomain,
2002-06-21 23:48:41 +00:00
Dave Brolley
456f8b9d8d
2002-06-21 Dave Brolley <brolley@redhat.com>
...
From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
* config/frv/frv.mt: New file.
* config/frv/tm-frv.h: New file.
* configure.tgt: Support frv-*-*.
* Makefile.in (frv-tdep.o): New target.
* frv-tdep.c: New file.
* NEWS: Mention frv.
2002-06-21 21:19:58 +00:00
Dave Brolley
cdd463f97d
2002-06-21 Dave Brolley <brolley@redhat.com>
...
* MAINTAINERS: Add self to "Write After Approval" list.
2002-06-21 21:17:21 +00:00
Grace Sainsbury
5d3ed2e315
* config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
...
(REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
(REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
(FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
(INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
* m68k-tdep.c: Include arch-utils.h
(m68k_register_raw_size): Add.
(m68k_register_virtual_size): Add.
(m68k_register_virtual_type): Add.
(m68k_register_name): Add.
(m68k_stack_align): Add.
(m68k_register_byte): Add.
(m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
tm-m68k.h.
2002-06-21 20:23:29 +00:00
Grace Sainsbury
a2c6a6d597
Fixed changelog entry. Indented m68k-tdep.c
2002-06-21 15:47:35 +00:00
Grace Sainsbury
7f8e742495
Replaced frame_find_saved_regs with frame_init_saved_regs. Converted
...
call dummy macros to multi-arch.
2002-06-21 14:56:18 +00:00
Pierre Muller
f461f5cf79
2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
...
* parse.c (parse_fprintf): New function used to avoid calls to
fprintf in bison parser generated debug code.
* parser-defs.h: Declaration of new parse_fprintf function.
* ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
Set YYDEBUG to 1 by default.
Set YYFPRINTF as parse_fprintf.
2002-06-21 14:32:10 +00:00
Michal Ludvig
19d833a2fa
* dwarf2cfi.c: Reindented.
2002-06-21 13:53:24 +00:00
Michal Ludvig
7f0c12ed44
2002-06-21 Michal Ludvig <mludvig@suse.cz>
...
* dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
encoding anymore.
(pointer_encoding, enum ptr_encoding): New.
(execute_cfa_program): Take care about pointer encoding.
(dwarf2_build_frame_info): Only call parse_frame_info for
.debug_frame and .eh_frame.
(parse_frame_info): New, derived from former dwarf2_build_frame_info.
fixed augmentation handling, added relative addressing,
ignore duplicate FDEs. Added comments.
2002-06-21 12:12:34 +00:00
Elena Zannoni
87c4a0399d
2002-06-20 Elena Zannoni <ezannoni@redhat.com>
...
* event-top.c (command_handler): Don't use space_at_cmd_start
unless there is sbrk() on the host. Assign time and space data
to union fields of the appropriate length.
2002-06-21 00:13:54 +00:00
gdbadmin
a2a75bff9f
*** empty log message ***
2002-06-21 00:00:38 +00:00
Michal Ludvig
1cf877ad9b
2002-06-20 Michal Ludvig <mludvig@suse.cz>
...
* x86-64-tdep.c (x86_64_register_nr2name): Rename to
x86_64_register_name. Return type changed to 'const char *'.
(x86_64_register_name2nr): Rename to x86_64_register_number.
(x86_64_gdbarch_init): Update to reflect the change.
* x86-64-tdep.h: Ditto.
* x86-64-linux-nat.c (x86_64_fxsave_offset)
(supply_fpregset): Ditto.
2002-06-20 13:08:12 +00:00
Andrew Cagney
3fadccb31d
* regcache.h: Update copyright.
...
(struct regcache, struct gdbarch): Add opaque declarations.
(current_regcache): Declare global variable.
(regcache_read, regcache_write): Add gdbarch parameter.
(regcache_save, regcache_save_no_passthrough)
(regcache_restore, regcache_restore_no_passthrough)
(regcache_dup, regcache_dup_no_passthrough)
(regcache_cpy, regcache_cpy_no_passthrough)
(deprecated_grub_regcache_for_registers)
(deprecated_grub_regcache_for_register_valid)
(regcache_valid_p): Add function declarations.
* regcache.c: Update copyright.
(regcache_descr_handle): New global variable.
(struct regcache_descr): Define.
(init_legacy_regcache_descr, init_regcache_descr): New functions.
(regcache_descr, xfree_regcache_descr): New functions.
(struct regcache): Define.
(regcache_xmalloc, regcache_xfree): New functions.
(regcache_cpy, regcache_cpy_no_passthrough): New functions.
(regcache_dup, regcache_dup_no_passthrough): New functions.
(regcache_valid_p, regcache_read_as_address): New functions.
(deprecated_grub_regcache_for_registers): New function.
(deprecated_grub_regcache_for_register_valid): New function.
(current_regcache): New global variable.
(register_buffer): Add regcache parameter. Update calls.
(regcache_read, regcache_write): Add regcache parameter. Rewrite.
(read_register_gen, write_register_gen): Update register_buffer
call. Test for legacy_p instead of gdbarch_register_read_p or
gdbarch_register_write_p.
(regcache_collect): Update register_buffer call.
(build_regcache): Rewrite. Use deprecated grub functions.
(regcache_save, regcache_save_no_passthrough): New functions.
(regcache_restore, regcache_restore_no_passthrough): New
functions.
(_initialize_regcache): Create the regcache_data_handle. Swap
current_regcache global variable.
* sh-tdep.c (sh_pseudo_register_read): Add current_regcache
parameter to regcache_read and regcache_write calls.
(sh4_register_read): Ditto.
(sh64_pseudo_register_read): Ditto.
(sh64_register_read): Ditto.
(sh_pseudo_register_write): Ditto.
(sh4_register_write): Ditto.
(sh64_pseudo_register_write): Ditto.
(sh64_register_write): Ditto.
* defs.h (XCALLOC): Define.
2002-06-20 03:13:51 +00:00
gdbadmin
e1820627dc
*** empty log message ***
2002-06-20 00:02:36 +00:00
Grace Sainsbury
152d9db60b
Added functions for multi-arch.
2002-06-19 20:44:22 +00:00
Daniel Jacobowitz
170911c766
2002-06-19 Daniel Jacobowitz <drow@mvista.com>
...
* ada-lang.c (fill_in_ada_prototype): Update comment.
2002-06-19 16:55:28 +00:00
Daniel Jacobowitz
2e4ebe70e5
2002-06-19 Daniel Jacobowitz <drow@mvista.com>
...
* mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
MIPS_ABI_LAST.
(mips_abi_string, mips_abi_strings): New.
(struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
(mips_gdbarch_init): Set tdep->found_abi. Don't set
tdep->mips_abi_string. Honor mips_abi_string. Default to
O32 if no ABI is found.
(mips_dump_tdep): Use mips_abi_strings.
(mips_abi_update): New function.
(_initialize_mips_tdep): Initialize mips_abi_string. Add
``set mips abi'' and ``show mips abi''. Check the size of
mips_abi_strings.
2002-06-19 16:48:47 +00:00