aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-202012-01-20 Pedro Alves <palves@redhat.com>Ulrich Weigand4-9/+29
Ulrich Weigand <ulrich.weigand@linaro.org> ChangeLog: * remote.c (remote_multi_process_p): Only check for multi-process protocol feature, do not check for extended protocol. (remote_supports_multi_process): Check for extended protocol here. (set_general_process): Likewise. (extended_remote_kill): Likewise. (remote_pid_to_str): Likewise. (remote_query_supported): Always query multiprocess mode. gdbserver/ChangeLog: * server.c (handle_v_requests): Only support vAttach and vRun to start multiple processes when in extended protocol mode.
2012-01-202012-01-20 Pedro Alves <palves@redhat.com>Ulrich Weigand4-10/+43
Ulrich Weigand <ulrich.weigand@linaro.org> * inferior.h (struct inferior): Add fake_pid_p. * inferior.c (exit_inferior_1): Clear fake_pid_p. * remote.c (remote_start_remote): Set fake_pid_p if we have to use magic_null_ptid since the remote side doesn't provide a real PID.
2012-01-20Add typename on types used in templateH.J. Lu2-5/+13
2012-01-22 H.J. Lu <hongjiu.lu@intel.com> * x86_64.cc (gc_process_relocs): Add typename on types used in template. (scan_relocs): Likewise. (relocate_section): Likewise. (apply_relocation): Likewise.
2012-01-20*** empty log message ***gdbadmin1-1/+1
2012-01-19daily updateAlan Modra1-1/+1
2012-01-19 * NEWS: Combine the two Python sections.Tom Tromey2-5/+7
2012-01-19gdb/Jan Kratochvil2-4/+8
* target.h (target_close): Update comment on the target's unpush state.
2012-01-192012-01-19 Pedro Alves <palves@redhat.com>Pedro Alves3-11/+18
* linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and linux_nat_async directly instead of going through the target vector. * target.c (unpush_target): Close target after unpushing it, not before.
2012-01-192012-01-19 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+6
* dwarf.c (process_extended_line_op): Add a cast to silent a warning.
2012-01-192012-01-19 Gary Benson <gbenson@redhat.com>Gary Benson2-2/+7
* mdebugread.c (sort_blocks): Replace integer constants with ones derived from FIRST_LOCAL_BLOCK.
2012-01-19gdb/testsuite/Jan Kratochvil2-1/+4
* .gdbinit: Remove.
2012-01-192012-01-19 Pedro Alves <palves@redhat.com>Pedro Alves3-9/+19
* gdb.java/jprint.exp: Don't rely on inferior output, but instead look at the funtions' returns. * gdb.java/jprint.java (jvclass.addprint, jprint.print(int)) (jprint.print(int, int)): Change return type to int. Adjust.
2012-01-192012-01-19 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-0/+11
* pef.c: Add a comment. * xsym.c: Likewise.
2012-01-192012-01-19 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-10/+39
* dwarf.c (process_extended_line_op): Reindent define_file output. Detect define_file opcode length mismatch. (display_debug_lines_decoded): Add an entry in file_table for each define_file opcode. Ignore DW_LNE_set_discriminator and DW_LNE_HP_set_sequence. Display extended opcode for unhandle opcode.
2012-01-19*** empty log message ***gdbadmin1-1/+1
2012-01-18daily updateAlan Modra1-1/+1
2012-01-182012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov7-55/+154
Jan Kratochvil <jan.kratochvil@redhat.com> PR gdb/9538 * symfile.c (find_separate_debug_file): New function. (terminate_after_last_dir_separator): Likewise. (find_separate_debug_file_by_debuglink): Also try realpath. * configure.ac (AC_CHECK_FUNCS): Add lstat. * configure: Regenerate. * config.in: Regenerate. testsuite/ChangeLog: 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com> PR gdb/9538 * gdb.base/sepdebug.exp: New test.
2012-01-18 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.Doug Evans5-74/+94
(main.o): Remove rule. * configure.ac (BINDIR): Define with AC_DEFINE_DIR. (--with-sysroot): Rewrite. * configure: Regenerate. * config.in: Regenerate.
2012-01-182012-01-18 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+6
* gdb.ada/mi_task_info.exp (-ada-task-info with no argument): Allow output before ^done.
2012-01-182012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-14/+44
* parse.c (initialize_expout): New function. (reallocate_expout): Likewise. (parse_exp_in_context): Use `initialize_expout' and `reallocate_expout' when appropriate.
2012-01-182012-01-18 Pedro Alves <palves@redhat.com>Pedro Alves2-13/+83
* record.c (struct record_breakpoint, record_breakpoint_p) (record_breakpoints): New. (record_insert_breakpoint, record_remove_breakpoint): Manage record breakpoints list. Only remove breakpoints from the inferior if they had been inserted there in the first place.
2012-01-18*** empty log message ***gdbadmin1-1/+1
2012-01-17daily updateAlan Modra1-1/+1
2012-01-17 * linespec.c (decode_line_internal): Don't call symtabs_from_filenameDoug Evans2-19/+36
if we know we don't have a file name to look for.
2012-01-172012-01-17 Pedro Alves <palves@redhat.com>Pedro Alves2-8/+25
* tracepoint.c (initialize_tracepoint): Use mmap instead of memalign plus mprotect to allocate the scratch buffer.
2012-01-172012-01-17 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+9
* dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if the frame's stop reason is UNWIND_UNAVAILABLE.
2012-01-17 * write.c (fix_new_internal): Don't mark used parameter as unused.Alan Modra2-2/+6
2012-01-17 * config/default.exp: Provide tmpdir/ld/collect-ld.Alan Modra2-0/+5
2012-01-17Update copyright message year.Alan Modra6-6/+18
2012-01-17gdb/Jan Kratochvil2-1/+5
Fix compilation error. * m2-exp.y (yyerror): Use ANSI C prototype.
2012-01-17*** empty log message ***gdbadmin1-1/+1
2012-01-16 PR binutils/10173Alan Modra2-2/+7
* cr16-dis.c (print_arg): Test symtab_size not num_symbols.
2012-01-16* gas/testsuite/gas/m68k/pmove.s, gas/testsuite/gas/m68k/pmove.d: New test.Andreas Schwab6-2/+36
* gas/testsuite/gas/m68k/all.exp: Run it. * opcodes/m68k-opc.c (m68k_opcodes): Fix entries for pmove with BADx/BACx register and move them after pmove with PSR/PCSR register.
2012-01-16daily updateAlan Modra1-1/+1
2012-01-16 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leaveAlan Modra3-3/+9
trailing garbage in the note. * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
2012-01-162012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior5-51/+25
* f-exp.y (parse_number): Convert prototype from K&R to ANSI C. (growbuf_by_size): Likewise. (yyerror): Likewise. * m2-exp.y (make_qualname): Remove function (was #if 0'ed). (modblock): Remove variable (was #if 0'ed). (parse_number): Convert prototype from K&R to ANSI C. (yyerror): Likewise. * objc-exp.y (parse_number): Likewise. (yyerror): Likewise. (yylex): Remove #if 0'ed code. * p-exp.y (uptok): Convert prototype from K&R to ANSI C. (yyerror): Likewise.
2012-01-16gdbTom Tromey12-58/+154
* NEWS: Add item. * symtab.h (compare_filenames_for_search): Declare. * symtab.c (compare_filenames_for_search): New function. (iterate_over_some_symtabs): Use it. * symfile.h (struct quick_symbol_functions) <map_symtabs_matching_filename>: Change spec. * psymtab.c (partial_map_symtabs_matching_filename): Use compare_filenames_for_search. Update for new spec. * dwarf2read.c (dw2_map_symtabs_matching_filename): Use compare_filenames_for_search. Update for new spec. * breakpoint.c (clear_command): Use compare_filenames_for_search. gdb/doc * gdb.texinfo (Specify Location): Document relative file name handling. gdb/testsuite * gdb.linespec/linespec.exp: Change some tests to use $decimal. Add tests for relative directory.
2012-01-16gdbTom Tromey14-13/+199
PR python/13281: * gdbtypes.h (TYPE_FLAG_ENUM): New macro. (struct main_type) <flag_flag_enum>: New field. * dwarf2read.c (process_enumeration_scope): Detect "flag" enums. * NEWS: Add entries. * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag" enums. * python/lib/gdb/printing.py (_EnumInstance): New class. (FlagEnumerationPrinter): Likewise. gdb/doc * gdb.texinfo (gdb.printing): Document FlagEnumerationPrinter. gdb/testsuite * gdb.base/printcmds.c (enum flag_enum): New. (three): New global. * gdb.base/printcmds.exp (test_print_enums): Add test for flag enum printing. * gdb.python/py-pp-maint.py (build_pretty_printer): Instantiate FlagEnumerationPrinter. * gdb.python/py-pp-maint.exp: Add tests for FlagEnumerationPrinter. * gdb.python/py-pp-maint.c (enum flag_enum): New. (fval): New global.
2012-01-162012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior3-120/+411
* breakpoint.c (create_sals_from_address_default): New function. (create_breakpoints_sal_default): Likewise. (decode_linespec_default): Likewise. (is_marker_spec): Removed. (strace_marker_p): New function. (init_breakpoint_sal): Using `strace_marker_p' instead of `is_marker_spec'. (create_breakpoint): Call method `create_sals_from_address' from breakpoint_ops, replacing code that created SALs conditionally on the type of the breakpoint. Call method `create_breakpoints_sal', replacing code that created breakpoints conditionally on the type wanted. (base_breakpoint_create_sals_from_address): New function. (base_breakpoint_create_breakpoints_sal): Likewise. (base_breakpoint_decode_linespec): Likewise. (base_breakpoint_ops): Add methods `base_breakpoint_create_sals_from_address', `base_breakpoint_create_breakpoints_sal' and `base_breakpoint_decode_linespec'. (bkpt_create_sals_from_address): New function. (bkpt_create_breakpoints_sal): Likewise. (bkpt_decode_linespec): Likewise. (tracepoint_create_sals_from_address): Likewise. (tracepoint_create_breakpoints_sal): Likewise. (tracepoint_decode_linespec): Likewise. (strace_marker_create_sals_from_address): Likewise. (strace_marker_create_breakpoints_sal): Likewise. (strace_marker_decode_linespec): Likewise. (strace_marker_breakpoint_ops): New variable. (addr_string_to_sals): Remove `marker_spec'. Call method `decode_linespec' from breakpoint_ops, replacing code that decoded an address string into a SAL. Use `strace_marker_p' instead of `marker_spec'. (strace_command): Decide whether we are dealing with a static tracepoint with marker or not. Use the appropriate breakpoint_ops. (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops. * breakpoint.h (linespec_result, linespec_sals): New forward declarations. (breakpoint_ops) <create_sals_from_address>, <create_breakpoints_sal>, <decode_linespec>: New methods.
2012-01-162012-01-16 Pedro Alves <palves@redhat.com>Pedro Alves2-9/+33
* lib/gdb.exp (banned_procedures): New variable. (banned_variables_traced): Rename to ... (banned_traced): ... this. (gdb_init): Also trace banned procedures. (gdb_finish): Also untrace banned procedures.
2012-01-162012-01-16 Pedro Alves <palves@redhat.com>Pedro Alves473-1888/+4
Remove all calls to strace.
2012-01-16 PR binutils/13593Alan Modra2-5/+23
* nm.c (OPTION_SIZE_SORT): Define. (long_options): Don't set no_sort, sort_numerically or sort_by_size directly. (main): Instead set the flags here, making them mutually exclusive.
2012-01-16 PR ld/13491Alan Modra3-5/+13
* coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test h->root.type not h->type. * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
2012-01-16*** empty log message ***gdbadmin1-1/+1
2012-01-15daily updateAlan Modra1-1/+1
2012-01-15 PR ld/12758Alan Modra2-2/+8
* ldlang.c (lang_process): Don't reopen all files, just those newly added by plugin.
2012-01-15*** empty log message ***gdbadmin1-1/+1
2012-01-14daily updateAlan Modra1-1/+1
2012-01-14 * NEWS: Update text for "maint set python print-stack".Doug Evans2-4/+14
It is deprecated in gdb 7.4 and deleted in 7.5.
2012-01-14gdb/testsuite/Jan Kratochvil3-0/+131
* gdb.dwarf2/dw2-namespaceless-anonymous.S: New file. * gdb.dwarf2/dw2-namespaceless-anonymous.exp: New file.