OSDN Git Service
amodra [Tue, 29 Jun 2010 04:28:19 +0000 (04:28 +0000)]
remove maxq-coff port
gdbadmin [Tue, 29 Jun 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 29 Jun 2010 00:00:04 +0000 (00:00 +0000)]
daily update
jkratoch [Mon, 28 Jun 2010 22:03:31 +0000 (22:03 +0000)]
gdb/
* dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
ALLOCATE_CPLUS_STRUCT_TYPE.
pmuldoon [Mon, 28 Jun 2010 21:16:01 +0000 (21:16 +0000)]
2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
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.
espindola [Mon, 28 Jun 2010 21:03:49 +0000 (21:03 +0000)]
2010-06-28 Rafael Espindola <espindola@google.com>
* plugin.cc (Plugin::load): Use dlerror.
jkratoch [Mon, 28 Jun 2010 20:39:27 +0000 (20:39 +0000)]
gdb/
* 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.
jkratoch [Mon, 28 Jun 2010 20:35:51 +0000 (20:35 +0000)]
gdb/
* 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.
jkratoch [Mon, 28 Jun 2010 20:18:26 +0000 (20:18 +0000)]
gdb/
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.
jkratoch [Mon, 28 Jun 2010 20:12:52 +0000 (20:12 +0000)]
gdb/
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.
jkratoch [Mon, 28 Jun 2010 20:09:57 +0000 (20:09 +0000)]
gdb/testsuite/
* lib/gdb.exp (gdb_test_multiple): Error on trailing newlines.
brobecke [Mon, 28 Jun 2010 19:54:03 +0000 (19:54 +0000)]
Document the GDB python directory.
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.
tromey [Mon, 28 Jun 2010 19:05:41 +0000 (19:05 +0000)]
* dwarf2read.c (read_structure_type): Allocate null cleanup later.
devans [Mon, 28 Jun 2010 18:56:38 +0000 (18:56 +0000)]
* breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
All callers updated.
cgf [Mon, 28 Jun 2010 18:32:12 +0000 (18:32 +0000)]
* fork.cc (frok::parent): Improve error message.
jkratoch [Mon, 28 Jun 2010 16:59:43 +0000 (16:59 +0000)]
gdb/
* 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.
devans [Mon, 28 Jun 2010 16:54:10 +0000 (16:54 +0000)]
* gdb.base/break-interp.exp (reach): Relax expected output a bit.
amodra [Mon, 28 Jun 2010 14:41:58 +0000 (14:41 +0000)]
cgen/
* cpu/mep.opc (mep_examine_ivc2_insns): Delete set but unused var.
opcodes/
* mep-dis.c: Regenerate.
amodra [Mon, 28 Jun 2010 14:41:11 +0000 (14:41 +0000)]
* compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
to silence gcc warning.
amodra [Mon, 28 Jun 2010 14:06:56 +0000 (14:06 +0000)]
* config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define.
* 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.
mgretton [Mon, 28 Jun 2010 09:10:24 +0000 (09:10 +0000)]
* gas/config/tc-arm.c (parse_neon_alignment): New function.
(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.
amodra [Mon, 28 Jun 2010 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 28 Jun 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
yselkowitz [Sun, 27 Jun 2010 21:32:19 +0000 (21:32 +0000)]
* Makefile.in: Use "xmlto pdf" instead of docbook2pdf.
Force the dblatex backend, as the default passivetex does not work.
* README: Replace docbook-utils dependency with dblatex.
Update required docbook-xml version.
* faq-programming.xml: Ditto.
devans [Sun, 27 Jun 2010 17:19:53 +0000 (17:19 +0000)]
* gdb.cp/m-static.exp: Update expected test output.
devans [Sun, 27 Jun 2010 16:40:11 +0000 (16:40 +0000)]
* value.c (value_static_field): Use `switch' instead of `if'.
Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
devans [Sun, 27 Jun 2010 16:26:39 +0000 (16:26 +0000)]
* valops.c (search_struct_field): Fix typo in error message.
amodra [Sun, 27 Jun 2010 08:37:21 +0000 (08:37 +0000)]
* elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
(group_sections): Likewise.
ian [Sun, 27 Jun 2010 06:17:36 +0000 (06:17 +0000)]
* symtab.cc (detect_odr_violations): When reporting an ODR
violation, report an object where the symbol is defined.
amodra [Sun, 27 Jun 2010 04:07:50 +0000 (04:07 +0000)]
fix set but unused variable warnings
amodra [Sun, 27 Jun 2010 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 27 Jun 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
cgf [Sat, 26 Jun 2010 16:08:45 +0000 (16:08 +0000)]
* setup-net.sgml: Add a paragraph describing now to avoid unintentional
upgrades.
uweigand [Sat, 26 Jun 2010 14:05:26 +0000 (14:05 +0000)]
* dwarf2expr.c (execute_stack_op): Place preprocessor
directives at the start of the source line.
hilfingr [Sat, 26 Jun 2010 06:44:46 +0000 (06:44 +0000)]
Refactor 'maint time' command statistics.
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.
amodra [Sat, 26 Jun 2010 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 26 Jun 2010 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
uweigand [Fri, 25 Jun 2010 22:00:57 +0000 (22:00 +0000)]
* solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
hosts where CORE_ADDR is long long.
swagiaal [Fri, 25 Jun 2010 18:19:31 +0000 (18:19 +0000)]
Added NEWS entry about C++ improvements.
tromey [Fri, 25 Jun 2010 18:15:11 +0000 (18:15 +0000)]
gdb
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.
swagiaal [Fri, 25 Jun 2010 18:05:29 +0000 (18:05 +0000)]
Added import loop test.
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.
uweigand [Fri, 25 Jun 2010 17:47:26 +0000 (17:47 +0000)]
* s390-tdep.c (s390_push_dummy_call): Error on stack overflow
during inferior call stack frame setup.
uweigand [Fri, 25 Jun 2010 17:39:55 +0000 (17:39 +0000)]
2010-06-25 Ken Werner <ken.werner@de.ibm.com>
* 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.
uweigand [Fri, 25 Jun 2010 16:16:42 +0000 (16:16 +0000)]
* cp-support.c (reset_directive_searched): New function.
(make_symbol_overload_list_using): Prevent recursive calls.
gingold [Fri, 25 Jun 2010 15:37:43 +0000 (15:37 +0000)]
2010-06-25 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
its flags. Create an absolute section if needed.
jkratoch [Fri, 25 Jun 2010 15:34:45 +0000 (15:34 +0000)]
gdb/testsuite/
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.
jkratoch [Fri, 25 Jun 2010 15:32:48 +0000 (15:32 +0000)]
gdb/testsuite/
* 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.
gingold [Fri, 25 Jun 2010 15:21:48 +0000 (15:21 +0000)]
2010-06-25 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create
dummy psect anymore. Adjust.
(_bfd_vms_write_eeom): Adjust (use target_index instead of index)
(_bfd_vms_write_etir): Ditto.
(start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
section name. Adjust.
pmuldoon [Fri, 25 Jun 2010 15:13:52 +0000 (15:13 +0000)]
2010-06-24 Phil Muldoon <pmuldoon@redhat.com>
* printcmd.c (print_variable_and_value): Print error message on
caught exception.
gingold [Fri, 25 Jun 2010 14:54:18 +0000 (14:54 +0000)]
2010-06-25 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_write_exec): Set linktime field.
uweigand [Fri, 25 Jun 2010 13:00:30 +0000 (13:00 +0000)]
ChangeLog:
* dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
of stack values.
(struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
"value" member.
(dwarf_expr_push): Change input type to ULONGEST.
(dwarf_expr_fetch): Change return type to ULONGEST.
(dwarf_expr_fetch_address): Add prototype.
(dwarf2_read_address): Remove prototype.
* dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
Truncate stack values to ctx->addr_size bytes.
(dwarf_expr_fetch): Change return value to ULONGEST.
(dwarf_expr_fetch_address): New function.
(add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
when appropriate. Update for struct dwarf_expr_piece changes.
(dwarf2_read_address): Remove.
(unsigned_address_type): Remove.
(signed_address_type): Remove.
(execute_stack_op): Use dwarf_expr_fetch_address instead of
dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
values. Perform operations on ULONGEST instead of on GDB values,
sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
values and DW_OP_deref results as unsigned integers.
* dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
changes.
(write_pieced_value): Likewise.
(dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
dwarf_expr_fetch when appropriate.
(compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
* dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
instead of dwarf_expr_fetch when appropriate.
testsuite/ChangeLog:
* gdb.cell/dwarfaddr.exp: New file.
* gdb.cell/dwarfaddr.S: New file.
muller [Fri, 25 Jun 2010 07:32:23 +0000 (07:32 +0000)]
* c-typeprint.c (c_print_typedef): Append new type name for typedefs.
amodra [Fri, 25 Jun 2010 05:20:54 +0000 (05:20 +0000)]
include/elf/
* ppc64.h (R_PPC64_LO_DS_OPT): Define.
bfd/
* elf64-ppc.c (toc_skip_enum): Define.
(ppc64_elf_edit_toc): Use two low bits of skip array as markers.
Optimize largetoc sequences.
(adjust_toc_syms): Update for skip array change.
(ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
ld/
* emultempl/ppc64elf.em (prelim_size_sections): New function.
(ppc_before_allocation): Use it. Size sections before toc edit too.
amodra [Fri, 25 Jun 2010 04:46:04 +0000 (04:46 +0000)]
* emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
amodra [Fri, 25 Jun 2010 03:46:04 +0000 (03:46 +0000)]
* elf64-ppc.c (is_static_defined): New function.
(get_tls_mask, ppc_type_of_stub): Use it here.
(ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
(ppc64_elf_tls_setup): Typo fix.
(adjust_toc_syms): Correctly handle symbols defined past the end
of the toc. Move syms on removed entries to next entry rather
than to start of toc.
(ppc64_elf_edit_toc): Likewise. Ensure we only attempt to
edit ppc64 input. Allocate one extra word in skip array.
Honour info->keep_memory when reading relocs if we can.
Adjust toc relocs after adjusting symbols.
dougkwan [Fri, 25 Jun 2010 00:37:40 +0000 (00:37 +0000)]
2010-06-25 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::can_check_for_functions_pointers): Return true.
(Target_arm::section_may_have_icf_unsafe_pointers): New method
definition.
(Target_arm::Scan::local_reloc_may_be_function_pointer,
Target_arm::Scan::global_reloc_may_be_function_pointer): Implement
target hook to detect function points.
(Target_arm::Scan::possible_function_pointer_reloc): New method.
* icf.h (Icf::check_section_for_function_pointers): Change type of
parameter SECTION_NAME to const reference to std::string. Use
target hook to determine if section may have unsafe pointers.
* target.h (Target::section_may_have_icf_unsafe_pointers): New
method definition.
gdbadmin [Fri, 25 Jun 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 25 Jun 2010 00:00:04 +0000 (00:00 +0000)]
daily update
brobecke [Thu, 24 Jun 2010 22:52:03 +0000 (22:52 +0000)]
Add support for gdb.PYTHONDIR as $gdb_datadir/python.
Python scripts to be used by GDB can be stored in that directory,
and will be automatically found by the interpreter when importing them.
This patch also sets up <gdb_pythondir>/gdb as the directory where gdb
submodules can be stored. For now, there is nothing there, but it can
now be added easily without further code changes.
gdb/ChangeLog:
2010-06-24 Joel Brobecker <brobecker@adacore.com>
* python/python.c (_initialize_python): Add new "constant"
PYTHONDIR in gdb module. Insert this path at the head of
sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
exec its __init__.py script if it exists in that directory.
kevinb [Thu, 24 Jun 2010 20:38:04 +0000 (20:38 +0000)]
Add "acc" register. Revise register order and names.
tromey [Thu, 24 Jun 2010 20:17:49 +0000 (20:17 +0000)]
* psymtab.c (lookup_partial_symbol): Mark definition as static.
jkratoch [Thu, 24 Jun 2010 18:24:02 +0000 (18:24 +0000)]
gdb/
Fix GDB startup on readonly filesystem.
* charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
jkratoch [Thu, 24 Jun 2010 15:17:24 +0000 (15:17 +0000)]
gdb/
Fix PR 9436.
* breakpoint.c (handle_jit_event): New function.
(bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
jit, err, table and bs_class. New variables shlib_event, jit_event,
this_action and bptype. Change bs_class assignments to this_action
assignments. new unhandled bptype internal error. Move here
shlib_event and jit_event handling from handle_inferior_event.
* breakpoint.h (enum bpstat_what_main_action): Extend the comment.
Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
BPSTAT_WHAT_CHECK_JIT.
* inferior.h (debug_infrun, stop_on_solib_events): New declarations.
* infrun.c (debug_infrun, stop_on_solib_events): Remove static.
(handle_inferior_event): Reinitialize frame and gdbarch after
bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
gdbarch when frame gets reinitialized.
gdb/testsuite/
Test PR 9436.
* gdb.base/nostdlib.exp, gdb.base/nostdlib.c: New.
teawater [Thu, 24 Jun 2010 06:12:11 +0000 (06:12 +0000)]
Add command "eval".
gdbadmin [Thu, 24 Jun 2010 00:00:09 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Thu, 24 Jun 2010 00:00:08 +0000 (00:00 +0000)]
daily update
uweigand [Wed, 23 Jun 2010 12:46:34 +0000 (12:46 +0000)]
ChangeLog:
* infrun.c (handle_inferior_event): Handle presence of single-step
breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
* breakpoint.c (detach_single_step_breakpoints): New function.
(detach_breakpoints): Call it.
(cancel_single_step_breakpoints): New function.
* breakpoint.h (cancel_single_step_breakpoints): Add prototype.
* spu-tdep.c (spu_memory_remove_breakpoint): New function.
(spu_gdbarch_init): Install it.
testsuite/ChangeLog:
* gdb.cell/fork.exp: New file.
* gdb.cell/fork.c: Likewise.
* gdb.cell/fork-spu.c: Likewise.
nathan [Wed, 23 Jun 2010 10:21:15 +0000 (10:21 +0000)]
* archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
when scaning map.
jkratoch [Wed, 23 Jun 2010 10:12:13 +0000 (10:12 +0000)]
gdb/
* configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
* configure: Regenerate.
amodra [Wed, 23 Jun 2010 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 23 Jun 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
corinna [Tue, 22 Jun 2010 14:53:05 +0000 (14:53 +0000)]
* flock.cc (allow_others_to_sync): Use small stack buffer rather
than big temp buffer. Fix typo in comment.
(lf_setlock): Revert to using tmp_pathbuf.
(lf_getlock): Ditto.
corinna [Tue, 22 Jun 2010 09:54:36 +0000 (09:54 +0000)]
* sec_acl.cc (setacl): Use the long time unused ACL_DEFAULT_SIZE
instead of a constant value.
* security.cc (alloc_sd): Ditto.
jbeulich [Tue, 22 Jun 2010 07:43:39 +0000 (07:43 +0000)]
gas/
2010-06-22 Jan Beulich <jbeulich@novell.com>
PR gas/11732
* config/tc-i386-intel.c (i386_intel_parse_name): Handle pseudo
symbols named "$".
(i386_intel_operand): Remove bogus handling of pseudo symbols
named "$".
* expr.c (current_location): Remove 'static' and local
declaration.
* expr.h (current_location): Declare.
gas/testsuite/
2010-06-22 Jan Beulich <jbeulich@novell.com>
PR gas/11732
* gas/i386/jump.d: Adjust.
* gas/i386/jump.s: Add check for branch to 2+$.
muller [Tue, 22 Jun 2010 07:21:28 +0000 (07:21 +0000)]
* lib/gdb.exp (banned_variables_traced): New global variable.
(gdb_init, gdb_finish): Use new variable to avoid multiple tracing.
(gdb_init): Use `trace add variable' instead of obsolete
`trace variable'.
shebs [Tue, 22 Jun 2010 05:03:17 +0000 (05:03 +0000)]
2010-06-21 Stan Shebs <stan@codesourcery.com>
* gdb.texinfo: Add explicit @node and @appendix for GFDL.
* annotate.texinfo: Ditto.
* gdbint.texinfo: Ditto.
* stabs.texinfo: Ditto.
teawater [Tue, 22 Jun 2010 02:15:45 +0000 (02:15 +0000)]
2010-06-22 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_record_lea_modrm): Change warning to query.
(i386_process_record): Ditto.
* record.c (record_memory_query): New variable.
(_initialize_record): New command "set record memory-query".
* record.h (record_memory_query): New extern.
2010-06-22 Hui Zhu <teawater@gmail.com>
* gdb.texinfo: (Process Record and Replay): Add documentation
for command "set record memory-query".
devans [Tue, 22 Jun 2010 00:09:08 +0000 (00:09 +0000)]
* i386-tdep.h (i386_displaced_step_copy_insn): Declare.
* i386-tdep.c (i386_displaced_step_copy_insn): New function.
(i386_syscall_p): Change type of lengthp to int.
(i386_displaced_step_fixup): Handle kernels that run one past a
syscall insn.
* i386-linux-tdep.c (i386_linux_init_abi): Use
i386_displaced_step_copy_insn instead of
simple_displaced_step_copy_insn.
devans [Tue, 22 Jun 2010 00:02:07 +0000 (00:02 +0000)]
* gdb.gdb/selftest.exp: Remove support for gpl v1 and v2 gdb's.
gdbadmin [Tue, 22 Jun 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 22 Jun 2010 00:00:05 +0000 (00:00 +0000)]
daily update
sterling [Mon, 21 Jun 2010 23:56:33 +0000 (23:56 +0000)]
2010-06-21 Sterling Augustine <sterling@tensilica.com>
PR gas/11728
* as.c: Globalize keep_it.
(main): Remove keep_it. Move conditional from here...
(close_output_file): ...to here.
espindola [Mon, 21 Jun 2010 21:21:24 +0000 (21:21 +0000)]
2010-06-21 Rafael Espindola <espindola@google.com>
* fileread.cc (Input_file::find_fie): New
(Input_file::open): Use Input_file::find_fie.
* fileread.h (Input_file::find_fie): New
* plugin.cc (set_extra_library_path): New.
(Plugin::load): Add set_extra_library_path to the transfer vector.
(Plugin_manager::set_extra_library_path): New.
(Plugin_manager::add_input_file): Use the extra search path if set.
(set_extra_library_path(): New.
* plugin.h (Plugin_manager): Add set_extra_library_path and
extra_search_path_.
2010-06-21 Rafael Espindola <espindola@google.com>
* plugin-api.h (ld_plugin_set_extra_library_path): New.
(ld_plugin_tag): Add LDPT_SET_EXTRA_LIBRARY_PATH.
(ld_plugin_tv): Add tv_set_extra_library_path.
cgf [Mon, 21 Jun 2010 19:55:11 +0000 (19:55 +0000)]
* tmpbuf.h: New file.
* flock.cc: Include tmpbuf.h for new tmpbuf functionality.
(allow_others_to_sync): Use tmpbuf rather than tmp_pathbuf. Explain why.
(lf_setlock): For consistency, use tmpbuf rather than tmp_pathbuf.
(lf_getlock): Ditto.
tromey [Mon, 21 Jun 2010 19:49:18 +0000 (19:49 +0000)]
* dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
(dwarf_type_encoding_name): Likewise.
aoliva [Mon, 21 Jun 2010 19:39:32 +0000 (19:39 +0000)]
* bootstrap-lto.mk: New.
tromey [Mon, 21 Jun 2010 18:01:46 +0000 (18:01 +0000)]
* p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
* p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
* m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
* gdbtypes.h (TYPE_ERROR_NAME): New macro.
* f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
* f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
* dwarf2read.c (tag_type_to_type): Create a new error type on
failure.
* c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
* c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
msnyder [Mon, 21 Jun 2010 17:38:32 +0000 (17:38 +0000)]
2010-06-21 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
not add_abbrev_prefix_cmd, for "enable breakpoints".
cgf [Mon, 21 Jun 2010 17:09:31 +0000 (17:09 +0000)]
* dcrt0.cc (__api_fatal): Temporarily generate a stackdump.
uweigand [Mon, 21 Jun 2010 16:50:12 +0000 (16:50 +0000)]
* dwarf2loc.c (find_location_expression): Add relocation offset
to base-address-selection entry base addresses. Read addresses
(and offsets) as signed/unsigned integers, depending on the
BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
(loclist_describe_location): Likewise.
(disassemble_dwarf_expression): Read DW_OP_addr operand as
unsigned integer. Do not call dwarf2_read_address.
(locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
jakub [Mon, 21 Jun 2010 16:39:14 +0000 (16:39 +0000)]
* dwarf2.h (enum dwarf_type): Add DW_ATE_UTF.
shebs [Mon, 21 Jun 2010 16:24:57 +0000 (16:24 +0000)]
2010-06-21 Stan Shebs <stan@codesourcery.com>
* gdb.texinfo: Relicense under GFDL version 1.3.
* annotate.texinfo: Relicense under GFDL version 1.3.
* gdbint.texinfo: Relicense under GFDL version 1.3.
* stabs.texinfo: Relicense under GFDL version 1.3.
* fdl.texi: Update to version 1.3.
schwab [Mon, 21 Jun 2010 10:49:40 +0000 (10:49 +0000)]
* doc/as.texinfo (Overview): Use @itemx for grouped @table
items.
* doc/c-alpha.texi (Alpha Options): Likewise.
* doc/c-arm.texi (ARM Directives): Likewise.
* doc/c-bfin.texi (Blackfin Options): Likewise.
* doc/c-d10v.texi (D10V-Opts): Likewise.
* doc/c-i386.texi (i386-Options): Likewise.
* doc/c-ia64.texi (IA-64 Options): Likewise.
* doc/c-m68k.texi (M68K-Opts): Likewise.
* doc/c-tic54x.texi (TIC54X-Directives): Likewise.
* doc/internals.texi (Symbols): Likewise.
amodra [Mon, 21 Jun 2010 07:42:55 +0000 (07:42 +0000)]
PR gas/11733
* config/tc-sh.c (find_cooked_opcode): Correct array bounds check.
cgf [Mon, 21 Jun 2010 05:30:42 +0000 (05:30 +0000)]
* tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many buffers
are in use.
amodra [Mon, 21 Jun 2010 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 21 Jun 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
palves [Sun, 20 Jun 2010 22:23:36 +0000 (22:23 +0000)]
2010-06-20 Ian Lance Taylor <iant@google.com>
Pedro Alves <pedro@codesourcery.com>
* linux-x86-low.c (always_true): Delete.
(EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
trying to fool the compiler with always_true.
palves [Sun, 20 Jun 2010 22:18:48 +0000 (22:18 +0000)]
* tracepoint.c (condition_true_at_tracepoint): Don't run compiled
conditions in gdbserver.
dannysmith [Sun, 20 Jun 2010 09:51:15 +0000 (09:51 +0000)]
message.txt