aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-08-12Really commit server.c bits of 2010-08-09's change...Pedro Alves1-2/+18
2010-08-12 * ldexp.c (new_rel): Remove "str". Update all call sites.Alan Modra2-8/+15
(exp_fold_tree_1): When assigning to dot, calculate nextdot using expld.result.section rather than expld.section.
2010-08-12 PR binutils/11742Nick Clifton2-1/+8
* readelf.c (get_archive_member_name): Do not read beyond the end of the ar_name field.
2010-08-12daily updateAlan Modra1-1/+1
2010-08-12*** empty log message ***gdbadmin1-1/+1
2010-08-112010-08-11 Tom Tromey <tromey@redhat.com>Phil Muldoon6-0/+184
Phil Muldoon <pmuldoon@redhat.com> * python/python.c (gdbpy_run_events): New function. (gdbpy_post_event): Likewise. (gdbpy_initialize_events): Likewise. (_initialize_python): Call gdbpy_initialize_events. 2010-08-11 Tom Tromey <tromey@redhat.com> Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Basic Python): Describe post_event API. 2010-08-11 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/python.exp (gdb_py_test_multiple): Add gdb.post_event tests.
2010-08-11gdb/ChangeLog:* gdb/valarith.c (vector_binop): New function.(scalar_binop): ↵Ken Werner8-5/+215
Likewise.(value_binop): Call scalar_binop or vector_binop depending on the types.* gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.(evaluate_subexp_with_coercion): Add vector check to not convert vectorsto pointers.* gdb/value.c (coerce_array): Add vector check to not coerce vectors.testsuite/ChangeLog:* gdb.base/Makefile.in (EXECUTABLES): Add gnu_vector.* gdb.base/gnu_vector.c: New File.* gdb.base/gnu_vector.exp: Likewise.
2010-08-112010-08-11 Thomas Schwinge <thomas@codesourcery.com>Thomas Schwinge2-1/+6
* linux-low.c (linux_wait_1): Correctly return the ptid of the child after its termination.
2010-08-112010-08-11 Brad Roberts <braddr@puremagic.com>Tom Tromey2-3/+9
* d-lang.c (extract_identifiers): Handle multiple digits.
2010-08-11gdb/Jan Kratochvil9-17/+30
Code cleanup. * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier. Rename to dummy_frame_unwind. (dummy_frame_unwind): Remove. * dummy-frame.h (dummy_frame_unwind): Reference directly the struct. * frame-unwind.c (frame_unwind_init): Use address of dummy_frame_unwind and inline_frame_unwind. * frame.c (create_sentinel_frame): Use address of sentinel_frame_unwind. * inline-frame.c (inline_frame_unwinder): Rename to inline_frame_unwind. (inline_frame_unwind): Remove. * inline-frame.h (inline_frame_unwind): Reference directly the struct. * sentinel-frame.c (sentinel_frame_unwinder): Rename to sentinel_frame_unwind. (sentinel_frame_unwind): Remove. * sentinel-frame.h (sentinel_frame_unwind): Reference directly the struct.
2010-08-11gdb/Jan Kratochvil4-16/+30
Code cleanup. * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type and returned value. New comment from frame-unwind.h. * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type. Extend the comment. * frame.c (get_frame_id, frame_unwind_register_value) (create_new_frame, get_prev_frame_1, frame_unwinder_is) (get_frame_type, frame_unwind_arch): Do not use the return value of frame_unwind_find_by_frame.
2010-08-112010-08-11 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon8-1/+317
Thiago Jung Bauermann <bauerman@br.ibm.com> Tom Tromey <tromey@redhat.com> * python/python.c (gdbpy_solib_address): New function. (gdbpy_decode_line): Likewise. 2010-08-11 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Basic Python): Describe solib_address and decode_line Python APIs 2010-08-11 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/python.c: New File. * gdb.python/python-sl.c: New File. * gdb.python/python.exp: Test solib_address and decode_line * functions.
2010-08-11daily updateAlan Modra1-1/+1
2010-08-11*** empty log message ***gdbadmin1-1/+1
2010-08-10 * gdb.texinfo (Pretty Printing API): DocumentTom Tromey2-0/+15
gdb.default_visualizer.
2010-08-10gdbTom Tromey4-20/+12
Revert gdb-add-index addition: * Makefile.in (install-only): Don't install gdb-add-index. * gdb-add-index.sh: Remove. gdb/doc Revert gdb-add-index addition: * gdb.texinfo (Index Files): Don't document gdb-add-index.
2010-08-10 * remote-sim.c (gdbsim_xfer_inferior_memory): ReplaceKevin Buettner2-6/+40
`target_has_execution' check with `to_has_memory' check. (gdbsim_has_all_memory, gdbsim_has_memory): New functions. (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops' with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2010-08-10 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)Kevin Buettner2-76/+433
(resume_siggnal, resume_step): Move these static globals... (struct sim_inferior_data): ...into this new struct. (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open): New static globals. (gdb_callback, callbacks_initialized): Move these globals to a point earlier in the file. (check_for_duplicate_sim_descriptor, get_sim_inferior_data) (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup) (gdbsim_close_inferior, gdbsim_resume_inferior) (gdbsim_stop_inferior): New functions. (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID): New constants. (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load) (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume) (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait) (gdbsim_xfer_inferior_memory, gdbsim_files_info) (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive, (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set new local variable `sim_data' in each of these functions. Use `sim_data' to reference former globals `program_loaded', `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and `resume_step'. (gdbsim_open): Remove local variable `argv'. Put results of call to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't make a cleanup for it. Free it though when a sim instance cannot be obtained. (gdbsim_close): Free sim_argv and null it out as appropriate. Close sim instances in all inferiors. (gdbsim_cntrl_c): Stop all inferiors. (gdbsim_wait): (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2010-08-10*** empty log message ***gdbadmin1-1/+1
2010-08-10daily updateAlan Modra1-1/+1
2010-08-09 PR ld/11891Richard Henderson2-10/+22
* elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing to tlshi/lo until pos0 and pos1 are adjacent. Use the destination register from the tldgd insn.
2010-08-09Complete symbol construction before adding to pending list.Sami Wagiaalla2-48/+31
2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> * dwarf2read.c (new_symbol): Add symbol to variable list at end of function after symbol construction is complete. Do the same for template symbol addition to template_symbols list.
2010-08-09Fixed stabs cplus_specific issueSami Wagiaalla3-3/+15
2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> * symtab.c (symbol_get_demangled_name): Remove assertion and return NULL when language_specific.cplus_specific is not initialized. * stabsread.c (define_symbol): Set the name before calling cp_scan_for_anonymous_namespaces.
2010-08-092010-08-09 Catherine Moore <clm@codesourcery.com>Catherine Moore7-1/+55
* elfxx-mips.c (mips_elf_perform_relocation): Improve interlinking error message. 2010-08-09 Catherine Moore <clm@codesourcery.com> * ld-mips-elf/mode-change-error-1.d: New. * ld-mips-elf/mode-change-error-1a.s: New. * ld-mips-elf/mode-change-error-1b.s: New. * ld-mips-elf/mips-elf.exp: Run new test.
2010-08-09create and use symbol_set_language.Sami Wagiaalla12-22/+39
2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to SYMBOL_SET_LANGUAGE. (symbol_init_language_specific): Renamed to symbol_set_language. * symtab.c (symbol_init_language_specific): Removed redundant check for language_cplus. Renamed to symbol_set_language. * stabsread.c (define_symbol): Updated. (read_enum_type): Updated * psymtab.c (add_psymbol_to_bcache): Updated. * minsyms.c (install_minimal_symbols): Updated. * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of SYMBOL_LANGUAGE to set the language. * minsyms.c (prim_record_minimal_symbol_full): Ditto. * mdebugread.c (new_symbol): Ditto. * cp-namespace.c (check_one_possible_namespace_symbol): Ditto. * dwarf2read.c (new_symbol_full): Ditto. * jv-lang.c (add_class_symbol): Ditto.
2010-08-09 * as.c (show_usage): Don't list --compress-debug-sections if zlib notCary Coutant3-0/+24
installed. (main): Warn if --compress-debug-sections requested and zlib not installed. * doc/as.texinfo: Add --compress-debug-sections, --nocompress-debug-sections.
2010-08-09 * linux-low.c (gdb_wants_lwp_stopped): Delete.Pedro Alves2-46/+11
(gdb_wants_all_stopped): Delete. (linux_wait_1): Don't call them. * server.c (handle_v_cont): Tag all threads as want-stopped. (gdb_wants_thread_stopped): Fix comments. Tag the thread that stopped as "client-wants-stopped".
2010-08-09daily updateAlan Modra1-1/+1
2010-08-09*** empty log message ***gdbadmin1-1/+1
2010-08-08*** empty log message ***gdbadmin1-1/+1
2010-08-08daily updateAlan Modra1-1/+1
2010-08-07gdb/Jan Kratochvil10-47/+189
* defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file) (make_cleanup_restore_page_info) (set_batch_flag_and_make_cleanup_restore_page_info): New declarations. * gdbcmd.h (execute_command_to_string): New declaration. * python/python.c (struct restore_ui_file_closure, restore_ui_file) (make_cleanup_restore_ui_file): Move to utils.c (execute_gdb_command) <to_string>: Move ... * top.c (execute_command_to_string): ... here. Call set_batch_flag_and_make_cleanup_restore_page_info. * utils.c (make_cleanup_restore_integer): New source file blank line. (make_cleanup_restore_uinteger): New. (struct restore_ui_file_closure, do_restore_ui_file) (make_cleanup_restore_ui_file): Move here from python/python.c. (init_page_info) <batch_flag> (do_restore_page_info_cleanup, make_cleanup_restore_page_info) (set_batch_flag_and_make_cleanup_restore_page_info): New. gdb/testsuite/ * gdb.python/python.exp (show height, set height 10) (verify pagination beforehand, verify pagination beforehand: q) (gdb.execute does not page, verify pagination afterwards) (verify pagination afterwards: q): New. gdb/doc/ * gdb.texinfo (Mode Options) <-batch> (Basic Python) <gdb.execute>: Describe setting width and height.
2010-08-07daily updateAlan Modra1-1/+1
2010-08-07*** empty log message ***gdbadmin1-1/+1
2010-08-06Re-indent config/tc-i386.c.H.J. Lu2-3/+8
2010-08-06 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (set_cpu_arch): Re-indent. (md_parse_option): Likewise.
2010-08-06 * thread.c (add_thread_silent): Use null_ptid instead ofPedro Alves2-2/+7
minus_one_ptid while getting rid of stale inferior_ptid.
2010-08-06 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.Corinna Vinschen6-16/+93
Throughout, call read_encoded_value with ptr_size rather than addr_size. (decode_frame_entry_1): Remove redundant setting of addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit to determine addr_size in Dwarf versions < 4. Set ptr_size dependent on examined frame section. Add comment to explain why. * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy comment to explain usage. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2010-08-06Don't generate multi-byte NOPs for i686.H.J. Lu19-4671/+4749
gas/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * config/tc-i386.c (arch_entry): Add negated bit to disambiguate flag names starting with "no". (cpu_arch): Add negated bit definitions. Add ".nop" CPU extension. (i386_align_code): Use new .cpunop bit to decide when to generate alignment using nops. (set_cpu_arch): Use negated bit instead to decide when to use cpu_flags or vs. cpu_flags_and_not. (md_parse_option): Likewise. gas/testsuite/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * gas/i386/arch-10-1.l: Add nopl instruction. * gas/i386/arch-10-2.l: Likewise. * gas/i386/arch-10-3.l: Likewise. * gas/i386/arch-10-4.l: Likewise. * gas/i386/arch-10.s: Likewise. * gas/i386/arch-10.d: Add nopl instruction, and +nopl extension flag to as flags. * gas/i386/nops-5-i686.d: Change alignment code generated for -mtune=i686. * gas/i386/nops-5.d: Change alignment code generated for .arch i686. * gas/i386/x86-64-nops-5-k8.d: Likewise. * gas/i386/x86-64-nops-5.d: Likewise. opcodes/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * i386-gen.c (cpu_flag_init): Define CpuNop extension flag, add to processor flags for PENTIUMPRO processors and later. * i386-opc.h (enum): Add CpuNop. (i386_cpu_flags): Add cpunop bit. * i386-opc.tbl: Change nop cpu_flags. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
2010-08-06Fix typos in comments in i386-opc.h.H.J. Lu2-6/+10
2010-08-06 Quentin Neill <quentin.neill@amd.com> * i386-opc.h (enum): Fix typos in comments.
2010-08-06gdb/Jan Kratochvil2-3/+9
Code cleanup. * varobj.c (varobj_create): Move variables fi, old_fi and block to a more inner block.
2010-08-06 * disassemble.c: Formatting.Alan Modra2-9/+14
(disassemble_init_for_target <ARCH_m32c>): Comment on endian.
2010-08-06 PR ld/11887Alan Modra2-4/+11
* ldlang.c (lang_add_vers_depend): Don't leave version_needed uninitialised.
2010-08-06Add Cpu186 to ud1/ud2/ud2a/ud2b.H.J. Lu3-8/+13
2010-08-05 H.J. Lu <hongjiu.lu@intel.com> * i386-opc.tbl: Add Cpu186 to ud1/ud2/ud2a/ud2b. * i386-tbl.h: Regenerated.
2010-08-06Add ud1 to x86.H.J. Lu12-16/+67
gas/testsuite/ 2010-08-05 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run arch-4. * gas/i386/arch-4.d: New. * gas/i386/arch-4.s: Likewise. * gas/i386/intel.d: Replace ud2a/ud2b with ud2/ud1. * gas/i386/opcode-intel.d: Likewise. * gas/i386/opcode-suffix.d: Likewise. * gas/i386/opcode.d: Likewise. opcodes/ 2010-08-05 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (dis386_twobyte): Replace ud2a/ud2b with ud2/ud1. * i386-opc.tbl: Add ud1. Remove Cpu686 from ud2/ud2a/ud2b. * i386-tbl.h: Regenerated.
2010-08-06daily updateAlan Modra1-1/+1
2010-08-06*** empty log message ***gdbadmin1-1/+1
2010-08-05 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)Pedro Alves2-14/+26
(hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*) (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add linux-tdep.o to gdb_target_obs.
2010-08-05* mi/mi-main.c (mi_cmd_remove_inferior): Properly access first argument.Marc Khouzam2-1/+6
2010-08-05 * ld-powerpc/tocopt.s, * ld-powerpc/tocopt.d: New test.Alan Modra4-0/+72
* ld-powerpc/powerpc.exp: Run it.
2010-08-05 * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.Alan Modra2-10/+61
(ppc64_elf_relocate_section): Nop out high part insn of large toc code sequence when the high part of offset is zero.