OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years ago * readelf.c (get_machine_dlags): Add support for RX's PID mode.
nickc [Wed, 5 Oct 2011 14:13:24 +0000 (14:13 +0000)]
* readelf.c (get_machine_dlags): Add support for RX's PID mode.

* ld-scripts/phdrs.exp: Expect to fail for the RX.

* elf32-rx.c: Add support for PID mode.
(rx_elf_relocate_section): Add checks for unsafe PID relocations.
Include addend in R_RX_SYM relocations.

* config/rx-defs.h (rx_pid_register): New.
(rx_gp_register): New.
* config/rx-parse.y (rx_lex): Add support for %gpreg and %pidreg.
(displacement): Add PID support.
* config/tc-rx.c (rx_pid_mode): New.
(rx_num_int_regs): New.
(rx_pid_register): New.
(rx_gp_register): New.
(options): Add -mpid and -mint-register= options.
(md_longopts): Likewise.
(md_parse_option): Likewise.
(md_show_usage): Likewise.
(rx_pid_symbol): New.
(rx_pidreg_symbol): New.
(rx_gpreg_symbol): New.
(md_begin): Support PID.
(rx_validate_fix_sub): Support PID.
(tc_gen_reloc): Support PID.
* doc/c-rx.texi: Document PID support.

* rx.h (E_FLAG_RX_PID): New.

12 years ago * external.cc (create_winenv): Rename from sync_winenv. Take
corinna [Wed, 5 Oct 2011 12:27:35 +0000 (12:27 +0000)]
* external.cc (create_winenv): Rename from sync_winenv.  Take
environment pointer as parameter and return pointer to corresponding
win32 environment block if != NULL.  Otherwise just sync as before.
(cygwin_internal): Add CW_CVT_ENV_TO_WINENV case.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CVT_ENV_TO_WINENV.

12 years ago2011-10-05 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 5 Oct 2011 07:41:09 +0000 (07:41 +0000)]
2011-10-05  Tristan Gingold  <gingold@adacore.com>

        * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
        Extract the ravenscar task name from the symbol for the atcb.

12 years ago * net.cc (socketpair): Bind first socket to loopback only as well.
corinna [Wed, 5 Oct 2011 06:18:15 +0000 (06:18 +0000)]
* net.cc (socketpair): Bind first socket to loopback only as well.

12 years agosim: merge changes from common.m4 back into SIM_AC_COMMON
vapier [Wed, 5 Oct 2011 02:32:25 +0000 (02:32 +0000)]
sim: merge changes from common.m4 back into SIM_AC_COMMON

