aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-03-18 ARI fixes: Messages should have no trailing new lines.Pierre Muller3-2/+9
* darwin-nat.c (mach_check_error): Remove trailing new line from warning function call message. * record.c (bfdcore_read): Idem for error call.
2011-03-18 Add missing ChangeLog entryPierre Muller1-0/+9
2011-03-18 * common/signals.c (target_signal_from_host): Add _ markup to errorPierre Muller3-5/+15
function call message. (target_signal_to_host): Add _ markup and remove trailing new line from warning call message. (target_signal_from_command): Add _ markup to error function call message. * gdbserver/server.h (Macro _): Define it if not available.
2011-03-182011-03-18 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon6-20/+165
PR python/12149 * python/python.c (gdbpy_write): Accept a stream argument and operate to the appropriate stream. (gdbpy_flush): Likewise. (_initialize_python): Add stream constants. (finish_python_initialization): Add GdbOutputErrorFile class. 2011-03-18 Phil Muldoon <pmuldoon@redhat.com> PR python/12149 * gdb.texinfo (Basic Python): Update gdb.write and flush text. 2011-03-18 Phil Muldoon <pmuldoon@redhat.com> PR python/12149 * gdb.python/python.exp: Add gdb.write tests.
2011-03-182011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>Kwok Yeung2-0/+5
* MAINTAINERS: Add myself as a write-after-approval maintainer.
2011-03-18Fix relocation of jump and call instructions (used when inserting fastKwok Yeung3-8/+29
tracepoints). 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments to store_signed_integer. Add debug message when relocating CALL instructions. Fix formatting of debug message. * i386-tdep.c (i386_relocate_instruction): Ditto.
2011-03-18*** empty log message ***gdbadmin1-1/+1
2011-03-17delete target_ops.to_lookup_symbolJoel Brobecker6-81/+34
gdb/ChangeLog: * target.h (struct target_ops): Remove to_lookup_symbol field. (target_lookup_symbol): Delete macro. * target.c (nosymbol, debug_to_lookup_symbol): Delete. (update_current_target, setup_target_debug): Remove handling of to_lookup_symbol target_ops field. * ada-tasks.c (get_known_tasks_addr): Remove use of target_lookup_symbol. * coffread.c (coff_symtab_read): Likewise. * dbxread.c (read_dbx_symtab): Ditto.
2011-03-17Add 'getthrds' declaration check in configure for AIXJoel Brobecker5-4/+38
On newer versions of AIX (6.x and later), this function is actually declared in procinfo.h, thus causing a compilation warning when we re-declare it ourselves. This patch adds a configure check for that function allowing us to declare the function only if the declaration isn't already present in one of procinfo system header. gdb/ChangeLog: PR gdb/12116: * configure.ac: Add getthrds declaration check. * configure, config.in: Regenerate. * aix-thread.c (getthrds): Declare only if not already declared in procinfo.h. More declaration out of get_signaled_thread to global scope.
2011-03-172011-03-17 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon19-8/+427
* python/py-symtab.c: Populate symtab_object_methods, sal_object_methods. (stpy_is_valid): New function. (salpy_is_valid): Ditto. * python/py-symbol.c: Declare symbol_object_methods. Populate. (sympy_is_valid): New function. * python/py-objfile.c: Declare objfile_object_methods. Populate. (objfpy_is_valid): New function. * python/py-inferior.c: Populate inferior_object_methods. (infpy_is_valid): New function. * python/py-infthread.c: Populate thread_object_methods. (thpy_is_valid): New function. * python/py-block.c: Declare block_object_methods. Populate. Declare block_iterator_object_methods. Populate. (blpy_is_valid): New function. (blpy_iter_is_valid): Ditto. 2010-03-17 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/Makefile.in: Add py-objfile. * gdb.python/py-objfile.exp: New file. * gdb.python/py-objfile.c: New file. * gdb.python/py-block.exp: Add is_valid tests. * gdb.python/py-inferior.exp: Ditto. * gdb.python/py-infthread.exp: Ditto. * gdb.python/py-symbol.exp: Ditto. * gdb.python/py-symtab.exp: Ditto. 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Blocks In Python): Add is_valid method description. (Inferiors In Python): Likewise. (Threads In Python): Likewise. (Symbols In Python): Likewise. (Objfiles In Python): Likewise. (Symbol Tables In Python): Likewise.
2011-03-17*** empty log message ***gdbadmin1-1/+1
2011-03-16 * linespec.c (find_methods): Canonicalize NAME before lookingKeith Seitz5-49/+280
up the symbol. (name_end): New function. (keep_name_info): New function. (decode_line_1): Use keep_name_info. (decode_compound): Likewise. * cli/cli-utils.h (remove_trailing_whitespace): New function. * cli/cli-utils.c (remove_trailing_whitespace): Likewise. PR c++/12273 * linespec.c (locate_first_half): Keep overload information, too. (decode_compound): Use a string to represent break characters to escape the loop. If P points to a break character, do not increment it. For C++ and Java, keep overload information and relevant keywords. If we cannot find a symbol, search the minimal symbols. PR c++/11734 * linespec.c (decode_compound): Rename SAVED_ARG to THE_REAL_SAVED_ARG. Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip single-quotes. Pass a valid block to lookup_symbol. (lookup_prefix_sym): Likewise. (find_method): Construct search name based on SYM_CLASS instead of SAVED_ARG. * psymtab.c (lookup_partial_symbol): Add language parameter. (lookup_symbol_aux_psymtabs): Likewise. Don't assume that the psymtab we found was the right one. Search for the desired symbol in the symtab to be certain. (psymtab_search_name): New function. (lookup_partial_symbol): Use psymtab_search_name. Add language parameter. (read_symtabs_for_function): Add language parameter and pass to lookup_partial_symbol. (find_symbol_file_from_partial): Likewise.
2011-03-16 PR c++/12273Keith Seitz9-0/+365
* gdb.cp/cmpd-minsyms.exp: New test. * gdb.cp/cmpd-minsyms.cc: New file. PR c++/11734 * gdb.cp/ovsrch.exp: New test. * gdb.cp/ovsrch.h: New file. * gdb.cp/ovsrch1.cc: New file. * gdb.cp/ovsrch2.cc: New file. * gdb.cp/ovsrch3.cc: New file. * gdb.cp/ovsrch4.cc: New file.
2011-03-16ChangeLog:Paul Pluzhnikov6-6/+133
2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com> PR gdb/12528 * dwarf2read.c (noop_record_line): New function. (dwarf_decode_lines): Ignore line tables for GCd functions. testsuite/ChangeLog: 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com> PR gdb/12528 * gdb.base/Makefile.in: Adjust EXECUTABLES. * gdb.base/break-on-linker-gcd-function.exp: New test. * gdb.base/break-on-linker-gcd-function.cc: New file.
2011-03-16 Fix ARI warnings about new lines at the end of messages, whichPierre Muller13-12/+30
are unneeded as there is a new line added at the end of the message automatically. * darwin-nat.c (darwin_stop_inferior): Ditto. * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto. * dfp.c (decimal_to_number): Ditto. * exec.c (print_section_info): Ditto. * i386-darwin-nat.c (darwin_set_sstep): Ditto. * osdata.c (get_osdata): Ditto. * record.c (bfdcore_write): Ditto. * remote-mips.c (mips_readchar): Ditto. * remote.c (read_ptid): Ditto. * ser-mingw.c (ser_windows_raw): Ditto. * tracepoint.c (add_local_symbols): Ditto. * windows-nat.c (fake_create_process): Ditto.
2011-03-16 * tracepoint.c (stop_tracing): Don't declare.Tom Tromey3-3/+6
* event-top.c (after_char_processing_hook): Add `(void)'.
2011-03-162011-03-16 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-0/+9
* NEWS: Add Parameter sub-classing description.
2011-03-162011-03-16 Kai Tietz <ktietz@redhat.com>Kai Tietz2-1/+5
* MAINTAINERS: Update my e-mail address.
2011-03-16*** empty log message ***gdbadmin1-1/+1
2011-03-152011-03-15 Andreas Tobler <andreast@fgznet.ch>Andreas Tobler2-0/+17
* gdb.base/jit-main.c: Define ElfW for non glibc elf targets.
2011-03-152011-03-15 Andreas Tobler <andreast@fgznet.ch>Andreas Tobler2-0/+5
* MAINTAINERS: Add myself for write after approval privileges.
2011-03-152011-03-15 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+4
* frame.c (find_frame_sal): Assert sym is not null.
2011-03-152011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2-0/+3
* dbxread.c (process_one_symbol): Assert 'name' is not null.
2011-03-152011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2-0/+9
* objc-lang.c (selectors_info): Check strchr for null result.
2011-03-152011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+10
* stabsread.c (define_symbol): Guard against bad stabstring input.
2011-03-152011-03-15 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-3/+6
* lib/gdb.exp (gdb_unload): Add another termination case.
2011-03-15 Remove trailing spaces and tabulations from pascal languagePierre Muller5-52/+62
support sources. p-exp.y: Ditto. p-lang.c: Ditto. p-lang.h: Ditto. p-valprint.c: Ditto.
2011-03-15gdb/Jan Kratochvil6-20/+187
* dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher than LOW. Comment it. (read_partial_die): Call complaint for inappropriate zero LOWPC or HIGHPC not strictly higher than LOWPC. gdb/testsuite/ * gdb.dwarf2/dw2-empty-pc-range.S: New file. * gdb.dwarf2/dw2-empty-pc-range.exp: New file. * gdb.dwarf2/pr11465.S: New .text labels text_start and text_end. Provide a stub byte there. (DW_TAG_compile_unit): Set DW_AT_low_pc, DW_AT_high_pc and DW_AT_entry_pc. (dieb4, dieda): Set DW_AT_high_pc higher than DW_AT_low_pc.
2011-03-15 Fix formatting of function declarations returning a pointer inPierre Muller4-5/+13
previous commit. * varobj.c (varobj_add_child): Ditto. * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto. * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2011-03-15gdb/Ulrich Weigand4-16/+82
* ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support for the "generic" vector ABI used with GCC 4.3 and later. (ppc64_sysv_abi_return_value): Likewise. gdb/testsuite: * gdb.arch/altivec-abi.exp: Skip "generic" tests on 64-bit when using a GCC 4.1 or 4.2 compiler. Add an additional test variant "generic ABI, auto". (altivec_abi_tests): Accept vectors returned by reference.
2011-03-15 * infcall.c (call_function_by_hand): Function return value isUlrich Weigand2-8/+13
always a non_lval, even when using struct_return.
2011-03-15 gdb/Pedro Alves4-71/+112
* printcmd.c (ALL_DISPLAYS_SAFE): New. (map_display_numbers): New. (do_delete_display): New. (undisplay_command): Use map_display_numbers. (do_enable_disable_display): New. (enable_disable_display_command): New function. (enable_display): Delete. (enable_display_command): New. (disable_display_command): Reimplement. (_initialize_printcmd): Adjust "enable display" command to use `enable_display_command' as callback. gdb/doc/ * gdb.texinfo (Auto Display) <undisplay, enable display, disable display>: Explain that the commands accept number ranges.
2011-03-15*** empty log message ***gdbadmin1-1/+1
2011-03-142011-03-14 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-0/+8
* NEWS: Add Python breakpoint 'stop' operation.
2011-03-14Fix earlier changelog errors.Michael Snyder2-12/+15
2011-03-142011-03-14 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+11
* gdbserver/hostio.c (handle_close): Remove unnecessary null test.
2011-03-142011-03-14 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-9/+5
* NEWS: Delete duplicate entry. Fix typo.
2011-03-14 Fix ARI warning about function names in first column.Pierre Muller9-26/+33
Put prototype declaration on same line as return type. * objc-exp.y: Ditto. * p-exp.y: Ditto. * python/py-stopevent.h: Ditto. For long function names, split parameters to allow function name on same line as return type. * solib-pa64.c: Ditto. * varobj.c: Ditto. * varobj.h: Ditto. For long function declaration, use single line. * hppa-tdep.h: Ditto. * inferior.h: Ditto.
2011-03-142011-03-14 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon9-20/+312
* gdb.texinfo (Breakpoints In Python): Add description and example of Python stop function operation. 2010-03-14 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-breakpoint.exp: Add Python stop operations tests. 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> * python/python.h: Declare gdbpy_should_stop and gdbpy_breakpoint_has_py_cond. * python/python.c: Add python.h to includes. Remove python.h from HAVE_PYTHON definition (gdbpy_should_stop): New dummy function. (gdbpy_breakpoint_has_py_cond): New dummy function. * python/py-breakpoint.c (bppy_init): Rewrite to allow sub-classing capabilities. (gdbpy_should_stop): New function. (gdbpy_breakpoint_has_py_cond): New function. (local_setattro): New function. * breakpoint.c (condition_command): Add check for Python 'stop' operation. (bpstat_check_breakpoint_conditions): Execute Python 'stop' operation function as part of stop/continue tests.
2011-03-14 PR gdb/12576:Tom Tromey2-4/+10
* dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'. (needs_frame_dwarf_call): Likewise.
2011-03-14 Fix ARI warning about functions without parameters that do notPierre Muller11-16/+37
use (void). * breakpoint.c (all_tracepoints): Replace () by (void). * f-exp.y (match_string_literal): Ditto. (yylex): Ditto. * m2-exp.y (yylex): Ditto. * mep-tdep.c (current_me_module): Ditto. (current_options): Ditto. (current_cop_data_bus_width): Ditto. (current_cr_names): Ditto. (current_cr_is_float): Ditto. (current_ccr_names): Ditto. * objc-exp.y (yylex): Ditto. * p-exp.y (yylex): Ditto. * remote.c (send_interrupt_sequence): Ditto. * tracepoint.c (current_trace_status): Ditto. * python/py-evts.c (gdbpy_initialize_py_events): Ditto. * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2011-03-14*** empty log message ***gdbadmin1-1/+1
2011-03-13 * gdb.python/py-section-script.exp: Skip test if no Python support.Ulrich Weigand2-4/+11
2011-03-13 * gdb.base/solib-weak.exp: Allow "." prefix for ppc64.Ulrich Weigand2-1/+5
2011-03-13*** empty log message ***gdbadmin1-1/+1
2011-03-122011-03-11 Michael Snyder <msnyder@vmware.com>Michael Snyder5-8/+16
* cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define. * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS. (lookup_cmd): Test for CMD_LIST_AMBIGUOUS. * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS. * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2011-03-12*** empty log message ***gdbadmin1-1/+1
2011-03-112011-03-11 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+5
* event-loop-c (delete_async_signal_handler): Assert prev_ptr. (delete_async_event_handler): Ditto.
2011-03-112011-03-11 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+6
* python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2011-03-112011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+4
* python/py-breakpoint.c (bppy_get_commands): Fix memory leak.