OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years agoWork around Solaris bourne shell limitation when building the sim
brobecke [Mon, 19 Dec 2011 04:33:38 +0000 (04:33 +0000)]
Work around Solaris bourne shell limitation when building the sim

Building the sim on a sparc-solaris 2.8 machine fails when configured
with no extra sim hardware:

> for hw in  ; do \
>         echo "extern const struct hw_descriptor
>         dv_${hw}_descriptor[];" ; \
>       done >> tmp-hw.h
> echo 'const char version[] = "'"`sed q
> /[...]/../../gdb/version.in`"'";'
> >> version.c-tmp
> /bin/sh: -c: line 1: syntax error near unexpected token `;'
> /bin/sh: -c: line 1: `for hw in  ; do \'
> make[3]: *** [hw-config.h] Error 2

The same thing happens with the version of bash that we got from
Sun as well (which is very old: 2.03.0(1)-release).

The problems comes from the fact that both shells are buggy, and
reject the following script:

    for hw in ; do
      [...]
    done

The above is what sim/common/Makefile.in tries to execute when
generating hw-config.h.

In order to allow users to build out of the box on these machines,
this patch works around this bug.  It does rely on the fact that
none of the tokens in SIM_HW contain whitespaces.

sim/common/ChangeLog:

        * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
        system bourne shell.

12 years agoclarify entry
cgf [Mon, 19 Dec 2011 00:15:24 +0000 (00:15 +0000)]
clarify entry

12 years ago*** empty log message ***
gdbadmin [Mon, 19 Dec 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/gdbserver/
jkratoch [Sun, 18 Dec 2011 20:55:08 +0000 (20:55 +0000)]
gdb/gdbserver/
* linux-low.c (linux_create_inferior): Put empty if clause for write.

Revert:
2011-12-18  Hui Zhu  <teawater@gmail.com>
* linux-low.c (linux_create_inferior): Save return value to ret.

12 years agolibgloss: bfin: add clear_cache_range support (for gcc)
vapier [Sun, 18 Dec 2011 18:41:20 +0000 (18:41 +0000)]
libgloss: bfin: add clear_cache_range support (for gcc)

12 years ago2011-12-18 Hui Zhu <teawater@gmail.com>
teawater [Sun, 18 Dec 2011 15:49:04 +0000 (15:49 +0000)]
2011-12-18  Hui Zhu  <teawater@gmail.com>

* linux-low.c (linux_create_inferior): Save return value to ret.

12 years ago * configure: Regenerate.
ebotcazou [Sun, 18 Dec 2011 10:20:51 +0000 (10:20 +0000)]
* configure: Regenerate.
config/
* acx.m4 (Test for GNAT): Update comment and add quotes in final test.

12 years ago* fhandler.cc (fhandler_base::close): Move setting isclosed() from here to
cgf [Sun, 18 Dec 2011 04:07:47 +0000 (04:07 +0000)]
* fhandler.cc (fhandler_base::close): Move setting isclosed() from here to
closed().
(fhandler_base_overlapped::close): Correct comment.
(fhandler_base_overlapped::destroy_overlapped): Signal overlapped event before
closing it to potentially wake up a waiting thread.
(fhandler_base_overlapped::wait_overlapped): Expand setting of err when closed
to encompass non-signal event.  Test for a cancel event before making
nonblocking decisions.
* syscalls.cc (close): Set closed flag here so that any concurrently executing
functions will be notified ASAP.

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

12 years agoClean up whitespace.
cgf [Sat, 17 Dec 2011 23:39:46 +0000 (23:39 +0000)]
Clean up whitespace.

12 years ago2011-12-17 Cary Coutant <ccoutant@google.com>
ccoutant [Sat, 17 Dec 2011 22:39:52 +0000 (22:39 +0000)]
2011-12-17  Cary Coutant  <ccoutant@google.com>

* dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Add casts.
* resolve.cc (Symbol_table::resolve): Likewise.
* i386.cc (Target_i386::do_code_fill): Use char constants for nop
arrays.
* x86_64.cc (Target_x86_64::do_code_fill): Likewise.

12 years ago* cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
schwab [Sat, 17 Dec 2011 20:10:56 +0000 (20:10 +0000)]
* cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
obstack_empty_p.

12 years ago * generic/gdbtk-cmds.c (gdb_listfiles): Update API changes
kseitz [Sat, 17 Dec 2011 19:30:39 +0000 (19:30 +0000)]
* generic/gdbtk-cmds.c (gdb_listfiles): Update API changes
for map_partial_symbol_filenames.
(gdb_get_line_command): Update API changes for decode_line_1 in gdb.
(gdb_get_file_command): Likewise.
(gdb_get_function_command): Likewise.
* generic/gdbtk-stack.c (gdb_get_vars_command): Likewise.
* generic/gdbtk-bp.c (tracepoint_exists): Likewise.
(gdb_find_bp_at_line, gdb_get_breakpoint_info): Update breakpoint
API changes in gdb.

12 years ago* amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
kettenis [Sat, 17 Dec 2011 15:45:55 +0000 (15:45 +0000)]
* amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
regset_from_core_section.
(amd64obsd_core_init_abi): New function that sets
regset_from_core_section.
(_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
traditional core dumps.

12 years ago* gdb.arch/amd64-i386-address.exp: Skip on *-*-openbsd*.
kettenis [Sat, 17 Dec 2011 13:54:50 +0000 (13:54 +0000)]
* gdb.arch/amd64-i386-address.exp: Skip on *-*-openbsd*.

12 years ago* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
kettenis [Sat, 17 Dec 2011 12:22:04 +0000 (12:22 +0000)]
* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
trampoline to be introduced in OpenBSD 5.0.

12 years ago * dcrt0.cc (_dll_crt0): Fix formatting.
corinna [Sat, 17 Dec 2011 10:24:07 +0000 (10:24 +0000)]
* dcrt0.cc (_dll_crt0): Fix formatting.

12 years ago * wow64.cc (wow64_revert_to_original_stack): Fix comment.
corinna [Sat, 17 Dec 2011 10:05:23 +0000 (10:05 +0000)]
* wow64.cc (wow64_revert_to_original_stack): Fix comment.
* wow64.h (wow64_respawn_process): Declare noreturn.

12 years agogdb/
jkratoch [Sat, 17 Dec 2011 09:43:53 +0000 (09:43 +0000)]
gdb/
Fix build regression from the PR threads/10729 fix.
* s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
not LP->PTID.

12 years ago* exceptions.cc (set_signal_mask): Remove useless debugging output.
cgf [Sat, 17 Dec 2011 07:01:16 +0000 (07:01 +0000)]
* exceptions.cc (set_signal_mask): Remove useless debugging output.
* fhandler.cc (fhandler_base::write): Ditto.
(fhandler_base_overlapped::close): Cancel any ongoing I/O before closing.
* syscalls.cc (write): Default to always reporting all writes in strace output
via syscall_printf.
* wait.cc (wait4): Fix debugging output.  Use standard syscall leaver output.

12 years ago* mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
ndreys [Sat, 17 Dec 2011 06:14:44 +0000 (06:14 +0000)]
* mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
`optarg' to `oind' and `oarg', respectively(-Wshadow).
(mi_cmd_data_read_memory): Ditto.
(mi_cmd_data_read_memory_bytes): Ditto.

12 years ago* mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
ndreys [Sat, 17 Dec 2011 06:09:54 +0000 (06:09 +0000)]
* mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
`oind' and `oarg', respectively(-Wshadow).
(mi_valid_noargs): Ditto.