Seems some fixes were added to the common.m4 file but not the
SIM_AC_COMMON macro.  Keep the two in sync since they're supposed
to be the same thing.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago*** empty log message ***
gdbadmin [Wed, 5 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years ago2011-10-04 Greta Yorsh <Greta.Yorsh@arm.com>
jjohnstn [Tue, 4 Oct 2011 18:43:13 +0000 (18:43 +0000)]
2011-10-04  Greta Yorsh  <Greta.Yorsh@arm.com>

        * testsuite/newlib.string/memcpy-1.c: New test.

12 years ago* gdb.python/py-value.c (main): Break before return.
pkoning [Tue, 4 Oct 2011 17:43:15 +0000 (17:43 +0000)]
* gdb.python/py-value.c (main): Break before return.

12 years ago* python/py-type.c (typy_make_iter): Add forward declaration.
pkoning [Tue, 4 Oct 2011 16:19:58 +0000 (16:19 +0000)]
* python/py-type.c (typy_make_iter): Add forward declaration.
(typy_fields_items):  Use the gdb.Type iterator.

12 years ago* libc/machine/arm/memcpy.S: Fix unaligned access copying.
nickc [Tue, 4 Oct 2011 16:02:24 +0000 (16:02 +0000)]
* libc/machine/arm/memcpy.S: Fix unaligned access copying.

12 years ago* NEWS: Add entry for Python gdb.Type mapping methods.
pkoning [Tue, 4 Oct 2011 15:55:38 +0000 (15:55 +0000)]
* NEWS: Add entry for Python gdb.Type mapping methods.

12 years agoFix misplaced documentation entry (Paul Koning, 2011-09-28)
pkoning [Tue, 4 Oct 2011 15:54:31 +0000 (15:54 +0000)]
Fix misplaced documentation entry (Paul Koning, 2011-09-28)

12 years agobinutils/
carlos [Tue, 4 Oct 2011 14:25:39 +0000 (14:25 +0000)]
binutils/

2011-10-04  Paul Woegerer  <paul_woegerer@mentor.com>
    Carlos O'Donell  <carlos@codesourcery.com>

* dwarf.c (display_debug_lines_decoded): Index directory_table with
directory_index from file_table entry.

binutils/testsuite/

2011-10-04  Carlos O'Donell  <carlos@codesourcery.com>

* binutils-all/dw2-decodedline.S: New file.
* binutils-all/objdump.WL: New file.
* binutils-all/objdump.exp: Update copyright year.
New test case for -WL.

12 years ago2011-10-04 Kevin Pouget <kevin.pouget@st.com>
kpouget [Tue, 4 Oct 2011 08:04:08 +0000 (08:04 +0000)]
2011-10-04  Kevin Pouget  <kevin.pouget@st.com>

       PR python/12691: Add the inferior to Python exited event
       * python/py-exitedevent.c (create_exited_event_object): Add inferior
       to exited_event.
       * python/py-event.h (emit_exited_event): Likewise
       * python/-inferior.c (python_inferior_exit): Likewise

 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>

       PR python/12691: Add the inferior to Python exited event
       * gdb.python/py-events.exp: Test the inferior attribute of exited
       event with a fork.
       * gdb.python/py-events.py: Print inferior number on exit.
       * gdb.python/py-events.c: Fork the inferior.

 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>

       PR python/12691: Add the inferior to Python exited event
       * gdb.texinfo (Events In Python): Describe exited inferior attribute.

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

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

12 years ago[doco] rephrase `presence of' with `support for'.
brobecke [Mon, 3 Oct 2011 21:39:03 +0000 (21:39 +0000)]
[doco] rephrase `presence of' with `support for'.

gdb/doc/ChangeLog:

        * gdb.texinfo (GDB/MI Miscellaneous Commands): Minor
        rephasing.

12 years ago[Ada/doco] Document the new -ada-task-info GDB/MI command.
brobecke [Mon, 3 Oct 2011 21:38:51 +0000 (21:38 +0000)]
[Ada/doco] Document the new -ada-task-info GDB/MI command.

gdb/doc/ChangeLog:

        * gdb.texinfo (GDB/MI Ada Tasking Commands): New node.
        (GDB/MI Miscellaneous Commands): Add `ada-task-info'
        as possible feature returned by the `-list-features'
        command.

12 years ago[Ada] Add field "thread-id" in -ada-task-info output
brobecke [Mon, 3 Oct 2011 21:38:39 +0000 (21:38 +0000)]
[Ada] Add field "thread-id" in -ada-task-info output

This patch enhances the -ada-task-info command, adding a new
field called "thread-id" in the command output.  This field
provides the ID of the task's corresponding thread (if that
information could not be determined, the field is omitted).

This field is useful in the context of GDB/MI users, because
it allows a quick translation from Ada task to thread, and
thus easy use of all the commands that take a --thread argument.

gdb/ChangeLog:

        * ada-tasks.c (print_ada_task_info): Add "thread-id" field
        in output of -ada-task-info GDB/MI command.

12 years ago[Ada] New GDB/MI command: -ada-tasks-info
brobecke [Mon, 3 Oct 2011 21:38:30 +0000 (21:38 +0000)]
[Ada] New GDB/MI command: -ada-tasks-info

