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
Doug Evans [Thu, 7 Jun 2012 17:30:12 +0000 (17:30 +0000)]
* dwarf2read.c (dwarf2_cu): Add comment.
Nick Clifton [Thu, 7 Jun 2012 16:53:10 +0000 (16:53 +0000)]
PR 13697
* scripttempl/avr.sc (.data): Keep it.
Nick Clifton [Thu, 7 Jun 2012 16:43:36 +0000 (16:43 +0000)]
* avr.h: (AVR_ISA_XCH): New define.
(AVR_ISA_XMEGA): Use it.
(XCH, LAS, LAT, LAC): New XMEGA opcodes.
Thomas Schwinge [Thu, 7 Jun 2012 15:34:23 +0000 (15:34 +0000)]
binutils/testsuite/
* binutils-all/i386/i386.exp: Don't skip for x86_64-*-linux*.
Yao Qi [Thu, 7 Jun 2012 15:07:03 +0000 (15:07 +0000)]
gdb/testsuite/
* gdb.trace/strace.exp: Shorten some too-long lines.
H.J. Lu [Thu, 7 Jun 2012 14:52:42 +0000 (14:52 +0000)]
Move gas/all/rept.[ds] to gas/i386
* gas/all/gas.exp: Don't run rept.
* gas/all/rept.d: Moved to ...
* gas/i386/rept.d: Here.
* gas/all/rept.s: Moved to ...
* gas/i386/rept.s: Here.
* gas/i386/i386.exp: Run rept.
H.J. Lu [Thu, 7 Jun 2012 13:47:14 +0000 (13:47 +0000)]
Add a testcase for PR gas/14201
PR gas/14201
* gas/all/gas.exp: Run rept.
* gas/all/rept.d: New file.
* gas/all/rept.s: Likewise.
Alan Modra [Thu, 7 Jun 2012 12:47:23 +0000 (12:47 +0000)]
PR gas/14201
* sb.h (sb_max_power_two): Delete.
(struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
(sb_element): Delete.
(sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
prototypes.
* sb.c (string_count, free_list): Delete.
(sb_build, sb_kill, sb_check): Rewrite.
(scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
sb_skip_white, sb_skip_comma): Replace assorted int params,
vars and return types with size_t.
* input-scrub.c: Likewise.
* macro.c: Likewise.
* macro.h: Likewise.
* as.c: Likewise.
* as.h: Likewise.
* input-file.h: Likewise.
* input-file.c: Likewise.
* read.c: Likewise.
* app.c: ..or ptrdiff_t.
* input-file.c (input_file_get): Use ferror.
(input_file_give_next_buffer): Use input_file_get.
Cary Coutant [Thu, 7 Jun 2012 05:14:44 +0000 (05:14 +0000)]
gold/
* layout.cc (gdb_sections): Remove ".debug_" prefixes,
add .debug_macro.
(lines_only_debug_sections): Likewise.
(gdb_fast_lookup_sections): New static array.
(is_gdb_debug_section): Rename formal parameter.
(is_lines_only_debug_section): Likewise.
(is_gdb_fast_lookup_section): New function.
(Layout::include_section): Check for ".zdebug_" prefix; pass
section name suffix to is_gdb_debug_section, et al.; check for
fast-lookup sections when building .gdb_index.
* options.h (--strip-debug-gdb): Update GDB version number.
gdbadmin [Thu, 7 Jun 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 7 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update
Cary Coutant [Wed, 6 Jun 2012 22:12:47 +0000 (22:12 +0000)]
gold/
* configure.ac: Add check for fallocate.
* configure: Regenerate.
* config.in: Regenerate.
* options.h (class General_options): Add --mmap-output-file and
--posix-fallocate options.
* output.cc: (posix_fallocate): Remove; replace with...
(gold_fallocate): New function.
(Output_file::map_no_anonymous): Call gold_fallocate.
(Output_file::map): Check --mmap-output-file option.
Michael Eager [Wed, 6 Jun 2012 21:50:03 +0000 (21:50 +0000)]
Move config.h to start of includes.
Maciej W. Rozycki [Wed, 6 Jun 2012 21:34:12 +0000 (21:34 +0000)]
* mips-tdep.c (mips_pseudo_register_type): Remove tdep local
variable.
(mips_eabi_push_dummy_call): Likewise.
(mips_n32n64_push_dummy_call): Likewise.
(mips_o32_push_dummy_call): Likewise.
(mips_o64_push_dummy_call): Likewise.
Maciej W. Rozycki [Wed, 6 Jun 2012 21:27:37 +0000 (21:27 +0000)]
* mips-tdep.c (mips_convert_register_p): Correct coding style.
Maciej W. Rozycki [Wed, 6 Jun 2012 19:34:31 +0000 (19:34 +0000)]
* mips-tdep.c (mips_pseudo_register_type): Use
mips_float_register_p.
Pedro Alves [Wed, 6 Jun 2012 19:27:23 +0000 (19:27 +0000)]
2012-06-06 Pedro Alves <palves@redhat.com>
* infrun.c (handle_inferior_event): Remove calls to
reinit_frame_cache that follow a context_switch call.
Pedro Alves [Wed, 6 Jun 2012 18:40:06 +0000 (18:40 +0000)]
2012-06-06 Pedro Alves <palves@redhat.com>
* infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
context_switch and remove stale comment.
Pedro Alves [Wed, 6 Jun 2012 18:10:17 +0000 (18:10 +0000)]
gdb/
2012-06-06 Pedro Alves <palves@redhat.com>
* infrun.c (struct execution_control_state): Remove
`new_thread_event' field.
(handle_inferior_event): Simplify new threads handling; don't
resume the inferior if we find a new thread.
gdb/testsuite/
2012-06-06 Pedro Alves <palves@redhat.com>
* gdb.threads/clone-new-thread-event.c: New file.
* gdb.threads/clone-new-thread-event.exp: New file.
Thomas Schwinge [Wed, 6 Jun 2012 18:03:54 +0000 (18:03 +0000)]
gdb/
* NEWS: Document the deprecation of SH's 'regs' command.
* inferior.h (all_registers_info): Add function declaration.
* sh-tdep.c (sh_show_regs): Remove variable.
(sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
(sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
(sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
(sh_show_regs_command): Remove functions.
(sh_gdbarch_init): Don't set sh_show_regs.
(_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
'info all-registers'.
* sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
(sh64_show_regs): Remove functions.
* sh64-tdep.h (sh64_show_regs): Remove function declaration.
gdb/doc/
* gdb.texinfo: Document the deprecation of SH's 'regs' command.
Jan Kratochvil [Wed, 6 Jun 2012 16:57:38 +0000 (16:57 +0000)]
gdb/
* configure.ac: Move development=true below AC_INIT.
* configure: Regenerate.
Michael Eager [Wed, 6 Jun 2012 15:05:23 +0000 (15:05 +0000)]
Add #include "config.h".
Alan Modra [Wed, 6 Jun 2012 10:50:18 +0000 (10:50 +0000)]
bfd/
* elflink.c (elf_link_input_bfd): Provide a file symbol for
each input file with local syms, if the input lacks such.
(bfd_elf_final_link): Add a file symbol to mark end of locals
for which we can associate with input files.
(struct elf_final_link_info): Add filesym_count field.
(struct elf_outext_info): Add need_second_pass and second_pass.
(elf_link_output_extsym): Detect symbols defined in the output
file, emit them on second pass over locals.
ld/testsuite/
Update to suit added STT_FILE symbols.
Yao Qi [Wed, 6 Jun 2012 08:51:22 +0000 (08:51 +0000)]
gdb/testsuite/
* gdb.base/dprintf.c (main): Add extra parameter when calling
printf and fprintf.
(bar): New function. It is a dead function, but to ensure
'malloc' is linked explicitly.
Yao Qi [Wed, 6 Jun 2012 08:47:04 +0000 (08:47 +0000)]
gdb/testsuite/
* gdb.base/info-proc.exp: Return if target doesn't support
'info proc'.
Yao Qi [Wed, 6 Jun 2012 08:31:31 +0000 (08:31 +0000)]
gdb/gdbserver/
* ax.c (gdb_eval_agent_expr): Print `top' in hex.
Yao Qi [Wed, 6 Jun 2012 08:20:12 +0000 (08:20 +0000)]
gdb/doc/
* gdb.texinfo: Update copyright year.
Doug Kwan [Wed, 6 Jun 2012 07:49:26 +0000 (07:49 +0000)]
2012-06-05 Jing Yu <jingyu@google.com>
* gold.h (textdomain): Add do {} to empty while(0).
(bindtextdomain): Likewise.
Alan Modra [Wed, 6 Jun 2012 06:12:35 +0000 (06:12 +0000)]
* ld-mmix/bpo-9.d: Update.
* ld-mmix/bpo-10.d: Update.
* ld-mmix/bpo-11.d: Update.
* ld-mmix/sec-7m.d: Update.
Stan Shebs [Wed, 6 Jun 2012 06:04:46 +0000 (06:04 +0000)]
* mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
gdb_stdout.
gdbadmin [Wed, 6 Jun 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 6 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update
Jan Kratochvil [Tue, 5 Jun 2012 21:22:31 +0000 (21:22 +0000)]
gdb/
* corefile.c (read_memory, read_stack, write_memory): Accept LEN
argument as ssize_t.
* gdbcore.h (read_memory, read_stack, write_memory): Likewise.
* remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
* target.c (target_read_stack, target_write_memory)
(target_write_raw_memory): Likewise.
* target.h (target_read_stack, target_write_memory)
(target_write_raw_memory): Likewise.
Jan Kratochvil [Tue, 5 Jun 2012 21:18:05 +0000 (21:18 +0000)]
gdb/
* symfile-mem.c: Change gdb_static_assert to ssize_t.
(target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
* target.c (target_read_memory): Change LEN to ssize_t.
* target.h (target_read_memory): Change LEN to ssize_t.
Pedro Alves [Tue, 5 Jun 2012 19:50:50 +0000 (19:50 +0000)]
2012-06-05 Pedro Alves <palves@redhat.com>
PR backtrace/13866
* breakpoint.c (until_break_command): Only fetch the selected
frame after decode_line_1.
Jan Kratochvil [Tue, 5 Jun 2012 19:06:20 +0000 (19:06 +0000)]
gdb/testsuite/
* gdb.base/freebpcmd.exp (set lines): Check valid range of I.
(run program with breakpoint commands): XFAIl if it is not.
Pedro Alves [Tue, 5 Jun 2012 15:44:03 +0000 (15:44 +0000)]
2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
* solib-svr4.c (enable_break): Don't fallback to setting the solib
event breakpoint at _start, __start or main if a program
interpreter is not found.
Joel Brobecker [Tue, 5 Jun 2012 13:50:57 +0000 (13:50 +0000)]
Windows-specific iterate_over_objfiles_in_search_order
This patch sets the windows target to use their own version of
the iterate_over_objfiles_in_search_order gdbarch method, in
order to make global symbol searches sensitive to the current
objfile.
gdb/ChangeLog:
* windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
Add declaration.
* windows-tdep.c: #include "objfiles.h".
(windows_iterate_over_objfiles_in_search_order): New function.
* amd64-windows-tdep.c (amd64_windows_init_abi): Set
iterate_over_objfiles_in_search_order gdbarch method to
windows_iterate_over_objfiles_in_search_order.
* i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
Joel Brobecker [Tue, 5 Jun 2012 13:50:50 +0000 (13:50 +0000)]
New "iterate_over_objfiles_in_search_order" gdbarch method.
This patch introduces the "iterate_over_objfiles_in_search_order"
gdbarch method, as well as its default implementation, and converts
the areas where it will matter to using this gdbarch method.
The default method implementation is the only one installed, and
the changes should have no functional impact in terms of behavior.
This only paves the way for the architectures that will need their
own version.
gdb/ChangeLog:
* gdbarch.sh: Add generation of
"iterate_over_objfiles_in_search_order_cb_ftype" typedef in
gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
(iterate_over_objfiles_in_search_order): New gdbarch method.
* gdbarch.h, gdbarch.c: Regenerate.
* objfiles.h (default_iterate_over_objfiles_in_search_order):
Add declaration.
* objfiles.c (default_iterate_over_objfiles_in_search_order):
New function.
* symtab.c (lookup_symbol_aux_objfile): New function, extracted
out of lookup_symbol_aux_symtabs.
(lookup_symbol_aux_symtabs): Replace extracted-out code by
call to lookup_symbol_aux_objfile.
(struct global_sym_lookup_data): New type.
(lookup_symbol_global_iterator_cb): New function.
(lookup_symbol_global): Search for symbol using
gdbarch_iterate_over_objfiles_in_search_order and
lookup_symbol_global_iterator_cb.
* findvar.c (struct minsym_lookup_data): New type.
(minsym_lookup_iterator_cb): New function.
(default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
symbol's address via gdbarch_iterate_over_objfiles_in_search_order
and minsym_lookup_iterator_cb.
Joel Brobecker [Tue, 5 Jun 2012 13:50:40 +0000 (13:50 +0000)]
Revert "Search global symbols from the expression's block objfile first."
The search order used in this patch breaks global symbol lookups
for certain symbols when copy-relocation is used. A slightly different
search order will be implemented later.
gdb/ChangeLog:
Revert the following patch:
* findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
try locating the symbol in the symbol's own objfile first, before
extending the search to all objfiles.
* symtab.c (lookup_symbol_aux_objfile): New function, extracted
out of lookup_symbol_aux_symtabs.
(lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
Replace extracted-out code by call to lookup_symbol_aux_objfile.
Do not search EXCLUDE_OBJFILE.
(lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
(lookup_symbol_global): Search for matches in the block's objfile
first, before searching all other objfiles.