OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years ago PR gold/13023
ccoutant [Mon, 31 Oct 2011 22:51:03 +0000 (22:51 +0000)]
PR gold/13023
* expression.cc (Expression::eval_with_dot): Add
is_section_dot_assignment parameter.
(Expression::eval_maybe_dot): Likewise.  Adjust value when rhs is
absolute and assigning to dot within a section.
* script-sections.cc
(Output_section_element_assignment::set_section_addresses): Pass
dot_section to set_if_absolute.
(Output_section_element_dot_assignment::finalize_symbols): Pass TRUE
as is_section_dot_assignment flag to eval_with_dot.
(Output_section_element_dot_assignment::set_section_addresses):
Likewise.
* script.cc (Symbol_assignment::set_if_absolute): Add dot_section
parameter.  Also set value if relative to dot_section; set the
symbol's output_section.
* script.h (Expression::eval_with_dot): Add is_section_dot_assignment
parameter.  Adjust all callers.
(Expression::eval_maybe_dot): Likewise.
(Symbol_assignment::set_if_absolute): Add dot_section parameter.
Adjust all callers.
* testsuite/script_test_2.t: Test assignment of an absolute value
to dot within an output section element.

12 years ago * options.h (class General_options): Add --[no-]gnu-unique options.
ccoutant [Mon, 31 Oct 2011 22:43:48 +0000 (22:43 +0000)]
* options.h (class General_options): Add --[no-]gnu-unique options.
* symtab.cc (Symbol_table::sized_write_globals): Convert
STB_GNU_UNIQUE to STB_GLOBAL if --no-gnu-unique.

12 years ago PR gold/13359
ccoutant [Mon, 31 Oct 2011 22:33:04 +0000 (22:33 +0000)]
PR gold/13359
* i386.cc (Target_i386::Relocate::relocate_tls): Remove
unnecessary assertion.
* x86_64.cc (Target_x86_64::Relocate::relocate_tls): Likewise.

12 years ago2011-10-31 Sriraman Tallam <tmsriram@google.com>
tmsriram [Mon, 31 Oct 2011 21:36:54 +0000 (21:36 +0000)]
2011-10-31 Sriraman Tallam  <tmsriram@google.com>

* symtab.h (Symbol_table::gc_mark_symbol_for_shlib): Rename to
gc_mark_symbol.
* symtab.cc (Symbol_table::gc_mark_symbol_for_shlib): Rename to
gc_mark_symbol.
Change to just keep the section associated with symbol.
(Symbol_table::add_from_relobj): Mark symbols as not garbage when
they are externally visible and --export-dynamic is turned on.
(Symbol_table::gc_mark_dyn_syms): Call gc_mark_symbol.

12 years ago2011-10-31 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 31 Oct 2011 12:55:25 +0000 (12:55 +0000)]
2011-10-31  Pedro Alves  <pedro@codesourcery.com>

gdb/gdbserver/
* mem-break.c (check_mem_write): Add `myaddr' parameter.  Don't
clobber the breakpoints' shadows with fast tracepoint jumps.
* mem-break.h (check_mem_write): Add `myaddr' parameter.
* target.c (write_inferior_memory): Also pass MYADDR down to
check_mem_write.

gdb/testsuite/
        * gdb.trace/trace-break.c: New.
        * gdb.trace/trace-break.exp: New.

