OSDN Git Service
schwab [Fri, 11 Mar 2011 19:11:33 +0000 (19:11 +0000)]
* common/aclocal.m4: Remove.
maxim2405 [Fri, 11 Mar 2011 11:32:31 +0000 (11:32 +0000)]
2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (windowing_enabled): Remove inline attribute.
(xtensa_write_register, xtensa_read_register): Likewise.
(xtensa_hextochar): Removed.
(xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
maxim2405 [Fri, 11 Mar 2011 09:26:50 +0000 (09:26 +0000)]
Correct bad formatting in the comments. Two spaces must follow '.'.
maxim2405 [Fri, 11 Mar 2011 09:21:37 +0000 (09:21 +0000)]
2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (xtensa_c0reg_t): Update comments.
(xtensa_call0_frame_cache_t): Update comments. New fields added.
(xtensa_alloc_frame_cache): Add initialization for new fields.
(xtensa_frame_cache): Change the way how call0_frame_cache () is called.
(warning_once): New function.
(xtensa_insn_kind): New item c0opc_and.
(call0_classify_opcode): Add the case for AND instruction.
(call0_track_op): Change arguments. New local variable litbase. Add the
case to handle c0opc_and. Update algorithms for c0opc_mov, c0opc_l32r,
c0opc_s32i to take into account dynamic stack adjustments in prologue.
Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
(call0_analyze_prologue): Update the comments. Change arguments.
Add the variety of updates to handle extended prologues, which now can
conduct dynamic stack adjustments.
(call0_frame_cache): Likewise.
(xtensa_skip_prologue): Update call0_analyze_prologue () function call.
(xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
gdbadmin [Fri, 11 Mar 2011 09:00:33 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Fri, 11 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update
msnyder [Fri, 11 Mar 2011 05:25:44 +0000 (05:25 +0000)]
Revert previous change.
msnyder [Fri, 11 Mar 2011 05:24:27 +0000 (05:24 +0000)]
2011-03-01 Michael Snyder <msnyder@vmware.com>
* p-typeprint.c (pascal_type_print_method_args): Don't use
pointer until after null-check.
msnyder [Fri, 11 Mar 2011 05:21:14 +0000 (05:21 +0000)]
2011-02-28 Michael Snyder <msnyder@vmware.com>
* tracepoint.c (cmd_qtv): Discard unused value 'packet'.
(cmd_qtframe): Ditto.
(cmd_qtbuffer): Ditto.
(cmd_bigqtbuffer): Ditto.
msnyder [Fri, 11 Mar 2011 05:18:42 +0000 (05:18 +0000)]
2011-02-27 Michael Snyder <msnyder@vmware.com>
* gdbserver/tracepoint.c (tracepoint_finish_step): Fix
loop variable.
msnyder [Fri, 11 Mar 2011 05:09:13 +0000 (05:09 +0000)]
2011-03-10 Michael Snyder <msnyder@vmware.com>
* gdbserver/server.c (handle_v_run): Free alloced buffer on early
return.
tromey [Fri, 11 Mar 2011 03:33:54 +0000 (03:33 +0000)]
* tracepoint.c (trace_actions_command): Update.
* thread.c (thread_apply_command): Update.
* reverse.c (delete_bookmark_command): Update.
(bookmarks_info): Update.
* printcmd.c (undisplay_command): Update.
* memattr.c (mem_enable_command): Update.
(mem_disable_command): Update.
(mem_delete_command): Update.
* inferior.c (detach_inferior_command): Update.
(kill_inferior_command): Update.
(remove_inferior_command): Update.
* cli/cli-utils.h (struct get_number_or_range_state): New.
(init_number_or_range): Declare.
(get_number_or_range): Update.
* cli/cli-utils.c (init_number_or_range): New function.
(get_number_or_range): Change 'pp' parameter to 'state'. Remove
static variables.
(number_is_in_list): Update.
* breakpoint.h (get_tracepoint_by_number): Update.
* breakpoint.c (map_breakpoint_numbers): Update for change to
get_number_or_range.
(find_location_by_number): Use get_number, not
get_number_or_range.
(trace_pass_set_count): New function.
(trace_pass_command): Update for change to get_number_or_range.
Rework loop logic.
(get_tracepoint_by_number): Remove 'multi_p' parameter; add
'state' parameter.
msnyder [Fri, 11 Mar 2011 03:26:26 +0000 (03:26 +0000)]
2011-03-10 Michael Snyder <msnyder@vmware.com>
Revert the following change:
* dwarf2dbg.c (out_file_list): Free malloced 'dir'.
(out_debug_info): Free malloced 'dirname' and 'comp_dir'.
pmuldoon [Thu, 10 Mar 2011 21:29:06 +0000 (21:29 +0000)]
2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
* python/py-param.c (add_setshow_generic): Add set/show callback
parameters. Register Python object context.
(get_show_value): New function.
(get_set_value): New function.
(call_doc_function): New function.
(get_doc_string): Move behind get_show_value/get_set_value.
2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Parameters In Python): Document get_set_string and
get_show_string methods.
2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-parameter.exp: Update tests to the new Python
parameter API. Add "no documentation" test. Add deprecated API
backward compatibility test.
jkratoch [Thu, 10 Mar 2011 20:29:52 +0000 (20:29 +0000)]
gdb/
* fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
davek [Thu, 10 Mar 2011 19:27:50 +0000 (19:27 +0000)]
[PATCH] Respect symbol wrappers when computing symbol resolutions.
ld/ChangeLog:
2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
* plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
davek [Thu, 10 Mar 2011 19:26:26 +0000 (19:26 +0000)]
[PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR BFD.
ld/ChangeLog:
2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
* ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
davek [Thu, 10 Mar 2011 19:25:02 +0000 (19:25 +0000)]
[PATCH] Revise linker plugin API to better preserve link order.
ld/ChangeLog:
2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
* ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
* ldmain.c (add_archive_element): Set it if the member is claimed.
* ldlang.c (new_afile): Initialise claim_archive and claimed members.
(find_replacements_insert_point): New helper function.
(lang_process): After adding and opening replacement files passed
from plugin, splice them into correct place in statement list and
file chains to preserve critical link order.
(lang_list_insert_after): New helper function.
(lang_list_remove_tail): Likewise.
nickc [Thu, 10 Mar 2011 19:23:36 +0000 (19:23 +0000)]
* common.h (EM_V850): V850s now supplied by Renesas.
* readelf.c (get_machine_name): Update EM_V850 entry.
davek [Thu, 10 Mar 2011 19:22:24 +0000 (19:22 +0000)]
[PATCH] Do not use dummy bfd suffix for recognition, make it human-readable instead.
ld/ChangeLog:
2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
* plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
(IRONLY_SUFFIX_LEN): Delete.
(plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
(is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
enclosing lang input statement instead.
davek [Thu, 10 Mar 2011 19:20:26 +0000 (19:20 +0000)]
[PATCH] Fix PE-COFF bug in orphan section alignment handling.
ld/ChangeLog:
2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
alignment of input sections when creating orphan output sections
during relocatable link.
* emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
amodra [Thu, 10 Mar 2011 19:06:04 +0000 (19:06 +0000)]
* gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
TARGET_SYMBOL_FIELDS): Don't define.
* gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
amodra [Thu, 10 Mar 2011 18:26:17 +0000 (18:26 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
for LO_DS error message and correct multiple.
amodra [Thu, 10 Mar 2011 18:11:12 +0000 (18:11 +0000)]
* elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
(ppc64_elf_link_just_syms): New function.
(opd_entry_value): Don't assume big-endian host.
(get_r2off): New function.
(ppc_build_one_stub, ppc_size_one_stub): Use it here.
brobecke [Thu, 10 Mar 2011 16:32:02 +0000 (16:32 +0000)]
remove subdir_do recursive make command in gdbserver/Makefile.in
This fixes:
% [...]/gdbserver/configure
% make distclean
[...]
rm -f amd64-avx.c amd64-avx-linux.c
rm -f i386-mmx.c i386-mmx-linux.c
make[1]: Entering directory `/[...]'
make[1]: *** No rule to make target `subdir_do'. Stop.
make[1]: Leaving directory `[...]'
make: *** [distclean] Error 2
gdb/gdbserver/ChangeLog:
* Makefile.in (maintainer-clean realclean distclean): Remove
"make ... subdir_do" command.
ian [Thu, 10 Mar 2011 10:31:32 +0000 (10:31 +0000)]
* dwarf_reader.cc (Sized_dwarf_line_info): Include all lines,
but mark earlier ones as non-canonical
(offset_to_iterator): Update search target and example
(do_addr2line): Return extra lines in a vector*
(format_file_lineno): Extract from do_addr2line
(one_addr2line): Add vector* out-param
* dwarf_reader.h (Offset_to_lineno_entry): New field recording
when a lineno entry appeared last for its instruction
(Dwarf_line_info): Add vector* out-param
* object.cc (Relocate_info): Pass NULL for the vector* out-param
* symtab.cc (Odr_violation_compare): Include the lineno in the
comparison again.
(linenos_from_loc): New. Combine the canonical line for an
address with its other lines.
(True_if_intersect): New. Helper functor to make
std::set_intersection a query.
(detect_odr_violations): Compare sets of lines instead of just
one line for each function. This became less deterministic, but
has fewer false positives.
* symtab.h: Declarations.
* testsuite/Makefile.am (odr_violation2.o): Compile with -O2 to
mix an optimized and non-optimized object in the same binary
(odr_violation2.so): Same.
* testsuite/Makefile.in: Regenerate from Makefile.am.
* testsuite/debug_msg.cc (main): Make OdrDerived classes.
* testsuite/debug_msg.sh: Update line numbers and add
assertions.
* testsuite/odr_violation1.cc: Use OdrDerived, in a
non-optimized context.
* testsuite/odr_violation2.cc: Make sure Ordering::operator()
isn't inlined, and use OdrDerived in an optimized context.
* testsuite/odr_header1.h: Defines OdrDerived, where
optimization will change the
first-instruction-in-the-destructor's file and line number.
* testsuite/odr_header2.h: Defines OdrBase.
ian [Thu, 10 Mar 2011 10:10:19 +0000 (10:10 +0000)]
* fileread.cc (File_read::clear_views): Don't delete the whole
file view.
msnyder [Thu, 10 Mar 2011 09:52:09 +0000 (09:52 +0000)]
2011-03-09 Michael Snyder <msnyder@vmware.com>
* dwarf2dbg.c (out_file_list): Free malloced 'dir'.
(out_debug_info): Free malloced 'dirname' and 'comp_dir'.
(emit_fixed_inc_line_addr): Assign instead of conditional
in assert.
maxim2405 [Thu, 10 Mar 2011 09:15:19 +0000 (09:15 +0000)]
2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (xtensa_read_register: Add comment.
(xtensa_write_register): Likewise.
(xtensa_hextochar): Add comment and update to match coding conventions.
(xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
(execute_l32e, execute_s32e, execute_code): Update comments.
(xtensa_exception_handler_t): Update to match coding conventions.
(xtensa_insn_kind): Likewise.
gdbadmin [Thu, 10 Mar 2011 09:00:02 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Thu, 10 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update
cgf [Thu, 10 Mar 2011 07:48:05 +0000 (07:48 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Handle
overlapped_fallback error condition like other error conditions. Set res
carefully and specifically for each condition rather than resorting to a
default.
(fhandler_base_overlapped::write_overlapped): Preserve errno in
overlapped_fallback condition. Correct write_overlapped_fallback to avoid
inappropriate looping.
(fhandler_base_overlapped::write_overlapped_fallback): Add some more comments.
msnyder [Thu, 10 Mar 2011 05:31:48 +0000 (05:31 +0000)]
2011-03-09 Michael Snyder <msnyder@vmware.com>
* mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
tromey [Thu, 10 Mar 2011 03:41:30 +0000 (03:41 +0000)]
* gdb.ada/catch_ex.exp: Use explicit gdb_test rather than
gdb_continue_to_end.
cgf [Thu, 10 Mar 2011 01:55:54 +0000 (01:55 +0000)]
* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate
change in arguments to wait_overlapped.
kettenis [Thu, 10 Mar 2011 01:54:50 +0000 (01:54 +0000)]
* gdb.base/memattr.exp: Adjust regexps to accept spaces as well as
tabs.
cgf [Thu, 10 Mar 2011 01:47:44 +0000 (01:47 +0000)]
* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.
* fhandler.cc (MAX_OVERLAPPED_WRITE_LEN): New constant.
(MIN_OVERLAPPED_WRITE_LEN): Ditto.
(fhandler_base_overlapped::close): Accommodate change in arguments to
wait_overlapped.
(fhandler_base_overlapped::setup_overlapped): Add __stdcall and regparm
modifiers.
(fhandler_base_overlapped::destroy_overlapped): Ditto.
(fhandler_base_overlapped::has_ongoing_io): Ditto.
(fhandler_base_overlapped::wait_overlapped): Modify to return an enum returning
various states. Accept nonblocking parameter.
(fhandler_base_overlapped::read_overlapped): Add __stdcall and regparm
modifiers. Rework to attempt to be smarter about reacting to states returned
by wait_overlapped.
(fhandler_base_overlapped::write_overlapped): Ditto. Add fallback option for
when wait_overlapped detects that smaller chunks must be written.
(fhandler_base_overlapped::write_overlapped_fallback): Ditto.
* fhandler.h (DEFAULT_PIPEBUFSIZE): Move definition here from pipe.cc.
(fhandler_base::has_ongoing_io): Define with __stdcall and regparm modifiers.
(fhandler_base_overlapped::wait_return): New enum.
(fhandler_base_overlapped::max_atomic_write): New variable.
(fhandler_base_overlapped:: wait_overlapped): Accommodate changes mentioned
above to arguments and modifiers.
(fhandler_base_overlapped::setup_overlapped): Ditto for modifiers.
(fhandler_base_overlapped::read_overlapped): Ditto.
(fhandler_base_overlapped::write_overlapped): Ditto.
(fhandler_base_overlapped::destroy_overlapped): Ditto.
(fhandler_base_overlapped::has_ongoing_io): Ditto.
(fhandler_base_overlapped::fhandler_base_overlapped): Zero max_atomic_write.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Set max_atomic_write to the
size of the DEFAULT_PIPEBUFSIZE.
(fhandler_fifo::wait): Accommodate change in arguments to wait_overlapped.
* pipe.cc (fhandler_pipe::fhandler_pipe): Set max_atomic_write to the size of
the DEFAULT_PIPEBUFSIZE.
(fhandler_pipe::create_selectable): Allow minimum size of DEFAULT_PIPEBUFSIZE.
(DEFAULT_PIPEBUFSIZE): Delete here, move to fhandler.h.
msnyder [Thu, 10 Mar 2011 00:59:12 +0000 (00:59 +0000)]
2011-03-09 Michael Snyder <msnyder@vmware.com>
* gdbserver/tracepoint.c: Fix small comment typo.
palves [Thu, 10 Mar 2011 00:01:34 +0000 (00:01 +0000)]
gdb/
* nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
tromey [Wed, 9 Mar 2011 23:22:06 +0000 (23:22 +0000)]
* thread.c (restore_selected_frame): Handle frame_level == -1.
(make_cleanup_restore_current_thread): Use
get_selected_frame_if_set.
* frame.h (get_selected_frame_if_set): Declare.
* frame.c (get_selected_frame_if_set): New function.
tromey [Wed, 9 Mar 2011 23:17:04 +0000 (23:17 +0000)]
* lib/gdb.exp (inferior_exited_re): Match. leading `['. Wrap in
parentheses.
(gdb_continue_to_end): Add "allow_extra" parameter. Use
$command.
* gdb.threads/thread-unwindonsignal.exp: Pass "allow_extra"
argument to gdb_continue_to_end.
* gdb.threads/interrupted-hand-call.exp: Pass "allow_extra"
argument to gdb_continue_to_end.
* gdb.cp/annota3.exp: Fix regex.
* gdb.cp/annota2.exp: Fix regex.
* gdb.base/shlib-call.exp: Pass "allow_extra" argument to
gdb_continue_to_end.
* gdb.base/call-signal-resume.exp: Revert earlier patch.
* gdb.ada/tasks.exp: Pass "allow_extra" argument to
gdb_continue_to_end.
palves [Wed, 9 Mar 2011 21:48:53 +0000 (21:48 +0000)]
* cli/cli-cmds.c (shell_escape): Use lbasename.
* coffread.c (coff_start_symtab): Constify parameter.
(complete_symtab): Constify `name' parameter.
(coff_symtab_read): Constify `filestring' local.
(coff_getfilename): Constify return and `result' local.
Use lbasename.
* fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
* linux-fork.c (info_checkpoints_command): Use lbasename.
* linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
* minsyms.c (lookup_minimal_symbol): Use lbasename.
* nto-tdep.c (nto_find_and_open_solib): Use lbasename.
* procfs.c (procfs_make_note_section): Use lbasename.
* tui/tui-io.c (printable_part): Constity return and parameter.
Use lbasename.
(print_filename): Constify parameters, and local `s'.
(tui_rl_display_match_list): Constify local `temp'.
jkratoch [Wed, 9 Mar 2011 16:07:53 +0000 (16:07 +0000)]
gdb/
Revert:
2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix DWARF-3+ DW_AT_accessibility default assumption.
* dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
cu->header.version >= 3.
qiyao [Wed, 9 Mar 2011 15:24:05 +0000 (15:24 +0000)]
gdb/
2011-03-09 Yao Qi <yao@codesourcery.com>
* common/Makefile.in: Remove.
* common/configure: Remove.
* common/configure.ac: Remove.
qiyao [Wed, 9 Mar 2011 15:10:36 +0000 (15:10 +0000)]
gdb/
2011-03-09 Yao Qi <yao@codesourcery.com>
Revert:
2011-02-11 Yao Qi <yao@codesourcery.com>
* common/Makefile.in: Add copyright header.
2011-02-11 Yao Qi <yao@codesourcery.com>
* Makefile.in: Remove signals.o from COMMON_OBS. Link
libcommon.a.
* configure.ac: Add common to sub dir.
* configure: Regenerate.
gdb/gdbserver/
2011-03-09 Yao Qi <yao@codesourcery.com>
Revert:
2011-03-04 Yao Qi <yao@codesourcery.com>
* Makefile.in: Remove GNU make feature --directory.
2011-03-05 Yao Qi <yao@codesourcery.com>
* Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
(subdir_do): New make target. Copied from gdb/Makefile.
(maintainer-clean, realclean, distclean, clean): Call corresponding
make targets in common/Makefile.
2011-02-11 Yao Qi <yao@codesourcery.com>
* configure.ac: Call AC_PROG_RANLIB.
* Makefile.in: Remove signals.o from OBS. Link libcommon.a.
* configure: Regenerate.
maxim2405 [Wed, 9 Mar 2011 12:28:36 +0000 (12:28 +0000)]
2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (call0_ret): New function.
(xtensa_skip_prologue): Speed up analysis.
maxim2405 [Wed, 9 Mar 2011 11:56:23 +0000 (11:56 +0000)]
2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
while executing MI command -data-list-changed-registers.
maxim2405 [Wed, 9 Mar 2011 11:25:10 +0000 (11:25 +0000)]
2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (xtensa_read_register): New function.
(xtensa_write_register): New function.
(xtensa_find_register_by_name): New function.
(xtensa_windowed_frame_cache): Update comments in type description.
(xtensa_frame_cache): Likewise.
(xtensa_window_interrupt_insn): New function.
(xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
(xtensa_insn_kind): Add new instructions.
(rwx_special_register): New function.
(call0_classify_opcode): Add new instructions to the analysis.
(a0_saved, a7_saved, a11_saved): New variables.
(a0_was_saved, a7_was_saved, a11_was_saved): New variables.
(execute_l32e): New function.
(execute_s32e): New function.
(xtensa_exception_handler_t): New type.
(execute_code): New function.
(xtensa_window_interrupt_frame_cache): New function to conduct frame
analysis for Xtensa Window Exception handlers.
ian [Wed, 9 Mar 2011 10:50:33 +0000 (10:50 +0000)]
PR gold/12525
* fileread.cc: #include <climits>.
(GOLD_IOV_MAX): Define.
(File_read::read_multiple): Limit number of entries by iov_max.
* fileread.h (class File_read): Always set max_readv_entries to
128.
maxim2405 [Wed, 9 Mar 2011 09:55:07 +0000 (09:55 +0000)]
2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (TX_PS): New.
(windowing_enabled): Update to count for Call0 ABI.
(xtensa_hextochar): New.
(xtensa_init_reggroups): Make algorithm generic.
(xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
gdbadmin [Wed, 9 Mar 2011 09:00:32 +0000 (09:00 +0000)]
*** empty log message ***
msnyder [Wed, 9 Mar 2011 08:08:54 +0000 (08:08 +0000)]
2011-03-08 Michael Snyder <msnyder@vmware.com>
* i386-tdep.c (i386_follow_jump): Check return value of
target_read_memory.
(i386_analyze_struct_return): Ditto.
(i386_skip_probe): Ditto.
(i386_match_insn): Ditto.
(i386_skip_noop): Ditto.
(i386_analyze_frame_setup): Ditto.
(i386_analyze_register_saves): Ditto.
(i386_skip_prologue): Ditto.
(i386_skip_main_prologue): Ditto.
maxim2405 [Wed, 9 Mar 2011 08:04:05 +0000 (08:04 +0000)]
2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.h (XTENSA_MAX_COPROCESSOR) Update.
amodra [Wed, 9 Mar 2011 08:00:06 +0000 (08:00 +0000)]
daily update
msnyder [Wed, 9 Mar 2011 03:58:52 +0000 (03:58 +0000)]
2011-02-27 Michael Snyder <msnyder@vmware.com>
* target.c (read_whatever_is_readable): Fix memory leak.
msnyder [Wed, 9 Mar 2011 03:49:12 +0000 (03:49 +0000)]
2011-03-02 Michael Snyder <msnyder@vmware.com>
* i386-tdep.c (i386_process_record): Document fall through.
jkratoch [Wed, 9 Mar 2011 02:54:39 +0000 (02:54 +0000)]
gdb/
Fix DWARF-3+ DW_AT_accessibility default assumption.
* dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
cu->header.version >= 3.
corinna [Wed, 9 Mar 2011 00:12:57 +0000 (00:12 +0000)]
* security.cc: Fix copyright dates.
corinna [Tue, 8 Mar 2011 23:26:14 +0000 (23:26 +0000)]
* fhandler.cc (fhandler_base::open): When creating a file on a
filesystem supporting ACLs, create the file with WRITE_DAC access.
Explain why.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for
directories.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets.
* path.cc (symlink_worker): Ditto for symlinks.
* security.cc (get_file_sd): Always call GetSecurityInfo for directories
on XP and Server 2003. Improve comment to explain why.
(set_file_attribute): Explicitely cast mode_t value to bool in call to
get_file_sd.
* wincap.h (wincaps::use_get_sec_info_on_dirs): New element.
* wincap.cc: Implement above element throughout.
palves [Tue, 8 Mar 2011 21:46:50 +0000 (21:46 +0000)]
gdb/
2011-03-08 Pedro Alves <pedro@codesourcery.com>
* remote.c (remote_check_symbols): Skip if the target has no
execution.
gdb/testsuite/
2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.server/ext-run.exp
(load new file without any gdbserver inferior): New test.
brobecke [Tue, 8 Mar 2011 13:53:32 +0000 (13:53 +0000)]
minor reformatting for target.c:read_whatever_is_readable
gdb/ChangeLog:
* target.c (read_whatever_is_readable): Reformat comment,
with a minor typo fix. Minor reformatting of the code.
ironhead [Tue, 8 Mar 2011 10:57:45 +0000 (10:57 +0000)]
2011-03-07 Chris Sutcliffe <ir0nh34d@users.sf.net>
* include/winbase.h (PSAPI_WORKING_SET_BLOCK,
PSAPI_WORKING_SET_INFORMATION): Move from here...
* include/psapi.h (PSAPI_WORKING_SET_BLOCK,
PSAPI_WORKING_SET_INFORMATION): ... to here.
qiyao [Tue, 8 Mar 2011 10:04:33 +0000 (10:04 +0000)]
2011-03-08 Yao Qi <yao@codesourcery.com>
* arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
(displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
Use cached result instead of calling displaced_in_arm_mode again.
(branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
(displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
(cleanup_copro_load_store, copy_copro_load_store): Likewise.
(cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
(cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
(copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
(copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
(cleanup_block_load_all, cleanup_block_store_pc): Likewise.
(cleanup_block_load_pc, copy_block_xfer): Likewise.
* arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
(arm_catch_kernel_helper_return): Likewise.
* gdb/arm-tdep.h : Update function declarations.
gdbadmin [Tue, 8 Mar 2011 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Tue, 8 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update
ian [Tue, 8 Mar 2011 07:51:39 +0000 (07:51 +0000)]
PR gold/12525
* options.h (class General_options): Add -dy and -dn.
tromey [Tue, 8 Mar 2011 07:02:45 +0000 (07:02 +0000)]
* Makefile.in (TAGS): Rewrite.
jkratoch [Tue, 8 Mar 2011 05:25:57 +0000 (05:25 +0000)]
gdb/testsuite/
* gdb.trace/report.exp (12.1: trace report #1): New match for the
initial commands echo. New match for `Found trace'. Anchor all the
other matches. Anchor and match for `No trace frame found' the final
match.
jkratoch [Tue, 8 Mar 2011 05:15:12 +0000 (05:15 +0000)]
gdb/gdbserver/
* remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
msnyder [Tue, 8 Mar 2011 05:06:11 +0000 (05:06 +0000)]
2011-03-04 Michael Snyder <msnyder@vmware.com>
* dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
msnyder [Tue, 8 Mar 2011 04:53:32 +0000 (04:53 +0000)]
2011-03-05 Michael Snyder <msnyder@vmware.com>
* ser-unix.c (hardwire_get_tty_state): Stop memory leak.
msnyder [Tue, 8 Mar 2011 04:50:22 +0000 (04:50 +0000)]
2011-03-05 Michael Snyder <msnyder@vmware.com>
* mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
msnyder [Tue, 8 Mar 2011 04:44:18 +0000 (04:44 +0000)]
2011-03-05 Michael Snyder <msnyder@vmware.com>
* elfread.c (elf_symtab_read): Stop memory leak.
msnyder [Tue, 8 Mar 2011 03:34:30 +0000 (03:34 +0000)]
2011-03-06 Michael Snyder <msnyder@vmware.com>
* main.c (captured_main): Fix memory leak.
schwab [Tue, 8 Mar 2011 03:29:12 +0000 (03:29 +0000)]
* ada-lang.c (compare_names): Call is_name_suffix with string1
instead of string2.
tromey [Tue, 8 Mar 2011 02:03:51 +0000 (02:03 +0000)]
* Makefile.in (TAGS): New target.
tromey [Tue, 8 Mar 2011 01:17:25 +0000 (01:17 +0000)]
* xcoffread.c (xcoff_sym_fns): Update.
* symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
(enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
* symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
(symbol_file_add_with_addrs_or_offsets): Likewise.
(reread_symbols): Handle OBJF_PSYMTABS_READ.
* somread.c (som_sym_fns): Update.
* psymtab.h (require_partial_symbols): Declare.
* psymtab.c (require_partial_symbols): New function.
(ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
(ALL_OBJFILE_PSYMTABS): Undef.
(ALL_PSYMTABS): Move from psympriv.h.
(lookup_partial_symtab, find_pc_sect_psymtab)
(lookup_symbol_aux_psymtabs, relocate_psymtabs)
(find_last_source_symtab_from_partial)
(forget_cached_source_info_partial)
(print_psymtab_stats_for_objfile, read_symtabs_for_function)
(expand_partial_symbol_tables, read_psymtabs_with_filename)
(map_symbol_names_psymtab, map_symbol_filenames_psymtab)
(find_symbol_file_from_partial, map_matching_symbols_psymtab)
(expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
Use ALL_OBJFILE_PSYMTABS_REQUIRED.
* psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
* objfiles.h (OBJF_PSYMTABS_READ): New macro.
* objfiles.c (objfile_has_partial_symbols): Handle lazily-read
psymtabs.
* mipsread.c (ecoff_sym_fns): Update.
* machoread.c (macho_sym_fns): Update.
* elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
(read_psyms): New function.
(elf_sym_fns, elf_sym_fns_gdb_index): Update.
(elf_sym_fns_lazy_psyms): New global.
* dwarf2read.c (dwarf2_initialize_objfile): Don't call
dwarf2_build_psymtabs.
* dbxread.c (aout_sym_fns): Update.
* coffread.c (coff_sym_fns): Update.
tromey [Tue, 8 Mar 2011 01:02:58 +0000 (01:02 +0000)]
gdb
* infrun.c (print_exited_reason): Include inferior id and pid in
message.
gdb/testsuite
* lib/opencl.exp (skip_opencl_tests): Update for exit message
change.
* lib/mi-support.exp (mi_gdb_test): Update for exit message
change.
* lib/gdb.exp (gdb_test_multiple): Update comment. Update for
exit message change.
(skip_altivec_tests): Update for exit message change.
(skip_vsx_tests): Likewise.
(gdb_continue_to_end): Likewise. Add 'command' argument.
* lib/cell.exp (skip_cell_tests): Update for exit message change.
* gdb.threads/tls.exp: Update for exit message change.
* gdb.threads/thread-unwindonsignal.exp: Use
gdb_continue_to_end.
* gdb.threads/step.exp (step_it): Update for exit message change.
(continue_all): Likewise.
* gdb.threads/print-threads.exp (test_all_threads): Update for
exit message change.
* gdb.threads/interrupted-hand-call.exp: Use
gdb_continue_to_end.
* gdb.threads/execl.exp: Use gdb_continue_to_end.
* gdb.python/py-prettyprint.exp (run_lang_tests): Use
gdb_continue_to_end.
* gdb.hp/gdb.objdbg/objdbg02.exp: Use gdb_continue_to_end.
* gdb.hp/gdb.objdbg/objdbg01.exp: Use gdb_continue_to_end.
* gdb.hp/gdb.defects/solib-d.exp: Update for exit message change.
* gdb.cp/method.exp: Update for exit message change.
* gdb.cp/mb-templates.exp: Update for exit message change.
* gdb.cp/mb-inline.exp: Use gdb_continue_to_end.
* gdb.cp/annota3.exp: Update for exit message change.
* gdb.cp/annota2.exp: Update for exit message change.
* gdb.cell/fork.exp: Use gdb_continue_to_end.
* gdb.base/term.exp: Update for exit message change.
* gdb.base/step-test.exp (test_i): Update for exit message change.
* gdb.base/sigstep.exp (advance): Update for exit message change.
(advancei): Likewise.
* gdb.base/siginfo.exp: Update for exit message change.
* gdb.base/shlib-call.exp: Use gdb_continue_to_end.
* gdb.base/reread.exp: Use gdb_continue_to_end.
* gdb.base/langs.exp: Use gdb_continue_to_end.
* gdb.base/interrupt.exp: Update for exit message change.
* gdb.base/gdb1555.exp: Update for exit message change.
* gdb.base/exe-lock.exp: Use gdb_continue_to_end.
* gdb.base/ending-run.exp: Update for exit message change.
* gdb.base/chng-syms.exp: Update for exit message change.
* gdb.base/checkpoint.exp: Update for exit message change.
* gdb.base/catch-syscall.exp (check_for_program_end): Use
gdb_continue_to_end.
(test_catch_syscall_with_wrong_args): Likewise.
* gdb.base/call-signal-resume.exp: Use gdb_continue_to_end.
* gdb.base/break-interp.exp (test_ld): Update for exit message
change.
* gdb.base/bang.exp: Update for exit message change.
* gdb.base/attach.exp (do_attach_tests): Use gdb_continue_to_end.
(do_call_attach_tests): Likewise.
* gdb.base/a2-run.exp: Update for exit message change.
* gdb.arch/ppc-dfp.exp: Update for exit message change.
* gdb.ada/tasks.exp: Use gdb_continue_to_end.
* gdb.ada/catch_ex.exp: Use gdb_continue_to_end.
tromey [Tue, 8 Mar 2011 00:58:12 +0000 (00:58 +0000)]
* target.h (struct target_ops) <to_has_execution>: Add ptid_t
parameter.
(target_has_execution_1): Update.
(target_has_execution_current): Declare.
(target_has_execution): Call target_has_execution_current.
(default_child_has_execution): Update.
* target.c (default_child_has_execution): Add 'the_ptid'
parameter.
(target_has_execution_1): Likewise.
(target_has_execution_current): New function.
(add_target): Update.
(init_dummy_target): Update.
* remote-m32r-sdi.c (m32r_has_execution): New function.
(init_m32r_ops): Use it.
* record.c (record_core_has_execution): Now static. Add
'the_ptid' parameter.
* inferior.c (have_live_inferiors): Don't save current thread.
Use target_has_execution_1.
qiyao [Mon, 7 Mar 2011 20:42:53 +0000 (20:42 +0000)]
2011-03-07 Yao Qi <yao@codesourcery.com>
* Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
brobecke [Mon, 7 Mar 2011 20:13:07 +0000 (20:13 +0000)]
Minor reformatting in elfread.c:elf_symtab_read
gdb/ChangeLog:
* elfread.c (elf_symtab_read): Minor reformatting.
brobecke [Mon, 7 Mar 2011 19:41:34 +0000 (19:41 +0000)]
minor reformatting in objc-lang.c:selectors_info
gdb/ChangeLog:
* objc-lang.c (selectors_info): Minor reformatting.
brobecke [Mon, 7 Mar 2011 19:05:18 +0000 (19:05 +0000)]
add FALLTHROUGH comment in ada-lang.c:compare_names
gdb/ChangeLog:
* ada-lang.c (compare_names): Add FALLTHROUGH comment.
brobecke [Mon, 7 Mar 2011 17:57:08 +0000 (17:57 +0000)]
simplify ada-valprint.c:ada_val_print_array
Two things:
- Move the declaration of a couple of variables inside the block
where they are actually used;
- Remove some code that checks against NULL/zero, because the
condition should always be false. Add some gdb_asserts to
make sure we never fail those assumptions.
gdb/ChangeLog:
* ada-valprint.c (ada_val_print_array): Move the declaration of
"byte_order" and "elttype" inside the block where these variables
are actually used. Remove some special handling for the case
where "elttype" and "eltlen" are null. Replace by a comment
and a couple of assertion checks.
hjl [Mon, 7 Mar 2011 14:42:53 +0000 (14:42 +0000)]
Revert the last change on gas/elf/bad-size.err.
2011-03-06 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/bad-size.err: Revert the last change.
gdbadmin [Mon, 7 Mar 2011 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Mon, 7 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update
msnyder [Mon, 7 Mar 2011 03:37:07 +0000 (03:37 +0000)]
2011-03-05 Michael Snyder <msnyder@vmware.com>
* compress.c (bfd_compress_section_contents): Check for out of mem.
msnyder [Mon, 7 Mar 2011 03:27:03 +0000 (03:27 +0000)]
2011-03-06 Michael Snyder <msnyder@vmware.com>
* elf64-x86-64.c (elf_x86_64_relocate_section): Document
that case statement falls through intentionally.
msnyder [Mon, 7 Mar 2011 03:22:36 +0000 (03:22 +0000)]
2011-03-06 Michael Snyder <msnyder@vmware.com>
* elf32-i386.c (elf_i386_relocate_section): Document fall through.
hjl [Sun, 6 Mar 2011 23:05:23 +0000 (23:05 +0000)]
Mention symbol name in non-constant .size expression.
gas/
2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (elf_frob_symbol): Mention symbol name in
non-constant .size expression.
gas/testsuite/
2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/bad-size.err: Updated.
brobecke [Sun, 6 Mar 2011 16:40:52 +0000 (16:40 +0000)]
gdbserver: configure + make clean fails (no 'common' subdir)
This problem was noticed during the nightly snapshot build,
but can be reduced to:
% /path/to/gdb/gdbserver/configure
% make clean
The "make clean" fails, because it tries to do a "make clean"
in the common/ subdirectory. But the problem is that this
common/ subdirectory is NOT created during the configure phase,
but rather during the build phase. The error is fatal because
we had put the common subdirectory in the list of REQUIRED_SUBDIRS.
This fixes the problem by removing it from the REQUIRED_SUBDIRS
list.
gdb/gdbserver/ChangeLog:
* Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
msnyder [Sun, 6 Mar 2011 10:32:46 +0000 (10:32 +0000)]
2011-03-05 Michael Snyder <msnyder@vmware.com>
* source.c (add_path): Replace semicolon at end of block.
* dwarf2expr.c (execute_stack_op): Ditto.
vapier [Sun, 6 Mar 2011 09:22:36 +0000 (09:22 +0000)]
gdb: blackfin: enable simulator support
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
vapier [Sun, 6 Mar 2011 09:20:16 +0000 (09:20 +0000)]
sim: bfin: new port
This can boot Das U-Boot and a Linux kernel. It also supports Linux
userspace FLAT and FDPIC (dynamic and static) ELFs.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gdbadmin [Sun, 6 Mar 2011 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Sun, 6 Mar 2011 08:00:06 +0000 (08:00 +0000)]
daily update
msnyder [Sun, 6 Mar 2011 07:02:47 +0000 (07:02 +0000)]
2011-03-05 Michael Snyder <msnyder@vmware.com>
* dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
* mdebugread.c (parse_symbol): Ditto.
* parse.c (parse_exp_in_context): Ditto.
* source.c (add_path): Ditto.
* utils.c (gnu_debuglink_crc32): Ditto.
* varobj.c (variable_language): Ditto.
msnyder [Sun, 6 Mar 2011 06:21:31 +0000 (06:21 +0000)]
2011-03-05 Michael Snyder <msnyder@vmware.com>
* linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
ironhead [Sun, 6 Mar 2011 05:55:46 +0000 (05:55 +0000)]
2011-03-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
* include/w32api.h: Increment version to 3.16.
* Makefile.in: Ditto.