OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years ago * iq2000/sim.ld (.gcc_except_table): Include .gcc_except_table.foo
nickc [Fri, 19 Aug 2011 14:57:50 +0000 (14:57 +0000)]
* iq2000/sim.ld (.gcc_except_table): Include .gcc_except_table.foo
sections as well.

12 years ago * doc/as.texinfo: Include c-xstormy16.texi.
nickc [Fri, 19 Aug 2011 14:48:40 +0000 (14:48 +0000)]
* doc/as.texinfo: Include c-xstormy16.texi.

12 years ago * libc/include/process.h: Remove exec family function declarations.
corinna [Fri, 19 Aug 2011 14:29:33 +0000 (14:29 +0000)]
* libc/include/process.h: Remove exec family function declarations.
Add comment.
* libc/include/sys/unistd.h (execlpe): Declare for Cygwin.

12 years ago * libc/time/mktime.c (validate_structure): Account for tm_mon possibly
corinna [Fri, 19 Aug 2011 14:14:17 +0000 (14:14 +0000)]
* libc/time/mktime.c (validate_structure): Account for tm_mon possibly
being given as negative.
(mktime): Set tm_isdst=0 when !daylight.

12 years ago * fhandler_console.cc (fhandler_console::read): Recognize backspace key
corinna [Fri, 19 Aug 2011 13:10:00 +0000 (13:10 +0000)]
* fhandler_console.cc (fhandler_console::read): Recognize backspace key
using the device independent key code, rather than the device dependent
scan code.

12 years ago * include/winuser.h: Ad missing MAPVK_xxx definitions.
corinna [Fri, 19 Aug 2011 11:58:04 +0000 (11:58 +0000)]
* include/winuser.h: Ad missing MAPVK_xxx definitions.

12 years ago * elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if
amodra [Fri, 19 Aug 2011 08:12:02 +0000 (08:12 +0000)]
* elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if
we haven't seen expected -mcmodel=medium/large code relocs.

12 years ago* sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
yselkowitz [Fri, 19 Aug 2011 01:41:49 +0000 (01:41 +0000)]
* sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
this is now defined in <sys/stat.h>.

12 years ago*** empty log message ***
gdbadmin [Fri, 19 Aug 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Fri, 19 Aug 2011 00:00:06 +0000 (00:00 +0000)]
daily update

12 years ago * gdb.cp/meth-typedefs.cc: New file.
kseitz [Thu, 18 Aug 2011 16:19:00 +0000 (16:19 +0000)]
* gdb.cp/meth-typedefs.cc: New file.
* gdb.cp/meth-typedefs.exp: New file.

12 years ago PR c++/12266
kseitz [Thu, 18 Aug 2011 16:17:31 +0000 (16:17 +0000)]
PR c++/12266
* cp-name-parser.y (struct demangle_info): Remove unused
member PREV.
(d_grab): Likewise.
(allocate_info): Change return type to struct demangle_info *.
Always allocate a new demangle_info.
Remove unused PREV pointer.
(cp_new_demangle_parse_info): New function.
(cp_demangled_name_parse_free): New function.
(do_demangled_name_parse_free_cleanup): New function.
(make_cleanup_cp_demangled_name_parse_free): New function.
(cp_demangled_name_to_comp): Change return type to
struct demangle_parse_info *.
Allocate a new storage for each call.
(main): Update usage for cp_demangled_name_to_comp
API change.
* cp-support.h (struct demangle_parse_info): New structure.
(cp_demangled_name_to_comp): Update API change for
return type.
(cp_new_demangle_parse_info): Declare.
(make_cleanup_cp_demangled_name_parse_free): New declaration.
(cp_demangled_name_parse_free): Declare.
* cp-support.c (cp_canonicalize_string): Update API
change for cp_demangled_name_to_comp.
(mangled_name_to_comp): Likewise.
Return struct demangle_parse_info, too.
(cp_class_name_from_physname): Update mangled_name_to_comp
API change.
(method_name_from_physname): Likewise.
(cp_func_name): Update API change for cp_demangled_name_to_comp.
(cp_remove_params): Likewise.
* python/py-type.c (typy_legacy_template_argument): Likewise.

* cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
(cp_merge_demangle_parse_infos): Declare.
* cp-support.c (ignore_typedefs): New file global.
(copy_string_to_obstack): New function.
(inspect_type): New function.
(replace_typedefs): New function.
(replace_typedefs_qualified_name): New function.
(cp_canonicalize_string_no_typedefs): New function.
* cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
(cp_new_demangle__parse_info): Allocate and initialize the obstack.
* linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
instead of cp_canonicalize_string.
(find_method): Likewise.
(decode_compound): Before looking up the name, call
cp_canonicalize_string_no_typedefs.
(decode_variable): Likewise.

12 years ago* dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration.
cgf [Thu, 18 Aug 2011 15:59:15 +0000 (15:59 +0000)]
* dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration.
* init.cc: Reflect change to dll_crt0_0 in declaration.

12 years ago * write.c (resolve_reloc_expr_symbols): Convert local symbols
amodra [Thu, 18 Aug 2011 14:10:34 +0000 (14:10 +0000)]
* write.c (resolve_reloc_expr_symbols): Convert local symbols
on relocs to section+offset.
(get_frag_for_reloc): New function.
(write_relocs): Merge sort fixup relocs with those from .reloc
directives.

12 years ago2011-08-18 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 18 Aug 2011 09:28:41 +0000 (09:28 +0000)]
2011-08-18  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_segment): Initialize list.

12 years ago * dtable.cc (dtable::get_debugger_info): Add missing braces.
corinna [Thu, 18 Aug 2011 09:16:49 +0000 (09:16 +0000)]
* dtable.cc (dtable::get_debugger_info): Add missing braces.
(dtable::stdio_init): Fix incorrect negation of not_open(2) condition.