12 years ago* mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
ndreys [Sat, 17 Dec 2011 06:06:48 +0000 (06:06 +0000)]
* mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
`oind' and `oarg', respectively(-Wshadow).

12 years ago* mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
ndreys [Sat, 17 Dec 2011 06:03:20 +0000 (06:03 +0000)]
* mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
`optarg' to `oind' and `oarg', respectively(-Wshadow).
(mi_cmd_target_file_put): Ditto.
(mi_cmd_target_file_delete): Ditto.

12 years ago* mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
ndreys [Sat, 17 Dec 2011 05:58:26 +0000 (05:58 +0000)]
* mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
`optarg' to `oind' and `oarg', respectively(-Wshadow).
(mi_cmd_env_dir): Ditto.

12 years ago* mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and `optarg'
ndreys [Sat, 17 Dec 2011 05:53:58 +0000 (05:53 +0000)]
* mi/mi-cmd-disas.c (mi_cmd_disassemble):  Rename `optind' and `optarg'
to `oind' and `oarg', respectively(-Wshadow).

12 years ago* mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
ndreys [Sat, 17 Dec 2011 05:49:29 +0000 (05:49 +0000)]
* mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
`optparg' to `oind' and `oparg', respectively(-Wshadow).
(mi_cmd_break_watch): Ditto.

12 years agoFix formatting. Fix typo.
cgf [Sat, 17 Dec 2011 00:15:31 +0000 (00:15 +0000)]
Fix formatting.  Fix typo.

12 years agoImplement fhandler reference counting.
cgf [Sat, 17 Dec 2011 00:03:28 +0000 (00:03 +0000)]
Implement fhandler reference counting.
* cygheap.h
(cygheap_fdmanip::release): Make virtual.
(cygheap_fdnew::~cygheap_fdnew): New destructor increments reference count when
fd has been allocated.
(cygheap_fdget::fh): New (old?) field.
(cygheap_fdget::cygheap_fdget): Increment reference count when we've found an
active fd.  Set fh appropriately.
(cygheap_fdget::~cygheap_fdget): Decrement reference count when appropriate.
Delete fh if reference count goes to zero.
(cygheap_fdget::release): New function.  Do more bookkeping on release.
* dtable.cc (dtable::release): Change from void to boolean return.  Only delete
the fhandler when its reference count is <= 0 (this should be a fairly unusual
case).  Return true if fhandler has been deleted.
(cygwin_attach_handle_to_fd): Increment reference count when fh is assigned.
(dtable::init_std_file_from_handle): Ditto.
* dtable.h (dtable::release): Change return to boolean.
* fhandler.cc (fhandler_base::fhandler_base): Set new isclosed flag to false.
Set _refcnt to zero.
(fhandler_base::close): Simplify paranoid debugging output.  Set new isclosed()
flag.
(fhandler_base_overlapped::wait_overlapped): Use isclosed() flag to avoid
querying the exception handle.
* fhandler.h (fhandler_base::_refcnt): New field.
(fhandler_base::refcnt): New function.
(fhandler_base::isclosed): Implement.
(fhandler_base::fhandler_base): Set isclosed to false.
* syscalls.cc: Remove space after function before parentheses for several
strace printfs.
(dup): Add standard strace "leaver" code.
(dup2): Ditto.
(dup3): Ditto.
(remove): Ditto.
(getpid): Ditto.
(getppid): Ditto.
(lseek64): Fix strace debugging to correctly use %R.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Avoid sending signals to
other processes if we're debugging since it can cause a deadlock with the
calling debugger.
* exceptions.cc (_cygtls::call_signal_handler): Add debugging-only strace
output.

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

12 years ago * output.h (Output_data_reloc_generic::add): Only call
ian [Fri, 16 Dec 2011 23:47:03 +0000 (23:47 +0000)]
* output.h (Output_data_reloc_generic::add): Only call
add_dynamic_reloc if this is a dynamic reloc section.

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

12 years ago * linespec.c (collect_symbols): Call maybe_add_address after
tromey [Fri, 16 Dec 2011 21:39:16 +0000 (21:39 +0000)]
* linespec.c (collect_symbols): Call maybe_add_address after
calling symbol_to_sal.
(minsym_found): Call maybe_add_address here.
(search_minsyms_for_name): Don't call maybe_add_address.

12 years ago * linespec.c (struct collect_info) <objfile>: Remove field.
tromey [Fri, 16 Dec 2011 21:35:56 +0000 (21:35 +0000)]
* linespec.c (struct collect_info) <objfile>: Remove field.
(decode_objc): Update.
(find_method): Update.
(decode_variable): Update.
(struct minsym_and_objfile): New.
(struct collect_minsyms): New.
(classify_mtype): New function.
(compare_msyms): Likewise.
(add_minsym): Likewise.
(check_minsym): Remove.
(search_minsyms_for_name): Sort minsyms and apply only those with
top priority.

12 years ago * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
tromey [Fri, 16 Dec 2011 21:17:41 +0000 (21:17 +0000)]
* cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.

12 years ago2011-12-16 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 16 Dec 2011 20:29:28 +0000 (20:29 +0000)]
2011-12-16  Pedro Alves  <pedro@codesourcery.com>

