aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-04-172012-04-17 Pedro Alves <palves@redhat.com>Pedro Alves7-19/+40
* gdbtypes.h (FIELD_BITPOS): Rename to ... (FIELD_BITPOS_LVAL): ... this. (FIELD_BITPOS): New. (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL. * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS. * gdbtypes.c (append_composite_type_field_aligned): Adjust to use SET_FIELD_BITPOS. * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use SET_FIELD_BITPOS. * stabsread.c (read_cpp_abbrev, read_one_struct_field) (read_baseclasses): Adjust to use SET_FIELD_BITPOS. * target-descriptions.c (tdesc_gdb_type): Adjust to use SET_FIELD_BITPOS.
2012-04-17gdb/Jan Kratochvil5-5/+14
Do not rely on FIELD_LOC_KIND_BITPOS being zero. * ada-lang.c (ada_template_to_fixed_record_type_1): Replace TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS. * gdbtypes.c (append_flags_type_flag): Likewise, twice. * jv-lang.c (java_link_class_type): Likewise, once. * stabsread.c (read_enum_type): Likewise.
2012-04-17*** empty log message ***gdbadmin1-1/+1
2012-04-16gdb/gdbserver/Yao Qi2-3/+17
* tracepoint.c (cmd_qtstart): Download tracepoints even when they are duplicated on address.
2012-04-16gdb/testsuite/Yao Qi10-12/+37
* lib/trace-support.exp (get_in_proc_agent): New. * gdb.trace/change-loc.exp: Call get_in_proc_agent to get the location of in process trace agent. * gdb.trace/ftrace.exp: Likewise. * gdb.trace/pending.exp: Likewise. * gdb.trace/trace-break.exp: Likewise. * gdb.trace/trace-mt.exp * gdb.trace/tspeed.exp: Likewise. * gdb.trace/tstatus.exp * gdb.trace/strace.exp: Likewise.
2012-04-16gdb/Yao Qi6-23/+230
* common/agent.c (agent_run_command): Add one more parameter `len'. Update callers. * common/agent.h: Update declaration. * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): Update. (linux_child_static_tracepoint_markers_by_strid): Ditto. gdb/gdbserver/ * tracepoint.c (COPY_FIELD_TO_BUF): New macro. (struct tracepoint_action_ops) <send>: New field. (m_tracepoint_action_send, r_tracepoint_action_send): New. (agent_expr_send, x_tracepoint_action_send): New. (l_tracepoint_action_send): New. (cmd_qtdp): Download and install tracepoint according to `use_agent'. (run_inferior_command): Add one more parameter `len'. Update callers. (tracepoint_send_agent): New. (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
2012-04-16gdb/gdbserver/Yao Qi2-69/+62
* tracepoint.c (download_tracepoints): Moved to ... (cmd_qtstart): ... here.
2012-04-16gdb/testsuite/Thomas Schwinge2-3/+12
* gdb.asm/sh.inc (gdbasm_startup): Only set up the stack pointer if the symbol _stack is defined. Get rid of a hard-coded constant for _stack.
2012-04-16gdb/testsuite/Thomas Schwinge2-1/+5
* gdb.asm/sh.inc (gdbasm_end) <.size>: Refer to the function's name.
2012-04-16*** empty log message ***gdbadmin1-1/+1
2012-04-15*** empty log message ***gdbadmin1-1/+1
2012-04-14gdb/doc/ChangeLog:Anton Gorenkov10-42/+742
2012-04-14 Anton Gorenkov <xgsa@yandex.ru> PR mi/13393 * gdb.texinfo (Print Settings): Extend the description for "set print object". (GDB/MI Variable Objects): Extend the description for -var-create and -var-list-children. gdb/testsuite/ChangeLog: 2012-04-14 Anton Gorenkov <xgsa@yandex.ru> PR mi/13393 * gdb.mi/mi-var-rtti.cc: New file. * gdb.mi/mi-var-rtti.exp: New file. * lib/mi-support.exp (mi_varobj_update_with_child_type_change): New function. (mi_varobj_update_with_type_change): updated to avoid code duplication. gdb/ChangeLog: 2012-04-14 Anton Gorenkov <xgsa@yandex.ru> PR mi/13393 * value.c (value_actual_type): New function. * value.h (value_actual_type): New declaration. * varobj.c (update_type_if_necessary): New function. (varobj_create): Call value_actual_type instead of value_type. (install_dynamic_child): distinct changed and type changed MI variable objects. (update_dynamic_varobj_children): Updated for install_dynamic_child change. All callers updated. (varobj_update): Support for MI variable object type change if the value changed and RTTI is used to determine the type. (create_child_with_value): Call value_actual_type instead of value_type. (adjust_value_for_child_access): Extended with a new parameter which specify whether the given value should be casted to enclosing type. All callers updated.
2012-04-14gdb/gdbserver/Yao Qi2-15/+27
* tracepoint.c: Include inttypes.h. (struct collect_memory_action): Use sized types. (struct tracepoint): Likewise. (cmd_qtdp, stop_tracing): Update print specifiers. (cmd_qtp, response_tracepoint): Likewise. (collect_data_at_tracepoint): Likewise. (collect_data_at_step): Likewise.
2012-04-14gdb/Yao Qi16-756/+5205
Import gnulib module inttypes from git (250b80067c1e1d8faa0c42fb572f721975b929c5) * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h. (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and gnulib/m4/inttypes-pri.m4 * aclocal.m4, config.in, configure: Regenerated. * gnulib/Makefile.am: Update. * gnulib/Makefile.in: Update. * gnulib/m4/gnulib-cache.m4: Update. * gnulib/m4/gnulib-comp.m4: Update. * gnulib/inttypes.in.h: New. * gnulib/m4/inttypes-pri.m4: New. * gnulib/m4/inttypes.m4: New. gdb/gdbserver/ Import gnulib module inttypes. * aclocal.m4, config.in, configure: Regenerated.
2012-04-14gdb/gdbserver/Yao Qi2-2/+7
* Makefile.in (maintainer-clean, realclean, distclean): Remove Makefile and config.status at last.
2012-04-14gdb/gdbserver/Yao Qi2-2/+5
* tracepoint.c: Include stdint.h unconditionally.
2012-04-14*** empty log message ***gdbadmin1-1/+1
2012-04-132012-04-13 Luis Machado <lgustavo@codesourcery.com>Luis Machado2-0/+9
* infrun.c (resume): Update PC address to the real PC after preparing to do displaced stepping.
2012-04-13 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro basedThiago Jung Bauermann5-2/+112
on BFD_HAVE_SYS_PROCFS_TYPE. * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. * configure: Regenerate. * config.in: Likewise.
2012-04-13Enable x32 support in gdbserverH.J. Lu4-7/+54
* Makefile.in (clean): Also remove x32.c x32-linux.c x32-avx.c x32-avx-linux.c. (x32.o): New target. (x32.c): Likewise. (x32-linux.o): Likewise. (x32-linux.c): Likewise. (x32-avx.o): Likewise. (x32-avx.c): Likewise. (x32-avx-linux.o): Likewise. (x32-avx-linux.c): Likewise. * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o. (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o. (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml. (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml. (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml i386/x32-avx-linux.xml. * linux-x86-low.c (init_registers_x32_linux): New prototype. (init_registers_x32_avx_linux): Likwise. (x86_linux_update_xmltarget): Call init_registers_x32_linux or init_registers_x32_avx_linux if linux_is_elf64 is false.
2012-04-132012-04-13 Pedro Alves <palves@redhat.com>Pedro Alves2-9/+23
* Makefile.in (GNULIB_FLAGS_TO_PASS): New. (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH. (all, uninstall, clean-info, all-lib, clean, maintainer-clean) (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to the sub-make.
2012-04-13 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.Doug Evans2-3/+8
All callers updated.
2012-04-13*** empty log message ***gdbadmin1-1/+1
2012-04-12Convert siginfo for x32 in gdbserverH.J. Lu2-0/+206
* linux-x86-low.c (compat_x32_clock_t): New. (compat_x32_siginfo_t): Likewise. (compat_x32_siginfo_from_siginfo): Likewise. (siginfo_from_compat_x32_siginfo): Likewise. (linux_is_elf64): Likewise. (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo and siginfo_from_compat_x32_siginfo for x32. (x86_arch_setup): Set linux_is_elf64.
2012-04-12Check if GDBserver is compatible with processH.J. Lu4-16/+44
PR gdb/13969 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the e_machine field. (linux_qxfer_libraries_svr4): Update call to elf_64_file_p. * linux-low.h (linux_pid_exe_is_elf_64_file): Updated. * linux-x86-low.c (x86_arch_setup): Check if GDBserver is compatible with process.
2012-04-12gdb/gdbserver/Yao Qi6-122/+4906
* Makefile.in: Define abs_top_srcdir and abs_srcdir. (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. (install-only, install-info, clean): Handle sub dir gnulib. (all-lib, am--refresh): New targets. (memmem.o): Remove target. * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. (AC_REPLACE_FUNCS): Remove memmem. Invoke gl_INIT and AM_INIT_AUTOMAKE. (AC_OUTPUT): Generate Makefile in gnulib/. * aclocal.m4, config.in, configure: Regenerated.
2012-04-12* i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.Mark Kettenis2-0/+7
2012-04-12 * dwarf2read.c (create_all_type_units): Renamed fromDoug Evans2-6/+9
create_debug_types_hash_table. All callers updated.
2012-04-12 * dwarf2read.c (create_signatured_type_table_from_index): RenameDoug Evans2-52/+65
local type_sig to sig_type, type_offset to type_offset_in_tu. (hash_signatured_type): Renamed from hash_type_signature, all callers updated. (eq_signatured_type): Renamed from eq_type_signature, all callers updated. (create_debug_types_hash_table): Rename local type_sig to sig_type. (process_enumeration_scope): Ditto. (lookup_signatured_type_at_offset): Ditto. (load_full_type_unit, read_signatured_type): Ditto.
2012-04-12gdb/Yao Qi2-2/+8
* remote.c (async_remote_interrupt): Correct function name in debug message. (async_remote_interrupt_twice): Ditto.
2012-04-12*** empty log message ***gdbadmin1-1/+1
2012-04-11 * source.c (find_and_open_source): Consistently pass resultingDoug Evans2-1/+15
full path through xfullpath.
2012-04-11gdb/Jan Kratochvil2-1/+14
Provide more specific displaced-stepping memory error message. * infrun.c (displaced_step_prepare): New variable status. Call target_read_memory instead of read_memory, provide more specific error message.
2012-04-112012-04-11 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-16/+5
PR gdb/13901 * darwin-nat.c (darwin_execvp): Revert previous patch.
2012-04-112012-04-11 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-6/+15
PR gdb/13901 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only in case of change.
2012-04-112012-04-11 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+7
* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix warning.
2012-04-11Fixed a couple of ChangeLog entries.Siva Chandra Reddy2-3/+3
2012-04-112012-04-02 Siva Chandra Reddy <sivachandra@google.com>Siva Chandra Reddy12-2/+1688
New command 'explore' which helps explore values and types in scope. * NEWS: Add an entry about the new 'explore' command. * data-directory/Makefile.in: Add gdb/command/explore.py * python/lib/gdb/command/explore.py: Implemention of the 'explore' command using the GDB Python API. * doc/gdb.texinfo (Examining Data): Document the 'explore' command. * testsuite/gdb.python/Makefile.in: Add py-explore to EXECUTABLES. * testsuite/gdb.python/py-explore.c: C program used for testing the new 'explore' command on C constructs. * testsuite/gdb.python/py-explore.cc: C++ program used for testing the new 'explore' command on C++ constructs. * testsuite/gdb-python/py-explore.exp: Tests for the new 'explore' command on C constructs. * testsuite/gdb-python/py-explore-cc.exp: Tests for the new 'explore' command on C++ constructs.
2012-04-11*** empty log message ***gdbadmin1-1/+1
2012-04-10 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct signMaciej W. Rozycki2-2/+7
extension in jump target calculation.
2012-04-10 * mips-tdep.c (mips32_next_pc): Handle JALX.Maciej W. Rozycki2-8/+14
2012-04-10gdb/Yao Qi2-1/+5
* Makefile.in (gnulib/Makefile): Remove duplicated dependency.
2012-04-10gdb/Yao Qi2-0/+7
* Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4 and gnulib/m4/gnulib-tool.m4.
2012-04-10 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.Maciej W. Rozycki2-7/+44
2012-04-10 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.Doug Evans2-28/+44
(load_partial_dies): Clarify comment. (find_partial_die): Support rereading type units. Clarify CU handling, if we know offset is in CU, don't search for the containing CU. Add comment regarding memory waste.
2012-04-10Add x32 XML filesH.J. Lu15-0/+1095
* features/Makefile (WHICH): Add i386/x32, i386/x32-linux, i386/x32-avx and i386/x32-avx-linux. (i386/x32-expedite): New. (i386/x32-linux-expedite): Likewise. (i386/x32-avx-expedite): Likewise. (i386/x32-avx-linux-expedite): Likewise. ($(outdir)/i386/x32.dat): Likewise. ($(outdir)/i386/x32-linux.dat): Likewise. ($(outdir)/i386/x32-avx.dat): Likewise. ($(outdir)/i386/x32-avx-linux.dat): Likewise. * features/i386/x32-avx-linux.xml: New file. * features/i386/x32-avx.xml: Likewise. * features/i386/x32-core.xml: Likewise. * features/i386/x32-linux.xml: Likewise. * features/i386/x32.xml: Likewise. * features/i386/x32-avx-linux.c: New. Generated. * features/i386/x32-avx.c: Likewise. * features/i386/x32-linux.c: Likewise. * features/i386/x32.c: Likewise. * regformats/i386/x32-avx-linux.dat: Likewise. * regformats/i386/x32-avx.dat: Likewise. * regformats/i386/x32-linux.dat: Likewise. * regformats/i386/x32.dat: Likewise.
2012-04-102012-04-10 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-22/+14
* darwin-nat.c (darwin_kill_inferior): Always use the no ptrace code to kill the inferior.
2012-04-10*** empty log message ***gdbadmin1-1/+1
2012-04-09* ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): NewMark Kettenis9-0/+67
defines. * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New defines. * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs) (yyvsp): New defines. * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New defines. * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New defines. * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New defines. * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New defines. * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New defines.
2012-04-09* sparc64-tdep.c (sparc64_store_arguments)Mark Kettenis2-4/+9
(sparc64_store_arguments): Fix coding style.