12 years ago*** empty log message ***
gdbadmin [Thu, 18 Aug 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years ago2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Wed, 17 Aug 2011 10:41:18 +0000 (10:41 +0000)]
2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
            Tom Tromey  <tromey@redhat.com>
            Matt Rice <ratmice@gmail.com>

        * python/lib/gdb/prompt.py: New file.
        * python/lib/gdb/command/prompt.py: New file.
        * NEWS: Document set extended-prompt and gdb.prompt library

2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>

        * gdb.texinfo (Prompt): Add set/show extended-prompt
        documentation
        (Basic Python): Add prompt_hook anchor.
        (Python modules): Reword module text to reflect multiple modules.
        (gdb.prompt): Document gdb.prompt module.

2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>

        * gdb.python/python.exp: Add extended-prompt tests.

12 years ago2011-08-17 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 17 Aug 2011 10:17:38 +0000 (10:17 +0000)]
2011-08-17  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_write_section_32): Fix typo.

12 years ago PR ld/12762
amodra [Wed, 17 Aug 2011 00:39:37 +0000 (00:39 +0000)]
PR ld/12762
bfd/
* bfd-in.h (struct bfd_section_already_linked): Forward declare.
(_bfd_handle_already_linked): Declare.
* coff-alpha.c (_bfd_ecoff_section_already_linked): Define as
_bfd_coff_section_already_linked.
* coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
* coffcode.h (coff_section_already_linked): Likewise.
* cofflink.c (coff_link_add_symbols): Revert 2011-07-09 changes.
* elf-bfd.h: Likewise.
* libbfd-in.h: Likewise.
* targets.c: Likewise.
* linker.c (bfd_section_already_linked): Likewise.
(bfd_section_already_linked_table_lookup): Likewise.
(bfd_section_already_linked_table_insert): Likewise.
(_bfd_generic_section_already_linked): Likewise.  Call
_bfd_handle_already_linked.
(_bfd_handle_already_linked): New function, split out from..
* elflink.c (_bfd_elf_section_already_linked): ..here.  Revert
2011-07-09 changes.  Avoid unnecessary strcmp when matching
already_linked_list entries.  Match plugin linkonce section.
(section_signature): Delete.
* coffgen.c (_bfd_coff_section_already_linked): New function.
* libcoff-in.h (_bfd_coff_section_already_linked): Declare.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.
* bfd-in2.h: Regenerate.
ld/
* ldlang.c (section_already_linked): Revert 2011-07-09 changes.
* plugin.c: Likewise.
(asymbol_from_plugin_symbol): Create linkonce section for syms
with comdat_key.

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

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

12 years ago2011-08-16 Pierre Humblet <Pierre.Humblet@ieee.org>
phumblet [Tue, 16 Aug 2011 23:32:18 +0000 (23:32 +0000)]
2011-08-16  Pierre Humblet <Pierre.Humblet@ieee.org>

        * net.cc (gethostby_helper): Remove DEBUGGING code from and
        streamline the second pass.

12 years ago * dlfcn.cc (dlopen): Reimplement RTLD_NODELETE for Windows 2000 using
corinna [Tue, 16 Aug 2011 20:08:33 +0000 (20:08 +0000)]
* dlfcn.cc (dlopen): Reimplement RTLD_NODELETE for Windows 2000 using
internal datastructures.  Explain the code.
* ntdll.h (struct _LDR_DATA_TABLE_ENTRY): Define.
(struct _PEB_LDR_DATA): Define.
(struct _PEB): Change PVOID LoaderData to PPEB_LDR_DATA Ldr.

* fhandler_process.cc (format_process_maps): Call NtQueryVirtualMemory
with valid return length pointer.  Explain why.

12 years ago * new-features.sgml (ov-new1.7.10): Document new RTLD flags.
corinna [Tue, 16 Aug 2011 14:51:06 +0000 (14:51 +0000)]
* new-features.sgml (ov-new1.7.10): Document new RTLD flags.

