aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-10-01 * symfile.h (allocate_symtab): Update.Tom Tromey11-24/+45
* symfile.c (allocate_symtab): Make 'filename' const. * psymtab.c (add_psymbol_to_bcache): Make 'name' const. (add_psymbol_to_list): Likewise. * psympriv.h (struct partial_symtab) <filename, dirname>: Now const. (add_psymbol_to_list): Update. * mdebugread.c (new_symtab): Make 'name' const. (psymtab_to_symtab_1): Make 'filename' const. * elfread.c (elfstab_offset_sections): Update. * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const. (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const. (psymtab_include_file_name): Update. * dbxread.c (find_stab_function_addr): Make 'filename' const. * buildsym.h (start_subfile): Update. * buildsym.c (start_subfile): Make arguments const.
2010-10-012010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>Michael Snyder2-7/+13
* fork-child.c (breakup_args): Fix crash if shell forking is disabled at compile time.
2010-10-01 * lib/gdb-python.exp: New file.Doug Evans14-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.
2010-10-01[Ada] array and bounds in fat pointer can be a stubJoel Brobecker2-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.
2010-10-01[sparc] inferior SEGV while calling Ada subprogramJoel Brobecker3-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.
2010-10-01 * expression.cc (eval): Replace dummy argument with NULL.Nick Clifton3-35/+60
(eval_maybe_dot): Check for a NULL result section pointer. (Symbol_expression::value): Likewise. (Dot_expression::value): Likewise. (BINARY_EXPRESSION): Likewise. (Max_expression::value): Likewise. (Min_expression::value): Likewise. (Absolute_expression::value): Likewise. (Addr_expression::value_from_output_section): Likewise. (Loaddddr_expression::value_from_output_section): Likewise. (Segment_start_expression::value): Likewise. * script-sections.cc (Sections_elememt_dot_assignment::finalize_symbols): Replace dummy argument with NULL. (Sections_elememt_dot_assignment::set_section_addresses): Likewise. (Output_data_expression::do_write_to_buffer): Likewise. (Output_section_definition::finalize_symbols): Likewise. (Output_section_definition::set_section_addresses): Likewise.
2010-10-012010-10-01 Thomas Schwinge <thomas@codesourcery.com>Thomas Schwinge2-3/+15
* elf32-arm.c (elf32_arm_size_stubs): Don't choke on local symbols in SHN_UNDEF, SHN_ABS, SHN_COMMON.
2010-10-01 PR ld/12066Alan Modra3-5/+14
* ldexp.c (fold_name): Treat absolute symbols as plain numbers. * ld.texinfo (Expression Section): Don't say absolute symbols are addresses.
2010-10-01Add 2 tests for PR ld/11812.H.J. Lu7-0/+35
2010-09-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * ld-i386/nogot2.d: New * ld-i386/nogot2.s: Likewise. * ld-x86-64/nogot2.d: Likewise. * ld-x86-64/nogot2.s: Likewise. * ld-i386/i386.exp: Run nogot2. * ld-x86-64/x86-64.exp: Likewise.
2010-10-01Clear non_elf on ELF linker defined symbols.H.J. Lu4-6/+31
2010-09-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't allocate .got.plt section if there are no GOT nor PLT entries and there is no refeence to _GLOBAL_OFFSET_TABLE_. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise. * elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
2010-10-01Set MAX_REGISTER_SIZE to 64.H.J. Lu2-1/+5
2010-09-30 H.J. Lu <hongjiu.lu@intel.com> * defs.h (MAX_REGISTER_SIZE): Set to 64.
2010-10-01*** empty log message ***gdbadmin1-1/+1
2010-10-01daily updateAlan Modra1-1/+1
2010-09-30build: info-gcc, dvi-gcc etc work from unbuilt configured tree.Ralf Wildenhues3-1/+46
/: Sync from GCC: PR bootstrap/45796 * Makefile.def (info-gcc, dvi-gcc, pdf-gcc, html-gcc): Depend on all-build-libiberty. * Makefile.in: Regenerate.
2010-09-30 * symfile.h (struct sym_fns) <next>: Remove.Tom Tromey11-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.
2010-09-30gdbTom Tromey5-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.
2010-09-30gdbTom Tromey5-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.
2010-09-30 * s390-mkopc.c (main): Exit with error 1 if sscanf failsPierre Muller2-1/+9
to parse all 6 parameters.
2010-09-30 * s390-mkopc.c (main): Change description array size to 80.Pierre Muller2-2/+7
Add maximum length of 79 to description parsing.
2010-09-30gdb/Jan Kratochvil9-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.
2010-09-30gdb/Jan Kratochvil4-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.
2010-09-302010-09-30 Doug Kwan <dougkwan@google.com>Doug Kwan2-2/+6
* gold/testsuite/arm_branch_out_of_range.sh: Fix broken tests.
2010-09-30 * mem.c (rx_mem_ptr): When invalidating the decode cache, accountKevin Buettner2-3/+15
for the fact that the instruction decoder never uses swapped addresses.
2010-09-30*** empty log message ***gdbadmin1-1/+1
2010-09-30daily updateAlan Modra1-1/+1
2010-09-29gdb/Jan Kratochvil6-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.
2010-09-29 Workaround for gcc/45682.Doug Evans2-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.
2010-09-29 * rx.c (decode_opcode: RXO_int): Only break out of the emulationNick Clifton2-1/+8
loop if rx_syscall() does not return a RX_STEPPED result.
2010-09-29include/Bernd Schmidt7-7/+22
* opcode/tic6x-control-registers.h (tscl): Now read_write. gas/testsuite/ * gas/tic6x/insns-bad-1.s: Remove test for readonly tscl. * gas/tic6x/insns-bad-1.l: Likewise. * gas/tic6x/insns-c674x.d: Add test for writeable tscl. * gas/tic6x/insns-c674x.s: Likewise.
2010-09-29 * gas/all/fwdexp.d, * gas/all/fwdexp.s: New test.Alan Modra4-0/+41
* gas/all/gas.exp: Run it.
2010-09-29 * expr.c (expr): Correct returned segment value.Alan Modra2-10/+25
2010-09-29 * ld-h8300/h8300.exp: Use is_elf_format.Alan Modra2-2/+4
2010-09-29 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-loadAlan Modra2-0/+9
section for orphans handled here.
2010-09-29 * lib/ld-lib.exp (is_elf_format): Merge with binutils and gas versions.Alan Modra2-46/+78
(is_aout_format): Update target list. (is_pecoff_format): Remove unnecessary line continuation.
2010-09-29 * lib/gas-defs.exp (is_elf_format): Merge with binutils and ld versions.Alan Modra2-34/+82
(is_aout_format): Copy from ld testsuite. (is_pecoff_format): Merge with ld version.
2010-09-29 * lib/utils-lib.exp (is_elf_format): Merge with gas and ld versions.Alan Modra2-23/+45
2010-09-29*** empty log message ***gdbadmin1-1/+1
2010-09-29daily updateAlan Modra1-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-282010-09-28 Sriraman Tallam <tmsriram@google.com>Sriraman Tallam5-1/+28
* target.h (Target::can_icf_inline_merge_sections): New virtual function. * x86_64.cc (Target__x86_64::can_icf_inline_merge_sections): New virtual function. * i386.cc (Target_i386::can_icf_inline_merge_sections): New virtual function. * icf.cc (get_section_contents): Inline merge sections only when target allows it.
2010-09-28*** empty log message ***gdbadmin1-1/+1
2010-09-28daily updateAlan Modra1-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-27merge from gccDJ Delorie4-90/+176
2010-09-27Fix unportable shell quoting.Ralf Wildenhues21-11/+55
/: Sync from GCC: PR bootstrap/44621 * configure.ac: Fix unportable shell quoting. * configure: Regenerate. config/: * po.m4 (AM_PO_SUBDIRS): Fix unportable shell quoting. bfd/: * configure: Regenerate. gas/: * configure: Regenerate. gold/: * configure: Regenerate. intl/: * configure: Regenerate. ld/: * configure: Regenerate. opcodes/: * configure: Regenerate. binutils/: * configure: Regenerate. gprof/: * configure: Regenerate.
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