summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>Michael Snyder2010-10-012-7/+13
| | | | | * fork-child.c (breakup_args): Fix crash if shell forking is disabled at compile time.
* * lib/gdb-python.exp: New file.Doug Evans2010-10-0114-166/+85
| | | | | | | | | | | | | | | * gdb.python/py-block.exp: Use it. * gdb.python/py-breakpoint.exp: Ditto. * gdb.python/py-frame.exp: Ditto. * gdb.python/py-inferior.exp: Ditto. * gdb.python/py-param.exp: Ditto. * gdb.python/py-prettyprint.exp: Ditto. * gdb.python/py-shared.exp: Ditto. * gdb.python/py-symbol.exp: Ditto. * gdb.python/py-symtab.exp: Ditto. * gdb.python/py-type.exp: Ditto. * gdb.python/py-value.exp: Ditto. * gdb.python/python.exp: Ditto.
* [Ada] array and bounds in fat pointer can be a stubJoel Brobecker2010-10-012-4/+38
| | | | | | | | | | | | | | | | | | | | | | This patch adds handling of the case when a fat pointer has the P_ARRAY and/or P_BOUNDS fields defined as a stub. In that case, this stub needs to be resolved. There are two issues: . First, making sure that the resolution takes place itself. That's the change to ada_check_typedef. . Make sure that the type returned after resolution is not itself a typedef. This is the change to ada_check_typedef. gdb/ChangeLog (Jerome Guitton, Joel Brobecker): * ada-lang.c (desc_bounds): Add handling of the case where the P_BOUNDS field is a pointer to a stub. (desc_data_target_type): Same for P_ARRAY field. (ada_check_typedef): Strip the typedef layers from the type found by ada_find_any_type.
* [sparc] inferior SEGV while calling Ada subprogramJoel Brobecker2010-10-013-0/+23
| | | | | | | | | gdb/ChangeLog: * sparc-tdep.c (sparc32_frame_align): New function. (sparc32_gdbarch_init): Set the frame_align gdbarch method. * sparc64-tdep.c (sparc64_frame_align): New function. (sparc64_gdbarch_init): Set the frame_align gdbarch method.
* Set MAX_REGISTER_SIZE to 64.H.J. Lu2010-10-012-1/+5
| | | | | | 2010-09-30 H.J. Lu <hongjiu.lu@intel.com> * defs.h (MAX_REGISTER_SIZE): Set to 64.
* *** empty log message ***gdbadmin2010-10-011-1/+1
|
* * symfile.h (struct sym_fns) <next>: Remove.Tom Tromey2010-09-3011-44/+50
| | | | | | | | | | | | | | | | | | (add_symtab_fns): Update. * symfile.c (sym_fns_ptr): New typedef. (symtab_fns): Now a VEC. (add_symtab_fns): Update. Change argument type. (find_sym_fns): Update. Change return type. (get_symfile_segment_data): Update. * objfiles.h (struct objfile) <sf>: Now const. * somread.c (som_sym_fns): Now const. Update. * xcoffread.c (xcoff_sym_fns): Now const. Update. * mipsread.c (ecoff_sym_fns): Now const. Update. * machoread.c (macho_sym_fns): Now const. Update. * elfread.c (elf_sym_fns): Now const. Update. (elf_sym_fns_gdb_index): Likewise. * dbxread.c (aout_sym_fns): Now const. Update. * coffread.c (coff_sym_fns): Now const. Update.
* gdbTom Tromey2010-09-305-2/+77
| | | | | | | | * value.c (value_primitive_field): Take 'offset' into account for packed field. gdb/testsuite * gdb.base/anon.exp: New file. * gdb.base/anon.c: New file.
* gdbTom Tromey2010-09-305-5/+41
| | | | | | | | | | * completer.c (count_struct_fields): Handle anonymous structs and unions. (add_struct_fields): Likewise. gdb/testsuite * gdb.base/completion.exp: Test completion through anonymous union. * gdb.base/break1.c (struct some_struct): Add anonymous union.
* gdb/Jan Kratochvil2010-09-309-11/+296
| | | | | | | | | | | | | | | | | | | | | Fix printing parameters of inlined functions. * ada-lang.c (is_known_support_routine) (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter for find_frame_funname. * python/py-frame.c (frapy_name): Likewise. * stack.c (find_frame_funname): New parameter funcp. Update the function comment. Fill it in. (print_frame): New variable func. Initialize it by find_frame_funname. Print arguments only if FUNC is not NULL. Use FUNC as the parameter of print_args_stub. * stack.h (find_frame_funname): New parameter funcp. Remove the function declaration comment. gdb/testsuite/ Fix printing parameters of inlined functions. * gdb.dwarf2/dw2-inline-param.exp: New file. * gdb.dwarf2/dw2-inline-param-main.c: New file. * gdb.dwarf2/dw2-inline-param.S: New file.
* gdb/Jan Kratochvil2010-09-304-8/+58
| | | | | | | | | | | PR corefiles/12071. * inferior.c (have_live_inferiors): New variables old_chain, inf and tp. Iterate INFERIOR_LIST and call target_has_execution. gdb/testsuite/ PR corefiles/12071. * gdb.base/corefile.exp (quit with a process, no question: load core) (quit with a core file): New tests.
* *** empty log message ***gdbadmin2010-09-301-1/+1
|
* gdb/Jan Kratochvil2010-09-296-2/+231
| | | | | | | | | | | | Fix GDB crash on inferior calls with self-referencing classes. * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static member fields. gdb/testsuite/ Fix GDB crash on inferior calls with self-referencing classes. * gdb.dwarf2/dw2-cp-infcall-ref-static.exp: New file. * gdb.dwarf2/dw2-cp-infcall-ref-static-main.c: New file. * gdb.dwarf2/dw2-cp-infcall-ref-static.S: New file.
* Workaround for gcc/45682.Doug Evans2010-09-292-38/+180
| | | | | | | | | | | | | * dwarf2read.c (partial_die_info): New fields fixup_called, linkage_name. (guess_partial_die_structure_name): Renamed from guess_structure_name. Move definition next to use. Use linkage_name to determine if class is in a namespace. All callers updated. (fixup_partial_die): Return early if already called. Set fixup_called when done. (guess_full_die_structure_name): New function. (determine_prefix): Call it for class/struct/union dies if c++ and .debug_types section is present and parent is DW_TAG_compile_unit.
* *** empty log message ***gdbadmin2010-09-291-1/+1
|
* Add a sparc simulator with the sparc bareboard target.Joel Brobecker2010-09-282-5/+6
| | | | | | | gdb/ChangeLog: * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a. (sparc-*-rtems*): Delete, now redundant with the sparc-*-* case.
* [doco] document support for Ravenscar profileJoel Brobecker2010-09-284-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.
* Add support for GNAT Ravenscar run-time library.Joel Brobecker2010-09-285-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.
* [Ada] Add ada-tasks.c:iterate_over_live_ada_tasksJoel Brobecker2010-09-283-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.
* *** empty log message ***gdbadmin2010-09-281-1/+1
|
* * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.Pierre Muller2010-09-272-0/+39
| | | | | (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch skip_main_prologue method.
* * dwarf2read.c (dwarf2_read_index): Only allow version 3.Tom Tromey2010-09-272-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.
* * bcache.c (expand_hash_table): Use hash_function, not hash.Tom Tromey2010-09-272-1/+6
|
* * gdb_wchar.h: Change minimum libiconv to 0x108.Tom Tromey2010-09-272-5/+8
|
* *** empty log message ***gdbadmin2010-09-271-1/+1
|
* *** empty log message ***gdbadmin2010-09-261-1/+1
|
* *** empty log message ***gdbadmin2010-09-251-1/+1
|
* gdb/Jan Kratochvil2010-09-245-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.
* * dwarf2read.c (dw2_expand_symtabs_matching): Add missingTom Tromey2010-09-242-16/+19
| | | | | MAYBE_SWAPs. (dw2_map_symbol_names): Likewise.
* Fix find_oload_champ_namespace_loop memory leak.Sami Wagiaalla2010-09-242-1/+6
| | | | | | | 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com> * valops.c (find_oload_champ_namespace_loop): replace incorrect discard_cleanups do_cleanups.
* PR gdb/11842Pedro Alves2010-09-242-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.
* gdb/Pedro Alves2010-09-244-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.
* * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.Pedro Alves2010-09-242-3/+42
|
* *** empty log message ***gdbadmin2010-09-241-1/+1
|
* *** empty log message ***gdbadmin2010-09-231-1/+1
|
* [Ada] Do not compute task ptid when debugging core fileJoel Brobecker2010-09-222-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.
* Fix order of ChangeLog entries.Joel Brobecker2010-09-221-4/+4
| | | | (entry added at wrong location by patch).
* preserve columnar alignment.Joel Brobecker2010-09-222-1/+5
| | | | | | gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-const.S: Minor (space) reformatting.
* gdb/Jan Kratochvil2010-09-226-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.
* gdb/Jan Kratochvil2010-09-222-2/+10
| | | | | | * main.c: Include objfiles.h. (captured_main): New variable objfile. Call load_auto_scripts_for_objfile for ALL_OBJFILES.
* gdb/Jan Kratochvil2010-09-225-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.
* [testsuite] dw2-const.S: fix type reference size on 64bit platforms.Joel Brobecker2010-09-222-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.
* DWARF: Add support for DW_TAG_constant DIEsJoel Brobecker2010-09-225-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.
* Allow disabling of gdbserver build (--enable-gdbserver=yes/no/auto).Joel Brobecker2010-09-223-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.
* * gdb.texinfo (Values From Inferior): Mention Value.__init__.Tom Tromey2010-09-222-0/+39
|
* Fix PR 12028: "GDB crashes on a double free during overload resolution "Sami Wagiaalla2010-09-225-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.
* gdb.texinfo (Values From Inferior): Clarify thatEli Zaretskii2010-09-222-6/+17
| | | | value.dynamic_type works only in C++ programs with RTTI.
* *** empty log message ***gdbadmin2010-09-221-1/+1
|
* *** empty log message ***gdbadmin2010-09-211-1/+1
|
* *** empty log message ***gdbadmin2010-09-201-1/+1
|