* inf-loop.c: Include top.h.
(inferior_event_handler): Call check_frame_language.
* top.c (check_frame_language_change): New, factored out from ...
(execute_command): ... this.  Use check_frame_language_change.
* top.h (check_frame_language_change): Declare.

12 years agofix typo in previous entry
devans [Fri, 16 Dec 2011 20:04:35 +0000 (20:04 +0000)]
fix typo in previous entry

12 years ago * boards/native-stdiogdbserver.exp: New file.
devans [Fri, 16 Dec 2011 20:02:04 +0000 (20:02 +0000)]
* boards/native-stdiogdbserver.exp: New file.

12 years ago * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
muller [Fri, 16 Dec 2011 19:55:26 +0000 (19:55 +0000)]
* windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
prototypes.

12 years ago * boards/native-gdbserver.exp: New file.
devans [Fri, 16 Dec 2011 19:37:46 +0000 (19:37 +0000)]
* boards/native-gdbserver.exp: New file.

12 years ago * linux-low.c (linux_create_inferior): If stdio connection,
devans [Fri, 16 Dec 2011 19:10:58 +0000 (19:10 +0000)]
* linux-low.c (linux_create_inferior): If stdio connection,
redirect stdin from /dev/null, stdout to stderr.
* remote-utils.c (remote_is_stdio): New static global.
(remote_connection_is_stdio): New function.
(remote_prepare): Handle stdio connection.
(remote_open): Ditto.
(remote_close): Don't close stdin for stdio connections.
(read_prim,write_prim): New functions.  Replace all calls to
read/write to these.
* server.c (main): Watch for "-" argument.  Move call to
remote_prepare before start_inferior.
* server.h (STDIO_CONNECTION_NAME): New macro.
(remote_connection_is_stdio): Declare.

12 years ago * NEWS: Add entry for stdio gdbserver.
devans [Fri, 16 Dec 2011 19:06:34 +0000 (19:06 +0000)]
* NEWS: Add entry for stdio gdbserver.

gdbserver/
* linux-low.c (linux_create_inferior): If stdio connection,
redirect stdin from /dev/null, stdout to stderr.
* remote-utils.c (remote_is_stdio): New static global.
(remote_connection_is_stdio): New function.
(remote_prepare): Handle stdio connection.
(remote_open): Ditto.
(remote_close): Don't close stdin for stdio connections.
(read_prim,write_prim): New functions.  Replace all calls to
read/write to these.
* server.c (main): Watch for "-" argument.  Move call to
remote_prepare before start_inferior.
* server.h (STDIO_CONNECTION_NAME): New macro.
(remote_connection_is_stdio): Declare.

doc/
* gdb.texinfo (Server): Document -/stdio argument to gdbserver.

testsuite/
* lib/gdbserver-support.exp (gdb_target_cmd): Recognize stdio
gdbserver output.
(gdbserver_default_get_remote_address): New function.
(gdbserver_start): Call gdb,get_remote_address to compute argument
to "target remote" command.

12 years ago * remote-utils.c (prepare_resume_reply): Remove extraneous \n
devans [Fri, 16 Dec 2011 18:45:48 +0000 (18:45 +0000)]
* remote-utils.c (prepare_resume_reply): Remove extraneous \n
in debugging output.

12 years ago * dcrt0.cc (child_info_fork::alloc_stack): Correctly check if the
corinna [Fri, 16 Dec 2011 18:09:40 +0000 (18:09 +0000)]
* dcrt0.cc (child_info_fork::alloc_stack): Correctly check if the
parent stack fits into the child stack.  Align comment.
* wow64.cc (wow64_eval_expected_main_stack): New function to fetch
expected addresses of main thread stack from PE/COFF image header
values.
(wow64_test_for_64bit_parent): Fix comment.  Check current stack
against real expected main thread stack addresses.
(wow64_revert_to_original_stack): Fix and add comments. Check memory
against real expected main thread stack addresses.  Use orignal stack
if reserved area is >= 256K.

12 years ago* gendef (sigdelayed): Remember to pop all of the saved registers.
cgf [Fri, 16 Dec 2011 16:32:24 +0000 (16:32 +0000)]
* gendef (sigdelayed): Remember to pop all of the saved registers.
(sigreturn): Add "leave" label.

12 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix unresolved
cgf [Fri, 16 Dec 2011 16:29:34 +0000 (16:29 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix unresolved
access of wores in successful situations.

12 years ago2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 16 Dec 2011 16:15:46 +0000 (16:15 +0000)]
2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>

        * ChangeLog: Fix path typo.
* doc/ChangeLog: Ditto.

12 years ago2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 16 Dec 2011 15:55:35 +0000 (15:55 +0000)]
2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>

* testsuite/gdb.python/py-function.exp: Change "on" to "full" for
python print-stack.  Add set/show python print-stack
off|full|message tests.

2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>

* python/python.c: Define python_excp_enums.
(eval_python_from_control_command): Do not call gdbpy_print_stack.
(python_command): Ditto.
(gdbpy_print_stack): Rewrite to use new enum constants.
(maint_set_python): Remove function.
(maint_show_python): Ditto.
(_initialize_python): Do not add "maint" commands.  Add "set/show
python print-stack commands".
* NEWS: Update to reflect removal for "maint set/show
print-stack"

2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>

* doc/gdb.texinfo (Python Commands): Remove "maint set/show print
stack".  Add documentation for "set/show python print-stack".

12 years ago2011-12-16 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
gingold [Fri, 16 Dec 2011 13:39:02 +0000 (13:39 +0000)]
2011-12-16  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>

* mach-o-i386.c (TARGET_PRIORITY): Define as 0 (top priority)
* mach-o-target.c (TARGET_NAME): Use TARGET_PRIORITY
* mach-o-x86-64.c (TARGET_PRIORITY): Define as 0 (top priority)
* mach-o.c (bfd_mach_o_header_p): Remove special handling for
mach-o-i386.
(TARGET_PRIORITY) Set 1 for mach-o-be and mach-o-le, and set 0 for
mach-o-fat.

