aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2010-01-05gdb/Jan Kratochvil1-0/+4
* symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
2010-01-04Fix ChangeLog typo.Ulrich Weigand1-1/+1
2010-01-04 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,Ulrich Weigand1-0/+85
and s390x-linux64. (s390-linux32-expedite): Define. (s390-linux64-expedite): Define. (s390x-linux64-expedite): Define. * features/s390-acr.xml: New file. * features/s390-fpr.xml: New file. * features/s390-core32.xml: New file. * features/s390-core64.xml: New file. * features/s390x-core64.xml: New file. * features/s390-linux32.xml: New file. * features/s390-linux64.xml: New file. * features/s390x-linux64.xml: New file. * features/s390-linux32.c: New generated file. * features/s390-linux64.c: New generated file. * features/s390x-linux64.c: New generated file. * regformats/s390-linux32.dat: New generated file. * regformats/s390-linux64.dat: New generated file. * regformats/s390x-linux64.dat: New generated file. * regformats/reg-s390.dat: Remove. * regformats/reg-s390x.dat: Remove. * s390-nat.c: Include "auxv.h" and <elf.h>. (HWCAP_S390_HIGH_GPRS): Define if undefined. (s390_target_wordsize): New function. (s390_auxv_parse): Likewise. (s390_get_hwcap): Likewise. (s390_read_description): Likewise. (_initialize_s390_nat): Install s390_auxv_parse and s390_read_description. * s390-tdep.c: Include "features/s390-linux32.c", "features/s390-linux64.c", and "features/s390x-linux64.c". (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. (s390_register_call_saved): New function. (s390_register_name): Remove. (s390_register_type): Remove. (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. (s390_pseudo_register_name): New function. (s390_pseudo_register_type): New function. (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. Handle full GPR pesudos and varying pseudo register numbers. (s390_pseudo_register_write): Likewise (s390x_pseudo_register_read): Remove. (s390x_pseudo_register_write): Likewise. (s390_register_group): Remove. (s390_pseudo_register_group): New function. (s390_regmap_gregset): Add GPR upper halves. (s390x_regmap_gregset): Likewise. (s390_regmap_fpregset): Likewise. (s390_regmap_upper): New global variable. (s390_upper_regset): New global variable. (s390_upper_regset_sections): New global variable. (s390_regset_from_core_section): Handle GPR upper halves. (s390_core_read_description): New function. (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered register information. Handle varying pseudo register numbers. (s390_backchain_frame_unwind_cache): Likewise. (s390_frame_prev_register): Unwind full GPRs to show lower halves. (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. Handle varying pseudo register numbers. (s390_unwind_pc): Handle varying pseudo register numbers. (s390_dwarf2_prev_register): New function. (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered register information. Handle varying pseudo register numbers. Install s390_dwarf2_prev_register to unwind full GPRs. (s390_gdbarch_init): Handle target descriptions. Assign varying pseudo register numbers. Install s390_adjust_frame_regnum. (_initialize_s390_tdep): Initialize target descriptions. * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. (S390_NUM_REGS): Redefine to include upper half registers. (S390_PC_REGNUM, S390_CC_REGNUM): Remove. (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. (tdesc_s390_linux32): Add declaration. (tdesc_s390_linux64): Likewise. (tdesc_s390x_linux64): Likewise. gdb/testsuite/ * gdb.xml/tdesc-regs.exp: Support s390*-*-* targets. gdbserver/ * Makefile.in (clean): Remove new generated files. (reg-s390.o, reg-s390.c): Remove rules. (reg-s390x.o, reg-s390x.c): Likewise. (s390-linux32.o, s390-linux32.c): Add rules. (s390-linux64.o, s390-linux64.c): Likewise. (s390x-linux64.o, s390x-linux64.c): Likewise. * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. * linux-s390-low.c: Include <elf.h>. (HWCAP_S390_HIGH_GPRS): Define if undefined. (init_registers_s390): Remove prototype. (init_registers_s390x): Likewise. (init_registers_s390_linux32): Add prototype. (init_registers_s390_linux64): Likewise. (init_registers_s390x_linux64): Likewise. (s390_num_regs_3264): New define. (s390_regmap_3264): New global variable. (s390_cannot_fetch_register): Remove obsolete check. (s390_cannot_store_register): Likewise. (s390_collect_ptrace_register): Handle upper/lower register halves. (s390_supply_ptrace_register): Likewise. (s390_fill_gregset): Update to register number changes. (s390_get_hwcap): New routine. (s390_arch_setup): Detect 32-bit process running on 64-bit system. Install appropriate regmap and register set.
2010-01-04 * regset.h (struct core_regset_section): Add HUMAN_NAME.Ulrich Weigand1-0/+12
* i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. (ppc_linux_vmx_regset_sections): Likewise. (ppc_linux_fp_regset_sections): Likewise. * corelow.c (get_core_register_section): Constify arguments. (get_core_registers): Use gdbarch_core_regset_sections instead of hard-coded platform-specific register section names.
2010-01-04 * dwarf2loc.c (read_pieced_value): If a piece occupies part ofUlrich Weigand1-0/+6
a register, assume the least-signficant part is used. (write_pieced_value): Likewise.
2010-01-04 * printcmd.c: Include "arch-utils.h".Ulrich Weigand1-0/+5
(do_one_display): Re-parse expression if current architecture changed.
2010-01-03gdb/Jan Kratochvil1-0/+8
* gdbtypes.c (check_typedef): New comment on type length. * value.c (allocate_value_lazy): Remove the unused atype variable. New comment on type length. (value_primitive_field): Keep the original TYPE value, new comment. gdb/testsuite/ * gdb.mi/var-cmd.c (do_bitfield_tests): Change "V.sharable" type to "uint_for_mi_testing".
2010-01-01gdb/Jan Kratochvil1-0/+5
* cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as p_start. Change != comparisons to > and < comparisons.
2010-01-01gdb/Jan Kratochvil1-0/+4
* cli/cli-script.c (process_next_line): Check P2 overrun.
2010-01-01Update the copyright header of most if not all files that have not beenJoel Brobecker1-0/+4
updated yet.
2010-01-01Fix build failure in inf-ptrace.c.Joel Brobecker1-0/+5
* inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2010-01-01 * top.c (print_gdb_version): Update copyright year.Joel Brobecker1-0/+4
2010-01-01ChangeLog rotation for 2010.Joel Brobecker1-13572/+1
2010-01-01Fix break *FUN'address thread NUM.Joel Brobecker1-0/+5
* ada-lex.l (task): Expand rule to also match the thread keyword.
2010-01-01Fix break *FUN'address task NUM.Joel Brobecker1-0/+7
* ada-lex.l (task): New rule. * ada-lang.c (valid_task_id): Make sure the Ada task list has been built before using it.
2009-12-31 Add new tracepoint action teval.Stan Shebs1-0/+7
* tracepoint.c (teval_pseudocommand): New function. (validate_actionline): Add teval action case. (encode_actions): Ditto. (_initialize_tracepoint): Define teval pseudocommand. * NEWS: Mention teval. * gdb.texinfo (Tracepoint Actions): Describe teval. * gdb.trace/actions.exp: Test teval action.
2009-12-31 * tracepoint.c (trace_find_command): Error out if trace running.Stan Shebs1-0/+9
(trace_find_pc_command): Ditto. (trace_find_tracepoint_command): Ditto. (trace_find_line_command): Ditto. (trace_find_range_command): Ditto. (trace_find_outside_command): Ditto.
2009-12-31Fix a typo.Joel Brobecker1-1/+1
2009-12-31Internal error while loading core on alpha-tru64.Joel Brobecker1-0/+11
* corelow.c (core_open): Delete unused local variables. Use inferior_appeared instead of add_inferior_silent.
2009-12-30 * tracepoint.c (trace_status_command): Add some status output.Stan Shebs1-0/+4
2009-12-3020090-12-30 Jan Kratochvil <jan.kratochvil@redhat.com>Thiago Jung Bauermann1-0/+6
Thiago Jung Bauermann <bauerman@br.ibm.com> * breakpoint.c (update_watchpoint): Change b->type to bp_watchpoint before calling hw_watchpoint_used_count.
2009-12-30 * breakpoint.c (watchpoint_check): Expand the function description.Joel Brobecker1-0/+4
2009-12-30gdb/Thiago Jung Bauermann1-0/+7
* valarith.c (value_equal_contents): New function. * value.h (value_equal_contents): Declare. * breakpoint.c (watchpoint_check): Use value_equal_contents instead of value_equal. gdb/testsuite/ * gdb.base/watchpoint.exp (test_watchpoint_in_big_blob): New function. (top level): Call test_watchpoint_in_big_blob. * gdb.base/watchpoint.c (buf): Change size to value too big for hardware watchpoints. (func3): Write to buf.
2009-12-30 Add default-collect variable.Stan Shebs1-0/+10
* tracepoint.c (default_collect): New global. (encode_actions): Use it. (download_tracepoint): Test it, for otherwise action-less tracepoints. (_initialize_tracepoint): Add set/show. * NEWS: Mention default-collect. * gdb.texinfo (Tracepoint Actions): Describe default-collect. * gdb.trace/actions.exp: Test default-collect.
2009-12-29 * language.c (pointer_type): Un-comment out.Stan Shebs1-0/+6
* ax-gdb.c: Include language.h, use pointer_type throughout instead of testing TYPE_CODE_PTR. (gen_fetch): Include TYPE_CODE_REF. (gen_cast): Ditto.
2009-12-29 * ax-gdb.c (gen_expr): Handle logical and, logical or, andStan Shebs1-0/+5
conditional expressions.
2009-12-282009-12-28 Stan Shebs <stan@codesourcery.com>Stan Shebs1-0/+26
Add trace state variables. * ax.h (enum agent_op): Add getv, setv, and tracev. (ax_tsv): Declare. * ax-gdb.c: Include tracepoint.h. (gen_expr): Handle BINOP_ASSIGN, BINOP_ASSIGN_MODIFY, and OP_INTERNALVAR. (gen_expr_binop_rest): New function, split from gen_expr. * ax-general.c (ax_tsv): New function. (aop_map): Add new bytecodes. * tracepoint.h (struct trace_state_variable): New struct. (tsv_s): New typedef. (find_trace_state_variable): Declare. * tracepoint.c (tvariables): New global. (next_tsv_number): New global. (create_trace_state_variable): New function. (find_trace_state_variable): New function. (delete_trace_state_variable): New function. (trace_variable_command): New function. (delete_trace_variable_command): New function. (tvariables_info): New function. (trace_start_command): Download tsvs with initial values. (_initialize_tracepoint): Add new commands. * NEWS: Mention the addition of trace state variables. ==> doc/ChangeLog <== 2009-12-28 Stan Shebs <stan@codesourcery.com> * gdb.texinfo (Trace State Variables): New section. (Tracepoint Packets): Describe trace state variable packets. * agentexpr.texi (Bytecode Descriptions): Describe trace state variable bytecodes. ==> testsuite/ChangeLog <== 2009-12-28 Stan Shebs <stan@codesourcery.com> * gdb.trace/tsv.exp: New file. * gdb.base/completion.exp: Update ambiguous info output.
2009-12-28 * NEWS: Document "info variables" change.Daniel Jacobowitz1-0/+7
* dwarf2read.c (new_symbol): Add file-scope external unresolved symbols to global_symbols. * symtab.c (search_symbols): Skip LOC_UNRESOLVED symbols. doc/ * gdb.texinfo (Symbols): "info variables" prints definitions, not declarations.
2009-12-28 * defs.h (print_address_symbolic, build_address_symbolic): UpdateDaniel Jacobowitz1-0/+9
prototypes. * printcmd.c (print_address_symbolic): Take a gdbarch argument. Pass it to build_address_symbolic. All callers updated. (build_address_symbolic): Take a gdbarch argument. Use gdbarch_addr_bits_remove for functions. All callers updated.
2009-12-28 * ax-gdb.c (gen_expr) <OP_THIS>: Lookup `this' in the context ofPedro Alves1-0/+5
the tracepoint, not of the selected frame and language.
2009-12-242009-12-23 Stan Shebs <stan@codesourcery.com>Stan Shebs1-0/+2
* ax-gdb.c (gen_expr): Handle OP_THIS.
2009-12-242009-12-23 Stan Shebs <stan@codesourcery.com>Stan Shebs1-0/+12
* ax-gdb.h (gen_trace_for_var): Declare. * ax-gdb.c (gen_trace_for_var): New function. * dwarf2loc.c (dwarf_expr_frame_base_1): New function, split from... (dwarf_expr_frame_base): ...here. (dwarf2_tracepoint_var_ref): Add computed location case. * tracepoint.c (collect_symbol): Add scope arg and LOC_COMPUTED case. (add_local_symbols): Update call to collect_symbol. (encode_actions): Ditto.
2009-12-232009-12-23 Dmitry Gorbachev <d.g.gorbachev@gmail.com>Tom Tromey1-0/+8
PR gdb/11110 * tracepoint.h (deprecated_trace_find_hook) (deprecated_trace_start_stop_hook): Declare extern. * tracepoint.c (deprecated_trace_find_hook) (deprecated_trace_start_stop_hook): Define.
2009-12-23gdb/Jan Kratochvil1-0/+8
* breakpoint.c (bpstat_stop_status): Iterate using ALL_BREAKPOINTS and the B->LOC list. Remove gdb_assert on B. Change bp_hardware_watchpoint continue to break. Remove variable update_locations. Remove HIT_COUNT increment protection by an ENABLE_STATE check. Inline the delayed update_global_location_list call. gdb/testsuite/ * gdb.base/condbreak.exp: Put breakpoint on marker3 and marker4. (bp_location13, bp_location14, bp_location17, bp_location18) (marker3_proto, marker4_proto): New variables. (breakpoint info): Update output. (run until breakpoint at marker3, run until breakpoint at marker4): New tests.
2009-12-23gdb/Jan Kratochvil1-0/+7
* breakpoint.c (bpstat_stop_status): Check BL->SHLIB_DISABLED. (print_breakpoint_location): New comment. Check LOC->SHLIB_DISABLED. Check LOC validity before printing it. Use LOC instead of B->LOC. Swap the if conditionals order. gdb/testsuite/ * gdb.base/unload.c (main): Change the UNLOADSHR parameter to 1. Replace the printf call of Y by provided "y-set-1" label. New block for the second shared library. * gdb.base/unload.exp: Compile also the second library, call gdb_load_shlibs also for it. Use now gdb_breakpoint. (single pending breakpoint info): Rename to ... (pending breakpoint info before run): ... this extended test. (libfile2, libname2, libsrcfile2, libsrc2) (lib_sl2): New variables. (exec_opts): Set also SHLIB_NAME2. (pending breakpoint info on first run at shrfunc1) (pending breakpoint info on second run at shrfunc1) (pending breakpoint info on second run at shrfunc2) (print y from libfile, print y from libfile2): New tests. * gdb.base/unloadshr.c (shrfunc1): Change the returned value. * gdb.base/unloadshr2.c: New.
2009-12-23 * Makefile.in (SFILES): Add exceptions.c.Tom Tromey1-0/+4
2009-12-22GDB 7.0.1 released.gdbadmin1-0/+4
2009-12-222009-12-22 Hui Zhu <teawater@gmail.com>Hui Zhu1-0/+13
* record.c (record_message): Change argument. (record_message_wrapper): New function. (do_record_message): Change it name to "record_message_wrapper_safe". Let it call "record_message_wrapper". (record_resume_error): Deleted. (record_resume): Call "record_message". (record_wait): Deleted record_resume_error. Call "record_message_wrapper_safe". Set status when do_record_message need stop the inferior. 2009-12-22 Hui Zhu <teawater@gmail.com> * gdb.reverse/sigall-reverse.exp: Adjust.
2009-12-21 gdb/Doug Evans1-0/+7
* linux-nat.c (kill_lwp): Minor cleanup, move definition of tkill_failed into ifdef HAVE_TKILL_SYSCALL. Move setting of errno there too. Delete unnecessary resetting of errno after syscall. Minor comment changes to match gdbserver/linux-low.c:kill_lwp. gdbserver/ * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc warning ifndef __NR_tkill. Move setting of errno there too. Delete unnecessary resetting of errno after syscall. Minor comment changes to match gdb/linux-nat.c:kill_lwp.
2009-12-21 * MAINTAINERS: Update my email address.Alan Modra1-0/+4
2009-12-21 * mi/mi-main.c (mi_cmd_gdb_exit): Flush raw_stdout.Vladimir Prus1-0/+4
2009-12-21 PR gdb/10884Vladimir Prus1-0/+7
* value.c (value_primitive_field): Call check_typedef on the type.
2009-12-21 * COPYING: Update to GPL version 3.Joel Brobecker1-0/+4
2009-12-202009-12-20 Michael Snyder <msnyder@vmware.com>Michael Snyder1-0/+4
* amd64-tdep.c (amd64_epilogue_frame_cache): Fix buf size.
2009-12-20 * darwin-nat-info.c, solib-spu.c, spu-multiarch.c,Joel Brobecker1-0/+5
regformats/regdat.sh, features/Makefile: Update copyright header.
2009-12-19 * arm-linux-tdep.c (ARM_OABI_SYSCALL_RESTART_SYSCALL): New macro.Maciej W. Rozycki1-0/+9
(ARM_LDR_PC_SP_12): Likewise. (arm_linux_restart_syscall_init): New function. (arm_linux_restart_syscall_tramp_frame): New variable. (arm_linux_init_abi): Install the arm_linux_restart_syscall_tramp_frame unwinder.
2009-12-19 gdb/Doug Evans1-0/+10
* gdb_proc_service.h (psaddr_t): Fix type. * linux-thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix signature to match glibc. (thread_db_get_thread_local_address): Use psaddr_t for type of address to match parameter of td_thr_tls_get_addr_p. Cast through psaddr_t instead of (void*) to match parameter of td_thr_tls_get_addr_p. gdbserver/ * gdb_proc_service.h (psaddr_t): Fix type. * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix signature to match glibc.
2009-12-182009-12-17 Stan Shebs <stan@codesourcery.com>Stan Shebs1-0/+4
* breakpoint.c (bpstat_check_location): Check for tracepoints.
2009-12-172009-12-16 Michael Snyder <msnyder@vmware.com>Michael Snyder1-0/+4
* i386-tdep.c (i386_process_record): Reformat comments.
2009-12-16* dwarf2read.c (read_subroutine_type): Add the subroutine type to theGaius Mulley1-0/+6
die immediately to allow a parameter type to be the same subroutine type.