OSDN Git Service
cgf [Mon, 21 Nov 2011 19:13:29 +0000 (19:13 +0000)]
* sigproc.cc (remove_proc): Don't do busy loop when execing since thread could
have been terminated prior to setting flag.
* signal.cc (sigwaitinfo): Zero event before closing to signal other threads
that it is no longer available.
devans [Mon, 21 Nov 2011 17:34:16 +0000 (17:34 +0000)]
* gdb.cp/nextoverthrow.exp: Skip test if debug info for
_Unwind_DebugHook is missing.
dj [Mon, 21 Nov 2011 17:10:31 +0000 (17:10 +0000)]
* config/rl78-defs.h (rl78_error): Add "const".
* config/rl78-parse.y (rl78_error): Likewise.
kcy [Mon, 21 Nov 2011 16:54:28 +0000 (16:54 +0000)]
2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
* osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
the case where osdata->items is empty. Rename column names to a
canonical form to avoid problems with unusual column names.
amodra [Mon, 21 Nov 2011 13:22:41 +0000 (13:22 +0000)]
* Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
source.
(eelf64ppc_fbsd.c): Add rules to build this file.
* Makefile.in: Regenerate.
* configure.tgt: Add target definition for powerpc64-*-freebsd*.
Adjust powerpc-*-freebsd*.
* emultempl/ppc64elf.em: Add a mechanism to override the default
value of 0 for plt_static_chain.
* emulparams/elf32ppc_fbsd.sh (OUTPUT_FORMAT): Override the default.
* emulparams/elf64ppc_fbsd.sh (OUTPUT_FORMAT): Likewise.
(DEFAULT_PLT_STATIC_CHAIN): Define to 1.
amodra [Mon, 21 Nov 2011 13:19:32 +0000 (13:19 +0000)]
* config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd.
amodra [Mon, 21 Nov 2011 13:18:06 +0000 (13:18 +0000)]
* config.bfd: Add vectors for powerpc and powerpc64-freebsd.
* configure.in (TDEFINES): Add rules for powerpc*-freebsd.
* configure: Regenerate.
* elf32-ppc.c: Add powerpc-freebsd definitions.
* elf64-ppc.c: Add powerpc64-freebsd definitions.
* targets.c: Add bits for powerpc and powerpc64-freebsd.
macro [Mon, 21 Nov 2011 11:18:28 +0000 (11:18 +0000)]
* gas/mips/micromips@24k-branch-delay-1.d: New test.
* gas/mips/micromips@24k-triple-stores-1.d: New test.
* gas/mips/micromips@24k-triple-stores-2.d: New test.
* gas/mips/micromips@24k-triple-stores-3.d: New test.
* gas/mips/micromips@24k-triple-stores-4.d: New test.
* gas/mips/micromips@24k-triple-stores-5.d: New test.
* gas/mips/micromips@24k-triple-stores-6.d: New test.
* gas/mips/micromips@24k-triple-stores-7.d: New test.
* gas/mips/micromips@24k-triple-stores-8.d: New test.
* gas/mips/micromips@24k-triple-stores-9.d: New test.
* gas/mips/micromips@24k-triple-stores-10.d: New test.
* gas/mips/micromips@24k-triple-stores-11.d: New test.
* gas/mips/24k-triple-stores-1.s: Adjust for microMIPS
disassembly.
* gas/mips/24k-triple-stores-2.s: Likewise.
* gas/mips/24k-triple-stores-3.s: Likewise.
* gas/mips/24k-triple-stores-4.s: Likewise.
* gas/mips/24k-triple-stores-5.s: Likewise.
* gas/mips/24k-triple-stores-6.s: Likewise.
* gas/mips/24k-triple-stores-7.s: Likewise.
* gas/mips/24k-triple-stores-8.s: Likewise.
* gas/mips/24k-triple-stores-9.s: Likewise.
* gas/mips/24k-triple-stores-10.s: Likewise.
* gas/mips/24k-triple-stores-11.s: Likewise.
* gas/mips/mips.exp: Run the new tests.
macro [Mon, 21 Nov 2011 11:12:40 +0000 (11:12 +0000)]
* gas/mips/micromips@loc-swap-2.d: Correct test case.
corinna [Mon, 21 Nov 2011 09:16:23 +0000 (09:16 +0000)]
* faq-using.xml (faq.using.weirdchars): Rewrite.
qiyao [Mon, 21 Nov 2011 02:58:39 +0000 (02:58 +0000)]
gdb/
* MAINTAINERS (Write After Approval): Keep list in alphabetical order.
shebs [Mon, 21 Nov 2011 00:43:48 +0000 (00:43 +0000)]
Fix a 32-bit compile error in the previous checkin
gdbadmin [Mon, 21 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
shebs [Sun, 20 Nov 2011 23:59:46 +0000 (23:59 +0000)]
* NEWS: Mention tracepoint additions.
* breakpoint.h (struct tracepoint): New field traceframe_usage.
* breakpoint.c (print_one_breakpoint_location): Identify
tracepoints as such when reporting hit counts, report
trace buffer usage.
(create_tracepoint_from_upload): Copy status info.
* tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
add fields user_name, notes, start_time, stop_time.
(struct uploaded_tp): Add fields hit_count, traceframe_usage.
* tracepoint.c (trace_user): New global.
(trace_notes): New global.
(trace_stop_notes): New global.
(start_tracing): Add argument and trace note handling.
(stop_tracing): Ditto.
(trace_start_command): Add notes argument.
(trace_stop_command): Ditto.
(trace_status_command): Report additional status info.
(trace_status_mi): Similarly.
(trace_save): Update, record tracepoint status.
(set_disconnected_tracing): Call target method directly.
(send_disconnected_tracing_value): Remove.
(set_trace_user): New function.
(set_trace_notes): New function.
(set_trace_stop_notes): New function.
(parse_trace_status): Handle additional status.
(parse_tracepoint_status): New function.
(parse_tracepoint_definition): Call it.
(tfile_get_tracepoint_status): New function.
(init_tfile_ops): Use it.
(_initialize_tracepoint): Add new setshows.
* target.h (struct target_ops): New methods to_get_tracepoint_status
and to_set_trace_notes.
(target_get_tracepoint_status): New macro.
(target_set_trace_notes): New macro.
* target.c (update_current_target): Add new methods.
* remote.c (remote_get_tracepoint_status): New function.
(remote_set_trace_notes): New function.
(init_remote_ops): Add them.
* mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
(mi_cmd_trace_stop): Ditto.
* tracepoint.c (struct tracepoint): New field traceframe_usage.
(tracing_start_time): New global.
(tracing_stop_time): New global.
(tracing_user_name): New global.
(tracing_notes): New global.
(tracing_stop_note): New global.
(cmd_qtstart): Set traceframe_usage, start_time.
(stop_tracing): Set stop_time.
(cmd_qtstatus): Report additional status.
(cmd_qtp): New function.
(handle_tracepoint_query): Call it.
(cmd_qtnotes): New function.
(handle_tracepoint_general_set): Call it.
(get_timestamp): Rename from tsv_get_timestamp.
* gdb.texinfo (Starting and Stopping Trace Experiments): Document
note-related options and variables.
(Tracepoint Packets): Document packet changes.
* gdb.trace/tstatus.exp: New.
* gdb.trace/actions.c: Include string.h.
amodra [Sun, 20 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
sanjoyd [Sun, 20 Nov 2011 09:20:59 +0000 (09:20 +0000)]
gdb/doc/
* gdb.texinfo (JIT Interface): Add documentation on writing and
usind JIT debug info readers.
(Custom Debug Info, Using JIT Debug Info Readers, Writing JIT
Debug Info Readers): New nodes.
sanjoyd [Sun, 20 Nov 2011 09:18:48 +0000 (09:18 +0000)]
gdb/
* jit.c: Include regcache.h.
(jit_gdbarch_data, jit_frame_unwind): New static variables.
(jit_unwind_reg_set_impl, free_reg_value_impl)
(jit_unwind_reg_get_impl, jit_frame_sniffer)
(jit_frame_unwind_stop_reason, jit_frame_this_id)
(jit_frame_prev_register, jit_dealloc_cache)
(jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
(jit_inferior_init): Prepend (new) pseudo unwinder by calling
jit_prepend_unwinder.
(_initialize_jit): Register new gdbarch data jit_gdbarch_data.
sanjoyd [Sun, 20 Nov 2011 09:14:45 +0000 (09:14 +0000)]
gdb/
* jit.c: Include block.h, dictionary.h and frame-unwind.h.
(add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
(jit_symtab_open_impl, compare_block, jit_block_open_impl)
(jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
(finalize_symtab, jit_object_close_impl)
(jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
(free_objfile_data): New functions.
(_initialize_jit): Register jit_objfile_data with a proper cleanup
function.
sanjoyd [Sun, 20 Nov 2011 09:09:56 +0000 (09:09 +0000)]
gdb/
* jit.c: Include gdb-dlfcn.h.
(loaded_jit_reader, reader_init_fn_sym): New static variables.
(jit_reader_load, jit_reader_load_command)
(jit_reader_unload_command): New functions.
(_initialize_jit): Add commands "jit-reader-load" and
"jit-reader-unload".
sanjoyd [Sun, 20 Nov 2011 08:59:56 +0000 (08:59 +0000)]
gdb/
* Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
* config.in: Add new #define HAVE_LIBDL.
* configure.ac: Add check for -ldl.
* configure: Re-generated by autoconf.
* gdb-dlfcn.c: New file.
* gdb-dlfcn.h: New file.
sanjoyd [Sun, 20 Nov 2011 08:53:24 +0000 (08:53 +0000)]
gdb/
* config.in: Add new #defines: JIT_READER_DIR and
JIT_READER_DIR_RELOCATABLE.
* configure.ac: New GDB directory entry for jit-reader-dir.
* configure: Re-generated by autoconf.
* jit.c: New static variable: const char *jit_reader_dir.
(_initialize_jit): Relocate jit_reader_dir.
sanjoyd [Sun, 20 Nov 2011 08:30:57 +0000 (08:30 +0000)]
gdb/
* Makefile.in: Add jit-reader.h as a header. Have it installed in
$(includedir)/gdb.
* configure.ac: Generate a correct value for TARGET_PTR for
jit-reader.h. Tell configure to generate jit-reader.h from
jit-reader.in.
* configure: Re-generated by autoconf.
* jit-reader.in: New file.
* jit.c: Include jit-reader.h.
sanjoyd [Sun, 20 Nov 2011 08:09:49 +0000 (08:09 +0000)]
gdb/
* MAINTAINERS (Write After Approval): Add myself to the list.
gdbadmin [Sun, 20 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 19 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Sat, 19 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 18 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update
uweigand [Fri, 18 Nov 2011 20:03:39 +0000 (20:03 +0000)]
* findvar.c (read_frame_register_value): Respect value_offset
of the register value. Remove big-endian special case.
corinna [Fri, 18 Nov 2011 17:38:03 +0000 (17:38 +0000)]
* shared.cc (get_shared_parent_dir): Use global shared_parent_dir
instead of local dir variable and create handle not inheritable to
avoid accumulating stray handles in child processes.
(get_session_parent_dir): Ditto with session_parent_dir variable.
tromey [Fri, 18 Nov 2011 15:38:58 +0000 (15:38 +0000)]
PR build/7196:
* remote.c (putpkt_for_catch_errors): New function.
(remote_kill): Use it.
corinna [Fri, 18 Nov 2011 11:39:31 +0000 (11:39 +0000)]
* faq-using.xml (faq.using.converting-paths): Remove reference to
cygwin.bat.
(faq.using.emacs): Drop "CYGWIN=tty" setting.
* pathnames.sgml (pathnames-posixdevices): Align list of device names
with changes in 1.7.10.
* setup2.sgml (setup-env-ov): Drop text which assumes that Cygwin
processes are started in console window. Align wording to lessened
relevance of $CYGWIN. Don't use dropped CYGWIN setting in example.
(setup-locale-how): Put using console and Cygwin.bat file into
perspective.
(setup-locale-problems): Ditto.
qiyao [Fri, 18 Nov 2011 01:21:33 +0000 (01:21 +0000)]
gdb/
* breakpoint.c (create_breakpoint): Produce query message according to
breakpoint's type.
Allocate tracepoint per correct type.
Don't check SALs for pending fast tracepoints.
* tracepoint.c (process_tracepoint_on_disconnect): New.
(disconnect_tracing): Call process_tracepoint_on_disconnect.
gdb/doc/
* gdb.texinfo (Create and Delete Tracepoints): Mention pending
tracepoint.
gdb/testsuite/
* gdb.trace/pending.exp: New.
* gdb.trace/pending.c: New.
* gdb.trace/pendshr1.c: New.
* gdb.trace/pendshr2.c: New.
* gdb.trace/change-loc.exp (tracepoint_change_loc_1): Check one
tracepoint location becomes pending.
(tracepoint_change_loc_2): New.
qiyao [Fri, 18 Nov 2011 01:03:50 +0000 (01:03 +0000)]
* breakpoint.c (install_breakpoint): Add one more parameter so that
update_global_location_list is called conditionally.
(create_fork_vfork_event_catchpoint): Update.
(create_syscall_event_catchpoint): Update.
(create_breakpoint_sal): Update.
(create_breakpoint_sal): Update. Call do_cleanups before
install_breakpoint.
* ada-lang.c (create_ada_exception_catchpoint): Update.
* breakpoint.h (install_breakpoint): Update declaration.
gdbadmin [Fri, 18 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Thu, 17 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
corinna [Thu, 17 Nov 2011 22:08:13 +0000 (22:08 +0000)]
* shared.cc (shared_info::create): Open global shared data section
non-inheritable to avoid accumulating stray handles in child processes.
sterling [Thu, 17 Nov 2011 17:46:54 +0000 (17:46 +0000)]
2011-11-17 Sterling Augustine <saugustine@google.com>
* script.cc (script_include_directive): Implement.
(read_script_file): New local variables name and search_path. Update
comment. Call IS_ABSOLUTE_PATH and Dirsearch::find_file_in_dir_list.
* dirsearch.h (Dirsearch::find_file_in_dir_list): Declare new method.
* dirsearch.cc (Dirsearch::find_file_in_dir_list): Implement it.
davem [Thu, 17 Nov 2011 04:24:56 +0000 (04:24 +0000)]
* config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8.
amodra [Thu, 17 Nov 2011 00:19:58 +0000 (00:19 +0000)]
* elf32-arm.c (elf32_thumb_to_arm_stub): Sync message so that it
needs to be translated only once.
gdbadmin [Thu, 17 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Wed, 16 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
uweigand [Wed, 16 Nov 2011 18:30:09 +0000 (18:30 +0000)]
* spu-tdep.c (spu_return_value): Fix handling of
TYPE_CALLING_CONVENTION annotation.
uweigand [Wed, 16 Nov 2011 18:29:32 +0000 (18:29 +0000)]
* skip.c (skip_function_command): Work around uninitialized
variable warning.
davem [Wed, 16 Nov 2011 18:16:27 +0000 (18:16 +0000)]
* lib/gdb.exp (can_single_step_to_signal_handler): Return zero when
target is sparc*-*-linux*
davem [Wed, 16 Nov 2011 18:14:52 +0000 (18:14 +0000)]
* utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
'tv_usec' to long for printf since these fields have a type which
varies.
macro [Wed, 16 Nov 2011 12:34:33 +0000 (12:34 +0000)]
gas/
* config/tc-mips.c (macro): Fix unsupported opcode message
capitalization.
(mips_ip, mips16_ip): Likewise.
gas/testsuite/
* gas/mips/mips-double-float-flag.l: Adjust according to
unsupported opcode message capitalization fix.
* gas/mips/mips-hard-float-flag.l: Likewise.
* gas/mips/mips-macro-ill-nofp.l: Likewise.
* gas/mips/mips-macro-ill-sfp.l: Likewise.
* gas/mips/mips1-fp.l: Likewise.
* gas/mips/mips16e-64.l: Likewise.
* gas/mips/mips32-sf32.l: Likewise.
* gas/mips/mips32r2-fp32.l: Likewise.
* gas/mips/mips4-branch-likely.l: Likewise.
* gas/mips/mips4-fp.l: Likewise.
* gas/mips/octeon-ill.l: Likewise.
macro [Wed, 16 Nov 2011 12:29:56 +0000 (12:29 +0000)]
* config/tc-mips.c (ISA_SUPPORTS_MCU_ASE): Also set if microMIPS
mode.
macro [Wed, 16 Nov 2011 12:27:06 +0000 (12:27 +0000)]
* config/tc-mips.c (macro_build_jalr): Reverse a negative
conditional.
(mips_ip): Likewise.
macro [Wed, 16 Nov 2011 12:24:08 +0000 (12:24 +0000)]
* micromips-opc.c (micromips_opcodes): Use NODS rather than TRAP
for "alnv.ps".
macro [Wed, 16 Nov 2011 12:21:33 +0000 (12:21 +0000)]
* config/tc-mips.c (mips_cpu_info_table): Add "m14ke" and
"m14kec".
* doc/c-mips.texi (MIPS architecture options): Add "m14ke" and
"m14kec" to the list of -march options.
macro [Wed, 16 Nov 2011 12:12:20 +0000 (12:12 +0000)]
* elf64-mips.c (mips_elf64_howto_table_rela): Set src_mask to
zero throughout.
(mips16_elf64_howto_table_rela): Likewise.
(micromips_elf64_howto_table_rela): Likewise.
* elfn32-mips.c (elf_mips_howto_table_rela): Likewise.
(elf_mips16_howto_table_rela): Likewise.
(elf_micromips_howto_table_rela): Likewise.
cgf [Wed, 16 Nov 2011 04:09:30 +0000 (04:09 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
(cygheap_exec_info::nchildren): Move from child_info_spawn.
(cygheap_exec_info::cchildren): Ditto.
(cygheap_exec_info::record_children): Declare new function.
(cygheap_exec_info::reattach_children): Ditto.
(cygheap_exec_info::alloc): Ditto.
(child_info_spawn::nchildren): Move to cygheap_exec_info.
(child_info_spawn::cchildren): Ditto.
* sigproc.cc (cygheap_exec_info::alloc): Define new function.
(child_info_spawn::cleanup): Accommodate move of children info to
cygheap_exec_info.
(cygheap_exec_info::record_children): Define new function.
(cygheap_exec_info::reattach_children): Ditto.
(child_info_spawn::record_children): Use cygheap_exec_info function to
accomplish this task.
(child_info_spawn::reattach_children): Ditto.
* spawn.cc (child_info_spawn::worker): Allocate moreinfo using
cygheap_exec_info::alloc.
* dcrt0.cc (child_info_fork::alloc_stack_hard_way): Use abort for the error to
avoid a retry.
gdbadmin [Wed, 16 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
devans [Tue, 15 Nov 2011 23:12:29 +0000 (23:12 +0000)]
* buildsym.c (add_symbol_to_list): Delete outdated comment.
amodra [Tue, 15 Nov 2011 23:00:04 +0000 (23:00 +0000)]
daily update
muller [Tue, 15 Nov 2011 22:04:43 +0000 (22:04 +0000)]
Obvious: Fix error in name of concerned macro ETIMEDOUT
pkoning [Tue, 15 Nov 2011 21:17:40 +0000 (21:17 +0000)]
* gdb.python/py-type.exp: New testcases for exceptions on scalar types
pkoning [Tue, 15 Nov 2011 21:17:02 +0000 (21:17 +0000)]
* python/py-type.c (typy_get_composite): New function.
(typy_nonzero): New function.
(typy_values): Rename from typy_fields.
(typy_fields): New function.
(typy_length): Raise exception if not struct, union, or enum type.
(typy_getitem): Ditto.
(typy_has_key): Ditto.
(typy_make_iter): Ditto.
schwab [Tue, 15 Nov 2011 18:22:26 +0000 (18:22 +0000)]
* ld/ldlang.c (insert_pad): Change alignment_needed argument to
bfd_size_type.
(size_input_section): Change alignment_needed varible to
bfd_size_type.
* ld/ldlang.h (lang_padding_statement_type): Change size field to
bfd_size_type.
devans [Tue, 15 Nov 2011 17:39:56 +0000 (17:39 +0000)]
* NEWS: Mention new parameter basenames-may-differ.
* dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
! basenames_may_differ.
* psymtab.c (lookup_partial_symtab): Ditto.
* symtab.c (lookup_symtab): Ditto.
(basenames_may_differ): New global.
(_initialize_symtab): New parameter basenames-may-differ.
* symtab.h (basenames_may_differ): Declare.
doc/
* gdb.texinfo (Files): Document basenames-may-differ.
luisgpm [Tue, 15 Nov 2011 13:17:04 +0000 (13:17 +0000)]
2011-11-15 Pedro Alves <pedro@codesourcery.com>
Luis Machado <lgustavo@codesourcery.com>
* auxv.c: Include observer.h.
(auxv_inferior_data_cleanup): New.
(invalidate_auxv_cache_inf): New.
(invalidate_auxv_cache): New.
(get_auxv_inferior_data): New.
(auxv_inferior_data): New static global.
(auxv_info): New structure.
(target_auxv_search): Use get_auxv_inferior_data instead of
target_read_alloc and don't free cached buffers.
(fprint_target_auxv): Likewise
(_initialize_auxv): Register per-inferior auxv cache and register
observers to invalidate auxv cache when needed.
macro [Tue, 15 Nov 2011 13:08:16 +0000 (13:08 +0000)]
* write.c (dump_section_relocs): Don't convert PC-relative relocs
that have an in-place addend narrower than the addresses used.
macro [Tue, 15 Nov 2011 13:01:20 +0000 (13:01 +0000)]
Fix a typo.
amodra [Tue, 15 Nov 2011 11:33:56 +0000 (11:33 +0000)]
* elflink.c (_bfd_elf_create_got_section): Replace
bfd_make_section_with_flags with bfd_make_section_anyway_with_flags.
(_bfd_elf_link_create_dynamic_sections): Likewise.
* elf32-ppc.c (ppc_elf_create_glink): Likewise.
(ppc_elf_create_dynamic_sections): Likewise.
devans [Tue, 15 Nov 2011 05:06:28 +0000 (05:06 +0000)]
Make "!" an alias for "shell".
* NEWS: Add mention.
* cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
adding "!" command, always add it.
* cli/cli-decode.c (find_command_name_length): Recognize "!" as a
command of length one.
doc/
* gdb.texinfo (Shell Commands): Document "!".
testsuite/
* gdb.base/shell.exp: New file.
mkuvyrkov [Tue, 15 Nov 2011 03:23:55 +0000 (03:23 +0000)]
* elfxx-mips.c (mips_n64_exe_plt0_entry): Use 64-bit move.
qiyao [Tue, 15 Nov 2011 01:07:44 +0000 (01:07 +0000)]
Fix broken changelog entry.
gdbadmin [Tue, 15 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Mon, 14 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
shebs [Mon, 14 Nov 2011 20:07:20 +0000 (20:07 +0000)]
2011-11-14 Stan Shebs <stan@codesourcery.com>
Kwok Cheung Yeung <kcy@codesourcery.com>
* NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
* i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
the minimum instruction size for fast tracepoints.
* target.h (struct target_ops): Add new method
to_get_min_fast_tracepoint_insn_len.
(target_get_min_fast_tracepoint_insn_len): New.
* target.c (update_current_target): Set up new target operation.
* remote.c (remote_write_bytes_aux): Fix typo.
(remote_get_min_fast_tracepoint_insn_len): New.
(init_remote_ops): Initialize new field.
* gdb.texinfo (Create and Delete Tracepoints): Describe what is
needed to get shorter fast tracepoints.
(Tracepoint Packets): Document new qTMinFTPILen packet.
* linux-x86-low.c (small_jump_insn): New.
(i386_install_fast_tracepoint_jump_pad): Add arguments for
trampoline and error message, build a trampoline and issue a small
jump instruction to it.
(x86_install_fast_tracepoint_jump_pad): Add arguments for
trampoline and error message.
(x86_get_min_fast_tracepoint_insn_len): New.
(the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
* linux-low.h (struct linux_target_ops): Add arguments to
install_fast_tracepoint_jump_pad operation, add new operation.
* linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
arguments.
(linux_get_min_fast_tracepoint_insn_len): New function.
(linux_target_op): Add new operation.
* tracepoint.c (gdb_trampoline_buffer): New IPA variable.
(gdb_trampoline_buffer_end): Ditto.
(gdb_trampoline_buffer_error): Ditto.
(struct ipa_sym_addresses): Add fields for new IPA variables.
(symbol_list): Add entries for new IPA variables.
(struct tracepoint): Add fields to hold the address range of the
trampoline used by the tracepoint.
(trampoline_buffer_head): New static variable.
(trampoline_buffer_tail): Ditto.
(claim_trampoline_space): New function.
(have_fast_tracepoint_trampoline_buffer): New function.
(clone_fast_tracepoint): Fill in trampoline fields of tracepoint
structure.
(install_fast_tracepoint): Ditto, also add error buffer argument.
(cmd_qtminftpilen): New function.
(handle_tracepoint_query): Add response to qTMinFTPILen packet.
(fast_tracepoint_from_trampoline_address): New function.
(fast_tracepoint_collecting): Handle trampoline as part of jump
pad space.
(set_trampoline_buffer_space): New function.
(initialize_tracepoint): Initialize new IPA variables.
* target.h (struct target_ops): Add arguments to
install_fast_tracepoint_jump_pad operation, add new
get_min_fast_tracepoint_insn_len operation.
(target_get_min_fast_tracepoint_insn_len): New.
(install_fast_tracepoint_jump_pad): Add arguments.
* server.h (IPA_BUFSIZ): Define.
* linux-i386-ipa.c: Include extra header files.
(initialize_fast_tracepoint_trampoline_buffer): New function.
(initialize_low_tracepoint): Call it.
* server.h (set_trampoline_buffer_space): Declare.
(claim_trampoline_space): Ditto.
(have_fast_tracepoint_trampoline_buffer): Ditto.
* gdb.trace/ftrace.c: New.
* gdb.trace/ftrace.exp: New.
cgf [Mon, 14 Nov 2011 18:22:44 +0000 (18:22 +0000)]
* pinfo.cc (_pinfo::dup_proc_pipe): Fatalize a warning when debugging.
cgf [Mon, 14 Nov 2011 17:31:19 +0000 (17:31 +0000)]
* strace.cc (handle_output_debug_string): Disable code which attempted to add
stuff in between '****' blocks since they no longer are the first thing output
by an straced process.
tromey [Mon, 14 Nov 2011 16:10:11 +0000 (16:10 +0000)]
* tracepoint.c (encode_actions_1): Use the location's gdbarch.
(encode_actions): Likewise.
qiyao [Mon, 14 Nov 2011 15:18:48 +0000 (15:18 +0000)]
gdb/
* remote.c (struct remote_state): <install_in_trace> new field.
(PACKET_InstallInTrace): New enum value.
(remote_install_in_trace_feature): Support InstallInTrace.
(remote_supports_install_in_trace): Likewise.
(remote_protocol_features): Likewise.
(_initialize_remote): Likewise.
(remote_can_download_tracepoint): New.
* target.h (struct target): New field
`to_can_download_tracepoint'.
(target_can_download_tracepoint): New macro.
* target.c (update_current_target): Update.
* breakpoint.h (struct bp_location): Add comment on field
`duplicate'.
(should_be_inserted): Don't differentiate breakpoint and tracepoint.
(remove_breakpoints): Don't remove tracepoints.
(tracepoint_locations_match ): New.
(breakpoint_locations_match): Call it.
(disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
(download_tracepoint_locations): New.
(update_global_location_list): Call it.
* tracepoint.c (find_matching_tracepoint): Delete.
(find_matching_tracepoint_location): Renamed from
find_matching_tracepoint. Return bp_location rather than
tracepoint.
(merge_uploaded_tracepoints): Set `inserted' field to 1 if
tracepoint is found.
gdb/doc/
* gdb.texinfo (Create and Delete Tracepoints): Describe changed
behavior of tracepoint.
(General Query Packets): New feature InstallInTrace.
(Remote Configuration): Document "set remote
install-in-trace-packet".
gdb/gdbserver/
* server.c (handle_query): Handle InstallInTrace for qSupported.
* tracepoint.c (add_tracepoint): Sort list.
(install_tracepoint, download_tracepoint): New.
(cmd_qtdp): Call them to install and download tracepoints.
(sort_tracepoints): Removed.
(cmd_qtstart): Update.
gdb/testsuite/
* gdb.trace/change-loc-1.c: New.
* gdb.trace/change-loc-2.c: New.
* gdb.trace/change-loc.c: New.
* gdb.trace/change-loc.exp: New.
* gdb.trace/change-loc.h: New.
* gdb.trace/trace-break.c (marker): Define new symbol.
* gdb.trace/trace-break.exp (break_trace_same_addr_5):
New.
(break_trace_same_addr_6): New.
qiyao [Mon, 14 Nov 2011 14:38:41 +0000 (14:38 +0000)]
* mem-break.c (inc_ref_fast_tracepoint_jump): New.
* mem-break.h: Declare.
* tracepoint.c (cmd_qtstart): Move some code to ...
(clone_fast_tracepoint, install_fast_tracepoint): ... here.
New.
(download_tracepoints): Move some code to ...
(download_tracepoint_1): ... here. New.
qiyao [Mon, 14 Nov 2011 14:11:35 +0000 (14:11 +0000)]
* target.h (struct target): <to_download_tracepoint> Change type
of parameter from tracepoint to bp_location.
* target.c (update_current_target): Update.
* tracepoint.c (start_tracing): Update.
* remote.c (remote_download_tracepoint): Remove loop for each location
of a tracepoint.
macro [Mon, 14 Nov 2011 13:43:21 +0000 (13:43 +0000)]
gas/
* config/tc-mips.c (can_swap_branch_p): Exclude microMIPS
variant frags too.
gas/testsuite/
* gas/mips/relax-swap3.d: New test.
* gas/mips/mips16@relax-swap3.d: Likewise.
* gas/mips/micromips@relax-swap3.d: Likewise.
* gas/mips/relax-swap3.s: New test source.
* gas/mips/mips.exp: Run the new tests.
macro [Mon, 14 Nov 2011 13:11:57 +0000 (13:11 +0000)]
* i386-nat.c (i386_insert_hw_breakpoint): Call
i386_update_inferior_debug_regs.
(i386_remove_hw_breakpoint): Likewise.
qiyao [Mon, 14 Nov 2011 03:00:59 +0000 (03:00 +0000)]
* breakpoint.c (init_raw_breakpoint): Call
add_location_to_breakpoint to replace duplicated code.
(add_location_to_breakpoint): Adjust the breakpoint's
address prior to allocating a location.
cgf [Mon, 14 Nov 2011 01:45:41 +0000 (01:45 +0000)]
Remove erroneously checked-in debugging statements.
* cygheap.cc (cygheap_fixup_in_child): Here.
* debug.cc (delete_handle): Here.
* sigproc.cc (child_info_spawn::cleanup): Here.
* spawn.cc (child_info_spawn::worker): Here.
cgf [Mon, 14 Nov 2011 01:37:02 +0000 (01:37 +0000)]
update copyrights
cgf [Mon, 14 Nov 2011 01:29:45 +0000 (01:29 +0000)]
Throughout use "have_execed" macro rather than "hExeced" global handle.
Throughout rename _PROC_* to _CH_*.
* child_info.h: Include "pinfo.h".
(child_info_types): Rename _PROC_* -> _CH_* to avoid confusion with similarly
named constants.
(_PROC_*): Delete unneeded aliases.
(PROC_*): Ditto.
(CURR_CHILD_INFO_MAGIC): Ditto.
(cchildren): Define using "pinfo_minimal".
(child_info::set_saw_ctrl_c): Move to
(child_info_spawn::set_saw_ctrl_c): Here.
(child_info_spawn::lock): New field.
(child_info_spawn::hExeced): Ditto.
(child_info_spawn::ev): Ditto.
(child_info_spawn::~child_info_spawn): Move to sigproc.cc.
(child_info_spawn::child_info_spawn): Ditto.
(child_info_spawn::cleanup): Declare new function.
(child_info_spawn::set_saw_ctrl_c): Move to this class. Set flag only when
execed and return true when we have set the flag.
(child_info_spawn::child_info_spawn::signal_myself_exited): New function.
(child_info_spawn::wait_for_myself): Ditto.
(child_info_spawn::has_execed_cygwin): Ditto.
(child_info_spawn::has_execed): Ditto. Replaces "hExeced" test.
(child_info_spawn::operator HANDLE&): New operator.
(child_info_spawn::worker): Define old "spawn_guts" as class member.
(ch_spawn): Declare.
(have_execed): Define.
(have_execed_cygwin): Ditto.
* cygheap.h: Update comment.
* dcrt0.cc (get_cygwin_startup_info): Use _CH_* enums.
(child_info_spawn::handle_spawn): Ditto.
(dll_crt0_0): Ditto.
(multiple_cygwin_problem): Ditto.
* exceptions.cc (chExeced): Delete obsolete declaration.
(ctrl_c_handler): Reference set_saw_ctrl_c via new ch_spawn global.
* globals.cc (hExeced): Delete.
* pinfo.cc (pinfo::thisproc): Refer to cygheap as ::cygheap for consistency in
handle naming when -DDEBUGGING.
(pinfo::init): Accommodate case where myself.h is known but h0 is passed in.
(pinfo::pinfo): New constructor for setting up a pinfo passed in by previous
exec'or.
(pinfo::proc_waiter): Don't handle subprocess if we're in the process of
exiting due to an exec of a cygwin process. Don't close rd_proc_pipe here.
Close it when we actually are finished with the process. Use new
ch_spawn.signal_myself_exited function to let exec stub know that subprocess
has exited.
(pinfo::wait): Clarify debugging output.
(pinfo::release): Use "close_h" to close all handles to avoid races.
(winpids::add): Assume that elements of the array do not need to be zeroed and
are properly initialized or suffer problems on pinfo::release. Don't close
hProcess since release does that now.
* pinfo.h: Update comment.
(pinfo_minimal): Move some elements from pinfo here so that child_info_spawn
can use them.
(pinfo): Inherit from pinfo_minimal.
(pinfo::pinfo): Modify to accommodate new pinfo_minimal.
(pinfo::allow_remove): New function.
* sigproc.cc (proc_subproc): Use boolean values for true/false. Implement
PROC_EXEC_CLEANUP.
(proc_terminate): Set ppid = 1 since the procs list will only be iterated when
the process has not execed. Don't do any cleanup here since it is now handled
in pinfo::release.
(sigproc_init): Initialize sync_proc_subproc earlier.
(child_info::child_info): Assume that all important fields are properly
initialized and avoid memset().
(child_info_spawn::child_info_spawn): Specifically test for execing and then
set up appropriate fields in the struct.
(child_info_spawn::cleanup): Define new function.
(child_info_spawn::record_children): Specifically test for being execed here.
Fill in pinfo_minimal part of children array.
(child_info_spawn::reattach_children): Use constructor to duplicate information
for previous exec'or. Add more debugging output.
(remove_proc): Force deletion of thread when exiting due to exec. Rely on
pinfo::cleanup in release.
* sigproc.h (PROC_EXEC_CLEANUP): New enum.
(PROC_DETACHED_CHILD): Delete.
* spawn.cc (chExeced): Delete.
(child_info_spawn::worker): Rename from spawn_guts. Use elements of
child_info_spawn throughout rather than ch.whatever. Use ::cygheap to refer to
global rather than element of child_info. Use wait_for_myself() rather than
waitpid(). Call child_info_spawn::cleanup on function return.
(spawnve): Reflect movement of spawn_guts functionality into
child_info_spawn::worker.
* syscalls.cc (popen): Ditto.
* winsup.h (spawn_guts): Delete declaration.
gdbadmin [Mon, 14 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sun, 13 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Sun, 13 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 12 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update
ratmice [Sat, 12 Nov 2011 17:01:07 +0000 (17:01 +0000)]
Move info definitions command to an info macro option.
gdbadmin [Sat, 12 Nov 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 11 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update
sterling [Fri, 11 Nov 2011 22:29:43 +0000 (22:29 +0000)]
2011-11-11 Sterling Augustine <saugustine@google.com>
* yyscript.y (section_cmd): Add support for INCLUDE directive.
(file_or_sections_cmd): Likewise.
dougkwan [Fri, 11 Nov 2011 21:49:36 +0000 (21:49 +0000)]
2011-11-11 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::do_make_elf_object): Allow executable also
if --just-symbols is given.
schwab [Fri, 11 Nov 2011 20:50:37 +0000 (20:50 +0000)]
* binutils/readelf.c (process_program_headers): Fix typo printing p_memsz
field.
kseitz [Fri, 11 Nov 2011 19:53:12 +0000 (19:53 +0000)]
PR gdb/12843
* gdb.base/linespecs.exp: New file.
kseitz [Fri, 11 Nov 2011 19:52:45 +0000 (19:52 +0000)]
PR gdb/12843
* linespec.c (locate_first_half): Keep ':' if it looks
like it could be part of a Windows path starting with
a drive letter.
devans [Fri, 11 Nov 2011 17:36:07 +0000 (17:36 +0000)]
* gdb.threads/print-threads.exp: Extend timeout for slower
tests.
tromey [Fri, 11 Nov 2011 16:56:47 +0000 (16:56 +0000)]
* gdb.texinfo (Compilation): Don't mention -gdwarf-2. Link to GCC
manual.
(Variables): Don't mention -gdwarf-2. Link to Compilation node.
(Macros): Add a footnote.
(C): Remove paragraph about compiler options.
(C Constants): Mention wide character and string constants.
(C Plus Plus Expressions): Update compiler option advice. Mention
using declarations. Mention ADL. Remove old HP compiler
information.
tromey [Fri, 11 Nov 2011 15:07:57 +0000 (15:07 +0000)]
PR c++/9257:
* gdb.texinfo (Print Settings): Add an extra note about the need
for a vtable.
devans [Fri, 11 Nov 2011 00:43:02 +0000 (00:43 +0000)]
* dwarf2read.c (dw2_map_symbol_filenames): New parameter
`need_fullname'.
* psymtab.c (map_symbol_filenames_psymtab): Ditto.
(map_partial_symbol_filenames): Ditto. All callers updated.
* psymtab.h (map_partial_symbol_filenames): Update prototype.
* symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
parameter need_fullname.
gdbadmin [Fri, 11 Nov 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Thu, 10 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update