12 years ago * Makefile.in (DLL_OFILES): Add wow64.o.
corinna [Fri, 16 Dec 2011 11:58:03 +0000 (11:58 +0000)]
* Makefile.in (DLL_OFILES): Add wow64.o.
* dcrt0.cc (CYGWIN_GUARD): Drop execute permission for stack, it's
not used for stacks by the OS either.
(child_info_fork::alloc_stack_hard_way): Ditto.
(child_info_fork::alloc_stack): Don't alloc_stack_hard_way under WOW64
if forked from a 64 bit parent.  Set child's StackBase to parent's
StackBase.  Add comments to explain why.
(wow64_respawn): Move to wow64.cc.
(wow64_started_from_native64): Move to wow64.cc.
(respawn_wow64_process): Move to wow64.cc.
(dll_crt0_0): Drop wow64_test_stack_marker and move stack test into
wow64_test_for_64bit_parent function.  Don't return early if WOW64
process has been started from native 64 bit process.
(_dll_crt0): Implement moving stack for WOW64 processes started from
native 64 bit process.
* wow64.cc: New file.
(wow64_has_64bit_parent): Rename from wow64_respawn.
(wow64_test_for_64bit_parent): Rename from wow64_started_from_native64.
Change comment.
(wow64_revert_to_original_stack): New function.
(wow64_respawn_process): Rename from respawn_wow64_process for symmetry.
* wow64.h: New file.

12 years agobinutils/
gingold [Fri, 16 Dec 2011 10:23:01 +0000 (10:23 +0000)]
binutils/
2011-12-16  Tristan Gingold  <gingold@adacore.com>

* od-macho.c: Include mach-o/codesign.h
(OPT_CODESIGN): Define.
(options): Add an entry for codesign.
(mach_o_help): Likewise.
(dump_header): Fix indentation.
(dump_thread): Do not test result of xmalloc.
(bfd_mach_o_cs_magic, bfd_mach_o_cs_hash_type): New.
(dump_code_signature_superblob): New function.
(swap_code_codedirectory_v1_in): Likewise.
(hexdump): Likewise.
(dump_code_signature_codedirectory): Likewise.
(dump_code_signature_blob, dump_code_signature): Likewise.
(dump_load_command): Dump code signature.
(mach_o_dump): Likewise.

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

* codesign.h: New file.

12 years ago2011-12-15 David Daney <david.daney@cavium.com>
daney [Fri, 16 Dec 2011 06:18:52 +0000 (06:18 +0000)]
2011-12-15  David Daney  <david.daney@cavium.com>
    Nick Clifton <nickc@redhat.com>

* ld-elfvers/vers.exp (picflag): Set to -fpic for mips*-*-* when
using GCC-4.3 or later.
(pic): Set to "yes" for mips*-*-linux*.
* ld-elfvsb/elfvsb.exp: Don't test non-PIC shared libraried on
mips*-*-linux*.
(picflag): Set to -fpic for mips*-*-* when using GCC-4.3 or later.
* ld-elfweak/elfweak.exp (picflag): Set to -fpic for mips*-*-*
when using GCC-4.3 or later.
* ld-shared/shared.exp (picflag): Same.
* lib/ld-lib.exp (at_least_gcc_version): New proc.

12 years ago* exceptions.cc (_cygtls::call_signal_handler): Fix debugging to not go to
cgf [Fri, 16 Dec 2011 05:27:12 +0000 (05:27 +0000)]
* exceptions.cc (_cygtls::call_signal_handler): Fix debugging to not go to
console.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Add temporary kludge
to work around problem of make closing a handler while it is being read.
* gendef (sigdelayed): Don't call a function if sig has been cleared.
* sigproc.h (cygwait): Simplify slightly.

12 years ago * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
kevinb [Fri, 16 Dec 2011 00:08:04 +0000 (00:08 +0000)]
* elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
to correspond to a smaller ELF_NGREG defined by the kernel.

12 years ago*** empty log message ***
gdbadmin [Fri, 16 Dec 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoReplace <64, false> with <size, big_endian>
hjl [Thu, 15 Dec 2011 23:29:24 +0000 (23:29 +0000)]
Replace <64, false> with <size, big_endian>

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

PR gold/13505
* target-reloc.h (apply_relocation): Replace <64, false> with
<size, big_endian>.

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

12 years ago2011-12-15 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Thu, 15 Dec 2011 22:59:14 +0000 (22:59 +0000)]
2011-12-15  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.LIBGLOSS: Add GPL with exception license.