This patch introduces a new GDB/MI command: -ada-tasks-info,
which is meant to be the MI equivalent of the CLI `info tasks'
command.

This new command returns an array, with each row corresponding
to one task.  For now, the columns of the array corresponds to
the columns displayed in the CLI output.

gdb/ChangeLog:

        * ada-lang.h (struct inferior): Declare.
        (print_ada_task_info): Add declaration.
        * ada-tasks.c (print_ada_task_info): Make non-static.
        * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
        * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
        * mi/mi-main.c: #include "ada-lang.h".
        (mi_cmd_list_features): Add "ada-task-info" to the list
        of supported features.
        (mi_cmd_ada_task_info): New function.

12 years agoCrash sourcing Python script on Windows
brobecke [Mon, 3 Oct 2011 20:46:18 +0000 (20:46 +0000)]
Crash sourcing Python script on Windows

gdb/ChangeLog:

        * python/python.c (python_run_simple_file): New function.
        (source_python_script, source_python_script_for_objfile):
        Replace call to PyRun_SimpleFile by call to
        python_run_simple_file.

12 years ago* gdb.base/jit.exp: Add testcase name to log message
emachado [Mon, 3 Oct 2011 20:13:51 +0000 (20:13 +0000)]
* gdb.base/jit.exp: Add testcase name to log message

12 years ago * options.cc (parse_uint): Fix dereference of RETVAL.
dnovillo [Mon, 3 Oct 2011 17:01:43 +0000 (17:01 +0000)]
* options.cc (parse_uint): Fix dereference of RETVAL.

12 years ago* gdb.python/py-value.exp
pkoning [Mon, 3 Oct 2011 16:15:18 +0000 (16:15 +0000)]
* gdb.python/py-value.exp
(python inval = gdb.parse_and_eval('*(int*)0'))
(python argc_lazy = gdb.parse_and_eval('argc'), sanity check argc)
(set argc=2, python print argc_lazy): New tests.

12 years ago* python/py-value.c (valpy_get_address): Use Py_XINCREF.
pkoning [Mon, 3 Oct 2011 16:14:38 +0000 (16:14 +0000)]
* python/py-value.c (valpy_get_address): Use Py_XINCREF.
(value_to_value_object): Fetch value if it was lazy.

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

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

12 years agogdb/
jkratoch [Sun, 2 Oct 2011 21:05:58 +0000 (21:05 +0000)]
gdb/
Code cleanup.
* solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
Rearrange the code for it.

12 years agothread-specific breakpoints not saved properly by save-breakpoint
brobecke [Sun, 2 Oct 2011 02:13:11 +0000 (02:13 +0000)]
thread-specific breakpoints not saved properly by save-breakpoint

Initially, I noticed that the save command was often missing
new lines in the file that it generated.  For instance, consider:

        % gdb save-bp
        (gdb) b break_me
        (gdb) b save-bp.c:27
        (gdb) save breakpoints bps

The contents of the bps file would be:

        % cat bps
        break break_mebreak save-bp.c:27

Looking further into the problem, I realized that the missing newlines
are just a consequence of a missing call to print_recreate_thread.
After having generated the breakpoint location in the break command,
we cannot put a new line until we have looked at whether we need to
add a 'thread NUM' argument.

gdb/ChangeLog:

        * breakpoint.c (bkpt_print_recreate): Add call to
        print_recreate_thread.

gdb/testsuite/ChangeLog:

        * gdb.base/save-bp.exp, gdb.base/save-bp.c: New files.

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

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

12 years agoRationalise structure layout; add dirent.d_type field.
keithmarshall [Sat, 1 Oct 2011 20:18:09 +0000 (20:18 +0000)]
Rationalise structure layout; add dirent.d_type field.

12 years agogdb/testsuite/
jkratoch [Sat, 1 Oct 2011 11:02:10 +0000 (11:02 +0000)]
gdb/testsuite/
* gdb.python/py-value.exp (test_value_in_inferior): New variable
can_read_0, test for it.
(python print gdb.parse_and_eval('*(int*)0')): Rename to ...
(parse_and_eval with memory error): ... here, make it untested if
can_read_0.

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

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

12 years ago * binutils/dwarf.h (dwarf_section_display_enum): Add missing enum
ccoutant [Fri, 30 Sep 2011 21:06:00 +0000 (21:06 +0000)]
* binutils/dwarf.h (dwarf_section_display_enum): Add missing enum
constant.

12 years agogdb.python/python.exp: fix up race
mpolacek [Fri, 30 Sep 2011 15:07:32 +0000 (15:07 +0000)]
gdb.python/python.exp: fix up race

12 years ago2011-09-30 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 30 Sep 2011 10:39:44 +0000 (10:39 +0000)]
2011-09-30  Tristan Gingold  <gingold@adacore.com>

* dwarf2.c (struct dwarf2_debug): Add field debug_sections.
(read_section): Add sec argument. Adjust the code to get section
names from it.
(read_indirect_string): Adjust call to read_section.
(read_abbrevs): Ditto.
(decode_line_info): Ditto.
(read_debug_ranges): Ditto.
(DWARF2_DEBUG_INFO, DWARF2_COMPRESSED_DEBUG_INFO): Remove.
(find_debug_info): Add debug_sections parameter.  Use it instead
the above macros.
(place_sections): Get section names from stash.
(find_line): Add debug_sections argument.  Initialize
debug_sections field of stash from it.
Adjust calls to find_debug_info.
(_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
Adjust call to find_line.
(_bfd_dwarf2_find_line): Adjust call to find_line.
* libcoff-in.h (struct dwarf_debug_section): New declaration.
(coff_find_nearest_line_with_names): Likewise.
* libcoff.h: Regenerate.
* libbfd-in.h (struct dwarf_debug_section): Move declaration.
(dwarf_debug_sections): Likewise.
(_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
* libbfd.h: Regenerate.
* elf.c (_bfd_elf_find_nearest_line): Adjust call to
_bfd_dwarf2_find_nearest_line.
* elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto.
* elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto.
* elf32-arm.c (elf32_arm_find_nearest_line): Ditto.
* coffgen.c (coff_find_nearest_line_with_names): New function.
(coff_find_nearest_line): Calls coff_find_nearest_line_with_names.
* coff-rs6000.c (xcoff_debug_sections): New constant.
(xcoff_find_nearest_line): New function.
(rs6000coff_vec): Use xcoff_find_nearest_line.
(pmac_xcoff_vec): Ditto.

12 years ago PR ld/13235
amodra [Fri, 30 Sep 2011 05:10:58 +0000 (05:10 +0000)]
PR ld/13235
bfd/
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2.
(ppc64_elf_edit_toc): Check HA relocs.
(ha_reloc_match): Delete function.
(ppc64_elf_relocate_section): Remove delayed HA nop optimization.
Instead do it and low part optimization based on
ha_relocs_not_using_r2.
ld/testsuite/
* ld-powerpc/tocopt.d: Update.
* ld-powerpc/tocopt5.d, * ld-powerpc/tocopt5.s: New test.
* ld-powerpc/powerpc.exp: Run new test.

12 years agogdbserver: add support for FDPIC loadmaps
vapier [Fri, 30 Sep 2011 00:01:56 +0000 (00:01 +0000)]
gdbserver: add support for FDPIC loadmaps

The DSBT support is very close to the FDPIC code, so extend the existing
loadmap support to work with FDPIC loadmaps too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago*** empty log message ***
gdbadmin [Fri, 30 Sep 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Fri, 30 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago2011-09-29 Sriraman Tallam <tmsriram@google.com>
tmsriram [Thu, 29 Sep 2011 23:45:56 +0000 (23:45 +0000)]
2011-09-29 Sriraman Tallam  <tmsriram@google.com>

* layout.h (section_order_map_): New member.
(get_section_order_map): New member function.
* output.cc (Output_section::add_input_section): Check for patterns
only when --section-ordering-file is specified.
* gold.cc (queue_middle_tasks): Delay updating order of sections till
output_sections have been formed.
* layout.cc (Layout_Layout): Initialize section_order_map_.
* plugin.cc (update_section_order): Store order in order_map. Do not
update the order.
* testsuite/Makefile.am: Add test case for plugin_final_layout.
* testsuite/Makefile.in: Regenerate.
* testsuite/plugin_section_order.c: New file.
* testsuite/plugin_final_layout.cc: New file.
* testsuite/plugin_final_layout.sh: New file.

12 years ago * gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
ccoutant [Thu, 29 Sep 2011 17:04:35 +0000 (17:04 +0000)]
* gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
Check for NULL.
* gold/symtab.cc (Symbol_table::add_from_relobj): Ignore version
symbols during incremental update.
(Symbol_table::add_from_dynobj): Likewise.

12 years ago * lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow
jsm28 [Thu, 29 Sep 2011 15:17:49 +0000 (15:17 +0000)]
* lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow
for 64-bit multilibs from i?86-* targets.

12 years agolib/gdb.exp: Fix a typo
mpolacek [Thu, 29 Sep 2011 14:36:45 +0000 (14:36 +0000)]
lib/gdb.exp: Fix a typo

12 years agogdb.base/foll-fork.exp: fix up race
mpolacek [Thu, 29 Sep 2011 14:12:59 +0000 (14:12 +0000)]
gdb.base/foll-fork.exp: fix up race

12 years ago * libc/machine/arm/memcpy.S: New file. Contains a hand coded
nickc [Thu, 29 Sep 2011 13:28:49 +0000 (13:28 +0000)]
* libc/machine/arm/memcpy.S: New file.  Contains a hand coded
memcpy function optimized for the cortex-a15.
* libc/machine/arm/memcpy-stub.c: New file.
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c,
memcpy.S.
* libc/machine/arm/Makefile.in: Regenerate.

12 years ago * arm/crt0.s: Support 0 heap base response from HeapInfo syscall.
nickc [Thu, 29 Sep 2011 11:23:29 +0000 (11:23 +0000)]
* arm/crt0.s: Support 0 heap base response from HeapInfo syscall.

12 years ago * arm/arm.h (HAVE_CALL_INDIRECT): Define.
nickc [Thu, 29 Sep 2011 11:06:49 +0000 (11:06 +0000)]
* arm/arm.h (HAVE_CALL_INDIRECT): Define.
        * arm/crt0.S (indirect_call): New macro.  Encodes indirect
function calls.  Does not use blx for pre-armv5 targets.

12 years ago PR ld/13233
amodra [Thu, 29 Sep 2011 05:40:21 +0000 (05:40 +0000)]
PR ld/13233
* elflink.c (_bfd_elf_gc_mark_extra_sections): Mark single member
debug and special section groups.

12 years agosim: bfin: use store buffer for VIT_MAX insns
vapier [Thu, 29 Sep 2011 03:19:46 +0000 (03:19 +0000)]
sim: bfin: use store buffer for VIT_MAX insns

The VIT_MAX insns can be used in parallel, so we need to use the store
buffer so we don't clobber the output register before we get a chance
to do a memory store with it.

Reported-by: Kai Iskratsch <kai@stella.at>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agogdb/doc/
qiyao [Thu, 29 Sep 2011 02:25:49 +0000 (02:25 +0000)]
gdb/doc/
* gdb.texinfo (Files): Update options for `add-symbol-file'.
Add one space after option `-s'.  Remove @r{} markup.

12 years agogdb/
qiyao [Thu, 29 Sep 2011 02:04:22 +0000 (02:04 +0000)]
gdb/
* symfile.c (add_symbol_file_command): Update message on usage.

12 years agoFix --gc-sections failure with symbol versioning.
hjl [Thu, 29 Sep 2011 00:13:13 +0000 (00:13 +0000)]
Fix --gc-sections failure with symbol versioning.

bfd/

2011-09-28  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13195
* elflink.c (_bfd_elf_merge_symbol): Don't set dynamic_def when
clearing def_dynamic.
(elf_link_add_object_symbols): Likewise.  Set dynamic_def when
setting def_dynamic.
(bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is
versioned.

ld/testsuite/

2011-09-28  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13195
* ld-elf/elf.exp: Add a C link testcase for PR ld/13195.

* ld-elf/pr13195.c: New.
* ld-elf/pr13195.d: Likewise.
* ld-elf/pr13195.s: Likewise.
* ld-elf/pr13195.t: Likewise.

12 years ago*** empty log message ***
gdbadmin [Thu, 29 Sep 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Thu, 29 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago* gdb.python/py-type.c (enum E): New.
pkoning [Wed, 28 Sep 2011 20:06:01 +0000 (20:06 +0000)]
* gdb.python/py-type.c (enum E): New.
* gdb.python/py-type.exp (test_fields): Add tests for Python
mapping access to fields.
(test_enums): New test for field access on enums.

12 years ago* python/py-type.c (make_fielditem, typy_field_names, typy_items)
pkoning [Wed, 28 Sep 2011 20:04:51 +0000 (20:04 +0000)]
* python/py-type.c (make_fielditem, typy_field_names, typy_items)
(typy_length, typy_get, typy_has_key, typy_make_iter)
(typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
(typy_iterator_iter, typy_iterator_iternext)
(typy_iterator_dealloc): New functions to implement standard
Python mapping methods on gdb.Type object.
(gdb.TypeIterator): New Python type.
* python/python-internal.h (gdbpy_iter_kind): New enum.
* doc/gdb.texinfo (gdb.Type): Document field access by dictionary
key syntax.

12 years agomerge from gcc
dj [Wed, 28 Sep 2011 20:01:37 +0000 (20:01 +0000)]
merge from gcc

12 years agoFix complex floats on sparc.
davem [Wed, 28 Sep 2011 17:59:42 +0000 (17:59 +0000)]
Fix complex floats on sparc.

* sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
* sparc-tdep.c (sparc_complex_floating_p): New function.
(sparc32_store_arguments): Handle complex floats.
(sparc32_extract_return_value): Likewise.
(sparc32_store_return_value): Likewise.
(sparc32_stabs_argument_has_addr): Likewise.
* sparc64-tdep.c (sparc64_complex_floating_p): New function.
(sparc64_store_floating_fields): Handle complex floats.
(sparc64_store_arguments): Likewise.
(sparc64_store_return_value): Likewise.

12 years ago * binutils/testsuite/binutils-all/elfedit-4.d: Give test a unique name.
mgretton [Wed, 28 Sep 2011 16:43:20 +0000 (16:43 +0000)]
* binutils/testsuite/binutils-all/elfedit-4.d: Give test a unique name.

12 years agoAnother typo ... :(
ktietz [Wed, 28 Sep 2011 12:04:24 +0000 (12:04 +0000)]
Another typo ... :(

12 years ago * gas/pe/section-exclude.d: Correct testcase.
ktietz [Wed, 28 Sep 2011 12:01:11 +0000 (12:01 +0000)]
    * gas/pe/section-exclude.d: Correct testcase.

12 years agoSupport "set environment" and "unset environment" in MinGW builds.
eliz [Wed, 28 Sep 2011 09:07:54 +0000 (09:07 +0000)]
Support "set environment" and "unset environment" in MinGW builds.

* windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
before the change on 2006-12-09.
(windows_create_inferior) [!__CYGWIN__]: Restore code that
generates the environment block for CreateProcessA, modulo the
Cygwin-specific parts that are not needed here.

12 years ago2011-09-28 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 28 Sep 2011 07:22:39 +0000 (07:22 +0000)]
2011-09-28  Tristan Gingold  <gingold@adacore.com>

* od-xcoff.c (dump_xcoff32_aout_header): Fix typo.

12 years ago * symtab.cc (Symbol_table::define_special_symbol): Always
ian [Wed, 28 Sep 2011 00:55:35 +0000 (00:55 +0000)]
* symtab.cc (Symbol_table::define_special_symbol): Always
canonicalize version string.

12 years ago*** empty log message ***
gdbadmin [Wed, 28 Sep 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Wed, 28 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago2011-09-27 Kai Tietz <ktietz@redhat.com>
ktietz [Tue, 27 Sep 2011 18:57:22 +0000 (18:57 +0000)]
2011-09-27  Kai Tietz  <ktietz@redhat.com>

       * config/obj-coff.c (obj_coff_section): Add 'e' as specifier
       for marking section SEC_EXCLUDE.

2011-09-27  Kai Tietz  <ktietz@redhat.com>

       * gas/pe/pe.exp: Add new testcase.
       * gas/pe/section-exclude.d: New file.
       * gas/pe/section-exclude.s: New file.

12 years ago * coffcode.h (sec_to_styp_flags): Handle
ktietz [Tue, 27 Sep 2011 16:03:46 +0000 (16:03 +0000)]
* coffcode.h (sec_to_styp_flags): Handle
SEC_LINK_DUPLICATES_SAME_CONTENTS, and
SEC_LINK_DUPLICATES_SAME_SIZE.

12 years ago * scripttempl/pe.sc (.text): Add support for
ktietz [Tue, 27 Sep 2011 15:59:53 +0000 (15:59 +0000)]
    * scripttempl/pe.sc (.text): Add support for
        .gnu.linkonce.t.* section.
        (.debug_info): Only use .gnu.linkonce.wi.* for
        relocating.
        * scripttempl/pep.sc: Likewise.

12 years ago2011-09-27 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 27 Sep 2011 15:30:12 +0000 (15:30 +0000)]
2011-09-27  Tristan Gingold  <gingold@adacore.com>

* target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
* solib-darwin.c (DYLD_VERSION_MAX): Update number.
(darwin_solib_get_all_image_info_addr_at_init): New function.
(darwin_solib_read_all_image_info_addr): Likewise.
(darwin_solib_create_inferior_hook): Use the above two functions.
* darwin-nat.c (darwin_execvp): Renames retval to res.
(darwin_read_write_inferior): Update comment.
(darwin_read_dyld_info): New function.
(darwin_xfer_partial): Handle DYLD_INFO.

12 years ago Add return address collection for tracepoints.
shebs [Tue, 27 Sep 2011 13:09:33 +0000 (13:09 +0000)]
Add return address collection for tracepoints.
* tracepoint.c (encode_actions_1): Add case for $_ret.
(validate_actionline): Check for $_ret.
(trace_dump_actions): Ditto.
* ax-gdb.h (gen_trace_for_return_address): Declare.
* ax-gdb.c: Include arch-utils.h.
(gen_trace_for_return_address): New function.
(agent_command): Add return address special case.
* amd64-tdep.c: Include ax.h and ax-gdb.h.
(amd64_gen_return_address): New function.
(amd64_init_abi): Call it.
* i386-tdep.c: Include ax.h and ax-gdb.h.
(i386_gen_return_address): New function.
(i386_init_abi): Call it.
* arch-utils.h (default_gen_return_address): Declare.
* arch-utils.c (default_gen_return_address): New function.
* gdbarch.sh (gen_return_address): New method.
* gdbarch.h, gdbarch.c: Regenerate.

* gdb.texinfo (Tracepoint Action Lists): Document $_ret.

* gdb.trace/collection.exp: Test collection of $_ret.

12 years ago2011-09-27 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 27 Sep 2011 12:48:01 +0000 (12:48 +0000)]
2011-09-27  Tristan Gingold  <gingold@adacore.com>

* od-xcoff.c (dump_xcoff32_aout_header): Remove some gettext macros.
(dump_xcoff32_sections_header): Likewise.
(dump_xcoff32_symbols, dump_xcoff32_relocs): Likewise.
(dump_xcoff32_lineno, dump_xcoff32_loader): Likewise.
(dump_xcoff32_except): Likewise.
(dump_xcoff32_typchk, dump_xcoff32_tbtags): Likewise.

12 years ago2011-09-27 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 27 Sep 2011 12:05:31 +0000 (12:05 +0000)]
2011-09-27  Tristan Gingold  <gingold@adacore.com>

* readelf.c (print_ia64_vms_note): Fix xgettext warnings.

12 years agoopcodes/
davem [Tue, 27 Sep 2011 04:30:28 +0000 (04:30 +0000)]
opcodes/

* sparc-opc.c (sparc_opcodes): Fix random instruction to write
to a float instead of an integer register.

gas/testsuite/

* gas/sparc/hpcvis3.s: Update to use float reg for random insn.
* gas/sparc/hpcvis3.d: Likewise.

12 years agomerge from gcc
dj [Tue, 27 Sep 2011 00:01:35 +0000 (00:01 +0000)]
merge from gcc

12 years agodaily update
amodra [Tue, 27 Sep 2011 00:00:06 +0000 (00:00 +0000)]
daily update

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

12 years ago * gold/gold.cc (queue_initial_tasks): Move option checks ...
ccoutant [Mon, 26 Sep 2011 23:42:05 +0000 (23:42 +0000)]
* gold/gold.cc (queue_initial_tasks): Move option checks ...
* gold/options.cc (General_options::finalize): ... to here. Disable
some options; make others fatal.

12 years agomerge from gcc
dj [Mon, 26 Sep 2011 23:04:59 +0000 (23:04 +0000)]
merge from gcc

12 years agoinclude/ChangeLog
ccoutant [Mon, 26 Sep 2011 23:00:17 +0000 (23:00 +0000)]
include/ChangeLog

gcc PR lto/47247
* plugin-api.h (enum ld_plugin_symbol_resolution): Add
LDPR_PREVAILING_DEF_IRONLY_EXP.
(enum ld_plugin_tag): Add LDPT_GET_SYMBOLS_V2.

gold/ChangeLog

gcc PR lto/47247
* plugin.cc (get_symbols_v2): New function.
(Plugin::load): Add LDPT_GET_SYMBOLS_V2.
(is_referenced_from_outside): New function.
(Pluginobj::get_symbol_resolution_info): Add version parameter, return
LDPR_PREVAILING_DEF_IRONLY_EXP when using new version.
(get_symbols): Pass version parameter.
(get_symbols_v2): New function.
* plugin.h (Pluginobj::get_symbol_resolution_info): Add version
parameter.
* testsuite/plugin_test.c (get_symbols_v2): New static variable.
(onload): Add LDPT_GET_SYMBOLS_V2.
(all_symbols_read_hook): Use get_symbols_v2; check for
LDPR_PREVAILING_DEF_IRONLY_EXP.
* testsuite/plugin_test_3.sh: Update expected results.

12 years agoAdd sparc integer multiply-add instructions.
davem [Mon, 26 Sep 2011 09:19:23 +0000 (09:19 +0000)]
Add sparc integer multiply-add instructions.

opcodes/

* sparc-opc.c (sparc_opcodes): Add integer multiply-add
instructions.

gas/testsuite/

* gas/sparc/ima.d: New test.
* gas/sparc/ima.s: New test source.
* gas/sparc/sparc.exp: Run new test.

12 years ago*** empty log message ***
gdbadmin [Mon, 26 Sep 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Mon, 26 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

12 years agodaily update
amodra [Sun, 25 Sep 2011 00:00:06 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sun, 25 Sep 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sat, 24 Sep 2011 00:00:06 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 24 Sep 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agomerge from gcc
dj [Fri, 23 Sep 2011 22:21:28 +0000 (22:21 +0000)]
merge from gcc

12 years agomerge from gcc
dj [Fri, 23 Sep 2011 20:01:11 +0000 (20:01 +0000)]
merge from gcc

12 years ago * configure.ac: Add new --with-gold-ldadd and --with-gold-ldflags
ian [Fri, 23 Sep 2011 15:02:32 +0000 (15:02 +0000)]
* configure.ac: Add new --with-gold-ldadd and --with-gold-ldflags
configuration options.
* configure: Regenerate.
* Makefile.am: Handle GOLD_LDADD and GOLD_LDFLAGS.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.

12 years ago PR gdb/13079
jsm28 [Fri, 23 Sep 2011 14:50:26 +0000 (14:50 +0000)]
PR gdb/13079
* i386-tdep.c (i386_frame_align): New.
(i386_gdbarch_init): Use i386_frame_align.

12 years agogdb/
qiyao [Fri, 23 Sep 2011 07:27:15 +0000 (07:27 +0000)]
gdb/
* i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
to get address.

12 years agodaily update
amodra [Fri, 23 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Fri, 23 Sep 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2011-09-22 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 22 Sep 2011 10:22:26 +0000 (10:22 +0000)]
2011-09-22  Tristan Gingold  <gingold@adacore.com>

* fork-child.c (fork_inferior): Add exec_fun parameter.
Call exec_fun or execvp.
* inferior.h: Adjust prototype.
* gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
* inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
* inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
* procfs.c (procfs_create_inferior): Ditto.
* darwin-nat.c (darwin_execvp): New function.
(darwin_create_inferior): Use it.

12 years agobfd/
gingold [Thu, 22 Sep 2011 08:35:40 +0000 (08:35 +0000)]
bfd/
2011-09-22  Tristan Gingold  <gingold@adacore.com>

* configure.in: Bump version to 2.22.51
* configure: Regenerate.