12 years ago * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
corinna [Tue, 16 Aug 2011 14:48:38 +0000 (14:48 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

12 years ago * autoload.cc (GetModuleHandleExW): Define.
corinna [Tue, 16 Aug 2011 14:44:25 +0000 (14:44 +0000)]
* autoload.cc (GetModuleHandleExW): Define.
* dlfcn.cc: Throughout mark exported symbols as extern "C".
(dlopen): Unignore flags argument.  Define ret to NULL.  Fix typo in
comment.  Support Glibc flags RTLD_NOLOAD and RTLD_NODELETE.
* include/dlfcn.h:  Clean up comments.
(RTLD_NODELETE): Define.
(RTLD_NOLOAD): Define.
(RTLD_DEEPBIND): Define.

12 years agogdb/
qiyao [Tue, 16 Aug 2011 04:15:16 +0000 (04:15 +0000)]
gdb/

* tic6x-linux-tdep.c: Move const arrays definition from here...
* tic6x-tdep.c: to here ...

12 years agodaily update
amodra [Tue, 16 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

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

12 years ago * pipe.cc (pipe): Just call _pipe with O_BINARY mode. Move code to
corinna [Mon, 15 Aug 2011 16:05:10 +0000 (16:05 +0000)]
* pipe.cc (pipe): Just call _pipe with O_BINARY mode.  Move code to
generate normalized pathnames from here...
(_pipe): ...to here.

12 years agogdb/testsuite/
jkratoch [Mon, 15 Aug 2011 07:56:20 +0000 (07:56 +0000)]
gdb/testsuite/
* gdb.arch/i386-dr3-watch.exp
(watchpoint on gap1 does not fit debug registers)
(delete all watchpoints): Fix racy expect strings.

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

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

12 years agogdb/
qiyao [Sun, 14 Aug 2011 16:17:07 +0000 (16:17 +0000)]
gdb/
* NEWS: New port to Texas Instruments TMS320C6x.

12 years agogdb/gdbserver/
qiyao [Sun, 14 Aug 2011 16:06:59 +0000 (16:06 +0000)]
gdb/gdbserver/

* target.h (struct target_ops): Fix indent.
* win32-low.c (win32_target_ops): Fix comment.

12 years agogdb/testsuite/
qiyao [Sun, 14 Aug 2011 15:58:39 +0000 (15:58 +0000)]
gdb/testsuite/

* gdb.base/maint.exp: set data_section to ".neardata".
* gdb.base/savedregs.c (thrower): Trigger SIGILL on NO-MMU machine.
* gdb.base/savedregs.exp: Handle SIGILL.
* gdb.mi/mi-syn-frame.c (bar): Trigger SIGILL on NO-MMU machine.
* gdb.xml/tdesc-regs.exp: Set core-regs for tic6x-*-*.

12 years agogdb/gdbserver/
qiyao [Sun, 14 Aug 2011 15:25:45 +0000 (15:25 +0000)]
gdb/gdbserver/

* Makefile.in (clean): Remove tic6x-*.c files.
(linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
(tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
(tic6x-c64xp-linux.c): Likewise.
* configure.srv: Add support for tic6x-*-uclinux.
* linux-tic6x-low.c: New.
* linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.

12 years ago gdb/
qiyao [Sun, 14 Aug 2011 14:03:42 +0000 (14:03 +0000)]
gdb/
* configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
* solib-dsbt.c: New file.  Support DSBT shared object.
* tic6x-linux-tdep.c: New file.
* tic6x-tdep.c: New file.
* tic6x-tdep.h: New file.

12 years ago gdb/
qiyao [Sun, 14 Aug 2011 13:03:11 +0000 (13:03 +0000)]
    gdb/
        * remote.c (PACKET_qXfer_fdpic): New enum value.
        (remote_protocol_features): Add qXfer:fdpic:read packet.
        (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
        (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
        * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.

        gdb/gdbserver:
        * target.h (struct target_ops): Add read_loadmap.
        * linux-low.c (struct target_loadseg): New type.
        (struct target_loadmap): New type.
        (linux_read_loadmap): New function.
        (linux_target_ops): Add linux_read_loadmap.
        * server.c (handle_query): Support qXfer:fdpic:read packet.
* win32-low.c (win32_target_ops): Initialize field `read_loadmap' to NULL.

        gdb/doc/
        * gdb.texinfo : Document qXfer:fdpic:read packet.

12 years agoAdd files missed in previous commit.
qiyao [Sun, 14 Aug 2011 12:50:13 +0000 (12:50 +0000)]
Add files missed in previous commit.

12 years ago gdb/doc/
qiyao [Sun, 14 Aug 2011 12:43:35 +0000 (12:43 +0000)]
    gdb/doc/
        * gdb.texinfo (Standard Target Features): Document C6x features.
(TIC6x Features): New node.

        gdb/
        * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
        tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
        * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
        * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
        * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
        * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
        * features/tic6x-c64xp-linux.xml: New.
* features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
        * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
        * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
        * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
        * regformats/tic6x-c64xp.dat, regformats/tic6x-c62x-linux.dat: Generated.
* regformats/tic6x-c64x-linux.dat, regformats/tic6x-c64xp-linux.dat: Generated.

* config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
features/tic6x-*.c files.
Add regformats/tic6x-*.dat files.

12 years ago Merge from gcc:
qiyao [Sun, 14 Aug 2011 12:28:15 +0000 (12:28 +0000)]
Merge from gcc:

2011-08-14  Yao Qi  <yao@codesourcery.com>
* configure.ac (tic6x-*-*): Remove gdb from noconfigdirs.
* configure: Regenerate.

12 years ago * elf32-ppc.c (ppc_elf_select_plt_layout): Force bss-plt when
amodra [Sun, 14 Aug 2011 09:17:16 +0000 (09:17 +0000)]
* elf32-ppc.c (ppc_elf_select_plt_layout): Force bss-plt when
shared and call to _mcount will go via plt.

12 years ago * elf64-ppc.c: Prefix all einfo error strings with "%P: ".
amodra [Sun, 14 Aug 2011 08:11:50 +0000 (08:11 +0000)]
* elf64-ppc.c: Prefix all einfo error strings with "%P: ".
* elf32-ppc.c: Likewise.
(ppc_elf_select_plt_layout): Use einfo rather than info to report
forced bss-plt.

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

12 years agodaily update
amodra [Sun, 14 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago * miscfuncs.cc (CreatePipeOverlapped): New function.
corinna [Sat, 13 Aug 2011 10:28:15 +0000 (10:28 +0000)]
* miscfuncs.cc (CreatePipeOverlapped): New function.
(ReadPipeOverlapped): Ditto.
(WritePipeOverlapped): Ditto.
* miscfuncs.h: Declare new functions.
* pinfo.cc (commune_process): Call WritePipeOverlapped instead of
WriteFile.  Set timeout to 1 sec.
(_pinfo::commune_request): Call ReadPipeOverlapped instead of ReadFile.
Set timeout to 0.5 secs.
* sigproc.cc (sig_send): Create pipe using CreatePipeOverlapped.

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

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

12 years ago * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
devans [Fri, 12 Aug 2011 22:21:50 +0000 (22:21 +0000)]
* NEWS: Mention new "type" attribute of python gdb.Symbol objects.
* python/py-symbol.c (sympy_get_type): New function.
(symbol_object_getset): Add "type".

doc/
* gdb.texinfo (Symbols In Python): Document symbol.type.

testsuite/
* gdb.python/py-symbol.exp: Add test for symbol.type.

12 years agoAdd R_X86_64_RELATIVE64.
hjl [Fri, 12 Aug 2011 20:33:33 +0000 (20:33 +0000)]
Add R_X86_64_RELATIVE64.

2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13082
* x86-64.h (R_X86_64_RELATIVE64): New.

12 years agoAdd R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32.
hjl [Fri, 12 Aug 2011 19:42:38 +0000 (19:42 +0000)]
Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32.

bfd/

2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13082
* elf64-x86-64.c (x86_64_elf_howto_table): Add R_X86_64_RELATIVE64.
(elf_x86_64_relocate_section): Treat R_X86_64_64 like R_X86_64_32
and zero-extend it to 64bit if addend is zero for x32.  Generate
R_X86_64_RELATIVE64 for x32.

include/elf/

2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13082
* x86-64.h (R_X86_64_RELATIVE64): New.

ld/testsuite/

2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13082
* ld-x86-64/pr13082-1.s: New.
* ld-x86-64/pr13082-1a.d: Likewise.
* ld-x86-64/pr13082-1b.d: Likewise.
* ld-x86-64/pr13082-2.s: Likewise.
* ld-x86-64/pr13082-2a.d: Likewise.
* ld-x86-64/pr13082-2b.d: Likewise.
* ld-x86-64/pr13082-3.s: Likewise.
* ld-x86-64/pr13082-3a.d: Likewise.
* ld-x86-64/pr13082-3b.d: Likewise.
* ld-x86-64/pr13082-4.s: Likewise.
* ld-x86-64/pr13082-4a.d: Likewise.
* ld-x86-64/pr13082-4b.d: Likewise.
* ld-x86-64/pr13082-5.s: Likewise.
* ld-x86-64/pr13082-5a.d: Likewise.
* ld-x86-64/pr13082-5b.d: Likewise.
* ld-x86-64/pr13082-6.s: Likewise.
* ld-x86-64/pr13082-6a.d: Likewise.
* ld-x86-64/pr13082-6b.d: Likewise.

* ld-x86-64/x86-64.exp: Run pr13082-[1-6][ab].

12 years agomerge from gcc
dj [Fri, 12 Aug 2011 18:44:43 +0000 (18:44 +0000)]
merge from gcc

12 years ago2011-08-12 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 12 Aug 2011 17:04:31 +0000 (17:04 +0000)]
2011-08-12  Pedro Alves  <pedro@codesourcery.com>

PR tui/13073

gdb/
* tui/tui-regs.c (tui_show_register_group): Skip registers with an
empty name.
(tui_show_register_group): Don't store a byte buffer in the data
element's value.
(tui_register_format): Skip registers with an empty name.
(tui_get_register): Store a struct value in the data element's
value field instead of a byte buffer holding the raw register
contents.  Account for optimized-out and unavailable registers
when comparing register contents.

12 years ago* miscfuncs.cc (create_pipe): Delete obsolete function.
cgf [Fri, 12 Aug 2011 16:55:35 +0000 (16:55 +0000)]
* miscfuncs.cc (create_pipe): Delete obsolete function.
* miscfuncs.h (create_pipe): Delete define.
* pipe.c (fhandler_pipe::create_selectable): Delete obsolete comment.

12 years ago * gdb.threads/pthreads.exp: Enable on non-native configurations.
uweigand [Fri, 12 Aug 2011 15:54:35 +0000 (15:54 +0000)]
* gdb.threads/pthreads.exp: Enable on non-native configurations.
* gdb.mi/mi-pthreads.exp: Likewise.
* gdb.mi/mi2-pthreads.exp: Likewise.
* gdb.mi/gdb669.exp.exp: Likewise.

12 years ago * new-features.sgml (ov-new1.7.10): Document large address awareness
corinna [Fri, 12 Aug 2011 13:51:20 +0000 (13:51 +0000)]
* new-features.sgml (ov-new1.7.10): Document large address awareness
of heap and new way to set the default heap size per executable.
* setup2.sgml (setup-maxmem): Revamp to explain new method of
allocating more heap on a per-executable basis.  Drop outdated stuff.
Keep shortened description of heap_chunk_in_mb as note.

12 years ago * fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete
corinna [Fri, 12 Aug 2011 12:35:37 +0000 (12:35 +0000)]
* fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete
instead.

Also fix previous ChangeLog entry.

12 years ago * fhandler.h (fhandler_proc::opendir): Declare.
corinna [Fri, 12 Aug 2011 12:31:06 +0000 (12:31 +0000)]
* fhandler.h (fhandler_proc::opendir): Declare.
(fhandler_proc::closedir): Declare.
* fhandler_proc.cc (fhandler_proc::opendir): New method.  Fetch list
of active processes here once to avoid potential duplicates.
(fhandler_proc::closedir): New method.

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

12 years ago * fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Don't allow to
corinna [Thu, 11 Aug 2011 16:43:22 +0000 (16:43 +0000)]
* fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Don't allow to
access process info by using the Windows PID.
* fhandler_process.cc (fhandler_process::fstat): Ditto.
(fhandler_process::fill_filebuf): Ditto.

12 years ago * (winpids::add): Make sure to store always a Windows PID in
corinna [Thu, 11 Aug 2011 07:28:41 +0000 (07:28 +0000)]
* (winpids::add): Make sure to store always a Windows PID in
pidlist, even if pid is a Cygwin PID.
(winpids::enum_processes): Fetch Cygwin processes from listing of
shared cygwin object dir in the native NT namespace.  Only if winpid
is true, fetch Windows processes using an additional call to
NtQuerySystemInformation.

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

12 years ago * config/tc-mips.c (can_swap_branch_p): Update the comment on
macro [Wed, 10 Aug 2011 22:55:57 +0000 (22:55 +0000)]
* config/tc-mips.c (can_swap_branch_p): Update the comment on
MIPS16 fixups.

12 years ago * gas/mips/mips.exp: Define new "fpisa3", "fpisa4" and "fpisa5"
macro [Wed, 10 Aug 2011 22:28:40 +0000 (22:28 +0000)]
* gas/mips/mips.exp: Define new "fpisa3", "fpisa4" and "fpisa5"
architecture properties adding them to "mips3", "mips4", "mips5"
and "mips32r2" architectures.  Use the new properties for the
"24k-triple-stores-1", "24k-triple-stores-3", "mips4-fp",
"mips5" and "alnv_ps-swap" tests.

12 years ago * ps.cc (main): Don't overwrite process name, just attach <defunct>
corinna [Wed, 10 Aug 2011 19:52:41 +0000 (19:52 +0000)]
* ps.cc (main): Don't overwrite process name, just attach <defunct>
to it for zombie processes.

12 years ago * fhandler_process.cc (format_process_status): Always print process name
corinna [Wed, 10 Aug 2011 13:13:09 +0000 (13:13 +0000)]
* fhandler_process.cc (format_process_status): Always print process name
even for zombies.
(get_mem_values): Fix loop fetching working set list to avoid out of
memory conditions.  Return all mem values set to 0 for zombies.
* ntdll.h (STATUS_PROCESS_IS_TERMINATING): Define.

12 years agodaily update
amodra [Wed, 10 Aug 2011 00:00:04 +0000 (00:00 +0000)]
daily update

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

12 years ago2011-08-09 Pedro Alves <pedro@codesourcery.com>
palves [Tue, 9 Aug 2011 17:45:19 +0000 (17:45 +0000)]
2011-08-09  Pedro Alves  <pedro@codesourcery.com>

gdb/testsuite/
* lib/mi-support.exp (detect_async): Rename to...
(mi_detect_async): ... this.
* gdb.mi/mi-nonstop-exit.exp: Adjust.
* gdb.mi/mi-nonstop.exp: Adjust.
* gdb.mi/mi-ns-stale-regcache.exp: Adjust.
* gdb.mi/mi-nsintrall.exp: Adjust.
* gdb.mi/mi-nsmoribund.exp: Adjust.
* gdb.mi/mi-nsthrexec.exp: Adjust.

12 years ago2011-08-09 Pedro Alves <pedro@codesourcery.com>
palves [Tue, 9 Aug 2011 16:21:14 +0000 (16:21 +0000)]
2011-08-09  Pedro Alves  <pedro@codesourcery.com>

gdb/
* printcmd.c (current_display_number): Update comment.
(disable_current_display_cleanup): Delete.
(do_one_display): Use make_cleanup_restore_integer.  Gracefully
catch errors thrown while evaluating and printing the display.

gdb/testsuite/
* gdb.base/display.c (do_loops): New `p_i' local.
* gdb.base/display.exp: Test displaying a variable that is
temporarily at a bad address.

12 years ago * config/tc-mips.c (mips_cpu_info_table): Add "m14k" and
macro [Tue, 9 Aug 2011 15:25:31 +0000 (15:25 +0000)]
* config/tc-mips.c (mips_cpu_info_table): Add "m14k" and
"m14kc".
* doc/c-mips.texi (MIPS architecture options): Add "m14k" and
"m14kc" to the list of -march options.

12 years ago gas/
macro [Tue, 9 Aug 2011 15:20:01 +0000 (15:20 +0000)]
gas/
* config/tc-mips.c (mips_set_options): Add ase_mcu.
(mips_opts): Initialise ase_mcu to -1.
(ISA_SUPPORTS_MCU_ASE): New macro.
(MIPS_CPU_ASE_MCU): Likewise.
(is_opcode_valid): Handle MCU.
(macro_build, macro): Likewise.
(validate_mips_insn, validate_micromips_insn): Likewise.
(mips_ip): Likewise.
(options): Add OPTION_MCU and OPTION_NO_MCU.
(md_longopts): Add mmcu and mno-mcu.
(md_parse_option): Handle OPTION_MCU and OPTION_NO_MCU.
(mips_after_parse_args): Handle MCU.
(s_mipsset): Likewise.
(md_show_usage): Handle MCU options.

* doc/as.texinfo: Document -mmcu and -mno-mcu options.
* doc/c-mips.texi: Likewise, and document ".set mcu" and
".set nomcu" directives.

gas/testsuite/
* gas/mips/micromips@mcu.d: New test.
* gas/mips/mcu.d: Likewise.
* gas/mips/mcu.s: New test source.
* gas/mips/mips.exp: Run the new tests.

include/opcode/
* mips.h (OP_MASK_3BITPOS, OP_SH_3BITPOS): New macros.
(OP_MASK_OFFSET12, OP_SH_OFFSET12): Redefine.
(INSN_ASE_MASK): Add the MCU bit.
(INSN_MCU): New macro.
(M_ACLR_AB, M_ACLR_OB, M_ASET_AB, M_ASET_OB): New enum values.
(MICROMIPSOP_MASK_3BITPOS, MICROMIPSOP_SH_3BITPOS): New macros.

opcodes/
* mips-dis.c (mips_arch_choices): Enable MCU for "mips32r2"
and "mips64r2".
(print_insn_args, print_insn_micromips): Handle MCU.
* micromips-opc.c (MC): New macro.
(micromips_opcodes): Add "aclr", "aset" and "iret".
* mips-opc.c (MC): New macro.
(mips_builtin_opcodes): Add "aclr", "aset" and "iret".

12 years ago include/opcode/
macro [Tue, 9 Aug 2011 14:25:27 +0000 (14:25 +0000)]
include/opcode/
* mips.h (INSN_WRITE_GPR_S, INSN2_WRITE_GPR_MB): New macros.
(INSN2_READ_GPR_MC, INSN2_READ_GPR_ME): Likewise.
(INSN2_WRITE_GPR_MF, INSN2_READ_GPR_MG): Likewise.
(INSN2_READ_GPR_MJ, INSN2_WRITE_GPR_MJ): Likewise.
(INSN2_READ_GPR_MP, INSN2_WRITE_GPR_MP): Likewise.
(INSN2_READ_GPR_MQ, INSN2_WRITE_GPR_MHI): Likewise.
(INSN2_READ_GPR_MMN): Likewise.
(INSN2_READ_FPR_D): Change the bit used.
(INSN2_MOD_GPR_MD, INSN2_MOD_GPR_MF): Likewise.
(INSN2_MOD_SP, INSN2_READ_GPR_31, INSN2_READ_GP): Likewise.
(INSN2_READ_PC, INSN2_UNCOND_BRANCH): Likewise.
(INSN2_COND_BRANCH): Likewise.
(INSN2_WRITE_GPR_S, INSN2_MOD_GPR_MB): Remove macros.
(INSN2_MOD_GPR_MC, INSN2_MOD_GPR_ME, INSN2_MOD_GPR_MG): Likewise.
(INSN2_MOD_GPR_MJ, INSN2_MOD_GPR_MP, INSN2_MOD_GPR_MQ): Likewise.
(INSN2_MOD_GPR_MHI, INSN2_MOD_GPR_MM): Likewise.
(INSN2_MOD_GPR_MN): Likewise.

gas/
* config/tc-mips.c (gpr_mod_mask): Remove INSN2_MOD_GPR_MB,
INSN2_MOD_GPR_MC, INSN2_MOD_GPR_ME, INSN2_MOD_GPR_MG,
INSN2_MOD_GPR_MHI, INSN2_MOD_GPR_MJ, INSN2_MOD_GPR_MM,
INSN2_MOD_GPR_MN, INSN2_MOD_GPR_MP and INSN2_MOD_GPR_MQ opcode
register use checks.
(gpr_read_mask): Add INSN2_READ_GPR_MC, INSN2_READ_GPR_ME
INSN2_READ_GPR_MG, INSN2_READ_GPR_MJ, INSN2_READ_GPR_MMN,
INSN2_READ_GPR_MP and INSN2_READ_GPR_MQ opcode register use
checks.
(gpr_write_mask): Replace INSN2_WRITE_GPR_S opcode register
use flag with INSN_WRITE_GPR_S.  Add INSN2_WRITE_GPR_MB,
INSN2_WRITE_GPR_MHI, INSN2_WRITE_GPR_MJ and INSN2_WRITE_GPR_MP
opcode register use checks.
(can_swap_branch_p): Enable microMIPS branch swapping.
(append_insn): Likewise.

gas/testsuite/
* gas/mips/micromips.d: Update according to changes to enable
microMIPS branch swapping.
* gas/mips/micromips-trap.d: Likewise.
* gas/mips/micromips@jal-svr4pic.d: Likewise.
* gas/mips/micromips@loc-swap.d: Likewise.
* gas/mips/micromips@loc-swap-dis.d: Likewise.

opcodes/
* micromips-opc.c (MOD_mb, MOD_mc, MOD_md): Remove macros.
(MOD_me, MOD_mf, MOD_mg, MOD_mhi, MOD_mj, MOD_ml): Likewise.
(MOD_mm, MOD_mn, MOD_mp, MOD_mq, MOD_sp): Likewise.
(WR_mb, RD_mc, RD_md, WR_md, RD_me, RD_mf, WR_mf): New macros.
(RD_mg, WR_mhi, RD_mj, WR_mj, RD_ml, RD_mmn): Likewise.
(RD_mp, WR_mp, RD_mq, RD_sp, WR_sp): Likewise.
(WR_s): Update macro.
(micromips_opcodes): Update register use flags of: "addiu",
"addiupc", "addiur1sp", "addiur2", "addius5", "addiusp", "addu",
"and", "andi", "beq", "beqz", "bne", "bnez", "di", "ei", "j",
"jalr", "jalrs", "jr", "jraddiusp", "jrc", "lbu", "lhu", "li",
"lui", "lw", "lwm", "mfhi", "mflo", "move", "movep", "not",
"nor", "or", "ori", "sb", "sh", "sll", "srl", "subu", "sw",
"swm" and "xor" instructions.

12 years ago * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
tromey [Tue, 9 Aug 2011 14:09:06 +0000 (14:09 +0000)]
* mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.

12 years ago * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Remove forced 16-bit
macro [Tue, 9 Aug 2011 13:39:38 +0000 (13:39 +0000)]
* config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Remove forced 16-bit
branch size information.
(RELAX_MICROMIPS_U16BIT): Remove macro.
(RELAX_MICROMIPS_UNCOND): Adjust accordingly.
(RELAX_MICROMIPS_COMPACT, RELAX_MICROMIPS_LINK): Likewise.
(RELAX_MICROMIPS_RELAX32): Likewise.
(RELAX_MICROMIPS_TOOFAR16): Likewise.
(RELAX_MICROMIPS_MARK_TOOFAR16): Likewise.
(RELAX_MICROMIPS_CLEAR_TOOFAR16): Likewise.
(RELAX_MICROMIPS_TOOFAR32): Likewise.
(RELAX_MICROMIPS_MARK_TOOFAR32): Likewise.
(RELAX_MICROMIPS_CLEAR_TOOFAR32): Likewise.
(append_insn): Always check forced_insn_length for microMIPS
relaxation.  Adjust code for the removal of
RELAX_MICROMIPS_U16BIT.
(mips_ip) <'D', 'E'>: If forced_insn_length, then emit the
relocation straight away.
(relaxed_micromips_16bit_branch_length): Adjust code for the
removal of RELAX_MICROMIPS_U16BIT.

12 years ago * bfd/bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
mgretton [Tue, 9 Aug 2011 13:10:42 +0000 (13:10 +0000)]
* bfd/bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
* bfd/bfd-in2.h (bfd_elf32_arm_set_target_relocs): Likewise.
* bfd/elf32-arm.c (elf32_arm_link_hash_table): New field.
(elf232_arm_link_hash_table_create): Initialise new field.
(check_use_blx): Change test depending on fix_arm1176.
(bfd_elf32_arm_set_target_relocs): Set fix_arm1176 from
command line options.
* ld/emultempl/armelf.em (fix_arm1176): New variable.
(arm_elf_create_output_section_statements): Pass
fix_arm1176 option to bfd backend.
(OPTION_FIX_ARM1176): New define.
(OPTION_NO_FIX_ARM1176): Likewise.
(PARSE_AND_LIST_LONGOPTS): Add new command line options.
(PARSE_AND_LIST_OPTIONS): Likewise.
(PARSE_AND_LIST_ARGS_CASES): Likewise.
* ld/ld.texinfo: Document new command line options.
* ld/testsuite/ld-arm/arm-elf.exp (armelftests): Update for new command-line
options.
(armeabitests): Update for new command-line options, and add
new test cases.
* ld/testsuite/ld-arm/fix-arm1176.s: Add test case.
* ld/testsuite/ld-arm/fix-arm1176-off.d: Likewise.
* ld/testsuite/ld-arm/fix-arm1176-on.d: Likewise.

12 years agoFix "ditto" dependency order.
palves [Tue, 9 Aug 2011 12:55:29 +0000 (12:55 +0000)]
Fix "ditto" dependency order.

12 years ago2011-08-09 Pedro Alves <pedro@codesourcery.com>
palves [Tue, 9 Aug 2011 12:51:47 +0000 (12:51 +0000)]
2011-08-09  Pedro Alves  <pedro@codesourcery.com>

gdb/
* elfread.c (elf_symtab_read): Ditto.
* maint.c (maintenance_command): Ditto.
* somread.c (som_symtab_read): Ditto.
* solib.c (solib_find, solib_map_sections, update_solib_list)
(solib_add, info_sharedlibrary_command, solib_name_from_address)
(solib_create_inferior_hook, in_solib_dynsym_resolve_code)
(sharedlibrary_command, no_shared_libraries): Rework comments.
* solib-irix.c (locate_base, disable_break, enable_break)
(irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
(irix_current_sos, irix_open_symbol_file_object)
(irix_special_symbol_handling): Ditto.
* solib-sunos.c (locate_base, first_link_map_member)
(sunos_current_sos, disable_break, enable_break)
(sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
Ditto.
* solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
(open_symbol_file_object, svr4_current_sos, enable_break)
(svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
Ditto.
* solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
(frv_current_sos, enable_break, frv_special_symbol_handling)
(frv_solib_create_inferior_hook): Ditto.
* solist.h (struct target_so_ops): Extend the comments of the
special_symbol_handling, current_sos and open_symbol_file_object
methods.

12 years ago2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Tue, 9 Aug 2011 12:45:39 +0000 (12:45 +0000)]
2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>

* python/lib/gdb/__init__.py: Auto-load files in command and
function directories.
* python/python.c (finish_python_initialization): Use
os.path.join.
* python/lib/gdb/command/pretty_printers.py: Self register
command.
* NEWS: Document auto-loading.

2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Python): Document command and function
auto-loading.

12 years ago * heap.cc (eval_initial_heap_size): New function fetching the heap
corinna [Tue, 9 Aug 2011 12:00:26 +0000 (12:00 +0000)]
* heap.cc (eval_initial_heap_size): New function fetching the heap
size from the LoaderFlags field in the PE/COFF header.
(heap_init): Call eval_initial_heap_size rather than
cygwin_shared->heap_chunk_size to fetch the initial heap size.
* shared.cc (shared_info::heap_chunk_size): Remove.
* shared_info.h (class shared_info): Drop heap_chunk member.
(CURR_SHARED_MAGIC): Update.

12 years ago PR ld/13066
amodra [Tue, 9 Aug 2011 09:27:34 +0000 (09:27 +0000)]
PR ld/13066
PR ld/12762
* plugin.c (add_symbols): Revert 2011-08-05.

12 years ago * ntdll.h (STATUS_NOT_FOUND): Define.
corinna [Tue, 9 Aug 2011 09:14:27 +0000 (09:14 +0000)]
* ntdll.h (STATUS_NOT_FOUND): Define.
* ntea.cc (read_ea): Return correct ENOTSUP rather than EOPNOTSUPP.
Handle STATUS_INVALID_DEVICE_REQUEST and STATUS_NOT_FOUND.  Explain
why.  Convert conditional to switch statement.
(write_ea): Return correct ENOTSUP rather than EOPNOTSUPP.  Handle
STATUS_INVALID_DEVICE_REQUEST.  Convert conditional to switch statement.

12 years ago*** empty log message ***
gdbadmin [Tue, 9 Aug 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/
jkratoch [Mon, 8 Aug 2011 21:41:12 +0000 (21:41 +0000)]
gdb/
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
(dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.

gdb/testsuite/
* gdb.dwarf2/dw2-op-stack-value.S: New file.
* gdb.dwarf2/dw2-op-stack-value.exp: New file.

12 years agogdb/testsuite/
jkratoch [Mon, 8 Aug 2011 19:50:53 +0000 (19:50 +0000)]
gdb/testsuite/
* gdb.dwarf2/dw2-case-insensitive.exp (regexp case-sensitive off)
(p fuNC_symtab): Permit also ppc64 leading dot.

12 years agogdb/testsuite/
jkratoch [Mon, 8 Aug 2011 19:16:39 +0000 (19:16 +0000)]
gdb/testsuite/
* gdb.dwarf2/dw2-simple-locdesc.S: Replace .value by .2byte.

12 years agoFix name in last entry.
jjohnstn [Mon, 8 Aug 2011 18:36:01 +0000 (18:36 +0000)]
Fix name in last entry.

12 years ago * breakpoint.c (clean_up_filters): Remove.
tromey [Mon, 8 Aug 2011 15:51:42 +0000 (15:51 +0000)]
* breakpoint.c (clean_up_filters): Remove.
(catch_syscall_split_args): Use VEC_cleanup.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 8 Aug 2011 14:53:26 +0000 (14:53 +0000)]
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (struct mach_o_segment_name_xlat): Add comments.
(segsec_names_xlat): Reorder elements.
(bfd_mach_o_read_section_32): Fix typo.
(bfd_mach_o_read_section_64): Fix typo.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 8 Aug 2011 12:20:01 +0000 (12:20 +0000)]
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* config/obj-macho.c (obj_mach_o_section): New function.
(struct known_section): New type.
(known_sections): Declare.
(obj_mach_o_known_section): New function.
(obj_mach_o_common_parse): Ditto.
(obj_mach_o_comm): Ditto.
(obj_mach_o_subsections_via_symbols): Ditto.
(mach_o_pseudo_table): Add new pseudos.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 8 Aug 2011 10:56:31 +0000 (10:56 +0000)]
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (BFD_MACH_O_SEGNAME_SIZE): New macro.
(BFD_MACH_O_SECTNAME_SIZE): Ditto.
(bfd_mach_o_section): Use them.  Add next field.
(bfd_mach_o_segment_command): Replace sections array by
sect_head and sect_tail.
(bfd_mach_o_get_mach_o_section): New macro.
(bfd_mach_o_lookup_section): Remove.
(bfd_mach_o_new_section_hook): New function.
* mach-o.c (bfd_mach_o_normalize_section_name): Use strncmp
instead of strcmp.
(bfd_mach_o_convert_section_name_to_bfd): Replaces section
parameter with segname and sectname parameters.  Adjust.
(bfd_mach_o_append_section_to_segment): New function.  Use a
linked list for Mach-O sections.
(bfd_mach_o_write_segment_32): Adjust.
(bfd_mach_o_write_segment_64): Ditto.
(bfd_mach_o_build_commands): Fix comment.  Adjust.
(bfd_mach_o_flatten_sections): Adjust.
(bfd_mach_o_print_section_map): Adjust.
(bfd_mach_o_set_section_flags_from_bfd): Ditto.
(bfd_mach_o_new_section_hook): New function.
(bfd_mach_o_init_section_from_mach_o): Ditto.
(bfd_mach_o_read_section_32): Remove section parameter.
Return a section instead.
(bfd_mach_o_read_section_64): Ditto.
(bfd_mach_o_read_section): Ditto.
(bfd_mach_o_make_bfd_section): Adjust.
(bfd_mach_o_read_segment): Adjust for new profile of
bfd_mach_o_read_section.
(bfd_mach_o_lookup_section): Remove.
* mach-o-target.c (bfd_mach_o_new_section_hook): Remove.

12 years agobfd/
gingold [Mon, 8 Aug 2011 10:21:01 +0000 (10:21 +0000)]
bfd/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_version_min_command): New structure.
(bfd_mach_o_load_command): Add version_min.
(mach_o_data_struct): Fix comment.
* mach-o.c (bfd_mach_o_read_version_min): New function.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS,
BFD_MACH_O_LC_VERSION_MIN_MACOSX and
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
(bfd_mach_o_get_name_or_null): New function.
(bfd_mach_o_get_name): Use the above new one.
(bfd_mach_o_load_command_name): Add the above new commands.
(bfd_mach_o_bfd_print_private_bfd_data): Display numerically
unknown commands.  Handle BFD_MACH_O_LC_FUNCTION_STARTS,
BFD_MACH_O_LC_VERSION_MIN_MACOSX and
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.

include/mach-o/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* loader.h (bfd_mach_o_load_command_type): Add
BFD_MACH_O_LC_LOAD_UPWARD_DYLIB, BFD_MACH_O_LC_VERSION_MIN_MACOSX,
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS, BFD_MACH_O_LC_FUNCTION_STARTS,
and BFD_MACH_O_LC_DYLD_ENVIRONMENT.
* external.h (mach_o_version_min_command_external): New structure.

12 years agobfd/
gingold [Mon, 8 Aug 2011 08:59:31 +0000 (08:59 +0000)]
bfd/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Move size macros to external.h
Move reloc macros to reloc.h and x86-64.h.
* mach-o-i386.c: Includes mach-o/reloc.h
* mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h
* mach-o.c: Add includes.
(bfd_mach_o_write_header): Use structure from external.h to convert.
(bfd_mach_o_write_thread): Ditto.
(bfd_mach_o_write_relocs): Ditto.
(bfd_mach_o_write_section_32): Ditto.
(bfd_mach_o_write_section_64): Ditto.
(bfd_mach_o_write_segment_32): Ditto.
(bfd_mach_o_write_segment_64): Ditto.
(bfd_mach_o_write_symtab): Ditto.
(bfd_mach_o_write_contents): Ditto.
(bfd_mach_o_read_header): Ditto.
(bfd_mach_o_read_section_32): Ditto.
(bfd_mach_o_read_section_64): Ditto.
(bfd_mach_o_read_symtab_symbol): Ditto.
(bfd_mach_o_read_dylinker): Ditto.
(bfd_mach_o_read_dylib): Ditto.
(bfd_mach_o_read_dysymtab): Ditto.
(bfd_mach_o_read_symtab): Ditto.
(bfd_mach_o_read_linkedit): Ditto.
(bfd_mach_o_read_str): Ditto.
(bfd_mach_o_read_dyld_info): Ditto.
(bfd_mach_o_read_segment): Ditto.
(bfd_mach_o_read_command): Ditto.
(bfd_mach_o_archive_p): Ditto.
(bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter.
(bfd_mach_o_canonicalize_relocs): Adjust to call the above function.
(bfd_mach_o_read_dysymtab_symbol): Rename BUF variable.
(bfd_mach_o_read_uuid): Remove useless cast.  Use a macro instead
of an hard-coded value.

include/mach-o
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* loader.h: Reorder declarations.
* x86-64.h: New file.
* external.h: New file.
* reloc.h: New file.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 8 Aug 2011 07:47:41 +0000 (07:47 +0000)]
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Fix cut-and-past typos.
(bfd_mach_o_x86_64_swap_reloc_out): Handle BFD_RELOC_32_PCREL,
BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 and
BFD_RELOC_MACH_O_X86_64_GOT_LOAD.  Share common code.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 8 Aug 2011 07:39:42 +0000 (07:39 +0000)]
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_normalize_section_name): New function.
(bfd_mach_o_convert_section_name_to_bfd): Use it.
(bfd_mach_o_get_section_type_from_name): New function.
(bfd_mach_o_get_section_attribute_from_name): Ditto.
* mach-o.h (bfd_mach_o_section): Move bfdsection field at the end.
Add comments.  Add prototypes for the above new functions.

12 years ago PR binutils/12964
amodra [Mon, 8 Aug 2011 00:27:14 +0000 (00:27 +0000)]
PR binutils/12964
* Makefile.am (embedspu): Use awk rather than sed.
* Makefile.in: Regenerate.

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