12 years ago2011-12-15 Konrad Eisele <konrad@gaisler.com>
jjohnstn [Thu, 15 Dec 2011 22:58:40 +0000 (22:58 +0000)]
2011-12-15  Konrad Eisele <konrad@gaisler.com>

        * configure.in: Add SPARC LEON support.
        * configure: Regenerated.
        * sparc_leon/asm-leon/amba.h, sparc_leon/asm-leon/asmmacro.h,
        sparc_leon/asm-leon/clock.h, sparc_leon/asm-leon/contextswitch.h,
        sparc_leon/asm-leon/elfmacro.h, sparc_leon/asm-leon/head.h,
        sparc_leon/asm-leon/irq.h, sparc_leon/asm-leon/jiffies.h,
        sparc_leon/asm-leon/lambapp.h, sparc_leon/asm-leon/lambapp_devs.h,
        sparc_leon/asm-leon/leon.h, sparc_leon/asm-leon/leon3.h,
        sparc_leon/asm-leon/leonbare_debug.h, sparc_leon/asm-leon/leonbare_kernel.h,
        sparc_leon/asm-leon/leonbare_kernel_queue.h, sparc_leon/asm-leon/leoncompat.h,
        sparc_leon/asm-leon/leondbg.h, sparc_leon/asm-leon/leonstack.h,
        sparc_leon/asm-leon/liblocks.h, sparc_leon/asm-leon/linkage.h,
        sparc_leon/asm-leon/param.h, sparc_leon/asm-leon/queue.h,
        sparc_leon/asm-leon/spinlock.h, sparc_leon/asm-leon/stack.h,
        sparc_leon/asm-leon/time.h, sparc_leon/asm-leon/timer.h,
        sparc_leon/asm-leon/types.h, sparc_leon/asm-leon/winmacros.h:
        New file.
        * sparc_leon/Makefile.in, sparc_leon/_exit.c,
        sparc_leon/amba.c, sparc_leon/amba_dbg.c,
        sparc_leon/amba_driver.c, sparc_leon/amba_scan.c,
        sparc_leon/asm-leon, sparc_leon/bdinit.S,
        sparc_leon/busscan.S, sparc_leon/cacheA.S,
        sparc_leon/catch_interrupt.c, sparc_leon/catch_interrupt_mvt.c,
        sparc_leon/catch_interrupt_pending.c, sparc_leon/catch_interrupt_svt.c,
        sparc_leon/configure.in,
        sparc_leon/console.c, sparc_leon/console_dbg.c,
        sparc_leon/console_init.c, sparc_leon/contextswitch.c,
        sparc_leon/contextswitch_asm.S, sparc_leon/crt0.S,
        sparc_leon/crti.S, sparc_leon/crtn.S,
        sparc_leon/etrap.S, sparc_leon/etrap_fast.S,
        sparc_leon/fpu.S, sparc_leon/gettimeofday.c,
        sparc_leon/initcalls.c, sparc_leon/io.c,
        sparc_leon/irqinstall.S, sparc_leon/irqtrap.S,
        sparc_leon/irqtrap_fast.S, sparc_leon/jiffies.c,
        sparc_leon/kernel.c, sparc_leon/kernel_context.S,
        sparc_leon/kernel_debug.c, sparc_leon/kernel_debug_var.c,
        sparc_leon/kernel_mm.c, sparc_leon/kernel_mutex.c,
        sparc_leon/kernel_queue.c, sparc_leon/kernel_sched.c,
        sparc_leon/kernel_thread.c, sparc_leon/lcpuinit.S,
        sparc_leon/locore.S, sparc_leon/locore_atexit.c,
        sparc_leon/locore_clean.S, sparc_leon/locore_mvt.S,
        sparc_leon/locore_mvt_reset.S, sparc_leon/locore_svt.S,
        sparc_leon/locore_svt_reset.S, sparc_leon/locore_svtdisp.S,
        sparc_leon/locore_var.S, sparc_leon/locore_var_svt.S,
        sparc_leon/mmu_asm.S, sparc_leon/mutex.c,
        sparc_leon/nocache.S, sparc_leon/pnpinit.c,
        sparc_leon/pnpinit_malloc.c, sparc_leon/pnpinit_simple.c,
        sparc_leon/regwin.S, sparc_leon/regwin_patch.c,
        sparc_leon/regwin_slow.S, sparc_leon/regwinflush.S,
        sparc_leon/rtc.c, sparc_leon/rtrap.S,
        sparc_leon/rtrap_fast.S, sparc_leon/stop.S,
        sparc_leon/timer.c, sparc_leon/times.c:
        New file
        * sparc_leon/configure: Regenerate

12 years ago * exceptions.c (catcher_list_size): New function.
devans [Thu, 15 Dec 2011 22:15:30 +0000 (22:15 +0000)]
* exceptions.c (catcher_list_size): New function.
(last_message): Delete.
(exception_messages, exception_messages_size): New static globals.
(throw_it): Use exception_messages array to handle nested calls.

12 years agoSet the default x32 interpreter to "/lib/ldx32.so.1"
hjl [Thu, 15 Dec 2011 17:30:57 +0000 (17:30 +0000)]
Set the default x32 interpreter to "/lib/ldx32.so.1"

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

* elf64-x86-64.c (ELF32_DYNAMIC_INTERPRETER): Set to
 "/lib/ldx32.so.1".

12 years ago * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
tromey [Thu, 15 Dec 2011 15:36:53 +0000 (15:36 +0000)]
* symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
do_cleanups call.

12 years ago2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
gingold [Thu, 15 Dec 2011 14:04:51 +0000 (14:04 +0000)]
2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o.c (bfd_mach_o_mkobject_init): Initialize dyn_reloc_cache.
(bfd_mach_o_close_and_cleanup): Only cleanup Mach-O private data
for object files.

12 years agogdb/testsuite/
qiyao [Thu, 15 Dec 2011 12:43:03 +0000 (12:43 +0000)]
gdb/testsuite/
* gdb.trace/strace.c: New
* gdb.trace/strace.exp: New.

12 years agogdb/gdbserver/
qiyao [Thu, 15 Dec 2011 12:40:03 +0000 (12:40 +0000)]
gdb/gdbserver/
* tracepoint.c: Include sys/syscall.h.
(gdb_ust_thread): Remove preprocessor conditional.

12 years ago2011-12-15 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 15 Dec 2011 11:43:52 +0000 (11:43 +0000)]
2011-12-15  Tristan Gingold  <gingold@adacore.com>

* config/obj-macho.c (obj_mach_o_fileprop): Fix typo.

12 years ago * readelf.c (get_symbol_type): Add ELFOSABI_FREEBSD to the
nickc [Thu, 15 Dec 2011 11:37:02 +0000 (11:37 +0000)]
* readelf.c (get_symbol_type): Add ELFOSABI_FREEBSD to the
supported abi's.

* config/obj-elf.c (obj_elf_type): Add ELFOSABI_FREEBSD to the
supported abi's.

12 years ago2011-12-15 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
gingold [Thu, 15 Dec 2011 11:01:14 +0000 (11:01 +0000)]
2011-12-15  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>

* mach-o.c (bfd_mach_o_canonicalize_reloc): Update relocation
table only when there isn't the cahce.
(bfd_mach_o_get_dynamic_reloc_upper_bound): Need one more space
for a pointer for the watchdog.
(bfd_mach_o_canonicalize_dynamic_reloc): Utilize cache like
bfd_mach_o_canonicalize_reloc.
(bfd_mach_o_close_and_cleanup): Call bfd_mach_o_free_cached_info.
(bfd_mach_o_free_cached_info): Free up cache data.
* mach-o.h (reloc_cache): A place to store cache of dynamic relocs.
(bfd_mach_o_free_cached_info): Add declaration.

12 years agobfd/
gingold [Thu, 15 Dec 2011 10:56:46 +0000 (10:56 +0000)]
bfd/
2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o-target.c (bfd_mach_o_bfd_set_private_flags): Use
bfd_mach_o_bfd_set_private_flags.
* mach-o.c (bfd_mach_o_bfd_set_private_flags): New.
* mach-o.h (bfd_mach_o_bfd_set_private_flags): Declare.

gas/
2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>

* config/obj-macho.c (obj_mach_o_subsections_by_symbols): New global.
(obj_mach_o_file_properties): New enum.
(obj_mach_o_subsections_via_symbols):  Generalize name to...
... (obj_mach_o_fileprop) and use to set subsections_via_symbols.

