Alan Modra [Mon, 18 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update
Mike Frysinger [Sun, 17 Jun 2012 23:34:17 +0000 (23:34 +0000)]
sim: cr16: include config.h rather than sysdep.h from bfd
Mike Frysinger [Sun, 17 Jun 2012 23:33:42 +0000 (23:33 +0000)]
sim: moxie: fix build by including config.h first
Jan Kratochvil [Sun, 17 Jun 2012 19:53:52 +0000 (19:53 +0000)]
gdb/
* dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
* dwarf2loc.c (call_site_parameter_matches): Support
CALL_SITE_PARAMETER_PARAM_OFFSET.
(needs_dwarf_reg_entry_value): Push stub value.
* dwarf2read.c (read_call_site_scope): New variable origin. Support
CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
* gdbtypes.h (enum call_site_parameter_kind): New item
CALL_SITE_PARAMETER_PARAM_OFFSET.
(struct call_site.parameter.u): New field param_offset.
gdb/testsuite/
* gdb.arch/amd64-entry-value-param.S: New file.
* gdb.arch/amd64-entry-value-param.c: New file.
* gdb.arch/amd64-entry-value-param.exp: New file.
Jan Kratochvil [Sun, 17 Jun 2012 19:50:53 +0000 (19:50 +0000)]
gdb/
Code cleanup: Generalize call_site.parameter key.
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
variable dwarf_reg. New variable kind_u. Update parameters to
push_dwarf_reg_entry_value.
(ctx_no_push_dwarf_reg_entry_value): Update parameters.
* dwarf2expr.h (enum call_site_parameter_kind)
(union call_site_parameter_u): Forward declarations.
(struct dwarf_expr_context_funcs): Update parameters and their
description for push_dwarf_reg_entry_value.
(ctx_no_push_dwarf_reg_entry_value): Update parameters.
* dwarf2loc.c (call_site_parameter_matches): New function.
(dwarf_expr_reg_to_entry_parameter): Update parameters and their
description. Use call_site_parameter_matches.
(dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
Update parameters and their description.
(value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
New variable kind_u. Adjust the caller for updated parameters.
(needs_dwarf_reg_entry_value): Update parameters.
* dwarf2read.c (read_call_site_scope): New variable loc. Use it
instead of attr. Update for the changed fields of struct
call_site_parameter.
* gdbtypes.h: Include dwarf2expr.h.
(enum call_site_parameter_kind): New.
(struct call_site.parameter): New field kind. Wrap dwarf_reg and
fb_offset into new union u.
Hans-Peter Nilsson [Sun, 17 Jun 2012 18:56:31 +0000 (18:56 +0000)]
* interp.c: Include config.h first. Do not include sysdep.h.
Hans-Peter Nilsson [Sun, 17 Jun 2012 16:56:37 +0000 (16:56 +0000)]
* ld-cris/tls-e-tpoffgotcomm1.d: New test.
Hans-Peter Nilsson [Sun, 17 Jun 2012 07:29:55 +0000 (07:29 +0000)]
* ld-cris/tls-e-tpiecomm1.d, ld-cris/tls-e-tpiecomm1.s: New test.
* ld-cris/tls-dso-tpoffgotcomm1.d,
ld-cris/tls-dso-tpoffgotcomm1.s: Ditto.
Hans-Peter Nilsson [Sun, 17 Jun 2012 07:28:29 +0000 (07:28 +0000)]
* elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>
<R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to
thread common symbols.
gdbadmin [Sun, 17 Jun 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 17 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update
H.J. Lu [Sat, 16 Jun 2012 15:20:22 +0000 (15:20 +0000)]
Add and use amd64_x32_analyze_stack_align
* amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
(amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
for x32.
H.J. Lu [Sat, 16 Jun 2012 15:18:18 +0000 (15:18 +0000)]
Support x32 siginfo
* amd64-linux-nat.c (compat_x32_clock_t): New.
(compat_x32_siginfo_t): Likewise.
(compat_x32_siginfo_from_siginfo): Likewise.
(siginfo_from_compat_x32_siginfo): Likewise.
(amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
and siginfo_from_compat_x32_siginfo for x32.
Hui Zhu [Sat, 16 Jun 2012 15:07:35 +0000 (15:07 +0000)]
2012-06-15 Hui Zhu <hui_zhu@mentor.com>
* tracepoint.c (tfile_xfer_partial): Add a lseek.
H.J. Lu [Sat, 16 Jun 2012 13:28:06 +0000 (13:28 +0000)]
Check bits_per_word instead of gdbarch_ptr_bit
* amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
instead of gdbarch_ptr_bit.
* amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
(amd64_supply_native_gregset): Likewise.
(amd64_collect_native_gregset): Likewise.
* amd64-tdep.c (amd64_supply_fxsave): Likewise.
(amd64_supply_xsave): Likewise.
(amd64_collect_fxsave): Likewise.
(amd64_collect_xsave): Likewise.
H.J. Lu [Sat, 16 Jun 2012 13:26:37 +0000 (13:26 +0000)]
Check DS segment register for x32 process
* amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
(amd64_linux_read_description): Check DS segment register for
x32 process.
gdbadmin [Sat, 16 Jun 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 16 Jun 2012 00:00:04 +0000 (00:00 +0000)]
daily update
Joel Brobecker [Fri, 15 Jun 2012 17:20:30 +0000 (17:20 +0000)]
sim/erc32/sys.h: Include "config.h".
This file includes "gdb/callback.h", which includes "bfd.h", which
itself verifies that "config.h" was included earlier.
sim/erc32/ChangeLog:
* sys.h: Include "config.h".
Joel Brobecker [Fri, 15 Jun 2012 17:20:10 +0000 (17:20 +0000)]
Define PACKAGE macro in all sims' config.h.
Some of the common includes in include/gdb such as callback.h
include bfd.h. But there was a recent change in bfd-in.h to
require that config.h be included before bfd.h can be included:
/* PR 14072: Ensure that config.h is included first. */
#if !defined PACKAGE && !defined PACKAGE_VERSION
#error config.h must be included before this header
#endif
PACKAGE_VERSION is always defined by default by the AC_INIT autoconf
macro, but PACKAGE isn't. This patch updates the SIM_AC_COMMON macro
to define it, and then regenerates all configure scripts and config.in
files.
sim/common/changeLog:
* acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
* config.in, configure: Regenerate.
sim/ChangeLog:
* configure: Regenerate.
sim/arm/ChangeLog:
* config.in, configure: Regenerate.
sim/avr/ChangeLog:
* config.in, configure: Regenerate.
sim/bfin/ChangeLog:
* config.in, configure: Regenerate.
sim/cr16/ChangeLog:
* config.in, configure: Regenerate.
sim/cris/ChangeLog:
* config.in, configure: Regenerate.
sim/d10v/ChangeLog:
* config.in, configure: Regenerate.
sim/erc32/ChangeLog:
* config.in, configure: Regenerate.
sim/frv/ChangeLog:
* config.in, configure: Regenerate.
sim/h8300/ChangeLog:
* config.in, configure: Regenerate.
sim/iq2000/ChangeLog:
* config.in, configure: Regenerate.
sim/lm32/ChangeLog:
* config.in, configure: Regenerate.
sim/m32c/ChangeLog:
* config.in, configure: Regenerate.
sim/m32r/ChangeLog:
* config.in, configure: Regenerate.
sim/m68hc11/ChangeLog:
* config.in, configure: Regenerate.
sim/mcore/ChangeLog:
* config.in, configure: Regenerate.
sim/microblaze/ChangeLog:
* config.in, configure: Regenerate.
sim/mips/ChangeLog:
* config.in, configure: Regenerate.
sim/mn10300/ChangeLog:
* config.in, configure: Regenerate.
sim/moxie/ChangeLog:
* config.in, configure: Regenerate.
sim/ppc/ChangeLog:
* configure: Regenerate.
sim/rl78/ChangeLog:
* config.in, configure: Regenerate.
sim/rx/ChangeLog:
* config.in, configure: Regenerate.
sim/sh/ChangeLog:
* config.in, configure: Regenerate.
sim/sh64/ChangeLog:
* config.in, configure: Regenerate.
sim/v850/ChangeLog:
* config.in, configure: Regenerate.
sim/testsuite/ChangeLog:
* configure: Regenerate.
Tom Tromey [Fri, 15 Jun 2012 16:19:02 +0000 (16:19 +0000)]
* dwarf2read.c (dw2_find_symbol_file): Unconditionally use
init_cutu_and_read_dies.
testsuite
* gdb.cp/namespace.exp: Add "show lang" test.
Alan Modra [Fri, 15 Jun 2012 15:13:41 +0000 (15:13 +0000)]
ld/
* ldlang.h (lang_output_section_statement_type): Add after_end field.
(lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
(section_for_dot): Declare.
* ldlang.c (lang_size_sections_1): Correct comment.
(current_section): Move earlier.
(current_assign, prefer_next_section): New static vars.
(lang_do_assignments_1): Add found_end param. Detect _end
assignment to set found_end. Set os->after_end. Set above statics.
(lang_do_assignments): Adjust lang_do_assignments_1 call. Init
vars.
(section_for_dot): New function.
(lang_set_startof): Don't make an absolute symbol.
(lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
* ldexp.c (new_rel_from_abs): Use section_for_dot.
* emultempl/lnk960.em (symbol_at_beginning_of): New function.
(symbol_at_end_of): Likewise.
(lnk960_after_allocation): Use them.
* scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
likewise before __bss_start.
ld/testsuite/
Update far too many tests.
Iain Sandoe [Fri, 15 Jun 2012 14:43:00 +0000 (14:43 +0000)]
gdb/testsuite:
* gdb.base/list.exp (test_listsize): Remove $use_gdb_stub special
case. (top level): Use gdb_file_cmd instead of gdb_load.
Iain Sandoe [Fri, 15 Jun 2012 14:41:26 +0000 (14:41 +0000)]
* MAINTAINERS (Write After Approval): Add myself to the list.
Tom Tromey [Fri, 15 Jun 2012 14:38:30 +0000 (14:38 +0000)]
* valops.c (value_find_oload_method_list): Now static.
* value.h (value_find_oload_method_list): Don't declare.
Tom Tromey [Fri, 15 Jun 2012 14:35:33 +0000 (14:35 +0000)]
* valops.c (find_overload_match): Use value_ind.
Eli Zaretskii [Fri, 15 Jun 2012 09:21:37 +0000 (09:21 +0000)]
Fix Texinfo usage issues. From Patrice Dumas <pertusus@free.fr>.
* gdb.texinfo (Summary): Add a link to "Free Documentation".
(Free Documentation): Add @node line.
(Continuing and Stepping) <advance location>: Use @item instead of
@itemx.
(Reverse Execution) <set exec-direction reverse>: Use @item instead of
@itemx.
(Embedded Processors): Put the link to "PA" to its correct place,
according to document structure.
(Python API): Put the link to "Lazy Strings In Python" to its
correct place.
(Index): Use @@ in @tex block to get a literal @.
* gdbint.texinfo: Fix the @subtitle line.
* stabs.texinfo (Top): Put the link to "Symbol Types Index" to its
correct place.
Maciej W. Rozycki [Fri, 15 Jun 2012 08:50:29 +0000 (08:50 +0000)]
* infrun.c (handle_inferior_event): Correct indentation.
Alan Modra [Fri, 15 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 15 Jun 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Thu, 14 Jun 2012 23:44:38 +0000 (23:44 +0000)]
Handle link_info.pie in ld plugin
* plugin.c (set_tv_header): Handle link_info.pie.
Doug Evans [Thu, 14 Jun 2012 22:56:47 +0000 (22:56 +0000)]
* dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
(DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
All uses updated.
(decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
updated. Handle DEBUG_LOC_START_LENGTH.
(dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
(loclist_describe_location): Ditto.
Maciej W. Rozycki [Thu, 14 Jun 2012 21:15:19 +0000 (21:15 +0000)]
PR backtrace/13866
* infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
after hiding inline functions.
Joel Brobecker [Thu, 14 Jun 2012 18:21:31 +0000 (18:21 +0000)]
Fix copy/paste error in _initialize_inf_ttrace's advance declaration.
gdb/ChangeLog:
* inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
_initialize_inf_ttrace.
Joel Brobecker [Thu, 14 Jun 2012 18:19:40 +0000 (18:19 +0000)]
Rename ia64-hpux-nat.c:_initialize_hppa_hpux_nat...
... into _initialize_ia64_hpux_nat. Looks like a harmless but
unfortunate copy/paste error.
gdb/ChangeLog:
* ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
_initialize_hppa_hpux_nat.
Joel Brobecker [Thu, 14 Jun 2012 18:17:37 +0000 (18:17 +0000)]
Fix invalid profile for command-completer in remote-sim.c
The profile of command completers has been change to returna VEC
of char_ptr. Most completers were updated, except the one in
remote-sim.c.
Unfortunately, to make things a little more difficult, the meat of
the completer is actually implemented in the sim, were VECs are not
available. This patch thus translates the returned array into a VEC,
and then returns that VEC.
gdb/ChangeLog:
* remote-sim.c (sim_command_completer): Change type of return
value to "VEC (char_ptr) *". Adjust implementation accordingly.
Alan Modra [Thu, 14 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 14 Jun 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Wed, 13 Jun 2012 21:41:07 +0000 (21:41 +0000)]
Fix .dc.a for x32
gas/
* config/tc-i386.c (x86_address_bytes): New.
* config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
(x86_address_bytes): Likewise.
gas/testsuite/
* gas/i386/ilp32/x86-64-dc_a.d: New.
* gas/i386/ilp32/x86-64-dc_a.s: Likewise.
Jan Kratochvil [Wed, 13 Jun 2012 21:31:06 +0000 (21:31 +0000)]
gdb/testsuite/
PR tdep/14222
* gdb.arch/i386-sse-stack-align.S: New file.
* gdb.arch/i386-sse-stack-align.c: New file.
* gdb.arch/i386-sse-stack-align.exp: New file.
Mark Kettenis [Wed, 13 Jun 2012 21:21:25 +0000 (21:21 +0000)]
PR tdep/14222
* i386-tdep.c (i386_push_dummy_call): Unconditionally align the
stack on a 16-byte boundary.
Tom Tromey [Wed, 13 Jun 2012 21:16:49 +0000 (21:16 +0000)]
2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
* jit.c (finalize_symtab): Set function's return type to 'void' by
default.
Mark Kettenis [Wed, 13 Jun 2012 20:36:48 +0000 (20:36 +0000)]
* amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
Move bits common to both the classic LP64 and the new x32 ILP32
ABI here.
(amd64_linux_init_abi): Call amd64_linux_init_abi_common.
(amd64_x32_linux_init_abi): New function.
(_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
subtype.
Mark Kettenis [Wed, 13 Jun 2012 20:29:15 +0000 (20:29 +0000)]
H.J. Lu <hongjiu.lu@intel.com>
* i386-tdep.h (i386_pseudo_register_name): New prototype.
* i386-tdep.c (i386_pseudo_register_name): Make public.
* amd64-tdep.h (amd64_x32_init_abi): New prototype.
* amd64-tdep.c (amd64_dword_names): Add "eip".
(amd64_x32_pseudo_register_type): New function
(amd64_x32_init_abi): New function.
Jan Kratochvil [Wed, 13 Jun 2012 18:15:05 +0000 (18:15 +0000)]
gdb/
PR build/14003
* inferior.h (struct inferior_suspend_state): Comment out.
(struct inferior): Comment out the field suspend.
* infrun.c (struct infcall_suspend_state): Comment out the field
inferior_suspend.
(save_infcall_suspend_state, restore_infcall_suspend_state): Comment
out its assignment.
Keith Seitz [Wed, 13 Jun 2012 18:06:07 +0000 (18:06 +0000)]
PR breakpoints/13798 and mi/11541
* gdb.linespec/ls-errs.exp: Add a few more tests for
filenames with spaces and colons.
Jan Kratochvil [Wed, 13 Jun 2012 16:10:10 +0000 (16:10 +0000)]
gdb/
PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
* c-exp.y (classify_inner_name): Remove caller assumptions in the
function comment. Return ERROR for unresolved cases. Implement
returning proper NAME.
(yylex): Accept also NAME from classify_inner_name.
* cp-namespace.c (cp_lookup_nested_type): Rename to ...
(cp_lookup_nested_symbol): ... here. Return any found symbol, not just
LOC_TYPEDEF type.
* cp-support.h (cp_lookup_nested_type): Update its declaration.
gdb/testsuite/
PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
* gdb.cp/cpexprs.cc (class CV, CV::i, ATTRIBUTE_USED, CV_f): New.
(test_function): Call CV_f.
* gdb.cp/cpexprs.exp (p 'CV::m(int)', p CV::m(int))
(p 'CV::m(int) const', p CV::m(int) const, p 'CV::m(int) volatile')
(p CV::m(int) volatile, p 'CV::m(int) const volatile')
(p CV::m(int) const volatile, p CV_f(int), p CV_f(CV::t))
(p CV_f(CV::i)): New tests.
Tom Tromey [Wed, 13 Jun 2012 15:50:22 +0000 (15:50 +0000)]
* breakpoint.c (condition_completer): New function.
(_initialize_breakpoint): Use it.
* value.c (complete_internalvar): New function.
* value.h (complete_internalvar): Declare.
testsuite
* gdb.base/condbreak.exp: Add tests for "condition" completion.
Tom Tromey [Wed, 13 Jun 2012 15:47:16 +0000 (15:47 +0000)]
* ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
* breakpoint.c (catch_syscall_completer): Return a VEC.
* cli/cli-cmds.c (complete_command): Update.
* cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
(complete_on_enum): Likewise.
* command.h: Include gdb_vecs.h.
(completer_ftype): Change return type.
(complete_on_cmdlist, complete_on_enum): Likewise.
* completer.c (noop_completer, filename_completer)
(location_completer): Return a VEC.
(add_struct_fields): Remove 'nextp' argument. Change 'output'
to a VEC.
(expression_completer, complete_line_internal, complete_line)
(command_completer): Return a VEC.
(gdb_completion_word_break_characters, line_completion_function):
Update.
* completer.h: Include gdb_vecs.h.
(complete_line, noop_completer, filename_completer)
(expression_completer, location_completer, command_completer):
Update.
* f-lang.c (f_word_break_characters): Return a VEC.
* interps.c (interpreter_completer): Return a VEC.
* language.h (struct language_defn)
<la_make_symbol_completion_list>: Return a VEC.
* python/py-cmd.c (cmdpy_completer): Return a VEC.
* symtab.c (free_completion_list): Take a VEC.
(return_val_size, return_val_index): Remove.
(return_val): Now a VEC.
(completion_list_add_name): Update.
(default_make_symbol_completion_list_break_on)
(default_make_symbol_completion_list, make_symbol_completion_list)
(make_symbol_completion_list_fn, make_file_symbol_completion_list):
Return a VEC.
(add_filename_to_list): Update.
(struct add_partial_filename_data) <list_used, list_alloced>: Remove.
<list>: Now a VEC.
(maybe_add_partial_symtab_filename): Update.
(make_source_files_completion_list): Return a VEC.
* symtab.h (default_make_symbol_completion_list_break_on)
(default_make_symbol_completion_list, make_symbol_completion_list)
(make_symbol_completion_list_fn, make_file_symbol_completion_list)
(make_source_files_completion_list): Update.
Tom Tromey [Wed, 13 Jun 2012 15:41:24 +0000 (15:41 +0000)]
* breakpoint.c (add_catch_command): Use completer_ftype.
* breakpoint.h: Include command.h.
(add_catch_command): Use completer_ftype.
* cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
* cli/cli-decode.h (struct cmd_list_element) <completer>:
Use completer_ftype.
* command.h (completer_ftype): New typedef.
(set_cmd_completer): Use it.
* python/py-cmd.c (struct cmdpy_completer) <completer>: Use
completer_ftype.
Nick Clifton [Wed, 13 Jun 2012 14:19:00 +0000 (14:19 +0000)]
PR gas/12698
* config/tc-arm.c (do_t_mrs): Do not require an m-profile
architecure when assembling for all archiectures.
(do_t_msr): Likewise.
Nick Clifton [Wed, 13 Jun 2012 14:15:59 +0000 (14:15 +0000)]
* ld-arm/arm-app-abs32.d; Update expected disassembly in line with
improved architecture detection.
* ld-arm/arm-app.d: Likewise.
* ld-arm/arm-lib-plt32.d: Likewise.
* ld-arm/arm-lib.d: Likewise.
* ld-arm/arm-static-app.d: Likewise.
* ld-arm/armthumb-lib.d: Likewise.
* ld-arm/farcall-mixed-app-v5.d: Likewise.
* ld-arm/farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-lib-v4t.d: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.
* ld-arm/mixed-app-v5.d: Likewise.
* ld-arm/mixed-app.d: Likewise.
* ld-arm/mixed-lib.d: Likewise.
* ld-arm/tls-app.d: Likewise.
* ld-arm/tls-descrelax-be32.d: Likewise.
* ld-arm/tls-descrelax.d: Likewise.
* ld-arm/tls-descseq.d: Likewise.
* ld-arm/tls-gdesc-got.d: Likewise.
* ld-arm/tls-gdesc.d: Likewise.
* ld-arm/tls-gdierelax.d: Likewise.
* ld-arm/tls-gdierelax2.d: Likewise.
* ld-arm/tls-gdlerelax.d: Likewise.
* ld-arm/tls-lib-loc.d: Likewise.
* ld-arm/tls-lib.d: Likewise.
* ld-arm/tls-thumb1.d: Likewise.
Tom Tromey [Wed, 13 Jun 2012 14:01:42 +0000 (14:01 +0000)]
* dwarf-mode.el: Add final comment. Bump version.
(dwarf-insert-substructure-button): Use string-to-number.
(dwarf-browse): Fix autoload cookie.
Pedro Alves [Wed, 13 Jun 2012 11:06:52 +0000 (11:06 +0000)]
2012-06-13 Pedro Alves <palves@redhat.com>
Partial revert of previous change.
* serial.c (scb_base): New global.
(serial_for_fd): New.
(serial_open, serial_fdopen_ops): Link new serial in open serials
chain.
(do_serial_close): Unlink serial from the open serials chain.
Nick Clifton [Wed, 13 Jun 2012 10:07:11 +0000 (10:07 +0000)]
* wrapper.c (sim_create_inferior): Treat WMMX2 binaries as iWMMXt
binaries (for now).
Nick Clifton [Wed, 13 Jun 2012 10:01:50 +0000 (10:01 +0000)]
* elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.
(elf32_arm_object_p): If the machine number could not be deduced
from the notes, call bfd_arm_get_mach_from_attributes to get the
number from the attributes.
Yao Qi [Wed, 13 Jun 2012 02:35:01 +0000 (02:35 +0000)]
gdb/gdbserver:
* server.c (start_inferior): Remove duplicated writes to fields
'last_resume_kind' and 'last_status' of 'current_inferior'.
gdbadmin [Wed, 13 Jun 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 13 Jun 2012 00:00:04 +0000 (00:00 +0000)]
daily update
Rafael Ávila de Espíndola [Tue, 12 Jun 2012 22:52:41 +0000 (22:52 +0000)]
2012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>
* plugin.cc (Plugin::load): Handle position independent executables.
Rafael Ávila de Espíndola [Tue, 12 Jun 2012 22:50:44 +0000 (22:50 +0000)]
2012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>
* plugin-api.h (ld_plugin_output_file_type): Add LDPO_PIE.
Pedro Alves [Tue, 12 Jun 2012 18:30:26 +0000 (18:30 +0000)]
2012-06-12 Pedro Alves <palves@redhat.com>
* infrun.c (infrun_thread_stop_requested_callback): Don't switch
threads here.
(prepare_for_detach): No longer context switch here in non-stop
mode.
(fetch_inferior_event): Ditto.
(handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
to the event thread before removing breakpoints. Switch to the
event thread before inserting breakpoints and resuming.
(handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
event thread before resuming.
(handle_inferior_event) <stepping_past_singlestep_breakpoint>:
Switch to the event thread before removing breakpoints.
Eli Zaretskii [Tue, 12 Jun 2012 16:36:42 +0000 (16:36 +0000)]
Fix quoting of special characters for the MinGW build.
infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
special characters correctly for the Windows shells. See
http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
report.
[!__MINGW32__]: Remove extra double quote character from special
characters.
Yao Qi [Tue, 12 Jun 2012 14:02:15 +0000 (14:02 +0000)]
gdb/gdbserver:
* linux-low.c (linux_set_resume_request): Simplify predicate. Add
comment.
* server.c (handle_v_cont): Extend comment.
H.J. Lu [Tue, 12 Jun 2012 12:55:11 +0000 (12:55 +0000)]
Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segment
bfd/
PR bfd/14207
* elf.c (assign_file_positions_for_non_load_sections): Abort if
PT_GNU_RELRO segment doesn't fit in PT_LOAD segment.
ld/testsuite/
PR ld/14207
* ld-x86-64/x86-64.exp: Run pr14207.
* ld-x86-64/pr14207.d: New file.
* ld-x86-64/pr14207.s: Likewise.
Alan Modra [Tue, 12 Jun 2012 06:31:06 +0000 (06:31 +0000)]
PR ld/14207
* elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type
sections at end of PT_LOAD segment when searching for segment
that contains end of relro extent.
Stan Shebs [Tue, 12 Jun 2012 00:58:56 +0000 (00:58 +0000)]
* ui-out.h: Remove #if 0 declarations.
* ui-out.c: Remove #if 0 functions.
gdbadmin [Tue, 12 Jun 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 12 Jun 2012 00:00:04 +0000 (00:00 +0000)]
daily update
Pedro Alves [Mon, 11 Jun 2012 20:36:53 +0000 (20:36 +0000)]
2012-06-11 Pedro Alves <palves@redhat.com>
* ser-base.c (run_async_handler_and_reschedule): New.
(fd_event, push_event): Use it.
* serial.c (serial_open, serial_fdopen_ops): Set the initial
reference count to 1.
(do_serial_close): Set the bufp field to NULL. Use serial_unref
instead of xfree.
(serial_is_open, serial_ref, serial_unref): New.
* serial.h (serial_open): Adjust comment.
(serial_is_open): Declare.
(serial_close): Adjust comment.
(serial_ref, serial_unref) Declare.
(struct serial): New field 'refcnt'.
Pedro Alves [Mon, 11 Jun 2012 20:33:56 +0000 (20:33 +0000)]
2012-06-11 Pedro Alves <palves@redhat.com>
Remove #if 0'd "connect" command, and unnecessary associated
refcounting and serial reuse bits.
* serial.h (struct serial): Remove fields 'next' and 'refcnt'.
* serial.c (last_serial_opened): Delete.
(scb_base): Delete.
(serial_open): Adjust.
(serial_for_fd): Delete.
(serial_fdopen_ops, do_serial_close): Adjust.
(serial_fdopen_ops): Adjust.
Pedro Alves [Mon, 11 Jun 2012 20:32:29 +0000 (20:32 +0000)]
2012-06-11 Pedro Alves <palves@redhat.com>
* serial.c (do_serial_close): Remove early return when SCB is
null.
Tom Tromey [Mon, 11 Jun 2012 20:19:22 +0000 (20:19 +0000)]
* dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
Jan Kratochvil [Mon, 11 Jun 2012 19:16:24 +0000 (19:16 +0000)]
gdb/
Fix regression by the "ambiguous linespec" series.
* breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
get_last_displayed_symtab and get_last_displayed_line and depending
on CURSAL.
gdb/testsuite/
Fix regression by the "ambiguous linespec" series.
* gdb.base/break.exp (list marker1, break lineno, delete $bpnum): New
tests.
Tom Tromey [Mon, 11 Jun 2012 18:45:01 +0000 (18:45 +0000)]
* dwarf2read.c (dw2_get_primary_filename_reader): New function.
(dw2_find_symbol_file): Use it.
Jan Kratochvil [Mon, 11 Jun 2012 17:44:07 +0000 (17:44 +0000)]
gdb/testsuite/
* lib/future.exp: Set $use_gdb_compile even if only find_go_linker is
missing.
H.J. Lu [Mon, 11 Jun 2012 16:48:35 +0000 (16:48 +0000)]
Reindent assign_file_positions_for_non_load_sections
* elf.c (assign_file_positions_for_non_load_sections): Reindent.
H.J. Lu [Mon, 11 Jun 2012 16:44:02 +0000 (16:44 +0000)]
Reindent _bfd_elf_map_sections_to_segments
* elf.c (_bfd_elf_map_sections_to_segments): Reindent.
Michael Eager [Mon, 11 Jun 2012 16:08:21 +0000 (16:08 +0000)]
*** empty log message ***
Tom Tromey [Mon, 11 Jun 2012 15:15:06 +0000 (15:15 +0000)]
* infrun.c (handle_inferior_event)
<BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
breakpoint.
<BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
exception logic in all cases. Update comments.
(insert_longjmp_resume_breakpoint): Set the exception resume
breakpoint.
testsuite
* gdb.base/longjmp.c (hidden_longjmp): Move expected catch
location...
(main): ...here.
Nick Clifton [Mon, 11 Jun 2012 14:26:41 +0000 (14:26 +0000)]
PR 13503
* config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
from 2012-05-16.
H.J. Lu [Mon, 11 Jun 2012 13:23:51 +0000 (13:23 +0000)]
Don't hardcode .got.plt into DATA_SEGMENT_RELRO_END evaluation
ld/
PR ld/14215
* ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
references.
* emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
.got.plt.
* emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
ld/testsuite/
PR ld/14215
* ld-i386/i386.exp: Run pr14215.
* ld-x86-64/x86-64.exp: Likewise.
* ld-i386/pr14215.d: New file.
* ld-i386/pr14215.s: Likewise.
* ld-x86-64/pr14215.d: Likewise.
* ld-x86-64/pr14215.s: Likewise.
Maciej W. Rozycki [Mon, 11 Jun 2012 10:11:14 +0000 (10:11 +0000)]
* mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
Andreas Schwab [Mon, 11 Jun 2012 08:20:43 +0000 (08:20 +0000)]
opcodes/
* ppc-opc.c (lvsl, lvebx, isellt, icbt, ldepx, lwepx, lvsr, lvehx)
(iselgt, lvewx, iseleq, isel, dcbst, dcbstep, dcbfl, dcbf, lbepx)
(lvx, dcbfep, dcbtstls, stvebx, dcbtstlse, stdepx, stwepx, dcbtls)
(stvehx, dcbtlse, stvewx, stbepx, icblc, stvx, dcbtstt, dcbtst)
(dcbtst, dcbtstep, dcbtt, dcbt, dcbt, lhepx, eciwx, dcbtep)
(dcread, lxvdsx, lvxl, dcblc, sthepx, ecowx, dcbi, dcread, icbtls)
(stvxl, lxsdx, lfdepx, stxsdx, stfdepx, dcba, dcbal, lxvw4x)
(tlbivax, lfdpx, lxvd2x, tlbsrx., stxvw4x, tlbsx, tlbsx., stfdpx)
(stfqx, stxvd2x, icbi, icbiep, icread, dcbzep): Change RA to RA0.
gas/testsuite/
* gas/ppc/e500mc.d: Update.
* gas/ppc/476.d: Update.
Yao Qi [Mon, 11 Jun 2012 07:24:15 +0000 (07:24 +0000)]
gdb/gdbserver:
* linux-low.c (linux_attach): Add 'static'.
Alan Modra [Mon, 11 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 11 Jun 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 10 Jun 2012 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 10 Jun 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Sat, 9 Jun 2012 13:22:00 +0000 (13:22 +0000)]
Allocate sufficient space for string buffer
* input-scrub.c (input_scrub_include_sb): Use sb_build to
allocate sufficient space for from_sb. Use sb_terminate to
terminate string.
* read.c (read_a_source_file): Use sb_build to allocate
sufficient space and replace sb_add_string with sb_add_buffer.
(s_macro): Likewise.
(input_scrub_insert_line): Likewise.
(s_irp): Use sb_build to allocate sufficient space.
(do_repeat): Use sb_build to allocate sufficient space
for many.
* sb.c (sb_build): Remove static.
* sb.h (sb_build): New prototype.
Alan Modra [Sat, 9 Jun 2012 08:32:43 +0000 (08:32 +0000)]
* sb.c: Include limits.h.
(dsize): Delete.
(MALLOC_OVERHEAD, INIT_ALLOC): Define.
(sb_new): Use INIT_ALLOC.
(sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
(sb_terminate): Don't use sb_add_char.
Siva Chandra Reddy [Sat, 9 Jun 2012 07:36:43 +0000 (07:36 +0000)]
2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
* valarith.c (binop_types_user_defined_p): Fix a typo.
gdbadmin [Sat, 9 Jun 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 9 Jun 2012 00:00:04 +0000 (00:00 +0000)]
daily update
Jakub Jelinek [Fri, 8 Jun 2012 19:07:33 +0000 (19:07 +0000)]
* dwarf.c (read_and_display_attr_value): Handle
DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
(display_debug_macro): Handle DW_MACRO_GNU_define_indirect_alt,
DW_MACRO_GNU_undef_indirect_alt and
DW_MACRO_GNU_transparent_include_alt.
DJ Delorie [Fri, 8 Jun 2012 19:01:23 +0000 (19:01 +0000)]
merge from gcc
Yao Qi [Fri, 8 Jun 2012 14:24:57 +0000 (14:24 +0000)]
gdb/
* arch-utils.c (default_return_in_first_hidden_param_p): New.
* arch-utils.h: Declare.
* gdbarch.sh: Add return_in_first_hidden_param_p.
* gdbarch.c, gdbarch.h: Regenerated.
* infcall.c (call_function_by_hand): Call
gdbarch_return_in_first_hidden_param_p instead of
language_pass_by_reference.
* m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
(m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
* sh-tdep.c (sh_return_in_first_hidden_param_p): New.
(sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
* tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
`cplus_return_struct_by_reference'.
(tic6x_return_value): Handle language cplusplus.
(tic6x_return_in_first_hidden_param_p): New.
(tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
Yao Qi [Fri, 8 Jun 2012 13:05:55 +0000 (13:05 +0000)]
gdb/doc:
* gdb.texinfo (In-Process Agent): Add 'In-Process Agent
Protocol'.
(In-Process Agent Protocol, IPA Protocol Objects)
(IPA Protocol Commands): New nodes.
(Tracepoint Packets): Add anchors.
gdbadmin [Fri, 8 Jun 2012 00:01:03 +0000 (00:01 +0000)]
*** empty log message ***
Alan Modra [Fri, 8 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update