12 years ago*** empty log message ***
gdbadmin [Mon, 31 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sun, 30 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agoRemove erroneous entry.
cgf [Sun, 30 Oct 2011 05:21:07 +0000 (05:21 +0000)]
Remove erroneous entry.

12 years ago* fhandler.h (fhandler_pipe::create_selectable): Remove optional argument, take
cgf [Sun, 30 Oct 2011 04:50:33 +0000 (04:50 +0000)]
* fhandler.h (fhandler_pipe::create_selectable): Remove optional argument, take
an options argument for CreateNamedPipe/CreateFile.  Change handle arguments to
expect pointers.
(fhandler_fifo::fifo_state): Delete.
(fhandler_fifo::dummy_client): Ditto.
(fhandler_fifo::open_nonserver): Ditto.
(fhandler_fifo::wait_state): Ditto.
(fhandler_fifo::raw_write): Ditto.
(fhandler_fifo::read_ready): New field.
(fhandler_fifo::write_ready): Ditto.
(fhandler_fifo::wait): Modify argument.
(fhandler_fifo::fifo_name): Add a new argument.
(fhandler_fifo::fixup_after_fork): New function.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Remove initialization of
expunged elements.  Initialize new handles to NULL.
(fhandler_fifo::open_nonserver): Delete.
(fnevent): New macro for creating a named event.
(fnpipe): New macro for creating a unique named pipe name.
(create_pipe): New macro for simplification of named pipe creation.
(fhandler_fifo::fifo_name): Use new argument when creating a shared name.
(fhandler_fifo::open): Rewrite.  Use events to synchronize.
(pure_debug_printf): New macro, active only when DEBUGGING.
(fhandler_fifo::wait): Rewrite to wait for new fifo events which are supplied
as a parameter.
(fhandler_fifo::raw_read): Rewrite to use handle mechanism to detect
client-side disconnect.
(fhandler_fifo::raw_write): Delete.
(fhandler_fifo::close): Remove accommodations for expunged fields.  Close event
handles.
(fhandler_fifo::dup): Remove accommodations for expunged fields.  Duplicate
event handles.
(fhandler_fifo::fixup_after_fork): New function.  Perform fixups on event
handles.
(fhandler_fifo::set_close_on_exec): Remove accommodations for expunged fields.
Set inheritance for new handle fields.
* miscfuncs.cc (CreatePipeOverlapped): Accommodate changes in
fhandler_pipe::create_selectable.
* tty.cc (tty::not_allocated): Ditto.
* pipe.cc (fhandler_pipe::create): Ditto.
(fhandler_pipe::create_selectable): Accept an extra open_mode argument.  Pass
arguments by reference and allow opening one end of the pipe at a time.
* sys/strace.h (debug_only_printf): Define new macro which calls debug_printf
only when DEBUGGING is defined.

12 years ago*** empty log message ***
gdbadmin [Sun, 30 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sat, 29 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb/
qiyao [Sat, 29 Oct 2011 12:36:08 +0000 (12:36 +0000)]
gdb/
* infcmd.c (disconnect_command): Call disconnect_tracing.

12 years agogdb/
jkratoch [Sat, 29 Oct 2011 07:26:07 +0000 (07:26 +0000)]
gdb/
Code cleanup.
* symtab.c (skip_prologue_sal): Code reformatting.

12 years agomerge from gcc
dj [Sat, 29 Oct 2011 01:06:33 +0000 (01:06 +0000)]
merge from gcc

12 years ago*** empty log message ***
gdbadmin [Sat, 29 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Fri, 28 Oct 2011 23:00:07 +0000 (23:00 +0000)]
daily update

12 years agogdb/
jkratoch [Fri, 28 Oct 2011 22:40:55 +0000 (22:40 +0000)]
gdb/
PR symtab/13208
* jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
SAI.

12 years agogdb/testsuite/
jkratoch [Fri, 28 Oct 2011 19:24:45 +0000 (19:24 +0000)]
gdb/testsuite/
* gdb.threads/no-unwaited-for-left.exp: Specify $srcfile for
break-here-2.

12 years ago2011-10-28 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 28 Oct 2011 18:29:57 +0000 (18:29 +0000)]
2011-10-28  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (linux_nat_filter_event): Remove `options'
parameter, and dead code that used it.  If we're handling a
PTRACE_EVENT_EXEC event, and the thread group leader is no longer
in our lwp list, re-add it.
(check_zombie_leaders): New.
(linux_nat_wait_1): Remove `options' and `pid' locals.  Always
wait for children with WNOHANG, and always wait for all children.
Don't check for no resumed children upfront.  Simplify wait loop.
Check for zombie thread group leaders after handling all wait
statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
unwaited-for children left.
* infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
(handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
(normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
* target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.

gdb/testsuite/
* gdb.threads/no-unwaited-for-left.c: New.
* gdb.threads/no-unwaited-for-left.exp: New.
* gdb.threads/non-ldr-exc-1.c: New.
* gdb.threads/non-ldr-exc-1.exp: New.
* gdb.threads/non-ldr-exc-2.c: New.
* gdb.threads/non-ldr-exc-2.exp: New.
* gdb.threads/non-ldr-exc-3.c: New.
* gdb.threads/non-ldr-exc-3.exp: New.
* gdb.threads/non-ldr-exc-4.c: New.
* gdb.threads/non-ldr-exc-4.exp: New.

12 years ago * dwarf.c (display_debug_frames): If do_debug_frames_interp,
ian [Fri, 28 Oct 2011 18:27:46 +0000 (18:27 +0000)]
* dwarf.c (display_debug_frames): If do_debug_frames_interp,
DW_CFA_restore goes to DW_CFA_undefined, not DW_CFA_unreferenced.

12 years ago* exceptions.cc (sigpacket::process): Avoid a potential deadlock when exiting
cgf [Fri, 28 Oct 2011 17:32:37 +0000 (17:32 +0000)]
* exceptions.cc (sigpacket::process): Avoid a potential deadlock when exiting
due to a signal.

12 years agogdb/testsuite/
jkratoch [Fri, 28 Oct 2011 17:32:28 +0000 (17:32 +0000)]
gdb/testsuite/
* gdb.base/async-shell.exp: Skip the testfile for use_gdb_stub.
* gdb.base/attach-pie-misread.exp: Likewise.
* gdb.base/break-interp.exp: Likewise.
* gdb.base/default.exp (attach, run "r" abbreviation, run): Skip these
testcases for use_gdb_stub.
* gdb.dwarf2/dw2-restore.exp: Fix the run for use_gdb_stub.
(continue): New testcase.
* gdb.python/py-events.exp: Skip the testfile for use_gdb_stub.
* gdb.threads/attach-into-signal.exp: Likewise.
* gdb.threads/attach-stopped.exp: Likewise.
* gdb.threads/attachstop-mt.exp: Likewise.

12 years ago11-10-28 Sterling Augustine <saugustine@google.com>
sterling [Fri, 28 Oct 2011 17:29:33 +0000 (17:29 +0000)]
11-10-28  Sterling Augustine  <saugustine@google.com>

* psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
* symtab.c (free_completion_list): New function.
(do_free_completion_list): Likewise.
(default_make_symbol_completion_list_break_on): New variable
back_to. Call make_cleanup and discard_cleanups.
(make_source_files_completion_list): Likewise.

12 years ago* gdb.python/lib-types.exp (deep_items): Rename from deepitems.
pkoning [Fri, 28 Oct 2011 14:49:18 +0000 (14:49 +0000)]
* gdb.python/lib-types.exp (deep_items): Rename from deepitems.

12 years ago* gdb.texinfo (gdb.types): Rename deepitems to deep_items.
pkoning [Fri, 28 Oct 2011 14:48:59 +0000 (14:48 +0000)]
* gdb.texinfo (gdb.types): Rename deepitems to deep_items.

12 years ago* python/lib/gdb/types.py (deep_items): Rename from deepitems.
pkoning [Fri, 28 Oct 2011 14:48:36 +0000 (14:48 +0000)]
* python/lib/gdb/types.py (deep_items): Rename from deepitems.
* NEWS: Mention deep_items.

12 years agoFixes the TILE-Gx/TILEPro port of gas to deal with relocations of
walt [Fri, 28 Oct 2011 14:43:53 +0000 (14:43 +0000)]
Fixes the TILE-Gx/TILEPro port of gas to deal with relocations of
aliases.

12 years agoAdd myself as TILEPro and TILE-Gx port maintainer.
walt [Fri, 28 Oct 2011 14:41:13 +0000 (14:41 +0000)]
Add myself as TILEPro and TILE-Gx port maintainer.

12 years agoMention Tilera support in binutils/NEWS, and fix the TILEPro
walt [Fri, 28 Oct 2011 14:37:27 +0000 (14:37 +0000)]
Mention Tilera support in binutils/NEWS, and fix the TILEPro
capitalization in gas/NEWs and ld/NEWS.

12 years ago2011-10-28 Alen Skondro <askondro@gmail.com>
palves [Fri, 28 Oct 2011 13:32:03 +0000 (13:32 +0000)]
2011-10-28  Alen Skondro  <askondro@gmail.com>

* ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
defined.

12 years ago * po/ja.po: New Japanese translation.
nickc [Fri, 28 Oct 2011 13:02:13 +0000 (13:02 +0000)]
* po/ja.po: New Japanese translation.
* configure.in (ALL_LINGUAS): Add ja.
* configure: Regenerate.

12 years ago * new-features.sgml (ov-new1.7.10): Document getgrouplist.
corinna [Fri, 28 Oct 2011 09:27:18 +0000 (09:27 +0000)]
* new-features.sgml (ov-new1.7.10): Document getgrouplist.

12 years ago * cygwin.din (getgrouplist): Export.
corinna [Fri, 28 Oct 2011 09:26:42 +0000 (09:26 +0000)]
* cygwin.din (getgrouplist): Export.
* grp.cc (get_groups): New static function to run the core functionality
of initgroups and getgrouplist.
(initgroups32): Call get_groups and just create supplementary group
list in cygheap.  Rename name of first argument to "user".  Add an
assertion to test for a NULL user name.
(initgroups): Rename name of first argument to "user".
(getgrouplist): New function.
* posix.sgml (std-bsd): Add getgrouplist.
* include/cygwin/grp.h (getgrouplist): Declare.
* include/cygwin/version.h: Bump API minor number.

12 years agogdb/testsuite/
jkratoch [Fri, 28 Oct 2011 08:32:32 +0000 (08:32 +0000)]
gdb/testsuite/
* lib/mi-support.exp (breakpoint_re): Suppress match reporting.
(mi_gdb_test): Import globals thread_selected_re
and breakpoint_re.  Expect them optionally at the regex start.

12 years ago2011-10-27 Meador Inge <meadori@codesourcery.com>
meadori [Fri, 28 Oct 2011 03:38:00 +0000 (03:38 +0000)]
2011-10-27  Meador Inge  <meadori@codesourcery.com>

* MAINTAINERS (Write After Approval): Add myself to the list.

12 years ago*** empty log message ***
gdbadmin [Fri, 28 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Thu, 27 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agohandle variables stored in muliple consecutive registers
brobecke [Thu, 27 Oct 2011 17:05:37 +0000 (17:05 +0000)]
handle variables stored in muliple consecutive registers

gdb/ChangeLog:

        * value.h (read_frame_register_value): Add declaration.
        * findvar.c (read_frame_register_value): New function.
        (value_from_register): Use read_frame_register_value
        instead of get_frame_register_value + value_contents_copy
        to get value contents.

12 years ago * cli/cli-cmds.c (source_script_with_search): Pass full path to
devans [Thu, 27 Oct 2011 15:46:07 +0000 (15:46 +0000)]
* cli/cli-cmds.c (source_script_with_search): Pass full path to
source_script_from_stream if it may have been found on the search path.
* python/py-auto-load.c (source_section_scripts): Pass full path to
source_python_script_for_objfile.
* python/python.c (source_python_script): Delete stream parameter.
All callers updated.
(source_python_script_for_objfile): Ditto.
* python/python-internal.h (source_python_script_for_objfile): Update.
* python/python.h (source_python_script): Update.

testsuite/
* gdb.python/python.exp: Test source -s.

12 years agoopcodes/
bergner [Thu, 27 Oct 2011 15:44:01 +0000 (15:44 +0000)]
opcodes/
        * ppc-opc.c (powerpc_opcodes) <drrndq, drrndq., dtstexq, dctqpq,
dctqpq., dctfixq, dctfixq., dxexq, dxexq., dtstsfq, dcffixq, dcffixq.,
diexq, diexq.>: Use FRT, FRA, FRB and FRBp repsectively on DFP quad
instructions.

12 years ago * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
tromey [Thu, 27 Oct 2011 15:32:10 +0000 (15:32 +0000)]
* ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
(ada_sals_for_line): Remove declarations.

12 years agobfd:
amylaar [Thu, 27 Oct 2011 14:27:16 +0000 (14:27 +0000)]
bfd:
        * cpu-epiphany.c: Reinstate full list of Copyright years.
        * elf32-epiphany.c: Likewise.
cpu:
        * epiphany.cpu, epiphany.opc: Likewise.
gas:
        * config/tc-epiphany.c, config/tc-epiphany.h: Likewise.
        * doc/c-epiphany.texi: Likewise.
include:
        * elf/epiphany.h: Likewise.

12 years ago * MAINTAINERS: Add myself as EPIPHANY port maintainer.
amylaar [Thu, 27 Oct 2011 14:13:24 +0000 (14:13 +0000)]
    * MAINTAINERS: Add myself as EPIPHANY port maintainer.

12 years agoMove unwind reasons to an external .def file
kpouget [Thu, 27 Oct 2011 11:04:25 +0000 (11:04 +0000)]
Move unwind reasons to an external .def file

gdb/
* frame.c (frame_stop_reason_string): Rewrite using
unwind_stop_reasons.def.
* frame.h (enum unwind_stop_reason): Likewise.
* python/py-frame.c (gdbpy_initialize_frames): Likewise.
(gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
constants for bound-checking.
* unwind_stop_reasons.def: New file.
* stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
instead of a distinct value.

doc/
* gdb.texinfo ((Frames In Python): Document
gdb.FRAME_UNWIND_FIRST_ERROR contant.

12 years ago2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Thu, 27 Oct 2011 10:29:58 +0000 (10:29 +0000)]
2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>

        PR python/13331

* python/py-function.c (fnpy_call): Check 'args' is not NULL.
(convert_values_to_python): Return on Python tuple allocation
failure.  Return NULL on value conversion error.

12 years ago * config.sub: Import these changes from the config project:
nickc [Thu, 27 Oct 2011 09:45:24 +0000 (09:45 +0000)]
* config.sub: Import these changes from the config project:

2011-10-08  Joern Rennecke <joern.rennecke@embecosm.com>
    Ben Elliston  <bje@gnu.org>

* config.sub (epiphany): New.

2011-09-09  Linas Vepstas  <linasvepstas@gmail.com>
    Ben Elliston  <bje@gnu.org>

        * config.sub (hexagon, hexagon-*): New.

2011-08-23  Roland McGrath  <mcgrathr@google.com>

* config.sub: Rename 32eb to be32, 32el to le32, 64el to le64, and
64eb to be64.

2011-08-16  Roland McGrath  <mcgrathr@google.com>

* config.sub (32eb, 32el, 64eb, 64el): New (pseudo-)CPUs.
(nacl): Grok as alias for 32el-unknown-nacl.

12 years ago2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Thu, 27 Oct 2011 09:14:26 +0000 (09:14 +0000)]
2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>

* python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
(bppy_set_task): Ditto.
(bppy_delete_breakpoint): Ditto.
* python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
(gdbpy_lookup_global_symbol): Ditto.
* python/py-lazy-string.c (stpy_convert_to_value): Ditto.
* python/py-frame.c (frapy_is_valid): Ditto.
(frame_info_to_frame_object): Ditto.
* python/py-type.c (typy_lookup_type): Ditto.
(typy_getitem): Ditto.
(typy_has_key): Ditto.
(typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.

12 years ago*** empty log message ***
gdbadmin [Thu, 27 Oct 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Wed, 26 Oct 2011 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agoRegenerate gdbarch.h
brobecke [Wed, 26 Oct 2011 21:23:54 +0000 (21:23 +0000)]
Regenerate gdbarch.h

Not sure why, but the version currently checked in as an extraneous
trailing whitespace that showed up as a diff when I reran gdbarch.sh.

gdb/ChangeLog:

        * gdbarch.h: Regenerate.

12 years ago* child_info.h (cchildren): New struct.
cgf [Wed, 26 Oct 2011 19:42:37 +0000 (19:42 +0000)]
* child_info.h (cchildren): New struct.
(child_info_spawn::nchildren): Rename from nprocs.
(child_info_spawn::children): Change type to cchildren for more bookkeeping
possibilities.
(child_info_spawn::child_info_spawn): Clear nchildren.
(child_info_spawn::record_children): Declare new function.
(child_info_spawn::reattach_children): Ditto.
* dcrt0.cc (child_info_spawn::handle_spawn): Call reattach_children to gather
list of processes we are potentially waiting for.
* pinfo.h (pinfo::pinfo): Make sure that rd_proc_pipe is always cleared.
(pinfo::reattach): New function.
* sigproc.cc: Move pinfo.h earlier so that it can be used in sigproc.h.
(get_proc_lock): Don't bother with a lock during DLL initialization.
(proc_subproc): Handle PROC_REATTACH_CHILD.
(proc_terminate): Orphan children only when we are not an execed process or
when the pid is about to be occupied by a non-cygwin process.
(child_info_spawn::record_children): Define new function.
(child_info_spawn::reattach_children): Ditto.
* sigproc.h (procstuff): Define PROC_REATTACH_CHILD and renumber other
elements.
* spawn.cc (spawn_guts): Record any to-be-waited-for subprocesses if about to
exec a cygwin process.
* sigproc.cc (sig_send): Fix harmless transposition of fifth and six arguments
to DuplicateHandle().
(child_info::child_info): Ditto.
* globals.cc (hExeced): Make NO_COPY.

12 years agoFix 'sprintf' of potential NULL pointer in 'maint print arch'
brobecke [Wed, 26 Oct 2011 18:21:35 +0000 (18:21 +0000)]
Fix 'sprintf' of potential NULL pointer in 'maint print arch'

gdb/
        * gdbarch.sh (function_list): Use 'pstring' when printing
        'gcore_bfd_target'.
        * gdbarch.c: Regenerate.

12 years ago * regcache.c (registers_changed_ptid): Invalidate thread architecture
uweigand [Wed, 26 Oct 2011 17:32:00 +0000 (17:32 +0000)]
* regcache.c (registers_changed_ptid): Invalidate thread architecture
and frame caches if PTID refers to all threads of a process.

12 years ago * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
uweigand [Wed, 26 Oct 2011 17:26:29 +0000 (17:26 +0000)]
* spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
to create_breakpoint.

12 years ago * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
uweigand [Wed, 26 Oct 2011 17:21:51 +0000 (17:21 +0000)]
* ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
(ppc_sysv_abi_push_dummy_call): Use it.
(do_ppc_sysv_return_value): Likewise.
(ppc64_sysv_abi_push_dummy_call): Likewise.
(ppc64_sysv_abi_return_value): Likewise.

12 years agomerge from gcc
dj [Wed, 26 Oct 2011 15:56:36 +0000 (15:56 +0000)]
merge from gcc

12 years ago* gdb.texinfo (gdb.types): Document new deepitems function.
pkoning [Wed, 26 Oct 2011 15:10:37 +0000 (15:10 +0000)]
* gdb.texinfo (gdb.types): Document new deepitems function.

12 years ago* gdb.python/lib-types.cc (struct A): New structure.
pkoning [Wed, 26 Oct 2011 15:10:10 +0000 (15:10 +0000)]
* gdb.python/lib-types.cc (struct A): New structure.
        * gdb.python/lib-types.exp (deepitems): New tests.

12 years ago* python/lib/gdb/types.py (deepitems): New function.
pkoning [Wed, 26 Oct 2011 15:09:37 +0000 (15:09 +0000)]
* python/lib/gdb/types.py (deepitems): New function.

12 years ago PR binutils/13348
nickc [Wed, 26 Oct 2011 14:45:59 +0000 (14:45 +0000)]
PR binutils/13348
* i386-dis.c (print_insn): Fix testing of array subscript.

12 years agocpu:
amylaar [Wed, 26 Oct 2011 12:46:03 +0000 (12:46 +0000)]
cpu:
        * epiphany.opc (parse_branch_addr): Fix type of valuep.
        Cast value before printing it as a long.
        (parse_postindex): Fix type of valuep.
opcodes:
        * epiphany-asm.c, epiphany-opc.h: Regenerate.

12 years agogas:
amylaar [Wed, 26 Oct 2011 12:14:16 +0000 (12:14 +0000)]
gas:
        * doc/as.texinfo [EPIPHANY]: Include c-epiphany.texi to avoid
        duplication.
opcodes:
        * disassemble.c (ARCH_epiphany): Move into alphasorted spot.

12 years agogas:
amylaar [Wed, 26 Oct 2011 12:13:45 +0000 (12:13 +0000)]
gas:
        * doc/as.texinfo [EPIPHANY]: Include c-epiphany.texi to avoid
        duplication.
opcodes:
        * disassemble.c (ARCH_epiphany): Move into alphasorted spot.

12 years ago * hist.c (hist_assign_samples_1): Update comment.
nickc [Wed, 26 Oct 2011 09:51:57 +0000 (09:51 +0000)]
* hist.c (hist_assign_samples_1): Update comment.

12 years ago PR ld/13049
nickc [Wed, 26 Oct 2011 09:47:56 +0000 (09:47 +0000)]
PR ld/13049
* elf64-ppc.c (STUB_SUFFIX): Revert previous delta.
* elf32-hppa.c (STUB_SUFFIX): Likewise.

12 years ago*** empty log message ***
gdbadmin [Wed, 26 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Tue, 25 Oct 2011 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agobinutils: fix out of tree building with syslex regens
vapier [Tue, 25 Oct 2011 20:39:40 +0000 (20:39 +0000)]
binutils: fix out of tree building with syslex regens

If you take a release tarball (which has pregenerated syslex and sysinfo files
in it), apply some patches which touch syslex.l, and then build the result out
of tree, it will fail.  This is because syslex.l uses sysinfo.h, but the
sysinfo.y file wasn't updated and so it wasn't regenerated (the files are found
in the $srcdir), and the build rule for syslex.c does not use -I$(srcdir) when
it finds a local file.  Simple fix below.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoBuilding rx's gas code atm fails:
vapier [Tue, 25 Oct 2011 20:36:21 +0000 (20:36 +0000)]
Building rx's gas code atm fails:

rx-parse.c: In function ‘rx_parse’:
rx-parse.c:3774:9: error: passing argument 1 of ‘rx_error’ discards ‘const’
qualifier from pointer target type [-Werror]
../../../gas/config/rx-defs.h:40:12: note:
expected ‘char *’ but argument is of type ‘const char *’
cc1: all warnings being treated as errors

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago* gdb.python/py-value.exp: Add testcases for is_lazy attribute,
pkoning [Tue, 25 Oct 2011 18:35:48 +0000 (18:35 +0000)]
* gdb.python/py-value.exp: Add testcases for is_lazy attribute,
fetch_lazy method.

12 years agoPR python/13327
pkoning [Tue, 25 Oct 2011 18:35:19 +0000 (18:35 +0000)]
PR python/13327

* gdb.texinfo (Values From Inferior): Add is_lazy attribute,
fetch_lazy method.

12 years agoPR python/13327
pkoning [Tue, 25 Oct 2011 18:34:50 +0000 (18:34 +0000)]
PR python/13327

* python/py-value.c (value_to_value_object): Remove fetching of
the value if it was lazy.
(valpy_get_is_lazy): New function.
(valpy_fetch_lazy): New function.

12 years agoOops - apply correct patch for previous delta.
nickc [Tue, 25 Oct 2011 16:46:46 +0000 (16:46 +0000)]
Oops - apply correct patch for previous delta.

12 years ago * hookapi.cc (hook_or_detect_cygwin): Take additional handle
corinna [Tue, 25 Oct 2011 16:35:53 +0000 (16:35 +0000)]
* hookapi.cc (hook_or_detect_cygwin): Take additional handle
to a file mapping as parameter.  If this handle is not NULL,
create another file mapping for the IAT.
* spawn.cc (av::fixup): Only map the first 64K of an image and
keep the mapping handle to use as argument to hook_or_detect_cygwin.
* winsup.h (hook_or_detect_cygwin): Add mapping handle as default
parameter in declaration.

12 years ago* config/tc-ns32k.c (md_begin): Rename local variable 'stat' to 'status'.
nickc [Tue, 25 Oct 2011 13:34:59 +0000 (13:34 +0000)]
* config/tc-ns32k.c (md_begin): Rename local variable 'stat' to 'status'.

12 years agobfd:
nickc [Tue, 25 Oct 2011 11:17:58 +0000 (11:17 +0000)]
bfd:
* Makefile.am (ALL_MACHINES): Add cpu-epiphany.lo .
(ALL_MACHINES_CFILES): Add cpu-epiphany.c .
(BFD32_BACKENDS): Add elf32-epiphany.lo .
(BFD32_BACKENDS_CFILES): Add elf32-epiphany.c .
* Makefile.in, bfd-in2.h, configure, libbfd.h: Regenerate.
* archures.c (bfd_arch_epiphany): Add.
(bfd_mach_epiphany16, bfd_mach_epiphany32): Define.
(bfd_epiphany_arch): Declare.
(bfd_archures_list): Add &bfd_epiphany_arch.
* config.bfd (epiphany-*-elf): New target case.
* configure.in (bfd_elf32_epiphany_vec): New target vector case.
* reloc.c (BFD_RELOC_EPIPHANY_SIMM8): New relocation.
(BFD_RELOC_EPIPHANY_SIMM24, BFD_RELOC_EPIPHANY_HIGH): Likewise.
(BFD_RELOC_EPIPHANY_LOW, BFD_RELOC_EPIPHANY_SIMM11): Likewise.
(BFD_RELOC_EPIPHANY_IMM11, BFD_RELOC_EPIPHANY_IMM8): Likewise.
* targets.c (bfd_elf32_epiphany_vec): Declare.
(_bfd_target_vector): Add bfd_elf32_epiphany_vec.
* po/SRC-POTFILES.in, po/bfd.pot: Regenerate.
* cpu-epiphany.c, elf32-epiphany.c: New files.
binutils:
* readelf.c (include "elf/epiphany.h")
(guess_is_rela, dump_relocation): Handle EM_ADAPTEVA_EPIPHANY.
(get_machine_name, is_32bit_abs_reloc, is_32bit_pcrel_reloc): Likewise.
(is_16bit_abs_reloc, is_none_reloc): Likewise.
* po/binutils.pot: Regenerate.
cpu:
* cpu/epiphany.cpu, cpu/epiphany.opc: New files.
gas:
* NEWS: Mention addition of Adapteva Epiphany support.
* config/tc-epiphany.c, config/tc-epiphany.h: New files.
* Makefile.am (TARGET_CPU_CFILES): Add config/tc-epiphany.c .
(TARGET_CPU_HFILES): Add config/tc-epiphany.h .
* Makefile.in, configure, doc/Makefile.in, po/POTFILES.in: Regenerate.
* configure.in: Also set using_cgen for epiphany.
* configure.tgt: Handle epiphany.
* doc/Makefile.am (CPU_DOCS): Add c-epiphany.texi .
* doc/all.texi: Set EPIPHANY.
* doc/as.texinfo: Add EPIPHANY-specific text.
* doc/c-epiphany.texi: New file.
* po/gas.pot: Regenerate.
gas/testsuite:
* gas/epiphany: New directory.
include:
* dis-asm.h (print_insn_epiphany): Declare.
* elf/epiphany.h: New file.
* elf/common.h (EM_ADAPTEVA_EPIPHANY): Define.
ld:
* NEWS: Mention addition of Adapteva Epiphany support.
* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32epiphany.c .
(eelf32epiphany.c): New rule.
* Makefile.in: Regenerate.
* configure.tgt: Handle epiphany-*-elf.
* po/ld.pot: Regenerate.
* testsuite/ld-srec/srec.exp: xfail epiphany.
* emulparams/elf32epiphany.sh: New file.
opcodes:
* Makefile.am (HFILES): Add epiphany-desc.h and epiphany-opc.h .
(TARGET_LIBOPCODES_CFILES): Add  epiphany-asm.c, epiphany-desc.c,
epiphany-dis.c, epiphany-ibld.c and epiphany-opc.c .
(CLEANFILES): Add stamp-epiphany.
(EPIPHANY_DEPS): Set.  Make CGEN-generated Epiphany files depend on it.
(stamp-epiphany): New rule.
* Makefile.in, configure, po/POTFILES.in, po/opcodes.pot: Regenerate.
* configure.in: Handle bfd_epiphany_arch.
* disassemble.c (ARCH_epiphany): Define.
(disassembler): Handle bfd_arch_epiphany.
* epiphany-asm.c, epiphany-desc.c, epiphany-desc.h: New files.
* epiphany-dis.c, epiphany-ibld.c, epiphany-opc.c: Likewise.
* epiphany-opc.h: Likewise.

12 years ago PR gprof/13325
nickc [Tue, 25 Oct 2011 08:38:49 +0000 (08:38 +0000)]
PR gprof/13325
* hist.c (hist_assign_samples_1): Make sure that inner loop
iterator remains valid.

12 years ago2011-10-25 Kai Tietz <ktietz@redhat.com>
ktietz [Tue, 25 Oct 2011 08:03:17 +0000 (08:03 +0000)]
2011-10-25  Kai Tietz  <ktietz@redhat.com>

* winduni.h (unicode_from_ascii_len): New prototype.
* winduni.c (unicode_from_ascii_len): New function.
* windres.h (define_stringtable): Add additional length argument.
* windres.c (define_stringtable): Add length argument for string.
* rcparse.y (res_unicode_sizedstring): New rule.
(res_unicode_sizedstring_concat): Likewise.
(string_data): Adjust rule.

2011-10-25  Kai Tietz  <ktietz@redhat.com>

* binutils-all/windres/strtab4.rc: New test.
* binutils-all/windres/strtab4.rsd: Likewise.

12 years ago*** empty log message ***
gdbadmin [Tue, 25 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Mon, 24 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago[powerpc] crash trying to allocate memory in inferior
brobecke [Mon, 24 Oct 2011 16:51:31 +0000 (16:51 +0000)]
[powerpc] crash trying to allocate memory in inferior

Our testsuite noticed a crash when trying to call a function which
requires GDB to allocate memory in the inferior. Typically, this
happens when one of the parameters is a string.  For instance, our
testcase tries:

    (gdb) call debug.trace (me, "You")
    [1]    32737 segmentation fault /path/to/gdb

What happens is that GDB sees the string, and thus tries to allocate
memory for it in the inferior:

> /* Allocate NBYTES of space in the inferior using the inferior's
>    malloc and return a value that is a pointer to the allocated
>    space.  */
>
> struct value *
> value_allocate_space_in_inferior (int len)
> {
>   struct objfile *objf;
>   struct value *val = find_function_in_inferior ("malloc", &objf);

And find_function_in_inferior first searches the symtab in case
we have debug info.  But, in our case (bareboard powerpc), we don't,
so it gets "malloc"'s address from the minimal symbols, and builds
a value whose type is a TYPE_CODE_PTR, not a TYPE_CODE_FUNC.

As a result, when we later try to make the call to malloc, we end up
inside the powerpc tdep code that has:

> do_ppc_sysv_return_value (struct gdbarch *gdbarch, struct type *func_type,
[...]
>   if (func_type
>       && TYPE_CALLING_CONVENTION (func_type) == DW_CC_GDB_IBM_OpenCL)

The problem is that func_type is not a TYPE_CODE_FUNC, and thus
the type-specific kind is not TYPE_SPECIFIC_FUNC, and so we do
TYPE_CALLING_CONVENTION is an invalid access.

Interestingly, the other call to TYPE_CALLING_CONVENTION is correctly
preceded by a check of the type's TYPE_CODE (making sure that it is
TYPE_CODE_FUNC).

gdb/ChangeLog:

        * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
        FUNC_TYPE's calling convention if FUNC_TYPE is not a function.

12 years ago opcodes/
jules [Mon, 24 Oct 2011 16:36:48 +0000 (16:36 +0000)]
opcodes/
    * m68k-opc.c (m68k_opcodes): Fix entries for ColdFire moveml.

    gas/testsuite/
    * gas/m68k/all.exp (movem-offset): Add test.
    * gas/m68k/movem-offset.s: New test.
    * gas/m68k/movem-offset.d: New.

12 years agobinutils/
jkratoch [Mon, 24 Oct 2011 14:28:01 +0000 (14:28 +0000)]
binutils/
* dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET
also for DW_FORM_ref_udata.

12 years ago2011-10-24 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 24 Oct 2011 14:25:51 +0000 (14:25 +0000)]
2011-10-24  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (linux_handle_extended_wait): When handling a clone
event, in non-stop, if not stopping, make sure the new lwp has
last_resume_kind set to resume_continue.  Assert that when we're
resuming the new lwp, its last_resume_kind is resume_continue.

12 years ago * config/tc-mips.c (move_register): Fix formatting.
macro [Mon, 24 Oct 2011 14:25:01 +0000 (14:25 +0000)]
* config/tc-mips.c (move_register): Fix formatting.

12 years ago * mips.h: Fix a typo in description.
macro [Mon, 24 Oct 2011 14:21:40 +0000 (14:21 +0000)]
* mips.h: Fix a typo in description.

12 years ago * config/tc-mips.c (can_swap_branch_p): Remove empty line.
macro [Mon, 24 Oct 2011 14:17:09 +0000 (14:17 +0000)]
* config/tc-mips.c (can_swap_branch_p): Remove empty line.
(start_noreorder): Likewise.

12 years ago2011-10-24 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 24 Oct 2011 14:09:20 +0000 (14:09 +0000)]
2011-10-24  Pedro Alves  <pedro@codesourcery.com>

gdb/
* infrun.c (handle_inferior_event): Don't assume inferior_ptid is
already set when marking the event thread as not executing in
non-stop mode.

12 years ago * config/tc-mips.c (s_option): Fix formatting.
macro [Mon, 24 Oct 2011 14:08:22 +0000 (14:08 +0000)]
* config/tc-mips.c (s_option): Fix formatting.
(mips_elf_final_processing): Likewise.

12 years ago * config/tc-mips.c (validate_micromips_insn): Fix formatting.
macro [Mon, 24 Oct 2011 14:04:41 +0000 (14:04 +0000)]
* config/tc-mips.c (validate_micromips_insn): Fix formatting.

12 years ago * syscalls.cc (unlink_nt): Fix a bug which overwrites the NT status
corinna [Mon, 24 Oct 2011 14:02:29 +0000 (14:02 +0000)]
* syscalls.cc (unlink_nt): Fix a bug which overwrites the NT status
value in case setting the delete disposition returns with
STATUS_DIRECTORY_NOT_EMPTY.

12 years ago2011-10-24 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 24 Oct 2011 14:01:08 +0000 (14:01 +0000)]
2011-10-24  Pedro Alves  <pedro@codesourcery.com>

gdb/
* infrun.c (handle_inferior_event): Add debug output for
TARGET_WAITKIND_NO_HISTORY.

12 years ago * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
macro [Mon, 24 Oct 2011 13:58:46 +0000 (13:58 +0000)]
* elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
assertions.

12 years ago gdb/testsuite/
qiyao [Mon, 24 Oct 2011 13:51:19 +0000 (13:51 +0000)]
gdb/testsuite/
* lib/gdb.exp (can_single_step_to_signal_handler): Return 0 when
target is tic6x-*-*.

12 years ago PR ld/13273
nickc [Mon, 24 Oct 2011 12:52:37 +0000 (12:52 +0000)]
PR ld/13273
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Do not warn about
identical TAG_PCS_config attributes.

12 years agoUpdated Japanese translation
nickc [Mon, 24 Oct 2011 11:51:19 +0000 (11:51 +0000)]
Updated Japanese translation

12 years ago2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Mon, 24 Oct 2011 11:49:26 +0000 (11:49 +0000)]
2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>

* NEWS: Move set/show extended-prompt to "New Options". Expand
description. Fix typos.

12 years ago2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Mon, 24 Oct 2011 11:39:49 +0000 (11:39 +0000)]
2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>

        PR python/13310

* python/py-param.c (call_doc_function): Correctly deference on
function exit.

12 years ago PR binutils/13292
nickc [Mon, 24 Oct 2011 11:23:39 +0000 (11:23 +0000)]
PR binutils/13292
* bfd-in.h: Include <sys/stat.h> rather than forward defining
struct stat.
* bfd-in2.h: Regenerate.

12 years ago * shared.cc (open_shared): Fix memory reservation of essential shared
corinna [Mon, 24 Oct 2011 09:19:56 +0000 (09:19 +0000)]
* shared.cc (open_shared): Fix memory reservation of essential shared
memory regions.  Drop delta computations since delta is always 0 in
non-relocated case.  Add a comment.