Andrew Stubbs
16026cd75d
2006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* cli/cli-cmds.c (source_verbose, trace_commands): New variables.
(source_script): New function.
(source_verbose_cleanup): New function.
(source_command): Move old contents to source_script.
Make function static. Parse -v option and call source_script.
(init_cli_cmds): Update source command help.
Add 'set trace-commands' command.
* cli/cli-script.c (command_next_depth): New static variable.
(suppress_next_print_command_trace): New static variable.
(reset_command_nest_depth): New function.
(print_command_trace): New function.
(execute_control_command): Split the continue_control and break_control
cases, add calls to print_command_trace and count the nest depth.
(while_command): Set suppress_next_print_command_trace.
(if_command): Likewise.
* top.c (execute_command): Call print_command_trace.
* cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
(source_command): Change to source_script.
* main.c (captued_main): Use source_script instead of source_command.
* top.h (source_command): Change to source_script.
* event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
* cli/cli-script.h (print_command_trace): Export.
(reset_command_nest_depth): Likewise.
docs/
* gdb.texinfo (Optional warnings and messages): Add
'set/show trace-commands'.
(Command files): Add '-v' to source command.
testsuite/
* gdb.base/default.exp: Update source command error message.
* gdb.base/help.exp: Update 'help source' message.
2006-07-21 14:46:56 +00:00
Daniel Jacobowitz
16963cb64b
gdb/
...
* eval.c (evaluate_struct_tuple): Skip static fields.
gdb/testsuite/
* gdb.cp/bs15503.exp: Update comment for no longer crashing
test.
2006-07-20 22:50:07 +00:00
Mark Kettenis
6ea0ec3fe4
* alphaobsd-tdep.c: Include "obsd-tdep.h".
...
(alphaobsd_init_abi): Set skip_solib_resolver.
* Makefile.in (alphaobsd-tdep.o): Update dependencies.
* config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
2006-07-19 23:23:35 +00:00
Mark Kettenis
6b26d61a05
* arm-tdep.c (arm_gdbarch_init): Get default floating-point model
...
from ELF flags for binaries produced by the GNU toolchain.
2006-07-19 18:21:36 +00:00
Nathan Sidwell
86cc68a8de
* remote-fileio.c (remote_fileio_func_rename): Reorder to process
...
input buffer before reading memory.
(remote_fileio_func_stat): Likewise.
2006-07-19 06:21:23 +00:00
Daniel Jacobowitz
29e8a84408
* blockframe.c (find_pc_partial_function): Use the minimal symbol
...
size to control the cache entry, if available.
* minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
symbols with zero and non-zero sizes differently.
* gdb.arch/i386-size.c, gdb.arch/i386-size.exp: New files.
2006-07-19 02:17:23 +00:00
Daniel Jacobowitz
28b1733311
* linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
...
(td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
(thread_db_fetch_registers, thread_db_store_registers)
(thread_db_thread_alive, thread_db_state_str): Delete.
(thread_db_load): Don't look up regset functions.
(thread_db_pid_to_str): Simplify.
(thread_db_extra_thread_info): New.
(init_thread_db_ops): Do not set to_fetch_registers,
to_store_registers, or to_thread_alive. Set to_extra_thread_info.
* Makefile.in: Remove linux-thread-db.o rule.
2006-07-18 22:53:20 +00:00
Mark Kettenis
e3ac4a1e11
* armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
...
(armobsd_sigframe_init): New function.
(armobsd_sigframe): New variable.
(armobsd_init_abi): Prepend armobsd_sigframe unwinder.
* Makefile.in (armobsd-tdep.o): Update dependencies.
2006-07-18 21:10:28 +00:00
Daniel Jacobowitz
08ae6d950d
* monitor.c: Remove unused prototypes.
2006-07-18 20:45:01 +00:00
Vladimir Prus
0152ebd7bc
* defs.h (print_transfer_performance): Improve comments
2006-07-18 12:48:20 +00:00
Vladimir Prus
6962ad99e4
2006-07-18 Vladimir Prus <vladimir@codesourcery.com>
...
* target.c (tcomplain): Mark with ATTR_NORETURN.
2006-07-18 12:45:56 +00:00
Mark Kettenis
675dcf4fc0
* printcmd.c: Coding style fixes: add missing spaces in comments
...
and wrapping long lines.
(delete_display, enable_display_command, disable_display_command)
(printf_command, display_info, undisplay_command, free_display)
(display_command, x_command, address_info, set_command)
(inspect_command, call_command, print_command, print_command_1)
(validate_format, print_formatted, decode_format, sym_format):
Remove prototypes.
(x_command): Make static.
(printf_command): Convert error into internal consistency check.
(address_info): Avoid assignment within function call.
(printf_command): Avoid redundant cast.
* tracepoint.c (x_command): Remove extern prototype.
2006-07-17 22:15:55 +00:00
Mark Kettenis
aa88762a70
* armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
...
* Makefile.in (armobsd-tdep.o): Update dependencies.
* config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
2006-07-17 19:34:57 +00:00
Mark Kettenis
a58dc20099
* armobsd-tdep.c: New file.
...
* Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
(armobsd-tdep.o): New dependency.
* config/arm/obsd.mt: New file.
* configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
2006-07-16 15:29:09 +00:00
Mark Kettenis
a4bc5cf9b4
Oops, committed spaces where it should have been a tab.
2006-07-16 11:05:07 +00:00
Mark Kettenis
d7b7af6f3a
* gdbarch.sh (deprecated_saved_pc_after_call): Delete.
2006-07-16 11:03:41 +00:00
Mark Kettenis
1cd566a444
* arm-tdep.c (arm_saved_pc_after_call): Delete.
...
(arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
2006-07-16 10:33:25 +00:00
Alfred M. Szmidt
96ffcb620f
Undefine _process_user_ before including
...
<hurd/process_request.h>.
(gnu_resume): Supply missing argument to error().
(gnu_read_inferior): Add extra parenthesis around arithmetic
expression to silence warnings from GCC.
(gnu_write_inferior): Likewise.
(gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
2006-07-16 09:57:02 +00:00
Mark Kettenis
424f31152d
* armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
...
svr4_ilp_fetch_link_map_offsets.
2006-07-15 22:38:58 +00:00
Mark Kettenis
a4ab4a25cd
* armnbsd-tdep.c: Don't include "nbsd-tdep.h".
...
* config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
(DEPRECATED_TM_FILE): Remove.
* Makefile.in (armnbsd-tdep.o): Update dependencies.
2006-07-15 21:22:51 +00:00
Joel Brobecker
cd24f62649
* PROBLEMS: Document threads/2137.
2006-07-14 22:55:58 +00:00
Mark Kettenis
06d65a1d1e
* config/alpha/tm-nbsd.h: Remove file.
...
* config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2006-07-13 21:38:11 +00:00
Corinna Vinschen
4844f454ad
* mips-tdep.c (mips_integer_to_address): Simplify be calling
...
extract_signed_integer directly. Fix comment.
2006-07-13 13:14:54 +00:00
Corinna Vinschen
7830cb4f50
* m32c-tdep.c (m32c_banked_register): New function.
...
(m32c_banked_read): Use m32c_banked_register function to evaluate
real register number.
(m32c_banked_write): Ditto.
(m32c_virtual_frame_pointer): New function.
(m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
2006-07-13 12:01:21 +00:00
Nathan Sidwell
9bb47d95dd
* m68k-tdep.c (m68k_frame_align): New.
...
(m68k_gdbarch_init): Set frame_align here.
2006-07-13 09:30:46 +00:00
Andrew Stubbs
9af2a05463
2006-07-13 Denis PILAT <denis.pilat@st.com>
...
* interps.c (interpreter_completer): Allocate one more item to the
'matches' list and set them all to 0 with a xcalloc.
2006-07-13 09:03:38 +00:00
Nick Roberts
79ee37bca8
*** empty log message ***
2006-07-13 07:43:23 +00:00
Daniel Jacobowitz
fb93362492
gdb/
...
* infcall.c (value_arg_coerce): Use value_cast_pointers for
references. Avoid value_cast to a reference type. Don't silently
convert pointers to references.
* valops.c (value_cast_pointers): New, based on value_cast.
(value_cast): Use it. Reject reference types.
(value_ref): New.
(typecmp): Use it.
* value.h (value_cast_pointers, value_ref): New prototypes.
gdb/testsuite/
* gdb.cp/ref-params.exp: New test.
* gdb.cp/ref-params.cc: New source file.
* gdb.cp/Makefile.in (EXECUTABLES): Add ref-params.
2006-07-13 04:31:42 +00:00
Daniel Jacobowitz
d49c44d5f1
* remote.c (unpack_varlen_hex): Correct type of retval.
...
Reported by Zhigang Gong <zhigang.gong@gmail.com>.
2006-07-13 04:05:54 +00:00
Daniel Jacobowitz
99bcc461a5
* dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
...
or missing location list information. Suggested by Jan
Kratochvil <lace@jankratochvil.net>.
2006-07-12 21:14:57 +00:00
Daniel Jacobowitz
cb587d836a
* Makefile.in (arm_linux_tdep_h): New variable.
...
(arm-linux-nat.o, arm-linux-tdep.o): Update.
* arm-linux-nat.c: Include "arm-linux-tdep.h".
(typeNone, typeSingle, typeDouble, typeExtended)
(FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
(fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
(fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
(store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
Delete.
(fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
and collect_nwfpe_register.
(fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
new regset functions.
* arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
(arm_apcs_32): New declaration.
(ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
(arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
(typeExtended, supply_nwfpe_register, collect_nwfpe_register)
(arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
(arm_linux_regset_from_core_section): New.
(arm_linux_init_abi): Register arm_linux_regset_from_core_section.
* arm-linux-tdep.h: New file.
* arm-tdep.h (struct regset): Declare.
(struct gdbarch_tdep): Add gregset, fpregset members.
* config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
core-regset.o.
* config/arm/linux.mt (TDEPFILES): Add corelow.o.
2006-07-12 20:46:33 +00:00
Daniel Jacobowitz
8802d8ed3a
* infrun.c (handle_inferior_event): Fixed typos in printf.
2006-07-12 20:43:52 +00:00
Daniel Jacobowitz
6765f3e5d0
* remote.c (REMOTE_ALIGN_WRITES): New.
...
(remote_write_bytes): Align large write packets. Remove unused
payload_start variable.
2006-07-12 18:54:03 +00:00
Daniel Jacobowitz
0876f84a6a
gdb/
...
* remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
(remote_supported_packet): Remove #if 0.
(remote_protocol_features): Add qPart:auxv:read.
(remote_unescape_input): New function.
(readchar): Don't mask off the high bit.
(read_frame): Use fputstrn_filtered for packet data.
(getpkt_sane): Return the number of bytes read or -1. Use
fputstrn_unfiltered.
(remote_read_qxfer): New.
(remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
(_initialize_remote): Update packet registration.
* defs.h (fputstrn_filtered): New prototype.
* utils.c (fputstrn_filtered): New.
* NEWS: Mention qXfer.
gdb/doc/
* gdb.texinfo (OS Information): Update qPart reference to
qXfer.
(Remote configuration): Likewise.
(Overview): Move @cindex to the start of a paragraph. Talk
about binary data encoding.
(Packets): Refer to the overview for the details of the X
packet encoding.
(General Query Packets): Remove qPart description. Add qXfer
description. Add an anchor to qSupported. Correct feature
table title. Add a new feature for qXfer:auxv:read.
(Interrupts): Add a missing parenthesis.
gdb/gdbserver/
* server.c (decode_xfer_read, write_qxfer_response): New.
(handle_query): Take a packet length argument. Handle
qXfer:auxv:read instead of qPart:auxv:read. Mention it in
the qSupported response.
(main): Update call to handle_query.
2006-07-12 18:50:18 +00:00
Daniel Jacobowitz
13547ab600
* target.c (target_read): Stop if target_read_partial returns 0
...
when some bytes have already been read.
(target_write): Likewise for target_write_partial.
(target_read_partial, target_write_partial): Make static.
(target_read_alloc): New.
* target.h: Doc fixes.
(target_read_partial, target_write_partial): Delete prototypes.
(target_read_alloc): New prototype.
* auxv.c (target_auxv_read): Delete.
(target_auxv_search, fprint_target_auxv): Use target_read_alloc.
* auxv.h (target_auxv_read): Delete prototype.
* avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
* ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
* linux-nat.c (linux_nat_make_corefile_notes): Likewise.
* procfs.c (procfs_make_note_section): Likewise.
* remote.c (remote_xfer_partial): Don't loop here.
* sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
2006-07-12 18:13:45 +00:00
Daniel Jacobowitz
edfb1a2648
* arm-linux-tdep.c: Doc fixes.
...
(ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
(ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
(ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
constants.
(arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
the new signal frame layouts.
2006-07-12 18:05:50 +00:00
Daniel Jacobowitz
6e2c7fa123
* Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
...
* gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
* gdbarch.sh: Correct comment.
2006-07-12 18:04:30 +00:00
Daniel Jacobowitz
e0f2823e31
* MAINTAINERS: Add Alfred Szmidt for the Hurd.
2006-07-12 17:37:24 +00:00
Mark Kettenis
24c4176016
* alpha-tdep.h (ALPHA_INSN_SIZE): New define.
2006-07-11 20:44:53 +00:00
Mark Kettenis
8a112c90fe
* alphaobsd-tdep.c: New file.
...
* alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
handler for GDB_OSABI_OPENBSD_ELF.
* Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
(alphaobsd-tdep.o): New target.
* config/alpha/obsd.mt: New file.
* configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
2006-07-10 19:40:27 +00:00
Richard Henderson
9823e921f2
* alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
...
* alpha-tdep.c (alpha_register_byte): Remove.
(alpha_extract_struct_value_address): Remove.
(alpha_return_value): New.
(alpha_return_in_memory_always): New.
(alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
instead of set_gdbarch_deprecated_use_struct_convention,
set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
or set_gdbarch_deprecated_extract_struct_value_address.
* alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
alphafbsd_use_struct_convention, remove gcc_p argument.
(alphafbsd_init_abi): Set tdep->return_in_memory instead of
set_gdbarch_deprecated_use_struct_convention.
2006-07-10 15:28:02 +00:00
Mark Kettenis
b0ca857365
* alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
...
prototype.
* alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
a.out-style core file format here. Make global.
(alphanbsd_regset_from_core_section): Remove.
(alphanbsd_sigtramp_offset): Make static.
(alphanbsd_aout_init_abi): Remove.
(alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
a.out style core files.
(_initialize_alphanbsd_tdep): Do not register a handler for
GDB_OSABI_NETBSD_AOUT.
2006-07-09 22:01:59 +00:00
Mark Kettenis
3b03cc4361
Fix typo.
2006-07-09 16:12:30 +00:00
Mark Kettenis
3beabdb233
* alphabsd-tdep.h: Tweak comments.
...
(SIZOEF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
* alphanbsd-tdep.c: Reorder includes. Include "regset.h".
(ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
(alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
(alphanbsd_aout_supply_gregset): New functions.
(alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
New variables.
(alphanbsd_regset_from_core_section)
(alphanbsd_aout_regset_from_core_section): New functions.
(fetch_core_registers, fetch_elfcore_registers): Remove functions.
(alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
(alphanbsd_init_abi): Set regset_from_core_section.
(alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
functions.
(_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
Use alphanbsd_aout_init_abi whre appropriate. Don't call
deprecated_add_core_fns.
* Makefile.in (alphanbsd-tdep.o): Update dependencies.
2006-07-09 16:12:11 +00:00
Mark Kettenis
8fe7c54bf1
* alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
...
(alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
2006-07-09 09:24:39 +00:00
Mark Kettenis
789f3b5fdc
* alphanbsd-tdep.c (alphanbsd_init_abi): Use
...
svr4_lp64_fetch_link_map_offsets instead of
nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2006-07-09 09:21:19 +00:00
Mark Kettenis
071d802b19
Wrap long line.
2006-07-08 21:43:00 +00:00
Andrew Stubbs
09153d5527
2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
...
* parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
write_exp_elt_intern): Zero initialize tmp.
2006-07-06 14:00:48 +00:00
Daniel Jacobowitz
2ec3381a43
gdb/
...
* remote.c (remote_xfer_partial): Remove KOD support.
* target.h (enum target_object): Remove TARGET_OBJECT_KOD.
* MAINTAINERS: Move Kernel Object Display entry to past maintainers.
* Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o): Remove KOD
support.
* mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
* NEWS: Mention KOD.
* kod.h, kod.c, kod-cisco.c: Delete files.
gdb/doc/
* doc/gdb.texinfo (KOD): Remove node.
(GDB/MI Kod Commands): Remove commented out node.
2006-07-05 19:03:47 +00:00
Daniel Jacobowitz
7fca722e51
* remote.c (init_remote_state): Use xrealloc instead of xmalloc.
2006-07-04 13:31:31 +00:00