Kevin Buettner
7c699b8111
Add FR-V Linux core file support.
2006-03-15 23:38:09 +00:00
Daniel Jacobowitz
6367c6b161
Second typo fix.
2006-03-15 22:44:21 +00:00
Daniel Jacobowitz
0a407ead93
Typo fix.
2006-03-15 22:43:31 +00:00
Daniel Jacobowitz
d37eb719b8
* Makefile.in (mips_linux_tdep_h): New.
...
(mpis-linux-nat.o, mips-linux-tdep.o): Update.
* mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
<sys/ptrace.h>.
(have_ptrace_regsets, super_fetch_registers, super_store_registers)
(mips64_linux_regsets_fetch_registers)
(mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
(mips64_linux_store_registers): New.
(_initialize_mips_linux_nat): Override to_fetch_registers and
to_store_registers.
* mips-linux-tdep.h: New file.
* mips-linux-tdep.c: Include "mips-linux-tdep.c".
(ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
(elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
(FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
(EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
(MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
(mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
(MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
(MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
(MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
(MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
(MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
(supply_32bit_reg): Use gdb_byte.
(supply_64bit_reg): New.
(mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
(mips_fill_fpregset, fetch_core_registers, supply_gregset)
(fill_gregset, supply_fpregset): Update for renamed types.
(mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
(mips64_fill_gregset): Make global. Handle 32-bit register
sizes.
(mips64_fill_fpregset): Make global. Use gdb_byte. Handle
FP regsets properly.
2006-03-15 17:13:36 +00:00
Daniel Jacobowitz
9f62d0e212
* mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
...
(mips_fill_gregset): Renamed from fill_gregset.
(mips_supply_fpregset): Renamed from supply_fpregset.
(mips_fill_fpregset): Renamed from fill_fpregset.
(fetch_core_registers): Update calls.
(supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
functions.
2006-03-15 17:12:24 +00:00
Daniel Jacobowitz
26c53e508c
* mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
2006-03-15 16:59:54 +00:00
Daniel Jacobowitz
5b65210297
* mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
...
Correct arithmetic for 64-bit CORE_ADDR.
2006-03-15 16:55:05 +00:00
Daniel Jacobowitz
d05f682671
* mips-linux-tdep.c: Include "floatformat.h".
...
(mips_linux_init_abi): Use 128-bit long double for N32 and N64.
(mips_n32n64_return_value): Support 128-bit long double.
(print_gp_register_row): Don't print spaces before ignored
or floating point registers.
2006-03-15 16:37:52 +00:00
Daniel Jacobowitz
3e5af19ed9
* mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
...
for code addresses.
(non_heuristic_proc_desc): Likewise.
2006-03-15 16:29:08 +00:00
Daniel Jacobowitz
dc60ece87d
* mips-linux-nat.c: Include "gdb_proc_service.h".
...
(PTRACE_GET_THREAD_AREA): Define.
(ps_get_thread_area): New.
* Makefile.in (mips-linux-nat.o): Update.
2006-03-15 16:08:24 +00:00
Jim Blandy
2f83030ff5
2006-03-13 Jim Blandy <jimb@codesourcery.com>
...
* MAINTAINERS: Use my work address.
2006-03-14 06:16:13 +00:00
Michael Snyder
56aac7e845
2006-03-09 Michael Snyder <msnyder@redhat.com>
...
* linux-nat.c (kill_inferior): Just call target_mourn_inferior
instead of getting tricky for the multi-fork case.
* linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
for each fork, and then use init_fork_list to delete them.
2006-03-10 20:15:42 +00:00
Joel Brobecker
a987790595
* MAINTAINERS (Patch Champions): Remove self.
2006-03-10 02:05:51 +00:00
Alexandre Oliva
831004b79b
gdb/ChangeLog:
...
* solib-svr4.c (svr4_current_sos): Move up initialization of
l_addr, such that it clearly covers all cases.
gdb/testsuite/ChangeLog:
* gdb.base/prelink.exp: Anchor tested-for regular expression
on gdb prompt.
2006-03-09 00:22:09 +00:00
Andreas Schwab
f1b4b38ecb
* ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt uses of
...
libunwind_frame_prev_register to use a gdb_byte buffer and
extract_unsigned_integer.
(ia64_libunwind_sigtramp_frame_prev_register): Likewise.
* libunwind-frame.c (libunwind_frame_prev_register): Change type
of last argument to `gdb_byte *'
* libunwind-frame.h: Adjust declaration.
2006-03-08 15:28:17 +00:00
Paul Brook
f53f0d0bde
2006-03-08 Paul Brook <paul@codesourcery.com>
...
* arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
(arm_frame_align): New function.
(arm_gdbarch_init): Use it.
2006-03-08 14:22:47 +00:00
Andrew Cagney
b67fd56fca
Index: ChangeLog
...
2006-03-03 Khem Raj <khem@mvista.com>
* remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
Committed by Andrew Cagney.
2006-03-03 23:08:12 +00:00
Corinna Vinschen
a64ae7e064
* mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
...
address to MDR register.
2006-03-02 09:31:23 +00:00
Daniel Jacobowitz
9733fc9442
gdb/
...
* gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
calls.
gdb/testsuite/
* gdb.cp/inherit.exp (test_print_mi_member_types): New function.
(do_tests): Call it.
2006-03-01 19:34:46 +00:00
Randolph Chung
4897bfb966
2006-03-01 Randolph Chung <tausq@debian.org>
...
* somread.c (som_symfile_read): Update comment and remove unneeded
use of a deprecated variable.
2006-03-01 05:47:46 +00:00
Randolph Chung
6fcecea011
2006-03-01 Randolph Chung <tausq@debian.org>
...
* hppa-tdep.h (unwind_table_entry): Update field names to match HP
runtime specification.
* hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
(unwind_command): Likewise.
2006-03-01 05:43:03 +00:00
Randolph Chung
46acf08120
2006-03-01 Randolph Chung <tausq@debian.org>
...
* hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
Pseudo_SP_Set in unwind record.
2006-03-01 05:22:38 +00:00
Randolph Chung
477e69e8fd
2006-03-01 Randolph Chung <tausq@debian.org>
...
* hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
TDEP->is_elf to determine if we are working with a SOM binary.
(null_symtab_and_line): Remove unused variable.
* config/pa/hppa64.mt: Use tm-hppa.h.
* config/pa/tm-hppa64.h: Remove file.
2006-03-01 05:19:13 +00:00
Wu Zhou
848359aced
* f-typeprint.c (f_type_print_base): Delete the redundant space.
2006-03-01 01:37:26 +00:00
Kevin Buettner
f9ec92b6cb
Add am33 linux signal frame support.
2006-02-28 22:38:04 +00:00
Kevin Buettner
e92e42f575
* mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
...
out of pattern match by saving relevant state. Fix stack size
adjustment bug.
2006-02-28 22:28:21 +00:00
Alexandre Oliva
cc10cae34a
gdb/ChangeLog:
...
* solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
l_ld_size fields.
* solib-svr4.c (struct lm_info): Add l_addr field.
(LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
(HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
(LM_DYNAMIC_FROM_LINK_MAP): New.
(LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
(svr4_current_sos): Initialize l_addr. Adjust.
(svr4_relocate_section_addresses): Adjust.
(svr4_ilp32_fetch_link_map_offsets): Define new members.
(svr4_lp64_fetch_link_map_offsets): Likewise.
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
* mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
(mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
* Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
gdb/testsuite/ChangeLog:
* gdb.base/prelink.exp: New test.
* gdb.base/prelink.c, gdb.base/prelink-lib.c: New sources.
2006-02-28 04:29:10 +00:00
David S. Miller
691342f948
2006-02-26 David S. Miller <davem@sunset.davemloft.net>
...
* config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
* config/sparc/linux64.mt (TDEPFILES): Likewise.
2006-02-27 06:14:51 +00:00
Alan Modra
2c38724144
* ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
...
(ppc_linux_remove_watchpoint): Likewise, and args.
2006-02-26 23:42:59 +00:00
Mark Kettenis
3597fb8298
* i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
...
"soft" interrupts.
2006-02-26 13:03:33 +00:00
Charles Wilson
637d6690a8
* gdb/defs.h: unconditionally include <fcntl.h>, and
...
ensure that O_BINARY is defined.
* gdb/solib.c(solib_open): ensure solib files are opened in
binary mode.
* gdb/corelow.c: Remove O_BINARY macro definition.
* gdb/exec.c: Remove O_BINARY macro definition
* gdb/remote-rdp.c: Remove O_BINARY macro definition
* gdb/source.c: Remove O_BINARY macro definition
* gdb/symfile.c: Remove O_BINARY macro definition
2006-02-25 04:36:39 +00:00
Randolph Chung
9846e5417d
2006-02-24 Randolph Chung <tausq@debian.org>
...
* hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
argreg.
* solib-som.c (som_solib_remove_inferior_hook): Remove unused
function.
2006-02-24 23:52:04 +00:00
Wu Zhou
2a5e440cb4
* f-exp.y: Symbol '%' is not used as the modulus operator in
...
Fortran. Delete this from Fortran expression.
It is now used by Fortran 90 and later to access the member
of derived type. Add this into Fortran expression.
* f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
Print each elements in the derived type.
* f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
level into the function definition to do indented printing. And
call fprintfi_filtered instead to do indented printing.
(f_type_print_base): Replace fprintf_filtered with the indented
version (fprintfi_filtered).
(f_type_print_base): Call indented print_equivalent_f77_float_type.
(f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
the definition of the derived type.
2006-02-24 07:26:10 +00:00
Daniel Jacobowitz
921286914f
* gdb_curses.h: Provide a fallback prototype for tgetnum.
2006-02-23 20:53:00 +00:00
Daniel Jacobowitz
a6205f535a
* doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
...
also.
(DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
(DOUBLEST_SCAN_FORMAT): New.
* ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
(processReal): Use DOUBLEST_SCAN_FORMAT.
* c-exp.y (parse_number): Likewise.
* jv-exp.y (parse_number): Likewise.
* objc-exp.y (parse_number): Likewise.
* p-exp.y (parse_number): Likewise.
2006-02-23 18:43:41 +00:00
Daniel Jacobowitz
0f0b8dcdc3
* event-top.c (async_do_nothing, async_disconnect)
...
(async_stop_sig, async_float_handler): Remove duplicated
prototypes.
(handle_sighup): Guard prototype with SIGHUP.
(async_do_nothing): Guard function and prototype with
SIGQUIT || SIGHUP.
(async_disconnect): Guard prototype with SIGHUP.
(async_stop_sig): Guard prototype with STOP_SIGNAL.
2006-02-23 18:37:42 +00:00
Daniel Jacobowitz
4e91d01c68
* maint.c (maintenance_dump_me): Remove unnecessary prototype.
2006-02-23 18:33:43 +00:00
Daniel Jacobowitz
1e0600be1c
* win32-termcap.c (tputs): Return 0.
2006-02-23 18:28:34 +00:00
Mark Kettenis
094a342e19
* configure.ac: Introduce ---enable-werror, which adds -Werror to
...
the compiler command line. Enabled by default. Disable with
--disable-werror.
* configure regenerate.
2006-02-21 21:02:25 +00:00
Daniel Jacobowitz
7476373706
* elfread.c (elf_symtab_read): Skip symbols which BFD considers
...
special.
2006-02-21 20:38:48 +00:00
Andrew Stubbs
13d35ae5ce
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* defs.h (directory_switch): Add prototype.
* main.c (captured_main): Use directory_switch() instead of
directory_command() to add directories from the -d switch.
* source.c (directory_switch): New function.
(add_path): Use buildargv() to parse spaces in filenames properly.
Strip multiple trailing '/' rather than just one.
2006-02-21 19:46:48 +00:00
Andrew Stubbs
5b96932ba3
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* symfile.c (add_symbol_file_command): Use buildargv(), instead of
hand decoding the command line, to allow use of quotes and spaces.
(_initialize_symfile): Reorganize the help message for add-symbol-file
such that 'help files' shows a better message.
testsuite/
* gdb.base/help.exp (help add-symbol-file): Update.
2006-02-21 19:13:20 +00:00
Andrew Stubbs
a6b0a3f314
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
(sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
(sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
(sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
2006-02-21 16:08:26 +00:00
Daniel Jacobowitz
17fbb0bdc7
* linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
...
and __SIGRTMIN + 1.
2006-02-20 17:01:28 +00:00
Daniel Jacobowitz
444abacaac
* remote.c: Add an enumeration for configurable remote
...
packets.
(remote_protocol_packets, set_remote_protocol_packet_cmd)
(show_remote_protocol_packet_cmd): New.
(remote_protocol_vcont)
(set_remote_protocol_vcont_packet_cmd)
(show_remote_protocol_vcont_packet_cmd)
(remote_protocol_qSymbol)
(set_remote_protocol_qSymbol_packet_cmd)
(show_remote_protocol_qSymbol_packet_cmd)
(remote_protocol_P, set_remote_protocol_P_packet_cmd)
(show_remote_protocol_P_packet_cmd)
(remote_protocol_Z)
(set_remote_protocol_Z_software_bp_packet_cmd)
(show_remote_protocol_Z_software_bp_packet_cmd)
(set_remote_protocol_Z_hardware_bp_packet_cmd)
(show_remote_protocol_Z_hardware_bp_packet_cmd)
(set_remote_protocol_Z_write_wp_packet_cmd)
(show_remote_protocol_Z_write_wp_packet_cmd)
(set_remote_protocol_Z_read_wp_packet_cmd)
(show_remote_protocol_Z_read_wp_packet_cmd)
(set_remote_protocol_Z_access_wp_packet_cmd)
(show_remote_protocol_Z_access_wp_packet_cmd)
(remote_protocol_binary_download)
(set_remote_protocol_binary_download_cmd)
(show_remote_protocol_binary_download_cmd)
(remote_protocol_qPart_auxv)
(set_remote_protocol_qPart_auxv_packet_cmd)
(show_remote_protocol_qPart_auxv_packet_cmd)
(remote_protocol_qGetTLSAddr)
(set_remote_protocol_qGetTLSAddr_packet_cmd)
(show_remote_protocol_qGetTLSAddr_packet_cmd)
(remote_protocol_p)
(set_remote_protocol_p_packet_cmd)
(show_remote_protocol_p_packet_cmd): Delete.
(init_all_packet_configs): Simplify.
(set_remote_protocol_Z_packet_cmd)
(show_remote_protocol_Z_packet_cmd)
(remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
(remote_fetch_registers, remote_prepare_to_store)
(remote_store_registers, check_binary_download)
(remote_write_bytes, remote_insert_breakpoint)
(remote_remove_breakpoint, remote_insert_watchpoint)
(remote_remove_watchpoint, remote_insert_hw_breakpoint)
(remote_remove_hw_breakpoint, remote_xfer_partial)
(remote_get_thread_local_address): Update for packet array.
(_initialize_remote): Likewise; also update for common
set/show commands.
2006-02-20 15:19:06 +00:00
Daniel Jacobowitz
3bd72c6f17
* symfile.c (place_section): Correct retry logic.
2006-02-20 15:02:10 +00:00
Christopher Faylor
a244bdca25
* win32_nat.c (cygwin_load_start): New variable.
...
(cygwin_load_end): Ditto.
(have_saved_context): Ditto.
(saved_context): Ditto.
(max_dll_name_len): Delete obsolete variable.
(do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll if we
are in a cygwin signal rather than a windows signal.
(solib_symbols_add): Detect and store beginning and end of cygwin DLL if dll
being loaded is the cygwin DLL.
(register_loaded_dll): Remove calculation of max_dll_name_len.
(win32_clear_solib): Ditto.
(handle_load_dll): Delete obsolete variable. Remove unneeded call to
solib_add.
(handle_output_debug_string): Detect and store signal information sent by
Cygwin here.
(handle_exception): Silently pass on errors in the cygwin DLL. Return -1 on
first pass exception.
(win32_continue): Remove spurious clearing of continue_status.
(get_win32_debug_event): Deal differently first chance exception.
2006-02-20 05:10:51 +00:00
Randolph Chung
806e23c026
2006-02-19 Randolph Chung <tausq@debian.org>
...
* hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
unwind entry.
2006-02-19 07:21:26 +00:00
Fred Fish
d843c49cbf
2006-02-16 Fred Fish <fnf@specifix.com>
...
* eval.c (evaluate_subexp_standard): For OP_TYPE, return
a non lval value zero, of the appropriate type, when avoiding
side effects.
* typeprint.c (ptype_eval): Remove function and declaration.
(ptype_command): Simplify to just a call to whatis_exp.
2006-02-18 20:47:54 +00:00
Paul Brook
1c5bada068
2006-02-15 Paul Brook <paul@codesourcery.com>
...
* arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
Load insn opcodes as unsigned values.
2006-02-15 17:36:11 +00:00