aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-05-05Remove unused MAX_OF*/MIN_OF* macros.Joel Brobecker4-31/+6
FWIW: They can no longer work either, as they depend on other macros which have been missing for quite a while. ChangeLog: * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. * ada-lang.c: Remove comment mentioning these macros. * m2-exp.y: Delete commented out code.
2010-05-05"finish" does not work on sparc if function returns array.Joel Brobecker3-2/+18
ChangeLog: * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero for array types. * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2010-05-05Updated Spanish translations.Nick Clifton14-3080/+3543
2010-05-05 ARI fix: Remove ATTRIBUTE_UNUSED throughout.Pierre Muller4-18/+41
* arm-linux-tdep.c (arm_linux_cleanup_svc): Remove ATTRIBUTE_UNUSED. (cleanup_kernel_helper_return): Likewise. * arm-tdep.c (copy_unmodified): Likewise. (copy_preload): Likewise. (copy_copro_load_store): Likewise. (cleanup_branch): Likewise. (copy_b_bl_blx): Likewise. (copy_bx_blx_reg): Likewise. (copy_alu_imm): Likewise. (copy_alu_reg): Likewise. (copy_alu_shifted_reg): Likewise. (cleanup_load): Likewise. (cleanup_store): Likewise. (cleanup_block_load_pc): Likewise. (cleanup_svc): Likewise. (copy_undef): Likewise. (copy_unpred): Likewise. * remote.c (register_remote_support_xml): Likewise.
2010-05-05 * read.c (cons_worker): Detect and reject unexpected string argument.Nathan Sidwell7-1/+29
testsuite/ * gas/all/byte.s: New. * gas/all/byte.l: New. * gas/all/byte.d: New. * gas/all/gas.exp: Add it.
2010-05-052010-05-05 Hui Zhu <teawater@gmail.com>Hui Zhu2-3/+7
* gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2010-05-05*** empty log message ***gdbadmin1-1/+1
2010-05-05daily updateAlan Modra1-1/+1
2010-05-04* remote.c (register_remote_support_xml)Mark Kettenis4-10/+20
(remote_query_supported_append, remote_query_supported): Add cast to NULL used as sentinel. * tracepoint.c (tvariables_info_1): Likewise. * utils.c (add_internal_problem_command): Likewise.
2010-05-04 * write.c (fixup_segment): Revert previous delta.Nick Clifton3-3/+8
* config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Also force the generation of relocations for fixups against weak symbols.
2010-05-04 * gdb/dwarf2loc.c (read_pieced_value, write_pieced_value,Matthew Gretton-Dann2-5/+36
dwarf2_evaluate_loc_desc): Handle not being able to access DWARF registers gracefully.
2010-05-04 * gdb/exec.c (print_section_info): Display entry point without archMatthew Gretton-Dann2-2/+10
specific parts.
2010-05-04 PR exp/11349.Pierre Muller4-1/+18
* printcmd.c (x_command): Only dereference once implicitly for TYPE_CODE_REF. testsuite dir: PR exp/11349. * testsuite/gdb.cp/ref-types.exp: Add test to examine use a reference local variable.
2010-05-04daily updateAlan Modra1-1/+1
2010-05-04*** empty log message ***gdbadmin1-1/+1
2010-05-03 * event-loop.c (gdb_timer): Delete unused global.Doug Evans2-3/+7
(create_timer): Update.
2010-05-03 * event-loop.c (struct callback_event): New struct.Doug Evans4-16/+216
(callback_list): New global. (append_callback_event, delete_callback_event): New functions. (process_callback): New function. (start_event_loop): Call it. * remote-utils.c (NOT_SCHEDULED): Define. (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, moved out of readchar. (readchar): Rewrite. Call reschedule before returning. (reset_readchar): New function. (remote_close): Call it. (process_remaining, reschedule): New functions. * server.h (callback_handler_func): New typedef. (append_callback_event, delete_callback_event): Declare.
2010-05-03gdb/Jan Kratochvil3-18/+51
* cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the CURRENT->DECLARATION case. * cp-support.h (struct using_direct): Provide extended comment.
2010-05-03* hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed fromMark Kettenis2-10/+56
HPPABSD_SIZEOF_GREGS. (HPPAOBSD_SIZEOF_FPREGS): New define. (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset. (hppaobsd_supply_fpregset): New function. (hppaobsd_gregset): Renamed from hppabsd_gregset. (hppaobsd_fpregset): New variable. (hppaobsd_regset_from_core_section): Handle floating-point registers. (_initialize_hppabsd_tdep): Remove spurious blank line.
2010-05-03 gdb/gdbserver/Pedro Alves6-52/+94
* proc-service.c (ps_pglobal_lookup): Use thread_db_look_up_one_symbol. * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' parameter. Use it instead of all_symbols_looked_up. * server.h (struct process_info) <all_symbols_looked_up>: Delete field. (all_symbols_looked_up): Don't declare. (look_up_one_symbol): Add new `may_ask_gdb' parameter. * thread-db.c (struct thread_db) <all_symbols_looked_up>: New field. (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. Set all_symbols_looked_up here. (thread_db_look_up_one_symbol): New. (thread_db_get_tls_address): Adjust. (thread_db_load_search, try_thread_db_load_1): Always allocate the thread_db object on the heap, and tentatively set it in the process structure. (thread_db_init): Don't set all_symbols_looked_up here. * linux-low.h (thread_db_look_up_one_symbol): Declare.
2010-05-03bfd/Tristan Gingold3-13/+31
2010-05-03 Tristan Gingold <gingold@adacore.com> * vms-lib.c (vms_lib_bopen): Fix the size threshold to read selective_search flag. Add comments. * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section before output_has_begun is set.
2010-05-03 PR pascal/11349.Pierre Muller2-1/+10
* p-valprint.c (pascal_value_print): Always dereference a value with type code TYPE_CODE_REF.
2010-05-03bfd/Tristan Gingold4-51/+150
2010-05-03 Tristan Gingold <gingold@adacore.com> * vms-alpha.c: Add comments. (struct vms_private_data_struct): Remove image_autoextend field. (dst_check_allocation): Removed. (image_write): Remove call to dst_check_allocation. (vms_slurp_debug): Do not set image_autoextend. Adjust section size. (_bfd_vms_slurp_object_records): Remove useless new_type variable. (alpha_vms_write_exec): Use dst_section to get the dst section. Write the dmt section. (evax_bfd_print_image): Also print the dst size in hexa. Fix typo. (alpha_vms_read_sections_content): Do not set image_autoextend. include/vms/ 2010-05-03 Tristan Gingold <gingold@adacore.com> * dmt.h: Improve comments.
2010-05-03bfd/Tristan Gingold2-7/+27
2010-05-03 Tristan Gingold <gingold@adacore.com> * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty next array. (vms_lib_dcx): Adjust for the above change.
2010-05-03 * linux-low.c (linux_kill, linux_detach): Adjust.Pedro Alves6-54/+260
(status_pending_p_callback): Remove redundant statement. Check for !TARGET_WAITIKIND_IGNORE, instead of TARGET_WAITKIND_STOPPED. (handle_tracepoints): Make sure LWP is locked. Adjust. (linux_wait_for_event_1): Adjust. (linux_cancel_breakpoints): New. (unsuspend_one_lwp): New. (unsuspend_all_lwps): New. (linux_wait_1): If finishing a step-over, unsuspend all lwps. (send_sigstop_callback): Change return type to int, add new `except' parameter and handle it. (suspend_and_send_sigstop_callback): New. (stop_all_lwps): Add new `suspend' and `expect' parameters, and pass them down. If SUSPEND, also increment the lwp's suspend count. (linux_resume_one_lwp): Add notice about resuming a suspended LWP. (need_step_over_p): Don't consider suspended LWPs. (start_step_over): Adjust. (proceed_one_lwp): Change return type to int, add new `except' parameter and handle it. (unsuspend_and_proceed_one_lwp): New. (proceed_all_lwps): Use find_inferior instead of for_each_inferior. (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them also decrement the suspend count of LWPs. Pass `except' down, instead of hacking its suspend count. (linux_pause_all): Add `freeze' parameter. Adjust. (linux_unpause_all): New. (linux_target_ops): Install linux_unpause_all. * server.c (handle_status): Adjust. * target.h (struct target_ops): New fields `unpause_all' and `cancel_breakpoints'. Add new parameter to `pause_all'. (pause_all): Add new `freeze' parameter. (unpause_all): New. (cancel_breakpoints): New. * tracepoint.c (clear_installed_tracepoints): Pause threads, and cancel breakpoints. (cmd_qtstart): Pause threads. (stop_tracing): Pause threads, and cancel breakpoints. * win32-low.c (win32_target_ops): Adjust.
2010-05-03 * linux-low.c (linux_wait_for_event_1): Move passing the signal toPedro Alves2-49/+54
the inferior right away from here... (linux_wait_1): ... to here, and adjust to check the thread's last_resume_kind instead of the lwp's step or stop_expected flags.
2010-05-03 * remote.c (remote_notice_signals): New.Pedro Alves2-0/+21
(remote_start_remote): In non-stop mode, update the remote end on which signals it can silently pass. (init_remote_ops): Install remote_notice_signals.
2010-05-03daily updateAlan Modra1-1/+1
2010-05-03*** empty log message ***gdbadmin1-1/+1
2010-05-02gdb/Jan Kratochvil15-98/+90
* cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... * command.h (error_no_arg): ... here. Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * defs.h (NORETURN, ATTR_NORETURN): Remove. (perror_with_name, verror, error, error_stream, vfatal, fatal) (internal_verror, internal_error, nomem): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) (throw_vfatal, throw_error): Remove NORETURN. (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * exceptions.h (throw_exception, throw_verror, throw_vfatal) (throw_error, deprecated_throw_reason): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN for prototype, for the definition only remove NORETURN. * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to ATTRIBUTE_NORETURN. * target.c (tcomplain): Likewise. * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) (internal_error, perror_with_name, nomem): Remove NORETURN. * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to ATTRIBUTE_NORETURN. gdb/doc/ * gdbint.texinfo (Host Definition): Remove items NORETURN and ATTR_NORETURN.
2010-05-02gdb/Jan Kratochvil22-73/+103
* ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * complaints.h (complaint, internal_complaint): Likewise. * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. (ATTR_FORMAT): Remove. (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) (xsnprintf, verror, error, vfatal, fatal, internal_verror) (internal_error, internal_vwarning, internal_warning, warning) (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * disasm.c (fprintf_disasm): Likewise. * exceptions.c (throw_it): Likewise. * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) (throw_error): Likewise. * language.h (type_error, range_error): Likewise. * linespec.c (cplusplus_error): Likewise. * mi/mi-interp.c (mi_interp_query_hook): Likewise. * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. * monitor.c (monitor_debug): Likewise. * parser-defs.h (parser_fprintf): Likewise. * serial.h (serial_printf): Likewise. * tui/tui-hooks.c (tui_query_hook): Likewise. * ui-out.c (default_field_fmt, default_message, uo_field_fmt) (uo_message): Likewise. * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): Likewise. * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2010-05-02 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)Pedro Alves2-81/+55
(cli_table_header, cli_begin, cli_end, cli_field_int) (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): Delete forward declarations. (cli_ui_out_impl): Move below the callbacks. (_initialize_cli_out): Delete.
2010-05-02 gdb/Pedro Alves4-40/+48
* README: Use consistent `GDB' and `GDBserver' spellings. gdb/gdbserver/ * README: Use consistent `GDB' and `GDBserver' spellings.
2010-05-02gdb/Jan Kratochvil2-2/+4
* cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2010-05-02gdb/testsuite/Jan Kratochvil4-40/+27
* gdb.base/break-interp.exp: Remove $exec.debug safety removal. * gdb.base/sepdebug.exp: Remove .debug subdirectory handling. New variable different_dir. Move debugfile into a full directory pathname under DIFFERENT_DIR. * lib/gdb.exp (separate_debug_filename): Remove. (gdb_gnu_strip_debug): No longer call separate_debug_filename. Remove variable debug_dir and mkdir of it. Update function comments.
2010-05-02 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.Pedro Alves6-70/+135
(linux_kill): Stop all lwps here. Don't delete the main lwp here. (linux_detach_one_lwp): Assume the lwp is stopped. (any_thread_of): Delete. (linux_detach): Stop all lwps here. Don't blindly delete all breakpoints. (delete_lwp_callback): New. (linux_mourn): Delete all lwps of the process that is gone. (linux_wait_1): Don't delete the last lwp of the process here. * mem-break.h (mark_breakpoints_out): Declare. * mem-break.c (mark_breakpoints_out): New. (free_all_breakpoints): Use it. * server.c (handle_target_event): If the process is gone, mark breakpoints out. * thread-db.c (struct thread_db) <create_bp>: New field. (thread_db_enable_reporting): Fix prototype. Store a thread event breakpoint reference in the thread_db struct. (thread_db_load_search): Clear the thread_db object. (try_thread_db_load_1): Ditto. (switch_to_process): New. (disable_thread_event_reporting): Use it. (remove_thread_event_breakpoints): New. (thread_db_detach, thread_db_mourn): Use it.
2010-05-02*** empty log message ***gdbadmin1-1/+1
2010-05-02daily updateAlan Modra1-1/+1
2010-05-01 * infrun.c (prepare_for_detach): In non-stop, context switch toPedro Alves2-0/+13
the thread that got the event before handling the event.
2010-05-01 * linux-low.c (linux_enable_event_reporting): New.Pedro Alves2-3/+17
(linux_wait_for_event_1, handle_extended_wait): Use it.
2010-05-01daily updateAlan Modra1-1/+1
2010-05-01*** empty log message ***gdbadmin1-1/+1
2010-04-30 * linux-low.c (linux_kill_one_lwp, linux_kill)Pedro Alves2-14/+57
(linux_detach_one_lwp): Adjust to send_sigstop interface change. (send_sigstop): Take an lwp_info as parameter instead. Queue a SIGSTOP even if the LWP is stopped. (send_sigstop_callback): New. (stop_all_lwps): Use send_sigstop_callback instead. (linux_resume_one_thread): Adjust. (proceed_one_lwp): Still proceed an LWP that the client has requested to stop, if we haven't reported it as stopped yet. Make sure that LWPs the client want stopped, have a pending SIGSTOP.
2010-04-30Add a missing `"'.H.J. Lu2-1/+7
2010-04-30 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/dlltool.exp: Add a missing `"'.
2010-04-30Remove relocation against discarded sections for relocatable link.H.J. Lu11-18/+119
bfd/ 2010-04-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11542 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New. * elf32-i386.c (elf_i386_relocate_section): Use it. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. ld/testsuite/ 2010-04-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11542 * ld-elf/discard.ld: New. * ld-elf/discard1.d: Likewise. * ld-elf/discard1.s: Likewise. * ld-elf/discard2.d: Likewise. * ld-elf/discard2.s: Likewise. * ld-elf/discard3.d: Likewise.
2010-04-30 * symtab.c (symbol_set_names): Fix typo.Tom Tromey2-1/+5
2010-04-30 * python/py-param.c (parm_constants): Avoid ARI warningPierre Muller2-2/+9
by adding ARI comment. (parmpy_init): Likewise.
2010-04-30 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCHPierre Muller2-0/+14
and created type for re-use.
2010-04-30bfd/Tristan Gingold4-11/+92
2010-04-30 Tristan Gingold <gingold@adacore.com> * vms-lib.c (vms_read_block): New function. (vms_traverse_index): Use vms_read_block. Handle long key names. include/vms/ 2010-04-30 Tristan Gingold <gingold@adacore.com> * lbr.h (struct vms_kbn): New structure.
2010-04-30bfd/Tristan Gingold5-120/+460
2010-04-30 Tristan Gingold <gingold@adacore.com> * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms and syms removed. (struct carsym_mem): New structure. (vms_add_index): New function. (vms_add_indexes_from_list): New function. (vms_traverse_index): Parameter carsym changed to carsym_mem. Code adjusted to handle elfidx. (vms_lib_read_index): Adjusted for vms_traverse_index changes. Parameter NBREL is now a pointer. (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64 archives. (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata. (_bfd_vms_lib_find_symbol): Ditto. (vms_lib_bopen): Fix two typos: return FALSE in case of error, check MHD id. * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for changes of _bfd_vms_lib_find_symbol. include/vms 2010-04-30 Tristan Gingold <gingold@adacore.com> * lbr.h (LBR__C_TYP_ISHSTB): Added. (LHD_SANEID4): Renamed to ... (LHD_SANEID6): ... this. (LBR_MAJORID, LBR_ELFMAJORID): New macros. (struct vms_rfa): New structure. (struct vms_idxdef): Renamed to ... (struct vms_idx): ... this. (struct vms_idxdef2): Renamed to ... (struct vms_elfidx): ... this. (ELFIDX__WEAK, ELFIDX__GROUP, ELFIDX__LISTRFA, ELFIDX__SYMESC): New macros. (struct vms_lhs, struct vms_lns): New structures. (struct vms_mhd): Add missing fields. (MHD__C_MHDLEN): New macro.