aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-09-29*** empty log message ***gdbadmin1-1/+1
2010-09-28Add a sparc simulator with the sparc bareboard target.Joel Brobecker2-5/+6
gdb/ChangeLog: * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a. (sparc-*-rtems*): Delete, now redundant with the sparc-*-* case.
2010-09-28[doco] document support for Ravenscar profileJoel Brobecker4-0/+45
This announces the support for debugging Ada programs using the Ravenscar Profile, as well as documents the new commands introduced as part of this effort. gdb/ChangeLog: * NEWS: Announce Ravenscar Profile support. gdb/doc/ChangeLog: * gdb.texinfo (Ravenscar Profile): New node.
2010-09-28Add support for GNAT Ravenscar run-time library.Joel Brobecker5-1/+670
gdb/ChangeLog (Jerome Guitton, Joel Brobecker): * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c: New files. * configure.tgt (sparc-*-*): Add ravenscar-thread.o and ravenscar-sparc-thread.o to gdb_target_obs.
2010-09-28[Ada] Add ada-tasks.c:iterate_over_live_ada_tasksJoel Brobecker3-0/+30
This new function is needed by the ravenscar-thread layer. gdb/ChangeLog: * ada-tasks.c (iterate_over_live_ada_tasks): New function. * ada-lang.h (iterate_over_live_ada_tasks): Declare.
2010-09-28*** empty log message ***gdbadmin1-1/+1
2010-09-27 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.Pierre Muller2-0/+39
(amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch skip_main_prologue method.
2010-09-27 * dwarf2read.c (dwarf2_read_index): Only allow version 3.Tom Tromey2-45/+92
(write_psymbols): Add 'psyms_seen' and 'is_static' arguments. Only emit a given psymbol once. (struct signatured_type_index_data) <psyms_seen>: New field. (write_one_signatured_type): Update. (cleanup_htab): New function. (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump version to 3. (save_gdb_index_command): Update index documentation.
2010-09-27 * bcache.c (expand_hash_table): Use hash_function, not hash.Tom Tromey2-1/+6
2010-09-27 * gdb_wchar.h: Change minimum libiconv to 0x108.Tom Tromey2-5/+8
2010-09-27*** empty log message ***gdbadmin1-1/+1
2010-09-26*** empty log message ***gdbadmin1-1/+1
2010-09-25*** empty log message ***gdbadmin1-1/+1
2010-09-24gdb/Jan Kratochvil5-3/+200
Fix lost siginfo_t for inferior calls. * infrun.c (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New. (save_inferior_thread_state): New variables regcache, gdbarch and siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p. Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS using REGCACHE. (restore_inferior_thread_state): New variables regcache and gdbarch. Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using REGCACHE. Free also SIGINFO_DATA. gdb/testsuite/ Fix lost siginfo_t for inferior calls. * gdb.base/siginfo-infcall.exp: New file. * gdb.base/siginfo-infcall.c: New file.
2010-09-24 * dwarf2read.c (dw2_expand_symtabs_matching): Add missingTom Tromey2-16/+19
MAYBE_SWAPs. (dw2_map_symbol_names): Likewise.
2010-09-24Fix find_oload_champ_namespace_loop memory leak.Sami Wagiaalla2-1/+6
2010-09-24 Sami Wagiaalla <swagiaal@redhat.com> * valops.c (find_oload_champ_namespace_loop): replace incorrect discard_cleanups do_cleanups.
2010-09-24 PR gdb/11842Pedro Alves2-0/+4
gdb/ * amd64-linux-nat.c (compat_siginfo_from_siginfo) (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when si_code is < 0. Check for si_code == SI_TIMER before checking for si_code < 0. gdb/gdbserver/ * linux-x86-low.c (compat_siginfo_from_siginfo) (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when si_code is < 0. Check for si_code == SI_TIMER before checking for si_code < 0.
2010-09-24 gdb/Pedro Alves4-16/+38
* amd64-linux-nat.c (compat_siginfo_from_siginfo) (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when si_code is < 0. Check for si_code == SI_TIMER before checking for si_code < 0. gdb/gdbserver/ * linux-x86-low.c (compat_siginfo_from_siginfo) (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when si_code is < 0. Check for si_code == SI_TIMER before checking for si_code < 0.
2010-09-24 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.Pedro Alves2-3/+42
2010-09-24*** empty log message ***gdbadmin1-1/+1
2010-09-23*** empty log message ***gdbadmin1-1/+1
2010-09-22[Ada] Do not compute task ptid when debugging core fileJoel Brobecker2-3/+17
After thread support over core files was added for GNU/Linux was added, we started noticing the following type of crash when trying to perform task switches (this is a bit accademic, since task switching is not supported when debugging core files - this is what our testcase was verifying). (please check out the comment inside ada-tasks.c:task_command for more details on this topic) The reason for the crash comes from the fact that the GNU/Linux thread layer now gets pushed on the target stack, causing the associated to_get_ada_task_ptid target method to be activated. This routine makes the assumption that, for all threads, the private area is not NULL. This is incorrect in the case of core files, as the core layer creates some threads with no private data. But, taking a step back, we don't need to try to compute the task ptid, as we'll never be using it anyways (we only use it for task switching). So the fix is to avoid the ptid computation altogether when debugging a core file. gdb/ChangeLog: * ada-tasks.c (read_atcb): Do not compute the task ptid when debugging a core file.
2010-09-22Fix order of ChangeLog entries.Joel Brobecker1-4/+4
(entry added at wrong location by patch).
2010-09-22preserve columnar alignment.Joel Brobecker2-1/+5
gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-const.S: Minor (space) reformatting.
2010-09-22gdb/Jan Kratochvil6-14/+18
Code cleanup. * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove. (free_objfile) <objfile->name != NULL>: Remove the conditional around xfree. * objfiles.h (struct objfile) <name>: New comment it is never NULL. * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>: Remove. * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name> Remove the conditional. * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
2010-09-22gdb/Jan Kratochvil2-2/+10
* main.c: Include objfiles.h. (captured_main): New variable objfile. Call load_auto_scripts_for_objfile for ALL_OBJFILES.
2010-09-22gdb/Jan Kratochvil5-0/+16
* dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also DW_TAG_constant. gdb/testsuite/ * gdb.fortran/module.exp (fully qualified name of DW_TAG_constant): New test. * gdb.fortran/module.f90 (mod1) <var_const>: New constant.
2010-09-22[testsuite] dw2-const.S: fix type reference size on 64bit platforms.Joel Brobecker2-1/+6
The testcase was failing on various 64bit platforms, because the debugging info said that the target type for a const type is a 4-byte reference. In the asm file, I used a .long directive, but the size of .long is of course dependent on the platform. This replaces this .long by a .4byte directive. gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-const.S: Use .4byte to reference the target type of our const type.
2010-09-22DWARF: Add support for DW_TAG_constant DIEsJoel Brobecker5-0/+298
gdb/ChangeLog: * dwarf2read.c (scan_partial_symbols): Add handling of DW_TAG_constant DIEs. (add_partial_symbol, load_partial_dies, new_symbol): Likewise. gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-const.S, gdb.dwarf2/dw2-const.exp: New files.
2010-09-22Allow disabling of gdbserver build (--enable-gdbserver=yes/no/auto).Joel Brobecker3-4/+47
This patch adds a new --enable-gdbserver=yes/no/auto command-line switch in gdb/configure. The primary purpose is to allow a user to disable the build & install of gdbserver when not desired. It also allows the user to request gdbserver in which case the configure script will abort if automatic building of gdbserver is not supported for that configuration. The default keeps things as is: We automatically build gdbserver if building for a native configuration and if gdbserver is supported for that configuration. gdb/ChangeLog: * configure.ac: Add support for --enable-gdbserver. * configure: Regenerate. At AdaCore, this is mostly intended for ia64-linux, where we currently do not want to distribute gdbserver. This will be useful in the context of I417-033, where we are now using "make install" to determine what needs to be packaged inside the GNAT Pro package.
2010-09-22 * gdb.texinfo (Values From Inferior): Mention Value.__init__.Tom Tromey2-0/+39
2010-09-22Fix PR 12028: "GDB crashes on a double free during overload resolution "Sami Wagiaalla5-1/+62
2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> PR C++/12028 * valops.c (find_oload_champ_namespace_loop): removed incorrect 'old_cleanups' reassignment. 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/pr12028.cc: New. * gdb.cp/pr12028.exp: New.
2010-09-22 gdb.texinfo (Values From Inferior): Clarify thatEli Zaretskii2-6/+17
value.dynamic_type works only in C++ programs with RTTI.
2010-09-22*** empty log message ***gdbadmin1-1/+1
2010-09-21*** empty log message ***gdbadmin1-1/+1
2010-09-20*** empty log message ***gdbadmin1-1/+1
2010-09-19*** empty log message ***gdbadmin1-1/+1
2010-09-18*** empty log message ***gdbadmin1-1/+1
2010-09-17*** empty log message ***gdbadmin1-1/+1
2010-09-16gdb/Jan Kratochvil2-2/+12
* charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted characters.
2010-09-162010-09-16 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon7-17/+388
PR mi/11407 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from read_var_value and common_val_print and print a warning. 2010-09-16 Phil Muldoon <pmuldoon@redhat.com> Jan Kratochvil <jan.kratochvil@redhat.com> PR mi/11407 * gdb.mi/dw2-ref-missing-frame-func.c: New File. * gdb.mi/dw2-ref-missing-frame-main.c New File. * gdb.mi/dw2-ref-missing-frame.S New File. * gdb.mi/dw2-ref-missing-frame.exp New File.
2010-09-16*** empty log message ***gdbadmin1-1/+1
2010-09-15gdb/Jan Kratochvil2-1/+6
* MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to keep the list in alphabetical order. Use longer e-mail address.
2010-09-15 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.Tom Tromey2-0/+5
2010-09-15 * charset.c (iconv_open): New define.Tom Tromey3-15/+65
(iconv): Likewise. (iconv_close): Likewise. (phony_iconv_open): Add "phony_" prefix. (phony_iconv_close): Likewise. (phony_iconv): Likewise. * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__. Change how INTERMEDIATE_ENCODING is defined.
2010-09-152010-09-15 Paul Bolle <pebolle@tiscali.nl>Tom Tromey2-1/+6
* gdb.texinfo (Character Sets): Correctly reference host-charset in example.
2010-09-15 * dwarf2read.c (struct die_info): Fix comment.Doug Evans2-2/+5
2010-09-15 PR 4606Alan Modra2-3/+8
* gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather than setting SEC_NEVER_LOAD on sections that need not be copied.
2010-09-15*** empty log message ***gdbadmin1-1/+1
2010-09-14 * psympriv.h (add_psymbol_to_list, init_psymbol_list)Tom Tromey4-57/+64
(start_psymtab_common, allocate_psymtab, discard_psymtab): Declare. * symfile.h (extend_psymbol_list): Remove. (add_psymbol_to_list, init_psymbol_list, start_psymtab_common) (allocate_psymtab, discard_psymtab): Move to psympriv.h. * psymtab.c (extend_psymbol_list): Move earlier. Now static.