deliverable/binutils-gdb.git
12 years ago* mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
Andrey Smirnov [Sat, 17 Dec 2011 06:14:45 +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
Andrey Smirnov [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
Andrey Smirnov [Sat, 17 Dec 2011 06:06:49 +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
Andrey Smirnov [Sat, 17 Dec 2011 06:03:21 +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
Andrey Smirnov [Sat, 17 Dec 2011 05:58:27 +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'
Andrey Smirnov [Sat, 17 Dec 2011 05:53:59 +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
Andrey Smirnov [Sat, 17 Dec 2011 05:49:34 +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 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 Lance Taylor [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
Alan Modra [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
Tom 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.
Tom Tromey [Fri, 16 Dec 2011 21:35:57 +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.
Tom Tromey [Fri, 16 Dec 2011 21:17:42 +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>
Pedro Alves [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
Doug Evans [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.
Doug Evans [Fri, 16 Dec 2011 20:02:05 +0000 (20:02 +0000)] 
* boards/native-stdiogdbserver.exp: New file.

12 years ago * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
Pierre 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.
Doug Evans [Fri, 16 Dec 2011 19:37:47 +0000 (19:37 +0000)] 
* boards/native-gdbserver.exp: New file.

12 years ago * linux-low.c (linux_create_inferior): If stdio connection,
Doug Evans [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.
Doug Evans [Fri, 16 Dec 2011 19:06:38 +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
Doug Evans [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 ago2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [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>
Phil Muldoon [Fri, 16 Dec 2011 15:55:40 +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>
Tristan Gingold [Fri, 16 Dec 2011 13:39:03 +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 agobinutils/
Tristan 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>
David Daney [Fri, 16 Dec 2011 06:18:55 +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 * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
Kevin Buettner [Fri, 16 Dec 2011 00:08:06 +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>
H.J. Lu [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
Alan Modra [Thu, 15 Dec 2011 23:00:05 +0000 (23:00 +0000)] 
daily update

12 years ago2011-12-15 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [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 ago * exceptions.c (catcher_list_size): New function.
Doug Evans [Thu, 15 Dec 2011 22:15:36 +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"
H.J. Lu [Thu, 15 Dec 2011 17:30:58 +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
Tom Tromey [Thu, 15 Dec 2011 15:36:55 +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>
Tristan Gingold [Thu, 15 Dec 2011 14:04:52 +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/
Yao Qi [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/
Yao Qi [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>
Tristan 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
Nick Clifton [Thu, 15 Dec 2011 11:37:03 +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>
Tristan 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/
Tristan Gingold [Thu, 15 Dec 2011 10:56:48 +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
Nick Clifton [Thu, 15 Dec 2011 10:21:51 +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/
Jie Zhang [Thu, 15 Dec 2011 04:25:10 +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
Alan Modra [Wed, 14 Dec 2011 23:00:06 +0000 (23:00 +0000)] 
daily update

12 years ago * defs.h (wait_to_die_with_timeout): Declare.
Doug Evans [Wed, 14 Dec 2011 20:53:57 +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)
Joel Brobecker [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)
Joel Brobecker [Wed, 14 Dec 2011 20:24:59 +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 * gdb.dwarf2/dw2-inline-param.exp: Log the objcopy command.
Tom 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.
Doug Evans [Wed, 14 Dec 2011 19:50:18 +0000 (19:50 +0000)] 
* lib/gdb.exp (gdb_start_cmd): Fix error return value.

12 years agoFix typo in "Changes since ...".
Doug Evans [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>
Pedro Alves [Wed, 14 Dec 2011 17:33:24 +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/
Pedro Alves [Wed, 14 Dec 2011 17:20:32 +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.
Nick Clifton [Wed, 14 Dec 2011 16:12:13 +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.
Doug Evans [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>
Tristan Gingold [Wed, 14 Dec 2011 15:32:25 +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".
Doug Evans [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>
Pedro Alves [Wed, 14 Dec 2011 14:55:27 +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>
Pedro Alves [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.
Joel Brobecker [Wed, 14 Dec 2011 14:34:59 +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
Nick Clifton [Wed, 14 Dec 2011 14:10:57 +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>
Tristan 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
Nick Clifton [Wed, 14 Dec 2011 11:50:13 +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/
Tristan Gingold [Wed, 14 Dec 2011 10:30:09 +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/
Yao Qi [Wed, 14 Dec 2011 07:56:59 +0000 (07:56 +0000)] 
gdb/
* breakpoint.c (create_breakpoint): Set canonical.addr_string
for static tracepoint.

12 years agogdb/gdbserver/
Yao Qi [Wed, 14 Dec 2011 07:47:15 +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>
Yao Qi [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
Alan Modra [Tue, 13 Dec 2011 23:00:05 +0000 (23:00 +0000)] 
daily update

12 years agogdb/doc/
Pedro Alves [Tue, 13 Dec 2011 17:22:11 +0000 (17:22 +0000)] 
gdb/doc/
2011-12-13  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.

gdb/testsuite/
2011-12-13  Pedro Alves  <pedro@codesourcery.com>
    Doug Evans  <dje@google.com>

* lib/gdb.exp (gdb_run_cmd, runto_main, gdb_compile)
(clean_restart): Remove references to the gdb_stub target board
variable.
(gdb_step_for_stub): Delete.

* gdb.base/annota1.exp: Remove all references to [target_info
exists gdb_stub], gdb_step_for_stub and usestubs.
* gdb.base/annota3.exp: Ditto.
* gdb.base/async.exp: Ditto.
* gdb.base/break.exp: Ditto.
* gdb.base/code-expr.exp: Ditto.
* gdb.base/commands.exp: Ditto.
* gdb.base/completion.exp: Ditto.
* gdb.base/condbreak.exp: Ditto.
* gdb.base/consecutive.exp: Ditto.
* gdb.base/cvexpr.exp: Ditto.
* gdb.base/define.exp: Ditto.
* gdb.base/display.exp: Ditto.
* gdb.base/ena-dis-br.exp: Ditto.
* gdb.base/environ.exp: Ditto.
* gdb.base/gnu-ifunc.exp: Ditto.
* gdb.base/maint.exp: Ditto.
* gdb.base/pending.exp: Ditto.
* gdb.base/sect-cmd.exp: Ditto.
* gdb.base/sepdebug.exp: Ditto.
* gdb.base/unload.exp: Ditto.
* gdb.base/watchpoint-solib.exp: Ditto.
* gdb.cp/annota2.exp: Ditto.
* gdb.cp/annota3.exp: Ditto.
* gdb.dwarf2/dw2-inline-param.exp: Ditto.
* gdb.hp/gdb.compat/xdb1.exp: Ditto.
* gdb.mi/mi-pending.exp: Ditto.
* gdb.trace/circ.exp: Ditto.
* gdb.cp/ovldbreak.exp: Ditto.  Adjust expected line numbers.
* gdb.base/list.exp: Ditto.

* gdb.base/all-types.c: Remove all calls to set_debug_traps and
breakpoint function and all references to the usestubs macro.
* gdb.base/exprs.c: Ditto.
* gdb.base/freebpcmd.c: Ditto.
* gdb.base/bitfields.c: Ditto.
* gdb.base/bitfields2.c: Ditto.
* gdb.base/break.c: Ditto.
* gdb.base/call-sc.c: Ditto.
* gdb.base/call-signals.c: Ditto.
* gdb.base/callfuncs.c: Ditto.
* gdb.base/charset.c: Ditto.
* gdb.base/consecutive.c: Ditto.
* gdb.base/constvars.c: Ditto.
* gdb.base/funcargs.c: Ditto.
* gdb.base/int-type.c: Ditto.
* gdb.base/interrupt.c: Ditto.
* gdb.base/langs0.c: Ditto.
* gdb.base/list0.c: Ditto.
* gdb.base/mips_pro.c: Ditto.
* gdb.base/miscexprs.c: Ditto.
* gdb.base/nodebug.c: Ditto.
* gdb.base/opaque0.c: Ditto.
* gdb.base/pointers.c: Ditto.
* gdb.base/printcmds.c: Ditto.
* gdb.base/ptype.c: Ditto.
* gdb.base/recurse.c: Ditto.
* gdb.base/reread1.c: Ditto.
* gdb.base/reread2.c: Ditto.
* gdb.base/restore.c: Ditto.
* gdb.base/return.c: Ditto.
* gdb.base/run.c: Ditto.
* gdb.base/scope0.c: Ditto.
* gdb.base/sepdebug.c: Ditto.
* gdb.base/setshow.c: Ditto.
* gdb.base/setvar.c: Ditto.
* gdb.base/sigall.c: Ditto.
* gdb.base/signals.c: Ditto.
* gdb.base/structs.c: Ditto.
* gdb.base/structs2.c: Ditto.
* gdb.base/testenv.c: Ditto.
* gdb.base/twice.c: Ditto.
* gdb.base/unwindonsignal.c: Ditto.
* gdb.base/watchpoint.c: Ditto.
* gdb.base/watchpoints.c: Ditto.
* gdb.base/whatis.c: Ditto.
* gdb.cp/classes.cc: Ditto.
* gdb.cp/cplusfuncs.cc: Ditto.
* gdb.cp/derivation.cc: Ditto.
* gdb.cp/formatted-ref.cc: Ditto.
* gdb.cp/misc.cc: Ditto.
* gdb.cp/overload.cc: Ditto.
* gdb.cp/ovldbreak.cc: Ditto.
* gdb.cp/ref-params.cc: Ditto.
* gdb.cp/ref-types.cc: Ditto.
* gdb.cp/templates.cc: Ditto.
* gdb.cp/virtfunc.cc: Ditto.
* gdb.hp/gdb.aCC/run.c: Ditto.
* gdb.hp/gdb.base-hp/callfwmall.c: Ditto.
* gdb.hp/gdb.compat/xdb0.c: Ditto.
* gdb.reverse/consecutive-reverse.c: Ditto.
* gdb.reverse/sigall-reverse.c: Ditto.
* gdb.reverse/until-reverse.c: Ditto.
* gdb.reverse/watch-reverse.c: Ditto.
* gdb.trace/actions.c: Ditto.
* gdb.trace/circ.c: Ditto.
* gdb.trace/collection.c: Ditto.

12 years ago2011-12-13 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Tue, 13 Dec 2011 16:11:26 +0000 (16:11 +0000)] 
2011-12-13  Pedro Alves  <pedro@codesourcery.com>

PR remote/13492

* i386-low.c (i386_low_stopped_data_address): Avoid fetching
DR_CONTROL unless necessary.  Extend comments.
* linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
DR0-3 if not used.  If any watchpoint was set, clear DR_STATUS.

12 years ago2011-12-13 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Tue, 13 Dec 2011 16:05:24 +0000 (16:05 +0000)] 
2011-12-13  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/watchpoint.c (struct foo2, foo2, struct foo4, foo4)
(func6, func7): New.
(main): Call func6 and func7.
* gdb.base/watchpoint.exp (test_wide_location_1)
(test_wide_location_2): New.
(top level): Re-enable hardware watchpoints if necessary.  Call
test_wide_location_1 and test_wide_location_2.

12 years ago2011-12-13 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
Tristan Gingold [Tue, 13 Dec 2011 14:02:20 +0000 (14:02 +0000)] 
2011-12-13  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>

* dwarf2.c (bfd_dwarf2_cleanup_debug_info): Accept stash as an
argument like other functions to support formats other than ELF.
* elf-bfd.h (bfd_dwarf2_cleanup_debug_info): Move to bfd-in.h.
* elf.c (_bfd_elf_close_and_cleanup): Pass dwarf2_find_line_info
in tdata as a parameter.
* libbfd-in.h (bfd_dwarf2_cleanup_debug_info): Move from
elf-bfd.h.
* libbfd.h (bfd_dwarf2_cleanup_debug_info): Regenerate.
* mach-o-target.c (bfd_mach_o_close_and_cleanup): Remove the
fallback macro.
(bfd_mach_o_find_nearest_line): Likewise.
* mach-o.c (bfd_mach_o_find_nearest_line): Add the definition
which calls _bfd_dwarf2_find_nearest_line.
(bfd_mach_o_close_and_cleanup): Likewise.
* mach-o.h (mach_o_data_struct): Add dwarf2_find_line_info.
(bfd_mach_o_find_nearest_line): Add declaration.
(bfd_mach_o_close_and_cleanup): Add declaration.

12 years agoCreate new section in NEWS for next release branch
Joel Brobecker [Tue, 13 Dec 2011 13:36:38 +0000 (13:36 +0000)] 
Create new section in NEWS for next release branch

gdb/ChangeLog:

        * NEWS: Create a new section for the next release branch.
        Rename the section of the current branch, now that it has
        been cut.

12 years ago * po/it.po: New Italian translation.
Nick Clifton [Tue, 13 Dec 2011 13:33:21 +0000 (13:33 +0000)] 
* po/it.po: New Italian translation.
* configure.in (ALL_LINGUAS): Add it.
* configure: Regenerate.

12 years agoRecord GDB 7.4 branch creation. Bump version number to 7.4.50.20111213-cvs.
gdbadmin [Tue, 13 Dec 2011 13:06:15 +0000 (13:06 +0000)] 
Record GDB 7.4 branch creation. Bump version number to 7.4.50.20111213-cvs.

12 years ago * doc/internals.texi (TC_FORCE_RELOCATION_SUB_SAME): Update
Nick Clifton [Tue, 13 Dec 2011 12:56:33 +0000 (12:56 +0000)] 
* doc/internals.texi (TC_FORCE_RELOCATION_SUB_SAME): Update
    to match code.

12 years agoMissing file from my previous commit.
Tristan Gingold [Tue, 13 Dec 2011 10:00:40 +0000 (10:00 +0000)] 
Missing file from my previous commit.

12 years agobfd/
Tristan Gingold [Tue, 13 Dec 2011 09:13:15 +0000 (09:13 +0000)] 
bfd/
2011-12-13  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_symtab_symbols): Make global.  Remove
prototype.
(bfd_mach_o_section_get_entry_size): Make global.
(bfd_mach_o_section_get_nbr_indirect): Likewise.
(bfd_mach_o_read_symtab_strtab): Likewise.
(struct bfd_mach_o_xlat_name): Move to mach-o.h
(bfd_mach_o_print_flags): Move to binutils/od-macho.c
(bfd_mach_o_get_name_of_null, bfd_mach_o_get_name): Likewise.
(bfd_mach_o_cpu_name, bfd_mach_o_filetype_name): Likewise.
(bfd_mach_o_header_flags_name): Likewise.
(bfd_mach_o_load_command_name): Likewise.
(bfd_mach_o_print_private_header): Likewise.
(bfd_mach_o_print_section_map, bfd_mach_o_print_section): Likwise.
(bfd_mach_o_print_segment, bfd_mach_o_print_dysymtab): Likewise.
(bfd_mach_o_print_dyld_info): Likewise.
(bfd_mach_o_print_private_bfd_data): Remove.
(bfd_mach_o_type_name): Make global.
(bfd_mach_o_section_attribute_name): Likewise.
* mach-o.h (bfd_mach_o_xlat_name): Added.
(bfd_mach_o_section_get_nbr_indirect)
(bfd_mach_o_section_get_entry_size)
(bfd_mach_o_read_symtab_symbols)
(bfd_mach_o_read_symtab_strtab)
(bfd_mach_o_section_attribute_name)
(bfd_mach_o_section_type_name): Likewise.
* mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data): Define.

binutils/
2011-12-13  Tristan Gingold  <gingold@adacore.com>

* od-macho.c: New file.
* objdump.h (objdump_private_desc_mach_o): Add.
* configure.in: Add Mach-O od_vectors.
* Makefile.am (CFILES): Add od-macho.c
* configure: Regenerate.
* Makefile.in: Regenerate.

12 years ago * ppc-opc.c (ISA_V2): Define and use for relevant BO field tests.
Alan Modra [Tue, 13 Dec 2011 08:19:02 +0000 (08:19 +0000)] 
* ppc-opc.c (ISA_V2): Define and use for relevant BO field tests.
(valid_bo_pre_v2, valid_bo_post_v2): New functions, extracted from..
(valid_bo): ..here.  When disassembling, accept either 'y' or 'at'
type encoding on second pass.
(powerpc_opcodes): Use ISA_V2 to enable branch insns rather than
POWER4.
* ppc-dis.c (print_insn_powerpc): Delete dialect_orig.  Instead
ignore deprecated on second pass.

12 years ago2011-12-13 Chung-Lin Tang <cltang@codesourcery.com>
Chung-Lin Tang [Tue, 13 Dec 2011 06:22:01 +0000 (06:22 +0000)] 
2011-12-13  Chung-Lin Tang  <cltang@codesourcery.com>

* elfxx-mips.c (mips_elf_calculate_relocation): Correct
R_MIPS16_HI16/R_MIPS16_LO16 handling of two cleared lower bits,
update comments.

12 years ago2011-12-13 Yao Qi <yao@codesourcery.com>
Yao Qi [Tue, 13 Dec 2011 01:26:56 +0000 (01:26 +0000)] 
2011-12-13  Yao Qi  <yao@codesourcery.com>

* tracepoint.c (trace_buffer_alloc): Replace magic numbers with
macros.
(upload_fast_traceframes, upload_fast_traceframes): Likewise.

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

12 years agodaily update
Alan Modra [Mon, 12 Dec 2011 23:00:05 +0000 (23:00 +0000)] 
daily update

12 years ago2011-12-12 Iain Sandoe <iains@gcc.gnu.org>
Tristan Gingold [Mon, 12 Dec 2011 13:45:47 +0000 (13:45 +0000)] 
2011-12-12  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o.c (bfd_mach_o_read_section_32): Null-terminate sectname.
(bfd_mach_o_read_section_64): Likewise.

12 years ago2011-12-11 Yao Qi <yao@codesourcery.com>
Yao Qi [Mon, 12 Dec 2011 02:11:45 +0000 (02:11 +0000)] 
2011-12-11  Yao Qi  <yao@codesourcery.com>

* gdb.trace/status-stop.exp: Skip it if target doesn't support trace.

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

12 years agodaily update
Alan Modra [Sun, 11 Dec 2011 23:00:05 +0000 (23:00 +0000)] 
daily update

12 years ago[Ada] improve message when cannot insert Ada exception catchpoint.
Joel Brobecker [Sun, 11 Dec 2011 17:38:17 +0000 (17:38 +0000)] 
[Ada] improve message when cannot insert Ada exception catchpoint.

gdb/ChangeLog:

        * ada-lang.c (ada_exception_support_info_sniffer): Improve
        error message.

12 years ago[Ada] Make the exception_support_info data per inferior.
Joel Brobecker [Sun, 11 Dec 2011 17:37:56 +0000 (17:37 +0000)] 
[Ada] Make the exception_support_info data per inferior.

The ada-lang module was using a static global called "exception_info"
for all inferiors.  But each inferior might be different, and thus
this patch makes this data per-inferior.

gdb/ChangeLog:

        * ada-lang.c (struct ada_inferior_data) [exception_info]:
        New field.
        (exception_info): Delete.
        (ada_exception_support_info_sniffer): Get exception_support_info
        data from our per-inferior data.  Adjust code accordingly.
        (ada_unhandled_exception_name_addr_from_raise): Likewise.
        (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
        (ada_executable_changed_observer): Delete.
        (_initialize_ada_language): Remove call to
        observer_attach_executable_changed.

12 years agoWarn if missing debug info for Ada exception catchpoints
Joel Brobecker [Sun, 11 Dec 2011 17:36:10 +0000 (17:36 +0000)] 
Warn if missing debug info for Ada exception catchpoints

This patch should help the user understand why the debugger is not
able to insert Ada exception catchpoints when the Ada runtime was
stripped of debugging info, as is often the case on many GNU/Linux
distros:

    (gdb) catch exception
    Your Ada runtime appears to be missing some debugging information.
    Cannot insert Ada exception catchpoint in this configuration.

gdb/ChangeLog:

        * ada-lang.c (ada_has_this_exception_support): Raise an error
        if we could find the Ada exception hook in the Ada runtime,
        but no debugging info for that hook.

gdb/testsuite/ChangeLog:

        * gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp: Adjust
        expected output for unsupported case.

12 years agoAda exception catchpoint support cleanup.
Joel Brobecker [Sun, 11 Dec 2011 17:35:34 +0000 (17:35 +0000)] 
Ada exception catchpoint support cleanup.

This patch cleans up a bit the way we detect which type of runtime
the program uses with respect to Ada exceptions. It also removes
an unnecessary check in ada_exception_sal which is already performed
by ada_exception_support_info_sniffer.

Some of the changes are preparation work for detecting the situation
where the Ada runtime is found, but lacking debugging info.

gdb/ChangeLog:

        * ada-lang.c (ada_has_this_exception_support): New function,
        extracted out of ada_exception_sal and ada_exception_sal.
        (ada_exception_support_info_sniffer): Simplify by using
        ada_has_this_exception_support.
        (ada_exception_sal): Replace unnecessary checks by assertions.
        Minor simplifications.

12 years ago PR binutils/13476
Dave Anglin [Sun, 11 Dec 2011 15:42:10 +0000 (15:42 +0000)] 
PR binutils/13476
* elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations to
R_PARISC_DPREL21L when not doing a shared link.  Likewise convert
R_PARISC_TLS_GD14R, R_PARISC_TLS_LDM14R and R_PARISC_TLS_IE14R to
R_PARISC_DPREL14R.  Handle R_PARISC_TLS_GD21L, R_PARISC_TLS_LDM21L
and R_PARISC_TLS_IE21L with R_PARISC_DLTIND21L.

12 years ago* breakpoint.c (update_global_location_list): Remove nested
Andrey Smirnov [Sun, 11 Dec 2011 03:04:45 +0000 (03:04 +0000)] 
* breakpoint.c (update_global_location_list): Remove nested
definition of `b'(-Wshadow).

12 years ago* breakpoint.c (insert_breakpoint_locations): Rename `error' to
Andrey Smirnov [Sun, 11 Dec 2011 02:53:28 +0000 (02:53 +0000)] 
* breakpoint.c (insert_breakpoint_locations): Rename `error' to
`error_flag'(-Wshadow).

12 years ago* bfd-target.c (target_bfd_reopen): Rename `bfd' to
Andrey Smirnov [Sun, 11 Dec 2011 02:46:54 +0000 (02:46 +0000)] 
* bfd-target.c (target_bfd_reopen): Rename `bfd' to
`abfd'(-Wshadow).

12 years ago* annotate.c (annotate_array_section_begin): Rename `index' to
Andrey Smirnov [Sun, 11 Dec 2011 02:44:15 +0000 (02:44 +0000)] 
* annotate.c (annotate_array_section_begin): Rename `index' to
`idx'(-Wshadow).

12 years ago* amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
Andrey Smirnov [Sun, 11 Dec 2011 02:41:31 +0000 (02:41 +0000)] 
* amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
`idx'(-Wshadow).

12 years ago* amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
Andrey Smirnov [Sun, 11 Dec 2011 02:34:26 +0000 (02:34 +0000)] 
* amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
`syscall' to `syscall_number'(-Wshadow).

12 years ago* ada-lang.c (remove_extra_symbols): Rename `remove' to
Andrey Smirnov [Sun, 11 Dec 2011 02:31:04 +0000 (02:31 +0000)] 
* ada-lang.c (remove_extra_symbols): Rename `remove' to
`remove_p'(-Wshadow).

This page took 0.069722 seconds and 4 git commands to generate.