aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-06-14daily updateAlan Modra1-1/+1
2012-06-14*** empty log message ***gdbadmin1-1/+1
2012-06-13Fix .dc.a for x32H.J. Lu6-0/+35
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.
2012-06-13gdb/testsuite/Jan Kratochvil4-0/+351
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.
2012-06-13 PR tdep/14222Mark Kettenis2-7/+14
* i386-tdep.c (i386_push_dummy_call): Unconditionally align the stack on a 16-byte boundary.
2012-06-132012-06-13 Kaushik Srenevasan <kaushik@twitter.com>Tom Tromey2-0/+10
* jit.c (finalize_symtab): Set function's return type to 'void' by default.
2012-06-13 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.Mark Kettenis2-34/+93
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.
2012-06-13 H.J. Lu <hongjiu.lu@intel.com>Mark Kettenis5-2/+54
* 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.
2012-06-13gdb/Jan Kratochvil3-0/+20
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.
2012-06-13 PR breakpoints/13798 and mi/11541Keith Seitz2-1/+9
* gdb.linespec/ls-errs.exp: Add a few more tests for filenames with spaces and colons.
2012-06-13gdb/Jan Kratochvil7-27/+104
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.
2012-06-13 * breakpoint.c (condition_completer): New function.Tom Tromey6-1/+99
(_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.
2012-06-13 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.Tom Tromey14-334/+230
* 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.
2012-06-13 * breakpoint.c (add_catch_command): Use completer_ftype.Tom Tromey7-13/+22
* 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.
2012-06-13 PR gas/12698Nick Clifton2-8/+25
* config/tc-arm.c (do_t_mrs): Do not require an m-profile architecure when assembling for all archiectures. (do_t_msr): Likewise.
2012-06-13 * ld-arm/arm-app-abs32.d; Update expected disassembly in line withNick Clifton26-25/+54
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.
2012-06-13 * dwarf-mode.el: Add final comment. Bump version.Tom Tromey2-3/+11
(dwarf-insert-substructure-button): Use string-to-number. (dwarf-browse): Fix autoload cookie.
2012-06-132012-06-13 Pedro Alves <palves@redhat.com>Pedro Alves3-0/+46
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.
2012-06-13 * wrapper.c (sim_create_inferior): Treat WMMX2 binaries as iWMMXtNick Clifton2-0/+6
binaries (for now).
2012-06-13 * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.Nick Clifton2-8/+52
(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.
2012-06-13gdb/gdbserver:Yao Qi2-2/+5
* server.c (start_inferior): Remove duplicated writes to fields 'last_resume_kind' and 'last_status' of 'current_inferior'.
2012-06-13*** empty log message ***gdbadmin1-1/+1
2012-06-13daily updateAlan Modra1-1/+1
2012-06-122012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>Rafael Ávila de Espíndola2-0/+6
* plugin.cc (Plugin::load): Handle position independent executables.
2012-06-122012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>Rafael Ávila de Espíndola2-1/+6
* plugin-api.h (ld_plugin_output_file_type): Add LDPO_PIE.
2012-06-122012-06-12 Pedro Alves <palves@redhat.com>Pedro Alves2-20/+25
* 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.
2012-06-12Fix quoting of special characters for the MinGW build.Eli Zaretskii2-5/+39
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.
2012-06-12gdb/gdbserver:Yao Qi3-6/+14
* linux-low.c (linux_set_resume_request): Simplify predicate. Add comment. * server.c (handle_v_cont): Extend comment.
2012-06-12Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segmentH.J. Lu6-0/+53
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.
2012-06-12 PR ld/14207Alan Modra2-7/+21
* 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.
2012-06-12 * ui-out.h: Remove #if 0 declarations.Stan Shebs3-79/+5
* ui-out.c: Remove #if 0 functions.
2012-06-12*** empty log message ***gdbadmin1-1/+1
2012-06-12daily updateAlan Modra1-1/+1
2012-06-112012-06-11 Pedro Alves <palves@redhat.com>Pedro Alves4-11/+88
* 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'.
2012-06-112012-06-11 Pedro Alves <palves@redhat.com>Pedro Alves3-190/+13
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.
2012-06-112012-06-11 Pedro Alves <palves@redhat.com>Pedro Alves2-6/+5
* serial.c (do_serial_close): Remove early return when SCB is null.
2012-06-11 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.Tom Tromey2-0/+12
2012-06-11gdb/Jan Kratochvil4-4/+31
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.
2012-06-11 * dwarf2read.c (dw2_get_primary_filename_reader): New function.Tom Tromey2-5/+37
(dw2_find_symbol_file): Use it.
2012-06-11gdb/testsuite/Jan Kratochvil2-1/+6
* lib/future.exp: Set $use_gdb_compile even if only find_go_linker is missing.
2012-06-11Reindent assign_file_positions_for_non_load_sectionsH.J. Lu2-8/+13
* elf.c (assign_file_positions_for_non_load_sections): Reindent.
2012-06-11Reindent _bfd_elf_map_sections_to_segmentsH.J. Lu2-1/+5
* elf.c (_bfd_elf_map_sections_to_segments): Reindent.
2012-06-11*** empty log message ***Michael Eager3-0/+141
2012-06-11 * infrun.c (handle_inferior_event)Tom Tromey4-57/+68
<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.
2012-06-11 PR 13503Nick Clifton2-1/+7
* config/tc-avr.c (exp_mod): Fix typo introduced in 1.82 from 2012-05-16.
2012-06-11Don't hardcode .got.plt into DATA_SEGMENT_RELRO_END evaluationH.J. Lu18-10/+67
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.
2012-06-11 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.Maciej W. Rozycki2-3/+14
2012-06-11opcodes/Andreas Schwab5-78/+95
* 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.
2012-06-11gdb/gdbserver:Yao Qi2-1/+5
* linux-low.c (linux_attach): Add 'static'.
2012-06-11daily updateAlan Modra1-1/+1