gas/testsuite/
2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>

* gas/mach-o/subsect-via-symbols-0.d: New.
* gas/mach-o/subsect-via-symbols-1.d: New.
* gas/mach-o/subsect-via-symbols.s: New.

12 years ago * frv.opc (parse_uhi16): Fix handling of %hi operator on 64-bit
nickc [Thu, 15 Dec 2011 10:21:48 +0000 (10:21 +0000)]
* frv.opc (parse_uhi16): Fix handling of %hi operator on 64-bit
hosts.

* cgen-asm.c (cgen_parse_signed_integer): Add code to handle the
sign extension of negative values on a 64-bit host.
* frv-asm.c: Regenerate.

* gas/frv/immediates.s: New test file - checks assembly of
constant values.
* gas/frv/immediates.d: Expected disassmbly.
* gas/frv/allinsn.exp: Run the new test.

12 years agogas/
jiez [Thu, 15 Dec 2011 04:25:08 +0000 (04:25 +0000)]
gas/
2011-12-14  Stuart Henderson  <shenders@gcc.gnu.org>

* config/bfin-parse.y (asm_1): set SRCx fields to all 1s for
dspalu32 instrs that don't use them.

gas/testsuite/
2011-12-14  Stuart Henderson  <shenders@gcc.gnu.org>

* gas/bfin/move.d: Update SRCx field expectations.
* gas/bfin/move2.d: Likewise.
* gas/bfin/parallel.d: Likewise.
* gas/bfin/parallel2.d: Likewise.
* gas/bfin/parallel3.d: Likewise.
* gas/bfin/parallel4.d: Likewise.
* gas/bfin/video.d: Likewise.
* gas/bfin/video2.d: Likewise.

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

