aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2009-07-17 * solib.c (solib_bfd_open): Do not call ops->bfd_open.Ulrich Weigand11-8/+25
(solib_map_sections): Call ops->bfd_open instead of solib_bfd_open. * solib-frv.c (_initialize_frv_solib): Initialize bfd_open member. * solib-irix.c (_initialize_irix_solib): Likewise. * solib-null.c (_initialize_null_solib): Likewise. * solib-osf.c (_initialize_osf_solib): Likewise. * solib-pa64.c (_initialize_pa64_solib): Likewise. * solib-som.c (_initialize_som_solib): Likewise. * solib-sunos.c (_initialize_sunos_solib): Likewise. * solib-svr4.c (_initialize_svr4_solib): Likewise. * solib-target.c (_initialize_solib_target): Likewise.
2009-07-17 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.Ulrich Weigand2-2/+6
2009-07-17*** empty log message ***gdbadmin1-1/+1
2009-07-16 * linux-thread.db.c (try_thread_db_load_1): Tweak comment.Doug Evans2-4/+8
2009-07-162007-07-16 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+32
* linux-thread-db.c (thread_db_find_new_threads_silently): New function. (try_thread_db_load_1): Call it.
2009-07-16*** empty log message ***gdbadmin1-1/+1
2009-07-15 Code reorg in preparation for adding comdat types support.Doug Evans2-312/+430
* dwarf2read.c (struct die_reader_specs): New struct. (locate_pdi_sibling): New arg buffer. All callers updated. (load_partial_dies, read_partial_die): Ditto. (read_8_bytes): Change return type to ULONGEST. (read_comp_unit): Delete arg abfd. All callers updated. (read_die_and_children_1): Delete args abfd, cu. New arg reader. All callers updated. (read_die_and_children, read_die_and_siblings): Ditto. (read_full_die): Ditto. Move closer to callers. (skip_one_die): New arg buffer. All callers updated. (load_full_comp_unit): Change return type to void. All callers updated. (partial_read_comp_unit_head): New args buffer, buffer_size. All callers updated. (process_psymtab_comp_unit): New function, split out from dwarf2_build_psymtabs_hard. (dwarf2_build_psymtabs_hard): Call it. (load_partial_comp_unit): Renamed from load_comp_unit. All callers updated. (skip_children): New arg buffer. All callers updated. (init_cu_die_reader): New function. (is_ref_attr): New function. (dwarf2_get_ref_die_offset): Call it. (alloc_one_comp_unit): New function.
2009-07-152009-07-14 Michael Snyder <msnyder@vmware.com>Michael Snyder2-34/+9
* gdb.reverse/finish-reverse.exp: Do not expect reverse-finish to bring gdb to the beginning of the calling line.
2009-07-152009-07-14 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+10
* gdb.arch/i386-signal.c (sigframe): Add a nop to avoid confusing the i386 epilogue unwinder.
2009-07-15*** empty log message ***gdbadmin1-1/+1
2009-07-14 * MAINTAINERS (Global Maintainers): Add Doug Evans.Stan Shebs2-0/+5
2009-07-14 gdb/Stan Shebs11-10/+292
Conditional tracepoints. * ax-gdb.h (gen_eval_for_expr): Declare. * ax-gdb.c (gen_expr): Generate bytecodes for BINOP_EQUAL and other comparisons. (gen_eval_for_expr): New function. (agent_eval_command): New maintenance command. (_initialize_ax_gdb): Define the command. * remote.c (struct remote_state): New field cond_tracepoints. (PACKET_ConditionalTracepoints): New packet config type. (remote_cond_tracepoint_feature): New function. (remote_protocol_features): Add ConditionalTracepoints. (remote_supports_cond_tracepoints): New function. (_initialize_remote): Add ConditionalTracepoints. * tracepoint.c (download_tracepoint): Add conditional. * NEWS: Mention conditional tracepoints. gdb/doc/ * gdb.texinfo (Tracepoint Conditions): New section. (General Query Packets): Describe ConditionalTracepoints. (Tracepoint Packets): Describe condition field. (Maintenance Commands): Describe maint agent-eval. * agentexpr.texi (Using Agent Expressions): Mention eval usage. gdb/testsuite/ * gdb.trace/tracecmd.exp: Add basic test of tracepoint conditions.
2009-07-142009-07-14 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+12
* gdb.reverse/step-reverse.exp (stepi into function call): Call instruction may not be first instruction in the line. (reverse stepi from a function call): Used wrong line number.
2009-07-14 * objfiles.c (objfile_relocate): Do not relocate the sameUlrich Weigand2-3/+9
BLOCKVECTOR_MAP address map multiple times.
2009-07-14 * remote.c (process_stop_reply): Access expedited target registersUlrich Weigand2-2/+8
in target_gdbarch.
2009-07-14*** empty log message ***gdbadmin1-1/+1
2009-07-13gdb/Jan Kratochvil5-0/+91
Fix memory access from signed 32bit inferior registers on 64bit GDB. * linux-nat.c (linux_xfer_partial <TARGET_OBJECT_MEMORY>): New variable addr_bit. Mask OFFSET by the ADDR_BIT width. gdb/testsuite/ * gdb.arch/amd64-i386-address.exp, gdb.arch/amd64-i386-address.S: New.
2009-07-13gdb/testsuite/Jan Kratochvil5-54/+22
Fix gdb.base/macscp.exp when using custom inputrc. * gdb.base/completion.exp: Remove env(INPUTRC) set and restore. * gdb.base/readline.exp: Remove env(INPUTRC) set and restore. Remove env(TERM) set. * gdb.cp/cpcompletion.exp: Remove env(INPUTRC) set. * lib/gdb.exp (default_gdb_start): Add env(INPUTRC) and env(TERM) set.
2009-07-13gdb/testsuite/Jan Kratochvil13-139/+51
Fix racy clashing of output files for gdb.base{1,2}/ parallel run. * gdb.base/annota1.exp (thread_test): Import global $testfile. Change the compilation target to match the testcase name. * gdb.base/sect-cmd.exp: Change the compilation target to match the testcase name. * a2-run.exp: Use for setup prepare_for_testing. Change the compilation target to match the testcase name. * gdb.base/commands.exp: Likewise. * gdb.base/finish.exp: Likewise. * gdb.base/float.exp: Likewise. * gdb.base/info-target.exp: Likewise. * gdb.base/relational.exp: Likewise. * gdb.base/term.exp: Likewise. * gdb.base/until.exp: Likewise. * gdb.base/volatile.exp: Likewise. * gdb.base/whatis-exp.exp: Likewise.
2009-07-13Add process recording support to the moxie gdb port.Anthony Green2-2/+458
2009-07-13*** empty log message ***gdbadmin1-1/+1
2009-07-122009-07-12 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+103
* i386-tdep.c: Add a frame unwinder for function epilogues. (i386_in_function_epilogue_p): New function. (i386_epilogue_frame_sniffer): New function. (i386_epilogue_frame_cache): New function. (i386_epilogue_frame_this_id): New function. (i386_epilogue_frame_unwind): New struct frame_unwind. (i386_gdbarch_init): Hook the new unwinder.
2009-07-12*** empty log message ***gdbadmin1-1/+1
2009-07-11This is the part of prev commit.Hui Zhu1-1/+1
2009-07-112009-07-11 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* gdb.base/help.exp (disassemble): Update expected help text.
2009-07-112009-07-11 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+9
* gdb.texinfo (disassemble): Add a new modifier /r to "disassemble" command to make it print the raw instructions in hex as well as in symbolic form.
2009-07-112009-07-11 Hui Zhu <teawater@gmail.com>Hui Zhu7-26/+80
* cli/cli-cmds.c (disassemble_command): Add a new modifier /r to "disassemble" command to print the raw instructions in hex as well as in symbolic form. (init_cli_cmds): Ditto. (print_disassembly): Change "mixed" to "flags" to translate the behavior of disassemble. (disassemble_current_function): Ditto. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto. * stack.c (gdb_disassembly_stub): Ditto. * disasm.c (do_mixed_source_and_assembly): Ditto. (do_mixed_source_and_assembly): Ditto. (do_assembly_only): Ditto. (gdb_disassembly): Ditto. (dump_insns): print the raw instructions in hex as well as in symbolic form if DISASSEMBLY_RAW_INSN and flags is true. * disasm.h (DISASSEMBLY_SOURCE): Include source code with the assembly if it and flags is true. (DISASSEMBLY_RAW_INSN): Include the raw instructions in hex with the assembly if it and flags is true. (gdb_disassembly): Update extern. * NEWS: Document disassemble/r support.
2009-07-11*** empty log message ***gdbadmin1-1/+1
2009-07-10 * gdbint.texinfo (Testsuite): Document parallel make check.Tom Tromey2-0/+14
2009-07-10gdb/docTom Tromey4-0/+76
* gdbint.texinfo (Testsuite): Document test transcripts. gdb/testsuite * lib/gdb.exp: Handle TRANSCRIPT. (remote_spawn, remote_close, send_gdb): New procs.
2009-07-10bfdTom Tromey7-6/+15
* Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h. (elf-eh-frame.lo): Likewise. (elf32-bfin.lo): Likewise. (elf32-frv.lo): Likewise. (elf32-xc16x.lo): Likewise. * Makefile.in: Rebuild. * dwarf2.c: Included dwarf.h, not elf/dwarf2.h. * elf-eh-frame.c: Likewise. * elf32-bfin.c: Likewise. * elf32-frv.c: Likewise. * elf32-xc16x.c: Likewise. binutils * Makefile.am (dwarf.o): Refer to dwarf2.h, not elf/dwarf2.h. * Makefile.in: Rebuild. * dwarf.c: Include dwarf2.h, not elf/dwarf2.h. gas * Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not elf/dwarf2.h. (DEPTC_alpha_elf): Likewise. (DEPTC_alpha_evax): Likewise. (DEPTC_arm_elf): Likewise. (DEPTC_hppa_elf): Likewise. (DEPTC_i386_aout): Likewise. (DEPTC_i386_coff): Likewise. (DEPTC_i386_elf): Likewise. (DEPTC_m68k_aout): Likewise. (DEPTC_m68k_coff): Likewise. (DEPTC_m68k_elf): Likewise. (DEPTC_mips_coff): Likewise. (DEPTC_mips_ecoff): Likewise. (DEPTC_mips_elf): Likewise. (DEPTC_ppc_coff): Likewise. (DEPTC_ppc_elf): Likewise. (DEPTC_s390_elf): Likewise. (DEPTC_sh_coff): Likewise. (DEPTC_sh_elf): Likewise. (DEPTC_sh64_elf): Likewise. (DEPTC_sparc_aout): Likewise. (DEPTC_sparc_coff): Likewise. (DEPTC_sparc_elf): Likewise. (as.o): Likewise. (dwarf2dbg.o): Likewise. (dw2gencfi.o): Likewise. (ehopt.o): Likewise. (read.o): Likewise. * Makefile.in: Rebuild. * dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h. * dwarf2dbg.c: Likewise. * ehopt.c: Likewise. gdb * dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h. * dwarf2expr.c: Likewise. * dwarf2loc.c: Likewise. * dwarf2read.c: Likewise. * sh-tdep.c: Likewise. * xtensa-tdep.c: Likewise. include * dwarf2.h: New file, moved from elf/. include/elf * dwarf2.h: Move to `..'.
2009-07-10gdb/Jan Kratochvil2-23/+25
Tidy up the code. * mi/mi-cmd-var.c (mi_cmd_var_update): Remove variable nv. Move variables var, rootlist and cr to their local sub-block. Move the make_cleanup_ui_out_tuple_begin_end, make_cleanup_ui_out_list_begin_end and do_cleanups calls to the common base block. Remove the zero NV check.
2009-07-102009-07-10 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon16-83/+267
* python/python-internal.h (apply_varobj_pretty_printer): Update definition. (python_string_to_target_python_string): Add definition. * python/python-utils.c (unicode_to_encoded_python_string) (unicode_to_target_python_string) (python_string_to_target_python_string): New Functions. * python/python-prettyprint.c (pretty_print_one_value): Likewise. (print_string_repr): Refactor to logic to account for PyObject returned strings. (apply_varobj_pretty_printer): Likewise. * python/python-value.c (valpy_string): Parse length keyword. Use length keyword in LA_GET_STRING. * varobj.c (value_get_print_value): Refactor logic to account for PyObject returned strings. * c-lang.c (c_get_string): If the length parameter is specified, use that. Return value in characters. Update comments. * language.h: Update c_get_string prototype comments. 2009-07-10 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Values From Inferior): Add length parameter description. 2009-07-10 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/python-prettyprint.c: Add counted null string structure. * gdb.python/python-prettyprint.exp: Print null string. Test for embedded nulls. * gdb.python/python-prettyprint.py (pp_ns): New Function. * gdb.python/python-value.exp (test_value_in_inferior): Add variable length string fetch tests. * gdb.python/python-value.c (main): Add strings for string fetch tests.
2009-07-10*** empty log message ***gdbadmin1-1/+1
2009-07-09 * i386-tdep.c (i386_displaced_step_fixup): Fix order of argumentsDoug Evans2-1/+6
to read_memory_unsigned_integer.
2009-07-09gdb/Jan Kratochvil4-2/+17
Report error on inaccessible memory. * cli/cli-dump.c: Include gdbcore.h. (dump_memory_to_file): Call read_memory instead of target_read_memory. gdb/testsuite/ * gdb.base/dump.exp (inaccessible memory is reported): New test.
2009-07-092009-07-09 Hui Zhu <teawater@gmail.com>Hui Zhu2-0/+13
* solib.c (solib_bfd_open): Output a warning if solib's architecture is not compatible with inferior's architecture.
2009-07-09gdb/Jan Kratochvil2-2/+17
* target.h (struct target_ops <to_thread_architecture>): Describe it. (target_thread_architecture): Refer to to_thread_architecture.
2009-07-09 * cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.Pierre Muller2-0/+5
2009-07-09*** empty log message ***gdbadmin1-1/+1
2009-07-08 * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.Ulrich Weigand2-1/+6
2009-07-08*** empty log message ***gdbadmin1-1/+1
2009-07-07 * breakpoint.c (set_raw_breakpoint): Remove static modifier.Pierre Muller2-2/+8
2009-07-07gdbTom Tromey17-65/+106
* c-lang.c (convert_octal): Only allow 3 octal digits. (print_wchar): Prefer 3-digit octal form. Fall back to hex if needed. * c-exp.y (c_parse_escape): Only allow 3 octal digits. gdb/testsuite * gdb.base/call-rt-st.exp: Update for change to escape output. * gdb.base/callfuncs.exp: Likewise. * gdb.base/charset.exp: Likewise. * gdb.base/constvars.exp: Likewise. * gdb.base/long_long.exp: Likewise. * gdb.base/pointers.exp: Likewise. * gdb.base/printcmds.exp: Likewise. * gdb.base/setvar.exp: Likewise. * gdb.base/store.exp: Likewise. * gdb.cp/ref-types.exp: Likewise. * gdb.mi/mi-var-child.exp: Likewise. * gdb.mi/mi-var-display.exp: Likewise. * gdb.mi/mi2-var-display.exp: Likewise. * gdb.base/charset.exp: Test octal escape sequence length. Update for change to escape output.
2009-07-072009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-9/+6
* python/python-value.c (valpy_getitem): Remove incorrect assert.
2009-07-072009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-6/+14
* python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.
2009-07-072009-07-07 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla4-37/+52
* cp-support.h (struct using_direct): Rename members inner and outer to import_src, and import_dest respectively. * cp-namespace.c (cp_add_using_directive): Update. (cp_add_using): Update. (cp_copy_usings): Update. (cp_lookup_symbol_namespace): Update. (cp_scan_for_anonymous_namespaces): Update. * cp-support.c (make_symbol_overload_list_using): Update. * cp-support.h (cp_add_using_directive, cp_add_using): Rename arguments from inner and outer to src and dest respectively. * cp-namespace.c (cp_add_using_directive): Ditto. (cp_add_using): Ditto.
2009-07-07gdb/Jan Kratochvil3-10/+8
* mi/mi-cmd-var.c (mi_cmd_var_update): Replace a while loop by for loop. * varobj.c (varobj_invalidate): Replace a while loop by for loop.
2009-07-07gdb/testsuite/Jan Kratochvil2-0/+8
* gdb.mi/mi2-var-cmd.exp (floating varobj invalidation): New test.
2009-07-07 Fix hang in floating varobjs.Vladimir Prus2-1/+10
* varob.c (varobj_invalidate): Advance to next element when processing floating varobj.