aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2009-03-26*** empty log message ***gdbadmin1-1/+1
2009-03-25 ARI fix: "xasprintf" rule.Pierre Muller2-2/+7
* printcmd.c (sym_info): Replace xasprintf by xstrprintf.
2009-03-25 * remote.c (remote_start_remote): In non-stop mode, callPedro Alves2-2/+12
init_wait_for_inferior before adding threads and inferiors.
2009-03-25 * breakpoint.c (breakpoint_thread_match): Split a large conditionJoel Brobecker2-14/+30
into several smaller conditions. No behavior change.
2009-03-25Fix the date in the last entry.Joel Brobecker1-1/+1
2009-03-25gdb/Pedro Alves6-9/+38
* infrun.c (infrun_thread_thread_exit): New. (_initialize_infrun): Attach it to the thread_exit observer. * thread.c (delete_thread_1): Always call the observer, passing it the silent flag. * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If SILENT, return immediately. gdb/doc/ * observer.texi (thread_exit): Add "silent" parameter.
2009-03-25 * infrun.c (normal_stop): Use has_stack_frames instead ofPedro Alves12-134/+137
target_has_stack. * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread when there is no thread selected. (mi_cmd_execute): Don't special case commands that can run without a valid selected thread. * top.c (execute_command): Don't special case commands that can run without a valid selected thread. Use has_stack_frames. * infcmd.c (ensure_valid_thread): New. (continue_1, step_1, jump_command, signal_command): Use it. (detach_command): Error out if there's no selected thread/inferior. * thread.c (print_thread_info): Allow having no thread selected. (switch_to_thread): Don't read the PC if there is no current thread. (do_restore_current_thread_cleanup): Don't record the current frame if there is no current thread. (make_cleanup_restore_current_thread): Don't read frame info if there is no selected thread. (_initialize_thread): Don't mark commands as "no_selected_thread_ok". * frame.c (get_current_frame): Error out if there is no valid selected thread. (has_stack_frames): Return false if there is no valid selected thread. * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as "no_selected_thread_ok". * cli/cli-decode.c (set_cmd_no_selected_thread_ok) (get_cmd_no_selected_thread_ok): Delete. * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete. (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok): Delete declaration. * stack.c (get_selected_block): Use has_stack_frames.
2009-03-25gdb/Thiago Jung Bauermann4-8/+37
Fix size of FPSCR in Power 7 processors. * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define. (PPC_FEATURE_HAS_DFP): New #define. (ppc_linux_read_description): Check for DFP feature instead of ISA 2.05 to decide on size of the FPSCR. gdbserver/ Fix size of FPSCR in Power 7 processors. * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. (PPC_FEATURE_HAS_DFP): New #define. (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on size of the FPSCR.
2009-03-25 * gdb.base/charset.exp (valid_target_charset): New proc.Tom Tromey2-0/+17
Use it to skip tests on invalid charsets.
2009-03-25 * mn10300-tdep.c (trad-frame.h): Don't include.Kevin Buettner2-515/+777
(prologue-value.h): Include. (mn10300_frame_unwind_cache, set_reg_offsets): Delete. (struct mn10300_prologue): Define. (push_reg, translate_rreg, check_for_saved): New functions. (mn10300_analyze_prologue): Rewrite, using prologue-value machinery. Handle more instructions than before. Permit instructions to occur in any order. (mn10300_skip_prologue): Find the extents of the function in question; mn10300_analyze_prologue no longer does this. (mn10300_analyze_frame_prologue): New function. (mn10300_frame_base): New function. (mn10300_frame_this_id): Rewrite, no longer using trad-frame implementation. (mn10300_frame_prev_register): Likewise. (mn10300_frame_base_address, mn10300_frame_base struct): Delete. (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to `this_frame'. (mn10300_frame_unwind_init): Don't call frame_base_set_default().
2009-03-25 * gdb.base/completion.exp: Add a test for directory completion.Pierre Muller2-0/+34
2009-03-25 Fix completer problem for filename completion on the first try.Pierre Muller4-23/+95
* gdb/completer.h (gdb_completion_word_break_characters): New function. * gdb/completer.c: Include gdb_assert.h. (complete_line_internal_reason): New enum. (complete_line_internal): Change last argument type to complete_line_internal_reason. Modify function to handle the different complete_line_internal_reason argument values. (complete_line): Adapt to change in complete_line_internal. (command_completer): Ditto. (gdb_completion_word_break_characters): Implement new function. * top.c (init_main): Set rl_completion_word_break_hook to gdb_completion_word_break_characters.
2009-03-25 ARI fix: "strlen d_name" rule.Pierre Muller2-1/+7
* linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
2009-03-252009-03-24 Tom Tromey <tromey@redhat.com>Tom Tromey7-49/+54
Pedro Alves <pedro@codesourcery.com> * configure, config.in: Rebuild. * configure.ac: Check for libiconvlist. * charset.c: Check HAVE_LIBICONVLIST. * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR. Update CPPFLAGS and LIBS. * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR): Remove. (INTERNAL_CFLAGS_BASE): Update. (INTERNAL_LDFLAGS): Update. (CLIBS): Update.
2009-03-25*** empty log message ***gdbadmin1-1/+1
2009-03-24 * configure.ac: Initialize the variable $PREFER_CURSES.Jan Kratochvil3-2/+9
* configure: Regenerated.
2009-03-24 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.Jan Kratochvil3-2/+7
* configure: Regenerated.
2009-03-24 ARI fix: "strerror" rule.Pierre Muller2-4/+10
* darwin-nat.c (darwin_ptrace): Use safe_strerror. (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
2009-03-24 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefsJoel Brobecker2-0/+6
before looking up the fields inside our struct type.
2009-03-24 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs beforeJoel Brobecker2-1/+6
trying to resolve the type qualification.
2009-03-24 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sureJoel Brobecker2-1/+7
we try to apply the attribute on the real type, rather than its associated typedef.
2009-03-24 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdefJoel Brobecker2-1/+7
to make sure we try to get the modulus of the actual type, not the associated typedef.
2009-03-24 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]Joel Brobecker2-1/+7
[OP_ATR_LENGTH]: When using the attribute on a type, make sure to get the real type, not the associated typedef.
2009-03-24Fix typo (sleep -> usleep).Joel Brobecker1-1/+1
2009-03-24 * ada-lang.c (ada_get_field_index): Add handling of the caseJoel Brobecker2-9/+17
when TYPE is a typedef of a struct.
2009-03-24 * gdb_usleep.h, gdb_usleep.c: New files.Joel Brobecker5-9/+88
* Makefile.in (SFILES): Add gdb_usleep.c. (HFILES_NO_SRCDIR): Add gdb_usleep.h. (COMMON_OBS): Add gdb_usleep.o. * ser-unix.c (hardwire_send_break): Replace call to gdb_select by call to gdb_usleep.
2009-03-24 * buildsym.c (end_symtab): If we ignore the subfiles, thenJoel Brobecker2-0/+31
unlink the associated symtabs if they were already allocated.
2009-03-24 Provide a way to force building of GDB with libcurses.Joel Brobecker3-27/+74
* configure.ac: Add --with-curses. * configure: Regenerated.
2009-03-24*** empty log message ***gdbadmin1-1/+1
2009-03-23 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo inTom Tromey2-1/+6
error message.
2009-03-232009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-20/+19
* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use solib_contains_address_p instead of searching.
2009-03-23 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.Tom Tromey2-3/+14
(iconv): Make 'inbuf' argument const. (convert_between_encodings): Use ICONV_CONST. (wchar_iterate): Likewise.
2009-03-23 * server.c (handle_query) Whitespace and formatting.Pedro Alves2-10/+12
2009-03-23*** empty log message ***gdbadmin1-1/+1
2009-03-22 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,Pedro Alves25-271/+285
linux-crisv32-low.c, linux-i386-low.c, linux-low.c, linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, regcache.c, remote-utils.c, server.c, spu-low.c, target.h, thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, Makefile.in, configure.ac: Fix whitespace throughout. * configure: Regenerate.
2009-03-22 * inferiors.c (find_inferior): Make it safe for the callbackPedro Alves2-1/+9
function to delete the currently iterated inferior.
2009-03-22 * Makefile.in (linuw_low_h): Move higher.Pedro Alves2-3/+8
(thread-db.o): Depend on $(linux_low_h).
2009-03-22* windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound forChristopher Faylor2-37/+47
dynamically loaded function. (LookupPrivilegeValueA): Ditto. (OpenProcessToken): Ditto. (AdjustTokenPrivileges): Rename and define placeholder for address of dynamically loaded function. (LookupPrivilegeValueA): Ditto. (OpenProcessToken): Ditto. (set_process_privilege): Remove check for loaded functions. (bad_OpenProcessToken): Define. (_initialize_loadable): Load token functions from advapi here, setting OpenProcessToken function to a dummy static function which always return error if OS doesn't support this functionality.
2009-03-22* win32-nat.c (ctrl_c_handler): New function.Christopher Faylor2-21/+66
(win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior is run in a separate console.
2009-03-22* windows-nat.c (DebugActiveProcessStop): Implement macro wraparound forChristopher Faylor2-108/+173
dynamically loaded function. (DebugBreakProcess): Ditto. (DebugSetProcessKillOnExit): Ditto. (EnumProcessModules): Ditto. (GetModuleFileNameExA): Ditto. (GetModuleInformation): Ditto. (DebugActiveProcessStop): Rename and define placeholder for address of dynamically loaded function. for dynamically loaded function. (DebugBreakProcess): Ditto. (DebugSetProcessKillOnExit): Ditto. (EnumProcessModules): Ditto. (GetModuleFileNameExA): Ditto. (GetModuleInformation): Ditto. (psapi_loaded): Delete. (get_module_name): Don't check psapi_loaded, just rely on the fact that dynamically loaded functions will return failure if they weren't previously found. (has_detach_ability): Delete. (windows_attach): Remove call to has_detach_ability (). Just rely on functions being callable. (bad_DebugActiveProcessStop): Define. (bad_DebugBreakProcess): Ditto. (bad_DebugSetProcessKillOnExit): Ditto. (bad_EnumProcessModules): Ditto. (bad_GetModuleFileNameExA): Ditto. (bad_GetModuleInformation): Ditto. (_initialize_loadable): Rename from _initialize_psapi. Initialize all dynamic storage here, setting nonexistent functions to dummy static functions which always return error.
2009-03-22 Fix a racy FAIL.Jan Kratochvil3-10/+20
* gdb.base/auxv.exp (fetch_auxv): Fix trailing newlines consumption. * gdb.base/callfuncs.exp (fetch_all_registers): Likewise.
2009-03-22gdb/Pedro Alves9-11/+83
* mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed to the about_to_proceed observer notification. (mi_about_to_proceed): New. (mi_on_resume): Only output ^running and the prompt here if the target was proceeded. * breakpoint.c (breakpoint_proceeded): New static. (breakpoint_about_to_proceed): New. (_initialize_breakpoints): Attach breakpoint_about_to_proceed to the about_to_proceed observer notification. * inferior.h (breakpoint_proceeded): Delete declaration. * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded. Notify the about_to_proceed observers. (struct inferior_status): Delete breakpoint_proceeded member. (save_inferior_status): Don't save it. (restore_inferior_status): Don't restore it. * mi-main.h (mi_proceeded): Declare. * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running a command. gdb/doc/ * observer.texi (about_to_proceed): New.
2009-03-22 * gdbthread.h (struct thread_info): Add in_infcall member.Pedro Alves8-22/+50
* infcall.c (run_inferior_call): Save, set and restore in_infcall. Remove reverences to suppress_resume_observer. Refresh `call_thread' after returning from `proceed'. * infcmd.c (suppress_resume_observer): Delete. * inferior.h (suppress_resume_observer): Delete declaration. * mi/mi-interp.c (mi_on_resume): Suppress output while calling an inferior function. * thread.c (set_running): Remove references to suppress_resume_observer. * infrun.c (struct inferior_status): Add in_infcall member. (save_inferior_status): Save it. (restore_inferior_status): Restore it.
2009-03-22 * infcall.c (run_inferior_call): Remove references toPedro Alves5-28/+42
suppress_stop_observer. * infcmd.c (suppress_stop_observer): Delete. (finish_command_continuation): Remove NOTE. Don't clear suppress_stop_observer anymore. (finish_command_continuation_free_arg): Likewise. (finish_forward): Remove references to suppress_stop_observer. Call normal_stop observer if we haven't already. * inferior.h (suppress_stop_observer): Delete. * infrun.c (normal_stop): When deciding to suppress the normal_stop observer, check for proceed_to_finish instead of suppress_stop_observer.
2009-03-22 * symfile.c (symfile_relocate_debug_section): Remove check forPedro Alves2-4/+10
SEC_DEBUGGING.
2009-03-22*** empty log message ***gdbadmin1-1/+1
2009-03-21From Jeremy Bennett <jeremy.bennett@embecosm.com>:Eli Zaretskii2-0/+3709
* stack_frame.eps: Version of image for TeX DVI output.
2009-03-21From Jeremy Bennett <jeremy.bennett@embecosm.com>:Eli Zaretskii6-391/+2187
* gdbint.texinfo (everywhere): Use braces {} in @deftypeXX type field throughout to handle types with spaces in them. Fix typos found by aspell. (Summary, Requirements, Contributors): New first chapter, "Summary" added, old Requirements section moved there, and new section, "Contributors" added. (Initializing a New Architecture, Register Representation) (Frame Interpretation, Inferior Call Setup, Adding a New Target) (Porting gdb): These sections extended and updated. (Compiler Characteristics): This section (empty) deleted. (Defining Other Architecture Features): This section renamed and duplicate material removed from (formerly "Target Conditionals"). Use braces {} in @deftypeXX type field throughout to handle types with spaces in them. Typos found by aspell fixed. * stack_frame.svg: New file, source of image for gdbint.texinfo. * stack_frame.pdf: Version of image for PDF output. * stack_frame.png: Version of image for HTML output and for Emacs. * stack_frame.txt: Version of image for Info output.
2009-03-21 * gdb.texinfo (Character Sets): Fix last change.Eli Zaretskii2-21/+26
2009-03-21gdb/Thiago Jung Bauermann9-25/+104
2009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> Jim Blandy <jimb@red-bean.com> Thiago Jung Bauermann <bauerman@br.ibm.com> Tom Tromey <tromey@redhat.com> Miscellaneous fixes to the Python code. * python/python-cmd.c (cmdpy_init): Accept keyword arguments. * python/python-value.c (valpy_string): Accept keyword arguments. (valpy_binop): Use `break' to exit from the TRY_CATCH block. Do not call value_to_value_object on NULL RES_VAL. (value_object_methods): Change `string' entry to also accept keyword arguments. (convert_value_from_python): Return a copy of the value if obj is a gdb.Value object. (value_object_methods): Mark the `string' method as accepting keywords, and show method "prototype" in the doc string. * python/python.c (get_parameter): Don't return inside a TRY_CATCH. gdb/doc/ 2009-03-21 Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.texinfo (Values From Inferior): Fix optional arguments markup. (Commands In Python): Adjust argument names of gdb.Command.__init__ to what the function accepts as keywords. gdb/testsuite/ 2009-03-21 Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.python/python-cmd.exp: Add tests for keyword arguments. * gdb.python/python-function.exp: Add test for function returning a GDB value.