| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* demo-target.c: Implement hooks for software breakpoints.
(demo_remove_swbp): New function.
(demo_set_swbp): New function.
(demo_target): Set up method vectors for set/remove breakpoints.
* demo-target.h: Export interface for software breakpoints.
* demo-tfind.c: Implement software breakpoints.
(tfind_insert_breakpoint): New function.
(tfind_unlink_breakpoint): New function.
(tfind_set_swbp): New function.
(tfind_remove_swbp): New function.
* demo-target.c: Implement hooks for continue_thread.
(demo_continue_thread): call tfind_continue_thread.
* demo-target.h: Export interface for tfind_continue_thread.
* demo-tfind.c: Implement continue_thread with software breakpoints.
(tfind_continue_thread): New function. Find a new frame
based on software breakpoints.
|
|
|
|
|
|
| |
* gdbserv-state.c (gdbserv_data_packet): Parse reverse step
and reverse continue packets. For now, uses an ugly global
variable to export the reverse flag.
|
|
|
|
|
| |
* demo-tfind.c (tfind_singlestep_program):
Add ability to step backward.
|
|
|
|
|
|
| |
* demo-tfind.c (tfind_singlestep_program): New function.
* demo-target.c (demo_singlestep_program): Call the above.
* demo-target.h: Export tfind_singlestep_program interface.
|
| |
|
|
|
|
|
|
|
| |
* tracepoint.c, remote.c, target.c, target.h, etc.:
Begin moving tracepoint methods into the target vector,
and migrating some of the remote protocol stuff from
tracepoint.c into remote.c.
|
|
|
|
| |
* tracepoint.c (emit_checkpoint_method4): Add PC to ckpt record.
|
|
|
|
|
|
|
|
|
| |
* target.c (target_read_memory_trusted): New function.
Implements 'trust-readonly-section'.
(target_read_partial): Honor trust-readonly-section.
(target_read_memory_partial): Ditto.
(target_read_memory): Ditto.
(do_xfer_memory): Ditto.
|
|
|
|
|
|
|
|
|
| |
* defs.h (noisy_command, quiet_command): New command types
to be interpreted by cli-script.c. Turn on and off 'from_tty'
output.
* cli/cli-script.c (noisy_command, quiet_command): Interpret
new pseudo-commands for user-defined scripts (which otherwise
will frequently produce no output).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for writing tracepoint/checkpoint data to a file.
* breakpoint.c (bpstat_stop_status): Add hook for interpreting
breakpoints as tracepoints, enabling gdb to handle them directly
by a "default" fallback method (writing data to a file).
* tracepoint.c (default_tracepoint_method): New user-settable
mode variable -- tells gdb to use a "default" (fallback) method
for collecting tracepoint data.
(trace_start_command, trace_stop_command, trace_status_command):
Add "default" mode.
(tracepoint_event_p, default_do_tracepoints_command): New
functions, entry points into default tracepoint collection method.
(checkpoint_open, checkpoint_close): Open / close checkpoint file.
(checkpoint_command): Drop a checkpoint into checkpoint file.
(emit_checkpoint_method1, emit_checkpoint_method2,
emit_checkpoint_method3, emit_checkpoint_method4): Experimental
methods for writing checkpoint/tracepoint data to a file.
(checkpoint_emit_memrange, checkpoint_emit_gregs,
checkpoint_emit_stack, checkpoint_emit_id, etc.):
Support functions for writing checkpoint/tracepoint data.
(get_tracepoint_by_address): New function.
(validate_actionline): Add "$stack" pseudo-object for collection.
(tracepoint_top_of_stack, tracepoint_size_of_stack):
New user-settable variables.
(encode_actions): Interpret "$stack" pseudo-object, collect stack.
* tracepoint.h (default_trace_method, tracepoint_event_p):
Exported interface for default tracepoint method.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New.
(INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New.
(INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New.
(elf64_alpha_use_secureplt): New.
(OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New.
(NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New.
(PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt.
(ALPHA_ELF_LINK_HASH_PLT_LOC): Remove.
(struct alpha_elf_link_hash_entry): Add plt_offset.
(PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove.
(PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove.
(PLT_ENTRY_WORD3): Remove.
(elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY
on .plt and create .got.plt.
(elf64_alpha_output_extsym): Remove .plt frobbing for symbol values.
(get_got_entry): Initialize plt_offset.
(elf64_alpha_want_plt): New.
(elf64_alpha_check_relocs): Use it.
(elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate
plt entries here.
(elf64_alpha_calc_got_offsets_for_symbol): Don't report internal
error as user error.
(elf64_alpha_size_plt_section_1): Allocate one plt entry per
got subsection.
(elf64_alpha_size_plt_section): Size .got.plt section.
(elf64_alpha_size_rela_got_1): Don't allocate relocations if
plt entries used.
(elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section.
Add PLTRO DYNAMIC entry.
(elf64_alpha_finish_dynamic_symbol): Generate secureplt format.
(elf64_alpha_finish_dynamic_sections): Likewise.
|
|
|
|
| |
linux-ppc64-low.c.
|
|
|
|
| |
better understood (internally).
|
|
|
|
| |
* gdb.arch/alpha-step.exp: New testcase.
|
|
|
|
| |
for floating-point branch instructions.
|
| |
|
| |
|
|
|
|
|
|
| |
* frame.c (backtrace_limit): Change type to int.
(get_prev_frame): Update backtrace limit support.
(_initialize_frame): Use add_setshow_integer_cmd for backtrace_limit.
|
|
|
|
|
|
|
|
|
|
| |
* configure.tgt (powerpc64-*-linux*): Enable gdbserver.
* regformats/reg-ppc64.dat: New file.
gdbserver/
* Makefile.in (SFILES): Add linux-ppc64-low.c.
(linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
* configure.srv: Add powerpc64-*-linux*.
* linux-ppc64-low.c: New file.
|
|
|
|
|
|
| |
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move
calculation of DT_RELSZ to occur after all dynamic relocations
are created.
|
| |
|
|
|
|
|
| |
* remote.c (struct gdb_ext_thread_info): Fix a comment typo.
(remote_unpack_thread_info_response): Likewise.
|
|
|
|
| |
change. Cast to "char **" for var_string.
|
|
|
|
| |
the input character by default.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* i386-linux-nat.c (fetch_register, store_register, supply_gregset)
(fill_gregset): Likewise.
* i386-tdep.c (i386_frame_prev_register)
(i386_sigtramp_frame_prev_register): Likewise.
* linux-nat.c (linux_nat_xfer_memory, linux_nat_make_corefile_notes):
Likewise.
* linux-thread-db.c (thread_db_xfer_memory): Likewise.
* remote.c (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint):
Likewise.
* target.c (debug_to_insert_hw_breakpoint)
(debug_to_remove_hw_breakpoint, update_current_target): Likewise.
|
|
|
|
|
| |
* configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
* config.in, configure: Regenerate.
|
|
|
|
| |
* cp-name-parser.y (parse_escape): Initialize target_char to zero.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* cris-tdep.c (crisv32_scan_prologue): Add.
(cris_frame_unwind_cache, cris_skip_prologue): Call
crisv32_scan_prologue when debugging CRISv32.
|
| |
|
|
|
|
|
|
|
| |
* cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
(cris_frame_prev_register, cris_sigtramp_frame_prev_register)
(cris_return_value): Use gdb_byte for byte buffers.
(struct cris_frame_unwind, struct cris_frame_base): Fix formatting.
|
|
|
|
| |
* MAINTAINERS (Write After Approval): Remove myself.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* jv-lang.c (get_java_utf8_name): Add cast.
(evaluate_subexp_java): Use gdb_byte for buffers.
* jv-valprint.c (java_value_print, java_value_print): Use gdb_byte
for buffers.
* scm-lang.c (scm_get_field, scm_unpack)
(scm_evaluate_string): Use gdb_byte for buffers.
(scm_lookup_name): Add cast.
* scm-valprint.c (scm_scmval_print, scm_scmval_print): Use
gdb_byte for buffers.
* tui/tui.h (tui_get_command_dimension): Make parameters unsigned.
* tui/tui.c (tui_get_command_dimension): Make parameters unsigned.
* value.h (check_field): Change "name" to a string.
* valops.c (check_field): Change "name" to a string.
* scm-lang.h (scm_parse): Use gdb_byte for buffers.
* source.c (get_current_source_symtab_and_line)
(set_current_source_symtab_and_line): Initialize all fields of sal
structures.
* cli/cli-cmds.c (list_command): Use gdb_byte for buffers.
|
|
|
|
|
|
|
|
|
|
|
| |
gdb_byte* instead of char*.
* generic/gdbtk-register.c (get_register): frame_register and val_print
take gdb_byte* instead of char*.
* generic/gdbtk-wrapper.c: Ditto the val_print part.
From Paul Schlie <schlie@comcast.net>:
* generic/gdbtk-bp.c (gdb_set_bp): Use lbasename instead of basename.
* generic/gdbtk-cmds.c (gdb_listfiles): Likewise.
|
| |
|
| |
|
|
|
|
|
| |
* MAINTAINERS: Update my mail address, move myself to the
"Past maintainers" section.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* mips.igen (mips32r2, mips64r2): New ISA models. Add new model
tags to all instructions which are applicable to the new ISAs.
(do_ror, do_dror, ROR, RORV, DROR, DROR32, DRORV): Add, moved from
vr.igen.
* mips3264r2.igen: New file for MIPS 32/64 revision 2 specific
instructions.
* vr.igen (do_ror, do_dror, ROR, RORV, DROR, DROR32, DRORV): Move
to mips.igen.
* configure.ac (mipsisa32r2*-*-*, mipsisa64r2*-*-*): Add new targets.
* configure: Regenerate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* command.h (add_setshow_integer_cmd): Make VAR an integer.
* cli/cli-decode.c (add_setshow_integer_cmd): Update to match.
* valops.c (value_string): Add a cast.
* eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers.
* breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for
byte buffers.
* target.h (struct target_ops): For to_insert_hw_breakpoint and
to_remove_hw_breakpoint use gdb_byte for byte buffer parameters.
* breakpoint.h (struct bp_location): Make shadow_contents a
gdb_byte buffer.
* cli/cli-setshow.c (do_setshow_command): Fix cast.
* cli/cli-dump.c (restore_section_callback)
(restore_binary_file): Use gdb_byte for byte buffers.
* proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts.
(ps_xfer_memory): Use gdb_byte for byte buffers.
* tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char
for string buffers.
* ser-tcp.c (net_open): Make len a socklen_t.
|
|
|
|
|
| |
* gdb.texinfo: Note that Elena Zannoni, Fernando Nasser, and
Andrew Cagney implemented the original GDB/MI.
|
|
|
|
|
|
|
|
| |
stop processing of options if one of invalid size is
encountered.
(_bfd_mips_elf_section_from_shdr): Likewise.
(_bfd_mips_elf_fake_sections): Reset the type of empty special
sections.
|
|
|
|
|
|
| |
plt_old_section, plt_old_value.
(elf64_alpha_adjust_dynamic_symbol): Don't set it.
(elf64_alpha_size_plt_section_1): Don't use it.
|
|
|
|
|
|
| |
first shdr has sh_size == 0. Fail if e_shnum is large to cause
arithmetic overflow when allocating the i_shdr array.
Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check.
|