aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-11-27*** empty log message ***gdbadmin1-1/+1
2008-11-262008-11-26 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+5
* MAINTAINERS: Add myself for write after approval privileges.
2008-11-26 * value.h (allocate_value_lazy): New function declaration.Jerome Guitton4-81/+115
(value_free): Remove macro, make it a function. * value.c (value): Move actual content outside of the memory space of the struct; add a pointer to this actual content. (allocate_value_lazy, allocate_value_contents): New function. (allocate_value): Reimplement using these two new functions. (value_contents_raw, value_contents_all_raw): If no memory has been allocated yet for the actual content, allocate it. (value_contents_all): Resync with struct value's changes. (value_free): New function. (value_copy, value_primitive_field): Use new function allocate_value_lazy to allocate lazy values. (value_change_enclosing_type): Resync with struct value's changes. As the value is not reallocated, remove the special handling for the value chain (now obsolete). * valops.c (value_at_lazy): Use new function allocate_value_lazy. (value_fetch_lazy): Allocate value content. Use allocate_value_lazy to allocate lazy values. (value_slice): Use allocate_value_lazy to allocate lazy values.
2008-11-262008-11-25 ia64-tdep.c change: Reflect current `disable' in the ChangeLog entry.Jan Kratochvil1-1/+1
2008-11-26 Fix automatic restoration of breakpoints memory for ia64.Jan Kratochvil3-40/+196
* ia64-tdep.c: New #if check on BREAKPOINT_MAX vs. BUNDLE_LEN. (ia64_memory_insert_breakpoint): New comment part for SHADOW_CONTENTS content. Remove variable instr. New variable cleanup. Force automatic breakpoints restoration. PLACED_SIZE and SHADOW_LEN are now set larger, to BUNDLE_LEN - 2. Variable `bundle' type update. Return error if even just final target_write_memory has failed. (ia64_memory_remove_breakpoint): Rename variables bundle to bundle_mem and instr to instr_saved. New variables bundle_saved and instr_breakpoint. Comment new reasons why we need to disable automatic restoration of breakpoints. Assert PLACED_SIZE and SHADOW_LEN. New check of the original memory content. Return error if even just final target_write_memory has failed. (ia64_breakpoint_from_pc): Implement the emulation of permanent breakpoints compatible with current bp_loc_is_permanent. (template_encoding_table): Make it `const'. * breakpoint.c (bp_loc_is_permanent): Support unsupported software breakpoints. New variables `cleanup' and `retval'. * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
2008-11-26 * gdbint.texinfo (Target Conditionals): Extend theJan Kratochvil2-2/+14
gdbarch_breakpoint_from_pc description.
2008-11-26 * gdb.base/breakpoint-shadow.exp, gdb.base/breakpoint-shadow.c: New.Jan Kratochvil4-1/+98
* gdb.base/start.exp: New comment about an alternative - `runto_main'.
2008-11-26*** empty log message ***gdbadmin1-1/+1
2008-11-25*** empty log message ***gdbadmin1-1/+1
2008-11-24 * ada-lang.c (value_from_contents_and_address): Move...Tom Tromey5-24/+32
* value.c: ... here. * ada-lang.h (value_from_contents_and_address): Move declaration... * value.h: ... here.
2008-11-24 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.Doug Evans2-7/+4
2008-11-242008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>Tom Tromey2-4/+9
* valprint.c (val_print_array_elements): Pass correct element address to val_print.
2008-11-24 * server.c (handle_v_run): Always use the supplied argument list.Daniel Jacobowitz2-16/+15
2008-11-24 Fix access of an already freed memory.Jan Kratochvil3-1/+13
* parse.c (parse_field_expression): Call xstrdup on `*name'. * completer.c (expression_completer): Free fieldname.
2008-11-24 PR gdb/2474Daniel Jacobowitz2-6/+50
* remote.c (remote_read_description_p): New function. (remote_start_remote): Try to fetch the target description before adding shared libraries. Try again later if the target is running but stopped. (remote_open_1): Mark extended targets as exited by default. (remote_read_description): Check target_has_execution.
2008-11-24 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): UseJerome Guitton2-1/+7
the frame address in block instead of the return address to locate the mdebug PDR of the frame.
2008-11-24*** empty log message ***gdbadmin1-1/+1
2008-11-23*** empty log message ***gdbadmin1-1/+1
2008-11-22 * gdb.texinfo (M68K Features): Fix typo.Vladimir Prus2-1/+5
2008-11-22 Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.Joel Brobecker4-31/+30
* breakpoint.h (enum bpstat_what_main_action): Remove BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class. Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from variable table. * infrun.c (wait_for_inferior): Remove handling of BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
2008-11-22*** empty log message ***gdbadmin1-1/+1
2008-11-21 * configure: Rebuild.Tom Tromey3-5212/+55
* configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS, AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
2008-11-21 * python/python-internal.h (PyGILState_Ensure): New define.Tom Tromey4-2/+67
(PyGILState_Release): Likewise. (PyEval_InitThreads): Likewise. (PyThreadState_Swap): Likewise. (PyEval_InitThreads): Likewise. * python/python.c (_initialize_python): Initialize threads. Release GIL. (eval_python_from_control_command): Acquire GIL. (python_command): Likewise. * python/python-internal.h (make_cleanup_py_restore_gil): Declare. * python/python-utils.c (py_gil_restore): New function. (make_cleanup_py_restore_gil): Likewise.
2008-11-21*** empty log message ***gdbadmin1-1/+1
2008-11-20 * frame.c (frame_debug_got_null_frame): Remove file arg.Doug Evans2-8/+11
All callers updated.
2008-11-20* gdb.base/foll-fork.exp (catch_fork_child_follow): Fix patternsAndreas Schwab3-334/+348
matching syscall entry point. * gdb.base/foll-vfork.exp (tcatch_vfork_then_parent_follow) (tcatch_vfork_then_child_follow): Likewise. Finish through vfork even if we stopped at the syscall trampoline.
2008-11-20 * infrun.c (resume): If following a fork, also reset regcache,Pedro Alves2-0/+11
gdbarch and pc.
2008-11-20 * printcmd.c (sym_info): Don't print the offset if it's zero.Doug Evans4-18/+40
* gdb.base/sepsymtab.exp: Update, old "info sym" format restored.
2008-11-20 * infrun.c (resume): If following a fork, reread the currentPedro Alves2-2/+11
thread. Avoid dereferencing a possibly dangling pointer.
2008-11-20 * inferior.h (proceed_to_finish): Delete, unused.Doug Evans3-9/+10
(stop_registers): Tweak comment. * infrun.c (stop_registers): Tweak comment.
2008-11-20*** empty log message ***gdbadmin1-1/+1
2008-11-19 * frv-tdep.c (frv_skip_main_prologue): New function.Kevin Buettner3-3/+96
(frv_gdbarch_init): Register frv_skip_main_prologue. * solib-frv.c (fetch_loadmap): Return early when no segments are found. (frv_relocate_main_executable): Return early when both interpreter and executable loadmap addresses are zero.
2008-11-19gdb/Bob Wilson6-164/+138
* xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7, excsave5, excsave6, excsave7, cpenable, and vecbase registers. (xtensa_submask0, xtensa_submask1, xtensa_submask2) (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6) (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10) (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14) (xtensa_submask15): Adjust register numbers. * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. (xtensa_regmap_table): Add entry for scompare1. * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr and scompare1. gdb/gdbserver/ * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. (xtensa_regmap_table): Add entry for scompare1.
2008-11-19 * remote.c (escape_buffer): New.Pedro Alves3-19/+84
(putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make sure debug output printing a packet buffer goes through a single fprintf_unfiltered call. * utils.c (vfprintf_unfiltered): If outputting timestamps, end output with a newline if it wasn't going to already.
2008-11-19*** empty log message ***gdbadmin1-1/+1
2008-11-182008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+5
* maint.c (maintenance_translate_address): Fix a buglet.
2008-11-18gdb/Thiago Jung Bauermann12-6/+777
* features/Makefile (rs6000/powerpc-isa205-32l-expedite, rs6000/powerpc-isa205-altivec32l-expedite, powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite, rs6000/powerpc-isa205-altivec64l-expedite, powerpc-isa205-vsx64l-expedite): New variables. * regformats/rs6000/powerpc-isa205-32l.dat: Generate. * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate. * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate. * regformats/rs6000/powerpc-isa205-64l.dat: Generate. * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate. * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate. gdbserver/ * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, powerpc-isa205-64l.o, powerpc-isa205-64l.c, powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and XML target descriptions. * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR when inferior is running on an ISA 2.05 or later processor. Add special case to return offset for full 64-bit slot of FPSCR when in 32-bits.
2008-11-18gdb/Thiago Jung Bauermann20-7/+1293
* ppc-linux-nat.c (ppc_register_u_addr): Add special case to return offset for full 64-bit slot of FPSCR when in 32-bits. (ppc_linux_read_description): Return target description with 64-bit FPSCR when inferior is running on an ISA 2.05 or later processor. * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call initialize_tdec_powerpc_isa205_32l, initialize_tdec_powerpc_isa205_altivec32l, initialize_tdec_powerpc_isa205_vsx32l, initialize_tdec_powerpc_isa205_64l, initialize_tdec_powerpc_isa205_altivec64l and initialize_tdec_powerpc_isa205_vsx64l. * ppc-linux-tdep.h: Add external declaration for tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l. * features/rs600/powerpc-fpu-isa205.xml: New file. * features/rs600/powerpc-isa205-32l.xml: New file. * features/rs600/powerpc-isa205-64l.xml: New file. * features/rs600/powerpc-isa205-altivec32l.xml: New file. * features/rs600/powerpc-isa205-altivec64l.xml: New file. * features/rs600/powerpc-isa205-vsx32l.xml: New file. * features/rs600/powerpc-isa205-vsx64l.xml: New file. * features/rs600/powerpc-isa205-32l.c: Generate. * features/rs600/powerpc-isa205-64l.c: Generate. * features/rs600/powerpc-isa205-altivec32l.c: Generate. * features/rs600/powerpc-isa205-altivec64l.c: Generate. * features/rs600/powerpc-isa205-vsx32l.c: Generate. * features/rs600/powerpc-isa205-vsx64l.c: Generate. gdb/testsuite/ * gdb.arch/ppc-dfp.exp: New file. * gdb.arch/ppc-dfp.c: New file.
2008-11-182008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov8-16/+104
* objfiles.h: New MULTI_OBJFILE_P macro. * printcmd.c (sym_info): Print object name. * maint.c (maintenance_translate_address): Likewise.
2008-11-18 * gdb.texinfo (Set Catchpoints): Remove the documentation ofJoel Brobecker2-10/+5
commands "catch load" and "catch unload".
2008-11-18 * NEWS: Document the removal of "catch load" and "catch unload".Joel Brobecker2-0/+10
2008-11-18 * infcall.c (call_function_by_hand): Fix punctuation and capitalizationDoug Evans5-6/+16
on error messages. * gdb.mi/mi-syn-frame.exp: Update expected output. * gdb.mi/mi2-syn-frame.exp: Update expected output.
2008-11-18*** empty log message ***gdbadmin1-1/+1
2008-11-17 PR gdb/2250Ulrich Weigand2-22/+118
* infrun.c (clear_proceed_status_thread): New function. (clear_proceed_status_callback): New function. (clear_proceed_status): In all-stop mode, clear per-thread proceed status of *all* threads, not only the current. (handle_inferior_event): In all-stop mode, if we're stepping one thread, but got some inferior event in another thread that does not cause GDB to break to the user interface, ensure the interrupted stepping operation continues in the original thread. (currently_stepping): Move thread-related tests to ... (currently_stepping_thread): ... this new function. (currently_stepping_callback): New function.
2008-11-17 Implement =thread-selected notification.Vladimir Prus9-19/+103
* mi/mi-common.h (struct mi_interp): New, moved from ... * mi/mi-interp.c: ...here. * mi/mi-main.c (mi_execute_command): If the thread changed as result of command, report that.
2008-11-17 Implement continue/interrupt of thread groups.Vladimir Prus2-3/+74
* mi/mi-main.c (proceed_thread_callback): New. (mi_cmd_exec_continue): If --thread-group is specified, resume all threads in that group. (interrupt_thread_callback): New. (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt all threads in that group.
2008-11-17 Implement '-target-detach pid'.Vladimir Prus6-4/+51
* infcmd.c (detach_command): Make nonstatic. * inferior.h (detach_command): Declare. * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI. * mi/mi-cmds.h (mi_cmd_target_detach): Declare. * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
2008-11-17 Include group-id in thread-created notification.Vladimir Prus5-4/+20
* mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include group id in the output.
2008-11-17 Notification for attach/detach.Vladimir Prus5-0/+51
* inferior.c: Call the process observers. * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New. (mi_interpreter_init): Register the above.
2008-11-17 Implement -list-thread-groups.Vladimir Prus6-6/+82
* thread.c (print_thread_info): New parameter pid, to print threads of specific process. * gdbthread.h (print_thread_info): New parameter pid. * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups. * mi/mi-cmds.h (mi_cmd_list_thread_groups): New. * mi/mi-main.c (mi_cmd_thread_info): Adjust. (print_one_process, mi_cmd_list_thread_groups): New.