12 years agodaily update
amodra [Wed, 14 Dec 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * defs.h (wait_to_die_with_timeout): Declare.
devans [Wed, 14 Dec 2011 20:53:56 +0000 (20:53 +0000)]
* defs.h (wait_to_die_with_timeout): Declare.
* utils.c: #include "gdb_wait.h".
(sigalrm_handler, wait_to_die_with_timeout): New functions.
* ser-pipe.c: Don't #include "gdb_wait.h".
(pipe_close): Give child a chance to die on its own after closing
its stdin before SIGTERM'ing it.

12 years agoFix latest ChangeLog entry (forgot to give credit to reporter)
brobecke [Wed, 14 Dec 2011 20:27:47 +0000 (20:27 +0000)]
Fix latest ChangeLog entry (forgot to give credit to reporter)

12 years agofix uninitialized field in ada-lang.c (struct match_data)
brobecke [Wed, 14 Dec 2011 20:24:57 +0000 (20:24 +0000)]
fix uninitialized field in ada-lang.c (struct match_data)

Field found_sym in add_nonlocal_symbols's struct match_data is
used uninitialized.  Rather than adding the initialization of
this field (to zero), we set the entire structure to zero first,
and then set the fields that need to be initialized to non-zero
next.

gdb/ChangeLog:

        * ada-lang.c (add_nonlocal_symbols): Initialize data to
        all zeros.  Remove setting of data.arg_sym to NULL.

12 years ago Don't leave Windows 2000 behind.
corinna [Wed, 14 Dec 2011 20:23:25 +0000 (20:23 +0000)]
Don't leave Windows 2000 behind.

* autoload.cc (GetSystemWow64DirectoryW): Define.
(GetVolumePathNamesForVolumeNameW): Define.
* fhandler_process.cc (get_volume_path_names_for_volume_name): New
static function to workaround missing GetVolumePathNamesForVolumeNameW
function in Windows 2000.
(dos_drive_mappings::dos_drive_mappings): Call
get_volume_path_names_for_volume_name instead of
GetVolumePathNamesForVolumeNameW.

12 years ago * gdb.dwarf2/dw2-inline-param.exp: Log the objcopy command.
tromey [Wed, 14 Dec 2011 19:59:25 +0000 (19:59 +0000)]
* gdb.dwarf2/dw2-inline-param.exp: Log the objcopy command.

12 years ago * lib/gdb.exp (gdb_start_cmd): Fix error return value.
devans [Wed, 14 Dec 2011 19:50:17 +0000 (19:50 +0000)]
* lib/gdb.exp (gdb_start_cmd): Fix error return value.

12 years agoFix typo in "Changes since ...".
devans [Wed, 14 Dec 2011 18:55:12 +0000 (18:55 +0000)]
Fix typo in "Changes since ...".

12 years ago2011-12-14 Pedro Alves <pedro@codesourcery.com>
palves [Wed, 14 Dec 2011 17:33:23 +0000 (17:33 +0000)]
2011-12-14  Pedro Alves  <pedro@codesourcery.com>

* linux-low.c (linux_detach_one_lwp): Call
the_low_target.prepare_to_resume before detaching.

12 years agogdb/
palves [Wed, 14 Dec 2011 17:20:25 +0000 (17:20 +0000)]
gdb/
2011-12-14  Pedro Alves  <pedro@codesourcery.com>

PR threads/10729

* linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
pointer.
(linux_nat_prepare_to_resume): New global.
(lwp_free): New.
(purge_lwp_list): Use it.
(add_lwp): Call linux_nat_new_thread even on the first LWP.
Adjust to interface change.
(delete_lwp): Call lwp_free instead of xfree.
(detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
(linux_handle_syscall_trap, linux_handle_extended_wait)
(linux_nat_filter_event, resume_stopped_resumed_lwps): Call
linux_nat_prepare_to_resume before resuming.
(linux_stop_lwp): New.
(linux_nat_set_new_thread): Adjust.
(linux_nat_set_prepare_to_resume): New.
* linux-nat.h (struct arch_lwp_info): Forward declare.
(struct lwp_info) <arch_private>: New field.
(linux_stop_lwp): Declare.
(linux_nat_set_new_thread): Adjust.
(linux_nat_set_prepare_to_resume): New.

* i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
(struct i386_debug_reg_state): Move to i386-nat.h.
(dr_mirror): Comment.
(i386_debug_reg_state): New.
(i386_update_inferior_debug_regs): Simplify.
(i386_stopped_data_address): Use the debug register state from the
inferior, not from the local cache.
* i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
unset_status fields.  New get_addr and get_control fields.
(DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
(DR_NADDR, DR_STATUS): New.
(struct i386_debug_reg_state): Moved from i386-nat.c.

* amd64-linux-nat.c (struct arch_lwp_info): New.
(amd64_linux_dr): Delete global.
(amd64_linux_dr_get_addr): New.
(amd64_linux_dr_get_control): New.
(amd64_linux_dr_unset_status): Delete.
(amd64_linux_dr_set_addr): Reimplement.
(amd64_linux_dr_reset_addr): Delete.
(update_debug_registers_callback): New.
(amd64_linux_dr_set_control): Reimplement.
(amd64_linux_dr_set_addr): Reimplement.
(amd64_linux_prepare_to_resume): New.
(amd64_linux_new_thread): Change parameter to an lwp pointer.
Reimplement.
(_initialize_amd64_linux_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
amd64_linux_dr_get_control as i386_dr_low.get_control.  Install
amd64_linux_dr_get_addr as i386_dr_low.get_addr.  Install
amd64_linux_prepare_to_resume.
* i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
(DR_CONTROL): Delete.
(struct arch_lwp_info): New.
(i386_linux_dr): Delete global.
(i386_linux_dr_set_control): Reimplement.
(i386_linux_dr_get_addr): New.
(i386_linux_dr_set_addr): Reimplement.
(i386_linux_dr_get_control): New.
(update_debug_registers_callback): New.
(i386_linux_dr_unset_status): Delete.
(i386_linux_dr_set_addr): Reimplement.
(i386_linux_prepare_to_resume): New.
(i386_linux_new_thread): Change parameter to an lwp pointer.
Reimplement.
(_initialize_i386_linux_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
i386_linux_dr_get_control as i386_dr_low.get_control.  Install
i386_linux_dr_get_addr as i386_dr_low.get_addr.  Install
i386_linux_prepare_to_resume.

* arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
lwp pointer.  Adjust.
* ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
* mips-linux-nat.c (mips_linux_new_thread): Likewise.
* ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
* s390-nat.c (s390_fix_watch_points): Likewise.

* i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
(DR_CONTROL): Delete.
(i386_darwin_dr_reset_addr): Delete.
(i386_darwin_dr_get_addr): New.
(i386_darwin_dr_get_control): New.
* go32-nat.c
(go32_get_dr7, go32_get_dr): New.
(init_go32_ops): No longer install i386_dr_low.reset_addr.
Install go32_get_dr7 as i386_dr_low.get_control.  Install
go32_get_dr as i386_dr_low.get_addr.
* i386bsd-nat.c (i386bsd_dr_get): New.
(i386bsd_dr_reset_addr): Delete.
(i386bsd_dr_get_addr): New.
(i386bsd_dr_get_status): Use i386bsd_dr_get.
(i386bsd_dr_get_control): New.
* i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
(i386bsd_dr_get_addr): New.
(i386bsd_dr_get_control): New.
* i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
i386bsd_dr_get_control as i386_dr_low.get_control.  Install
i386bsd_dr_get_addr as i386_dr_low.get_addr.
* windows-nat.c (init_windows_ops): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
cygwin_get_dr7 as i386_dr_low.get_control.  Install cygwin_get_dr
as i386_dr_low.get_addr.
(cygwin_get_dr): New.
(cygwin_get_dr7): New.

gdb/testsuite/
2011-12-14  Pedro Alves  <pedro@codesourcery.com>

PR threads/10729

* gdb.mi/watch-nonstop.c: New file.
  * gdb.mi/mi-watch-nonstop.exp: New file.

12 years agoWhen computing checksums, skip the contents of sections with the SHT_NOBITS type.
nickc [Wed, 14 Dec 2011 16:12:12 +0000 (16:12 +0000)]
When computing checksums, skip the contents of sections with the SHT_NOBITS type.
Revert change to compress.c

12 years agoAdd PR gdb/8367 to basenames-may-differ patch.
devans [Wed, 14 Dec 2011 16:05:59 +0000 (16:05 +0000)]
Add PR gdb/8367 to basenames-may-differ patch.

12 years ago2011-12-14 Iain Sandoe <iains@gcc.gnu.org>
gingold [Wed, 14 Dec 2011 15:32:24 +0000 (15:32 +0000)]
2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>

* gas/mach-o/comm-1.d: New.
* gas/mach-o/comm-1.s: New.
* gas/mach-o/lcomm-1.s: New.
* gas/mach-o/mach-o.exp: Update to use run_dump_tests[].
* gas/mach-o/sections-1.d: New.
* gas/mach-o/sections-1.s: New.
* gas/mach-o/warn-1.s: Add .comm alignment range warning.

12 years agoAdd PR # 7200 to: Make "!" an alias for "shell".
devans [Wed, 14 Dec 2011 15:31:55 +0000 (15:31 +0000)]
Add PR # 7200 to: Make "!" an alias for "shell".

12 years ago2011-12-14 Pedro Alves <pedro@codesourcery.com>
palves [Wed, 14 Dec 2011 14:55:26 +0000 (14:55 +0000)]
2011-12-14  Pedro Alves  <pedro@codesourcery.com>

* ia64-tdep.c (ia64_memory_remove_breakpoint): Use
target_write_raw_memory.
* m32r-tdep.c (m32r_memory_remove_breakpoint): Use
target_write_raw_memory.
* microblaze-linux-tdep.c
(microblaze_linux_memory_remove_breakpoint): Use
target_write_raw_memory.
* ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
target_write_raw_memory.

12 years ago2011-12-14 Pedro Alves <pedro@codesourcery.com>
palves [Wed, 14 Dec 2011 14:46:24 +0000 (14:46 +0000)]
2011-12-14  Pedro Alves  <pedro@codesourcery.com>

* gdb.texinfo (Implementing a Remote Stub): Explain that you
should transfer control to the stub in the startup code instead of
in main.  Mention the need to get past the initial breakpoint.

12 years agoMake decode_line_internal static.
brobecke [Wed, 14 Dec 2011 14:34:54 +0000 (14:34 +0000)]
Make decode_line_internal static.

gdb/ChangeLog:

* linespec.c (decode_line_internal): Make static.

12 years ago * config/tc-cris.c (md_convert_frag): Mark the length_code local
nickc [Wed, 14 Dec 2011 14:10:54 +0000 (14:10 +0000)]
* config/tc-cris.c (md_convert_frag): Mark the length_code local
variable as unused as it is only used when ENABLE_CHECKING is on.

12 years ago2011-12-14 Iain Sandoe <iains@gcc.gnu.org>
gingold [Wed, 14 Dec 2011 13:27:34 +0000 (13:27 +0000)]
2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>

* gas/mach-o: New.
* gas/mach-o/mach-o.exp: New.
* gas/mach-o/warn-1.s: New.
* gas/mach-o/lcomm-1.s: New.
* gas/mach-o/lcomm-1.d: New.

12 years ago PR ld/12451
nickc [Wed, 14 Dec 2011 11:50:12 +0000 (11:50 +0000)]
PR ld/12451
* elfcode.h (elf_checksum_contents): Read in the section's
contents if they are not already available.
* compress.c (bfd_get_full_section_contents): Use zmalloc to
allocate the buffers so that excess bytes are guaranteed to be
zero.

12 years agobfd/
gingold [Wed, 14 Dec 2011 10:30:06 +0000 (10:30 +0000)]
bfd/
2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o-i386.c (text_section_names_xlat): New table.
(data_section_names_xlat): Likewise.
(import_section_names_xlat): Likewise.
(mach_o_i386_segsec_names_xlat): Likewise.
(bfd_mach_o_tgt_seg_table): Use new tables.
* mach-o-x86-64.c (bfd_mach_o_tgt_seg_table): Set NULL.
* mach-o.c (mach_o_section_name_xlat, mach_o_segment_name_xlat):
Move to mach-o.h as   typedefs.
(text_section_names_xlat): Update for current GCC usage.
(data_section_names_xlat): Likewise.
(dwarf_section_names_xlat): Likewise.
(objc_section_names_xlat): New table.
(segsec_names_xlat): Add objc table.
(bfd_mach_o_normalize_section_name):  Replace with...
(bfd_mach_o_section_data_for_mach_sect): New.
(bfd_mach_o_section_data_for_bfd_name): New.
(bfd_mach_o_section_data_for_bfd_name): Update to use additional data.
(bfd_mach_o_convert_section_name_to_mach_o): Likewise.
(bfd_mach_o_bfd_copy_private_section_data): Implement.
(bfd_mach_o_write_symtab): Write a zero-length string as the first entry
for compatibility with system tools.
(bfd_mach_o_build_commands): Update section alignment info.
(bfd_mach_o_new_section_hook): Use translation table data to define
default section flags, type, attributes and alignment, when available.
(bfd_mach_o_init_section_from_mach_o): Add TODO comment.
(bfd_mach_o_section_type_name): Add 'symbol_stubs'.
(bfd_mach_o_section_attribute_name): Add 'self_modifying_code'.
(bfd_mach_o_get_section_type_from_name): Change "not-found" return
value.
(bfd_mach_o_tgt_seg_table): Set default NULL.
* mach-o.h (bfd_mach_o_segment_command):  Use define for name length.
(bfd_mach_o_backend_data): Move until after contents are defined.
(bfd_mach_o_normalize_section_name): Remove.
(bfd_mach_o_convert_section_name_to_bfd): Declare.
(mach_o_section_name_xlat): Declare.
(mach_o_segment_name_xlat): Declare.
(bfd_mach_o_section_data_for_mach_sect): Declare.
(bfd_mach_o_section_data_for_bfd_name): Declare.

include/
2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o/loader.h (bfd_mach_o_section_type): define
BFD_MACH_O_S_ATTR_NONE to 0.

gas/
2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>

* config/obj-macho.c: Add some more top-level comments.
(collect_16char_name): New.
(obj_mach_o_section): Amend to allow syntax compatible with existing system
tools.  Use section translation data when available.
(obj_mach_o_segT_from_bfd_name): New.
(known_sections): Update.
(obj_mach_o_known_section): Use obj_mach_o_segT_from_bfd_name.
(objc_sections): New.
(obj_mach_o_objc_section): New.
(debug_sections): New.
(obj_mach_o_debug_section): New.
(tgt_sections): New.
(obj_mach_o_opt_tgt_section): New.
(obj_mach_o_base_section): New.
(obj_mach_o_common_parse): Update to create BSS on demand and to handle
lcomm optional alignment param.
(obj_mach_o_comm): Update parameter name.
(obj_mach_o_placeholder): New.
(mach_o_pseudo_table): Update for GCC section directives.
* config/obj-macho.h (_OBJ_MACH_O_H): New.
(USE_ALIGN_PTWO): Define.
(S_SET_ALIGN) Define.

12 years agogdb/
qiyao [Wed, 14 Dec 2011 07:56:58 +0000 (07:56 +0000)]
gdb/
* breakpoint.c (create_breakpoint): Set canonical.addr_string
for static tracepoint.

12 years agogdb/gdbserver/
qiyao [Wed, 14 Dec 2011 07:47:14 +0000 (07:47 +0000)]
gdb/gdbserver/

* tracepoint.c (gdb_ust_thread): Don't ignore return value
of write.

12 years ago2011-12-14 Yao Qi <yao@codesourcery.com>
qiyao [Wed, 14 Dec 2011 07:41:06 +0000 (07:41 +0000)]
2011-12-14  Yao Qi  <yao@codesourcery.com>

* i386-low.c (i386_low_stopped_data_address): Initialize local
variable `control'.

12 years ago*** empty log message ***
gdbadmin [Wed, 14 Dec 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years ago2011-12-13 Richard Earnshaw <rearnsha@arm.com>
jjohnstn [Tue, 13 Dec 2011 22:45:11 +0000 (22:45 +0000)]
2011-12-13  Richard Earnshaw  <rearnsha@arm.com>
            Thomas Klein  <th.r.klein@web.de>

        * arm/crt0.S: Manually set the target architecture
        when compiling for Thumb1 on EABI targets.
        Avoid v6-only Thumb-1 MOV instruction.

12 years ago2011-12-13 Richard Earnshaw <rearnsha@arm.com>
jjohnstn [Tue, 13 Dec 2011 22:40:44 +0000 (22:40 +0000)]
2011-12-13  Richard Earnshaw  <rearnsha@arm.com>
            Thomas Klein  <th.r.klein@web.de>

        * libc/sys/arm/crt0.S: Manually set the target architecture
        when compiling for Thumb1 on EABI targets.
        Don't use SWI on M-profile cores.
        Avoid v6-only Thumb-1 MOV instruction.