aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-29 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.Doug Evans3-15/+12
* gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK. (struct main_type, field loc): Delete dwarf_block. (FIELD_DWARF_BLOCK): Delete. (SET_FIELD_DWARF_BLOCK): Delete. (TYPE_FIELD_DWARF_BLOCK): Delete. * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img): Update.
2010-06-29 * scripttempl/xstormy16.sc (.gcc_except_table): Include sectionsNick Clifton2-1/+6
with the .gcc_except_table. prefix.
2010-06-29 PR binutils/3166Alan Modra2-11/+11
* objcopy.c (is_strip_section): Revert 2006-09-05. (setup_section): Make SHT_GROUP section nobits.
2010-06-292010-06-29 Hui Zhu <teawater@gmail.com>Hui Zhu2-0/+626
* record.c (set_record_pic_cmdlist, show_record_pic_cmdlist): New variables. (set_record_pic_command, show_record_pic_command): New functions. (record_pic_function, record_pic_line, record_pic_enum, set_record_pic_type, record_pic_hide_nofunction, record_pic_hide_nosource, record_pic_hide_same): New variables. (record_pic_fputs): New function. (function_list, node_list, edge_list): New struct. (function_list, node_list, edge_list): New variables. (record_pic_cleanups, record_pic_node, record_pic_edge, cmd_record_pic): New functions. (_initialize_record): Add new commands for record pic.
2010-06-29Fix unmatched @end table in gdb.texinfo.Joel Brobecker2-0/+5
2010-06-29 Joel Brobecker <brobecker@adacore.com> * gdb.texinfo (Threads In Python): Fix unmatched @end table.
2010-06-29remove maxq-coff portAlan Modra53-6372/+0
2010-06-29remove maxq-coff portAlan Modra54-5974/+178
2010-06-29*** empty log message ***gdbadmin1-1/+1
2010-06-29daily updateAlan Modra1-1/+1
2010-06-28gdb/Jan Kratochvil2-2/+6
* dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call ALLOCATE_CPLUS_STRUCT_TYPE.
2010-06-282010-06-28 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon20-11/+1672
Tom Tromey <tromey@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * value.c (pack_unsigned_long): New function. (value_from_ulongest): New function. * value.h (value_from_ulongest): Declare. * python/python.c (_initialize_python): Call gdbpy_initialize_thread and gdbpy_initialize_inferior. * python/python-internal.h: Define thread_object. (gdbpy_inferiors, gdbpy_selected_thread) (frame_info_to_frame_object, create_thread_object) (find_thread_object, find_inferior_object) (gdbpy_initialize_thread, gdbpy_initialize_inferiors) (gdbpy_is_value_object, get_addr_from_python): Declare. * python/py-value.c (builtin_type_upylong): Define. (convert_value_from_python): Add logic for ulongest. (gdbpy_is_value_object): New function. * python/py-utils.c (get_addr_from_python): New function. * python/py-frame.c (frame_info_to_frame_object): Return a PyObject. (gdbpy_selected_frame): Use PyObject over frame_info. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and py-infthread. (SUBDIR_PYTHON_SRCS): Likewise. (py-inferior.o): New Rule. (py-infthread.o): New Rule. * python/py-inferior.c: New File. * python/py-infthread.c: New File. 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> Tom Tromey <tromey@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.texinfo (Inferiors In Python): New node. * gdb.texinfo (Threads In Python): New node. 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> Tom Tromey <tromey@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.python/py-inferior.c: New File. * gdb.python/py-infthread.c: New File. * gdb.python/py-inferior.exp: New File. * gdb.python/py-infthread.exp: New File.
2010-06-282010-06-28 Rafael Espindola <espindola@google.com>Rafael Ávila de Espíndola2-2/+6
* plugin.cc (Plugin::load): Use dlerror.
2010-06-28gdb/Jan Kratochvil8-4/+164
* c-typeprint.c (c_type_print_base): For no fields check include also TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section. * dwarf2read.c (struct typedef_field_list) (struct field_info) <typedef_field_list, typedef_field_list_count>: New. (dwarf2_add_typedef): New. (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef. Copy also FI.TYPEDEF_FIELD_LIST. * gdbtypes.h (struct typedef_field) (struct cplus_struct_type) <typedef_field, typedef_field_count> (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME) (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New. gdb/testsuite/ * gdb.cp/namespace.exp (ptype OtherFileClass typedefs) (ptype ::C::OtherFileClass typedefs): New. * gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType2) (C::OtherFileClass::cOtherFileClassVar2): New. (C::OtherFileClass::cOtherFileClassVar_use): Use also cOtherFileClassVar2. (C::cOtherFileType2, C::cOtherFileVar2): New. (C::cOtherFileVar_use): use also cOtherFileVar2. * gdb.cp/userdef.exp (ptype &*c): Permit arbitrary trailing text.
2010-06-28gdb/Jan Kratochvil8-12/+159
* cp-namespace.c (cp_lookup_nested_type): New variable concatenated_name. Turn the current return condition into a reverse one. Call also lookup_static_symbol_aux on the constructed qualified name. * symtab.c (lookup_symbol_aux): Move variable objfile and searching in other files into a called ... (lookup_static_symbol_aux): ... new function here. * symtab.h (lookup_static_symbol_aux): New prototype. * valops.c (value_maybe_namespace_elt): Call also lookup_static_symbol_aux if we failed otherwise. gdb/testsuite/ * gdb.cp/namespace.exp (whatis C::cOtherFileType) (whatis ::C::cOtherFileType, whatis C::cOtherFileVar) (whatis ::C::cOtherFileVar, print C::cOtherFileVar) (print ::C::cOtherFileVar) (whatis C::OtherFileClass::cOtherFileClassType) (whatis ::C::OtherFileClass::cOtherFileClassType) (print C::OtherFileClass::cOtherFileClassVar) (print ::cOtherFileClassVar) (print ::C::OtherFileClass::cOtherFileClassVar): New tests. (ptype OtherFileClass, ptype ::C::OtherFileClass): Permit arbitrary trailing content. * gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType) (C::OtherFileClass::cOtherFileClassVar) (C::OtherFileClass::cOtherFileClassVar_use, C::cOtherFileType) (C::cOtherFileVar, C::cOtherFileVar_use): New.
2010-06-28gdb/Jan Kratochvil4-2/+13
Fix PR c++/11703 and PR gdb/1448. * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add FIRST_ITER check. gdb/testsuite/ Test PR c++/11703 and PR gdb/1448. * gdb.cp/namespace.exp (ptype ::C::NestedClass): Remove KFAIL for gdb/1448.
2010-06-28gdb/Jan Kratochvil6-2/+34
Fix modification of cplus_struct_default. * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>: Call ALLOCATE_CPLUS_STRUCT_TYPE. * gdbtypes.c (cplus_struct_default): New empty initializer, comment it. gdb/testsuite/ * gdb.cp/virtbase.cc (class RTTI_base, class RTTI_data) (main) <rtti_data>: New. * gdb.cp/virtbase.exp (print rtti_data): New.
2010-06-28gdb/testsuite/Jan Kratochvil2-0/+9
* lib/gdb.exp (gdb_test_multiple): Error on trailing newlines.
2010-06-28Document the GDB python directory.Joel Brobecker4-0/+28
2010-06-27 Joel Brobecker <brobecker@adacore.com> * NEWS: Add entry announcing the python directory. 2010-06-27 Joel Brobecker <brobecker@adacore.com> * gdb.texinfo (Python): Document what the python directory is and what its location is. (Basic Python): Document the gdb.PYTHONDIR constant.
2010-06-28 * dwarf2read.c (read_structure_type): Allocate null cleanup later.Tom Tromey2-1/+7
2010-06-28 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.Doug Evans2-3/+7
All callers updated.
2010-06-28gdb/Jan Kratochvil5-24/+124
* cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call obstack_begin after each obstack_free. gdb/testsuite/ * gdb.cp/static-print-quit.exp, gdb.cp/static-print-quit.cc: New.
2010-06-28 * gdb.base/break-interp.exp (reach): Relax expected output a bit.Doug Evans2-1/+5
2010-06-28cgen/Alan Modra2-3/+4
* cpu/mep.opc (mep_examine_ivc2_insns): Delete set but unused var. opcodes/ * mep-dis.c: Regenerate.
2010-06-28 * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSEDAlan Modra2-5/+8
to silence gcc warning.
2010-06-28 * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define.Alan Modra39-254/+231
* config/tc-crx.c (gettrap): Constify arg. (handle_LoadStor, get_cinv_parameters): Likewise. (getreg_image): Fix enum warning (md_assemble): Restore input line char. * config/tc-hppa.c (tc_gen_reloc): Fix enum warning. * config/tc-i960.c (mem_fmt): Rename var to fix shadow warning. * config/tc-sh.c (sh_fdpic): Only define when OBJ_ELF. (build_Mytes): Fix build failure for non-elf targets. * config/tc-tic4x.c (tic4x_eval): Restore terminator char. * config/tc-xtensa.c (xtensa_end_directive): Fix switch enum warning. * cgen.c (gas_cgen_md_apply_fix): Avoid set but unused warning. * ecoff.c (add_ecoff_symbol): Likewise. * itbl-ops.c (append_insns_as_macros): Likewise. * listing.c (debugging_pseudo): Likewise. * read.c (s_mri_common, stringer): Likewise. * config/obj-coff.c (coff_frob_section): Likewise. * config/tc-alpha.c (emit_ldgp, s_alpha_proc): Likewise. * config/tc-arm.c (my_get_expression): Likewise. * config/tc-hppa.c (process_exit, pa_type_args): Likewise. * config/tc-m32c.c (md_assemble): Likewise. * config/tc-microblaze.c (md_convert_frag): Likewise. * config/tc-mips.c (s_change_section): Likewise. * config/tc-mt.c (mt_fix_adjustable): Likewise. * config/tc-xtensa.c (xtensa_literal_pseudo): Likewise. * config/obj-aout.c (obj_aout_frob_symbol): Delete set but otherwise unused vars. * config/tc-alpha.c (load_expression): Likewise. (s_alpha_rdata, s_alpha_section, s_alpha_prologue): Likewise. * config/tc-arm.c (parse_neon_el_struct_list): Likewise. * config/tc-avr.c (extract_word): Likewise. * config/tc-cris.c (cris_get_expression): Likewise. * config/tc-d30v.c (build_insn, find_format): Likewise. * config/tc-dlx.c (machine_ip): Likewise. * config/tc-hppa.c (pa_get_absolute_expression): Likewise. * config/tc-i370.c (md_assemble): Likewise. * config/tc-i960.c (brtab_emit): Likewise. * config/tc-iq2000.c (s_iq2000_ent): Likewise. * config/tc-m32c.c (md_convert_frag): Likewise. * config/tc-m68hc11.c (fixup24, build_jump_insn): Likewise. (md_estimate_size_before_relax, md_apply_fix): Likewise. * config/tc-m68k.c (md_show_usage): Likewise. * config/tc-microblaze.c (microblaze_s_lcomm): Likewise. * config/tc-mips.c (s_mips_end): Likewise. * config/tc-mmix.c (mmix_byte, mmix_cons): Likewise. * config/tc-mn10300.c (md_assemble): Likewise. * config/tc-msp430.c (extract_word): Likewise. * config/tc-mt.c (md_assemble): Likewise. * config/tc-or32.c (machine_ip): Likewise. * config/tc-pj.c (md_apply_fix): Likewise. * config/tc-s390.c (md_gather_operands): Likewise. * config/tc-sh.c (sh_cons_align): Likewise. * config/tc-sparc.c (sparc_cons_align): Likewise. * config/tc-tic4x.c (tic4x_sect): Likewise. * config/tc-tic54x.c (tic54x_stringer): Likewise. * config/tc-vax.c (vip_op): Likewise. * config/tc-xstormy16.c (xstormy16_cons_fix_new): Likewise. * config/tc-xtensa.c (md_assemble): Likewise. (xtensa_fix_short_loop_frags, convert_frag_immed): Likewise. (xtensa_move_literals): Likewise.
2010-06-28 * gas/config/tc-arm.c (parse_neon_alignment): New function.Matthew Gretton-Dann9-57/+102
(parse_address_main): Fix Neon load/store alignment parsing. * gas/testsuite/gas/arm/neon-ldst-align-bad.l: Update for Neon alignment syntax fix. * gas/testsuite/gas/arm/neon-ldst-align-bad.s: Likewise. * gas/testsuite/gas/arm/neon-ldst-es.d: Likewise. * gas/testsuite/gas/arm/neon-ldst-es.s: Likewise. * opcodes/arm-disc.c (parse_insn_neon): Fix Neon alignment syntax.
2010-06-28daily updateAlan Modra1-1/+1
2010-06-28*** empty log message ***gdbadmin1-1/+1
2010-06-27 * gdb.cp/m-static.exp: Update expected test output.Doug Evans2-1/+5
2010-06-27 * value.c (value_static_field): Use `switch' instead of `if'.Doug Evans2-4/+13
Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2010-06-27 * valops.c (search_struct_field): Fix typo in error message.Doug Evans2-1/+5
2010-06-27 * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.Alan Modra2-3/+12
(group_sections): Likewise.
2010-06-27 * symtab.cc (detect_odr_violations): When reporting an ODRIan Lance Taylor2-7/+21
violation, report an object where the symbol is defined.
2010-06-27fix set but unused variable warningsAlan Modra88-789/+701
2010-06-27daily updateAlan Modra1-1/+1
2010-06-27*** empty log message ***gdbadmin1-1/+1
2010-06-26 * dwarf2expr.c (execute_stack_op): Place preprocessorUlrich Weigand2-2/+7
directives at the start of the source line.
2010-06-26Refactor 'maint time' command statistics.Paul N. Hilfinger9-133/+141
Consolidate code for displaying per-command time and space statistics to avoid duplication. Piggyback on cleanups so that statistics get printed even when commands terminate as a result of an error. Changelog * gdb/defs.h (make_command_stats_cleanup): Declare. (set_display_time): Declare. (set_display_space): Declare. * gdb/event-top.c (command_handler): Use make_command_stats_cleanup. * gdb/main.c (display_time, display_space): Move definitions to utils.c. (captured_main): Use make_command_stats_cleanup to get start-up statistics. Use set_display_time and set_display_space for processing OPT_STATISTICS case. * gdb/maint.c (maintenance_time_display): Use set_display_time. (maintenance_space_display): Use set_display_space. * gdb/top.c (execute_command): Remove obsolete 'maint time' code. (command_loop): Use make_command_stats_cleanup. * gdb/utils.c (struct cmd_stats): Structure for storing initial time and space usage. (display_time, display_space): Move definitions here from utils.c. (set_display_time): New function. (set_display_space): New function. (make_command_stats_cleanup): New function. (report_command_stats): New auxiliary function for make_command_stats_cleanup. * gdb/testsuite/gdb.gdb/selftest.exp: Adjust expected message for capturing start-up runtime.
2010-06-26daily updateAlan Modra1-1/+1
2010-06-26*** empty log message ***gdbadmin1-1/+1
2010-06-25 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement forUlrich Weigand2-2/+8
hosts where CORE_ADDR is long long.
2010-06-25Added NEWS entry about C++ improvements.Sami Wagiaalla1-0/+29
2010-06-25gdbTom Tromey6-10/+103
PR python/10808: * python/python.c (execute_gdb_command): Add keywords. Accept "to_string" argument. (struct restore_ui_file_closure): New. (restore_ui_file): New function. (make_cleanup_restore_ui_file): Likewise. (GdbMethods) <execute>: Update. gdb/doc PR python/10808: * gdb.texinfo (Basic Python): Document new gdb.execute argument. gdb/testsuite PR python/10808: * gdb.python/python.exp: Add new tests.
2010-06-25Added import loop test.Sami Wagiaalla3-0/+24
2010-06-25 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/operator.cc: Created an import loop. * gdb.cp/operator.exp: Added testcase for import loop.
2010-06-25 * s390-tdep.c (s390_push_dummy_call): Error on stack overflowUlrich Weigand2-9/+24
during inferior call stack frame setup.
2010-06-252010-06-25 Ken Werner <ken.werner@de.ibm.com>Ulrich Weigand2-0/+114
* solib-spu.c: Include "exception.h". (ocl_program_data_key): New variable. (append_ocl_sos): New function. (ocl_enable_break): Likewise. (spu_current_sos): Call append_ocl_sos. (spu_solib_loaded): Call ocl_enable_break. (_initialize_spu_solib): Register ocl_program_data_key.
2010-06-25 * cp-support.c (reset_directive_searched): New function.Ulrich Weigand2-2/+31
(make_symbol_overload_list_using): Prevent recursive calls.
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-11/+36
* vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with its flags. Create an absolute section if needed.
2010-06-25gdb/testsuite/Jan Kratochvil5-32/+125
Test PR python/11407. * gdb.dwarf2/dw2-ref-missing-frame-func.c: New file. * gdb.dwarf2/dw2-ref-missing-frame.S: Use cu_text_start and cu_text_end. Split main into func_nofb and func_loopfb dropping NO_FRAME_BASE. * gdb.dwarf2/dw2-ref-missing-frame.exp: Remove variables sources, executable_nofb and executable_fb. New variables srcsfile, objsfile, srcfuncfile, objfuncfile, srcmainfile, objmainfile, executable and binfile. Call gdb_compile with clean_restart twice. (func_nofb print, func_nofb backtrace, func_loopfb print) (func_loopfb backtrace): New.
2010-06-25gdb/testsuite/Jan Kratochvil4-322/+175
* gdb.dwarf2/dw2-ref-missing-frame-main.c: New. * gdb.dwarf2/dw2-ref-missing-frame.S: Replace compiler generated output by a hand made one. * gdb.dwarf2/dw2-ref-missing-frame.exp: Remove invalid comment. Remove i?86 requirement. Remove variables srcfile and binfile. New variable sources, executable_nofb and executable_fb. Call prepare_for_testing.