OSDN Git Service
ian [Wed, 20 Jan 2010 09:09:13 +0000 (09:09 +0000)]
binutils/:
* objcopy.c (copy_main): Rewrite OPTION_ADD_SECTION code to work
with non-ordinary files like /dev/null.
binutils/testsuite/:
* lib/utils-lib.exp (run_dump_test): Permit option values to use
$srcdir to refer to the source directory.
* binutils-all/add-section.d: New test.
* binutils-all/add-empty-section.d: New test.
* binutils-all/empty-file: New test input file.
* binutils-all/objcopy.exp: Run new tests.
gdbadmin [Wed, 20 Jan 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
ccoutant [Wed, 20 Jan 2010 08:17:57 +0000 (08:17 +0000)]
* dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
jjohnstn [Wed, 20 Jan 2010 08:16:45 +0000 (08:16 +0000)]
2010-01-19 Andy Koppe <andy.koppe@gmail.com>
* libc/stdio/vfscanf.c (__SVFSCANF_R): Fix handling of non-ASCII
characters and allow invalid bytes in format string.
amodra [Wed, 20 Jan 2010 08:00:04 +0000 (08:00 +0000)]
daily update
tromey [Wed, 20 Jan 2010 07:23:49 +0000 (07:23 +0000)]
* top.c (stop_sig, float_handler, do_nothing): Remove.
corinna [Wed, 20 Jan 2010 06:14:53 +0000 (06:14 +0000)]
* libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid characters
correctly also in the s==NULL case.
jkratoch [Wed, 20 Jan 2010 05:31:32 +0000 (05:31 +0000)]
gdb/
* breakpoint.c (watchpoint_check): Check the call
gdbarch_in_function_epilogue_p before calling frame_find_by_id.
Extend the comment.
* config/djgpp/fnchange.lst: Add translations for
watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
watchpoint-cond-gone-stripped.c.
gdb/testsuite/
* gdb.base/watchpoint-cond-gone.exp, gdb.base/watchpoint-cond-gone.c,
gdb.base/watchpoint-cond-gone-stripped.c: New.
tromey [Wed, 20 Jan 2010 03:11:17 +0000 (03:11 +0000)]
gdb
PR c++/8000:
* dwarf2read.c (partial_die_parent_scope): Put enumeration type
into parent scope, and enumerator into grandparent scope.
gdb/testsuite
PR c++/8000:
* gdb.cp/namespace.exp: Use new enum. Fix line numbers in
existing tests.
* gdb.cp/namespace.cc (AAA::SomeEnum): New enum.
(main): Use AAA::SomeEnum.
ian [Wed, 20 Jan 2010 02:55:48 +0000 (02:55 +0000)]
elfcpp/:
* elfcpp.h (PN_XNUM): Define.
gold/:
* output.cc (Output_section_headers::do_sized_write): Write large
segment count to sh_info field.
(Output_file_header::do_sized_write): For large segment count,
write PN_XNUM to e_phnum field.
amodra [Tue, 19 Jan 2010 22:51:28 +0000 (22:51 +0000)]
* readelf.c (process_file_header): Handle e_phnum extension.
amodra [Tue, 19 Jan 2010 22:50:55 +0000 (22:50 +0000)]
* elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
(elf_object_p): Read e_phnum extension.
(elf_write_shdrs_and_ehdr): Write e_phnum extension.
* elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
that we can read last program header.
amodra [Tue, 19 Jan 2010 22:50:25 +0000 (22:50 +0000)]
* common.h (PN_XNUM): Define.
brobecke [Tue, 19 Jan 2010 19:40:06 +0000 (19:40 +0000)]
* NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
brobecke [Tue, 19 Jan 2010 19:31:51 +0000 (19:31 +0000)]
Fix typo in GDB documentation.
* gdb.texinfo (Command Files): Fix typo.
brobecke [Tue, 19 Jan 2010 19:22:42 +0000 (19:22 +0000)]
Add configure handling of x86_64-*-solaris2.1[0-9]*
* configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
i[34567]86-*-solaris2.1[0-9]*.
* configure.tgt: Likewise.
brobecke [Tue, 19 Jan 2010 19:19:22 +0000 (19:19 +0000)]
* NEWS: Document the source command enhancement allowing it
to load Python scripts. Document the "set/show script-extension"
commands.
brobecke [Tue, 19 Jan 2010 18:52:31 +0000 (18:52 +0000)]
Add -Wunused-function to compile flags.
* configure.ac: Add -Wunused-function to build_warnings.
* configure: Regenerate.
brobecke [Tue, 19 Jan 2010 18:50:48 +0000 (18:50 +0000)]
"delete" ada-lex.c:input function, not used.
* ada-lex.l: #define YY_NO_INPUT.
brobecke [Tue, 19 Jan 2010 18:47:47 +0000 (18:47 +0000)]
Delete free_named_symtabs and associated cleanup.
* symfile.h (free_named_symtabs): Delete declaration.
* symfile.c: Remove some commented out code (clear_symtab_users_once).
(cashier_psymtab): Comment function out.
Delete declaration.
(free_named_symtabs): Delete.
* coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
* dbxread.c (end_psymtab): Likewise.
* dwarf2read.c (process_psymtab_comp_unit): Ditto.
* exec.c (exec_close_1): Ditto.
* xcoffread.c (xcoff_end_psymtab): Likewise.
brobecke [Tue, 19 Jan 2010 18:45:39 +0000 (18:45 +0000)]
Comment out unused function.
The function is being commented out instead of deleted because this function
is used by some code which is itself commented out. It is unclear which
the latter was commented out.
* stack.c (print_block_frame_labels): Comment function out.
brobecke [Tue, 19 Jan 2010 18:39:11 +0000 (18:39 +0000)]
Delete unused or undefined functions.
* breakpoint.c (ep_parse_optional_filename): Delete.
* dcache.c (dcache_write_line): Remove declaration.
* infrun.c (build_infrun): Remove declaration.
* tracepoint.c (tracepoint_save_command): Remove declaration.
* linux-nat.c (init_lwp_list): Delete. No longer used.
* event-loop.c (check_async_signal_handlers): Delete declaration.
* infrun.c (init_execution_control_state): Delete.
(proceed): Update comment to avoid mentioning
init_execution_control_state.
* target.c (kill_or_be_killed, nosupport_runtime): Delete.
* ada-lang.c (ada_to_static_fixed_value): Delete.
* scm-lang.c (evaluate_subexp_scm): Delete declaration.
* cp-namespace.c (cp_copy_usings): Delete.
* xml-syscall.c (xml_number_of_syscalls): Delete.
* progspace.c (find_program_space_by_num): Delete.
* inflow.c (handle_sigio): Delete declaration.
* hppa-tdep.c (hppa_alignof): Delete.
* mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
(mipsnbsd_core_osabi_sniffer): Delete.
gingold [Tue, 19 Jan 2010 18:14:52 +0000 (18:14 +0000)]
2010-01-18 Tristan Gingold <gingold@adacore.com>
* config/tc-ia64.c (ia64_vms_note): Generate 24 bytes note headers.
jkratoch [Tue, 19 Jan 2010 17:00:38 +0000 (17:00 +0000)]
gdb/testsuite/
* gdb.mi/mi-break.exp (set line_callme_head, set line_callme_body): New.
(test_ignore_count): Declare line_callme_body global.
(run to breakpoint with ignore count): Use line_callme_body.
* gdb.mi/mi-cli.exp (set line_main_head, set line_main_body)
(set line_main_hello, set line_main_return): Reindent.
(set line_callee4_head, set line_callee4_body, set line_callee4_next):
New.
(continue to callee4): Use line_callee4_body.
(check *stopped from CLI command): Use line_callee4_next.
* gdb.mi/mi2-cli.exp (set line_main_head, set line_main_body)
(set line_main_hello, set line_main_return): Reindent.
(set line_callee4_head, set line_callee4_body): New.
(continue to callee4): Use line_callee4_body.
amodra [Tue, 19 Jan 2010 12:49:43 +0000 (12:49 +0000)]
* elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
R_ARM_THM_CALL entry.
(elf32_arm_final_link_relocate): Correct calculation of
reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
or R_ARM_THM_JUMP24 relocation.
gdbadmin [Tue, 19 Jan 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Tue, 19 Jan 2010 08:00:05 +0000 (08:00 +0000)]
daily update
tromey [Tue, 19 Jan 2010 05:54:33 +0000 (05:54 +0000)]
gdb
PR c++/9680:
* c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
(CONST_CAST): New tokens.
(exp): Add new productions.
(ident_tokens): Add const_cast, dynamic_cast, static_cast, and
reinterpret_cast.
(is_cast_operator): New function.
(yylex): Handle cast operators specially.
* eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
UNOP_REINTERPRET_CAST>: New cases.
* expprint.c (print_subexp_standard): Likewise.
(op_name_standard): Likewise.
(dump_subexp_body_standard): Likewise.
* parse.c (operator_length_standard): Likewise.
* expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
UNOP_REINTERPRET_CAST.
* gdbtypes.c (class_types_same_p): New function.
(is_ancestor): Use it.
(is_public_ancestor): New function.
(is_unique_ancestor_worker): Likewise.
(is_unique_ancestor): Likewise.
* gdbtypes.h (class_types_same_p, is_public_ancestor)
(is_unique_ancestor): Declare.
* valops.c (value_reinterpret_cast): New function.
(dynamic_cast_check_1): Likewise.
(dynamic_cast_check_2): Likewise.
(value_dynamic_cast): Likewise.
* value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
gdb/testsuite
PR c++/9680:
* gdb.cp/casts.cc: Add new classes and variables.
* gdb.cp/casts.exp: Test new operators.
corinna [Tue, 19 Jan 2010 01:07:19 +0000 (01:07 +0000)]
* strfuncs.cc: Remove needless includes.
brobecke [Mon, 18 Jan 2010 19:50:44 +0000 (19:50 +0000)]
Fix build failure when building without Python support.
* python/python.c: Always include exceptions.h, even when HAVE_PYTHON
is not defined.
brobecke [Mon, 18 Jan 2010 19:26:02 +0000 (19:26 +0000)]
Use XVS field type instead of doing a parallel lookup.
* ada-lang.c (ada_get_base_type): Follow the XVS field type
if it is a reference type instead of doing a type lookup using
the XVS field name.
brobecke [Mon, 18 Jan 2010 19:24:26 +0000 (19:24 +0000)]
Trust PAD types instead of using PAD___XVS.
* ada-lang.c (trust_pad_over_xvs): New static variable.
(ada_is_aligner_type): If !trust_pad_over_xvs and there is a
parallel XVS type, follow the XVS type instead of the PAD type.
(unwrap_value): Make sure that there is no parallel XVE type
before returning the value as is.
(set_ada_list, show_ada_list): New static variables.
(set_ada_command, show_ada_command): New functions.
(_initialize_ada_language): Add new "set/show ada" prefix commands.
Add new "set/show ada trust-PAD-over-XVS" setting.
amodra [Mon, 18 Jan 2010 16:21:46 +0000 (16:21 +0000)]
PR 11168
* coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
block past vars in COFF_IMAGE_WITH_PE block. Report error on more
than 32k sections.
brobecke [Mon, 18 Jan 2010 15:31:24 +0000 (15:31 +0000)]
* gdb.python/source2.py: New file.
* gdb.python/source1: New file.
* gdb.python/python.exp: Test "source" command.
brobecke [Mon, 18 Jan 2010 15:28:47 +0000 (15:28 +0000)]
* gdb.texinfo (File Options): Document -x on .py files.
(Command Files): Document handling of Python scripts.
brobecke [Mon, 18 Jan 2010 15:25:22 +0000 (15:25 +0000)]
Allow "source" to load python scripts.
* exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
* python/python.c (source_python_script): New function.
* python/python.h (source_python_script): Add declaration.
* cli/cli-cmds.c: #include exceptions.h and python/python.h.
(script_ext_off, script_ext_soft, script_ext_strict)
(script_ext_enums, script_ext_mode): New static constants.
(show_script_ext_mode, find_and_open_script): New functions.
(source_script): Enhance to handle Python scripts.
(init_cli_cmds): Add set/show script-extension commands.
jiez [Mon, 18 Jan 2010 13:26:43 +0000 (13:26 +0000)]
* Makefile.in (ANNOTATE_DOC_BUILD_INCLUDES): Add GDBvn.texi.
brobecke [Mon, 18 Jan 2010 12:30:28 +0000 (12:30 +0000)]
Cannot build mips simulator on darwin.
Masaki Muranaka <monaka@monami-software.com> (tiny change)
* interp.c: Don't include sysdep.h
gdbadmin [Mon, 18 Jan 2010 09:00:33 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Mon, 18 Jan 2010 08:00:05 +0000 (08:00 +0000)]
daily update
corinna [Sun, 17 Jan 2010 23:57:31 +0000 (23:57 +0000)]
* libc/locale/locale.c (loadlocale): Change comments to refer to
ISO 639-3 rather than 639-2.
corinna [Sun, 17 Jan 2010 23:55:57 +0000 (23:55 +0000)]
* setup2.sgml (setup-locale): Mention three character codes per
ISO 639-3.
* setup2.sgml (setup-locale): Adapt description to the C using ASCII
change in 1.7.2.
corinna [Sun, 17 Jan 2010 23:41:57 +0000 (23:41 +0000)]
* libc/locale/locale.c (loadlocale): Allow three character
language codes to accommodate ISO 639-2 codes.
corinna [Sun, 17 Jan 2010 18:41:00 +0000 (18:41 +0000)]
* syscalls.cc (internal_setlocale): Use UTF-8 internally if external
charset is ASCII.
corinna [Sun, 17 Jan 2010 18:39:05 +0000 (18:39 +0000)]
* libc/locale/locale.c (lc_ctype_charset): Disable defaulting to
"UTF-8" on Cygwin.
(lc_message_charset): Ditto.
(loadlocale): Disable setting charset of the "C" locale to "UTF-8" on
Cygwin.
* libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment.
* libc/stdlib/wctomb_r.c (__wctomb): Ditto.
gdbadmin [Sun, 17 Jan 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
shebs [Sun, 17 Jan 2010 08:15:10 +0000 (08:15 +0000)]
2010-01-16 Stan Shebs <stan@codesourcery.com>
* tracepoint.h (struct trace_status): Use unsigned long long
instead of size_t.
* tracepoint.c (trace_status_command): Fix printf directive.
(trace_save_command): Check fwrite returns, fix printf directive.
(trace_filename): New global.
(tfile_open): Set it, check read returns.
(tfile_close): Free trace_filename.
(tfile_get_traceframe_address): Check read returns.
(tfile_trace_find): Ditto.
(tfile_fetch_registers): Ditto.
(tfile_xfer_partial): Ditto.
(tfile_get_trace_state_variable_value): Ditto.
amodra [Sun, 17 Jan 2010 08:00:05 +0000 (08:00 +0000)]
daily update
cgf [Sun, 17 Jan 2010 03:06:26 +0000 (03:06 +0000)]
* setup-net.sgml: Remove obsolete assertion.
corinna [Sun, 17 Jan 2010 00:11:55 +0000 (00:11 +0000)]
* libc/fnmatch.c: Replace with multibyte capable version from FreeBSD.
corinna [Sat, 16 Jan 2010 19:25:58 +0000 (19:25 +0000)]
* cygpath.cc (get_mixed_name): Drop function. Replace with call to
convert_slashes throughout.
(do_sysfolders): Free allocated buffer.
(do_pathconv): Fix freeing last buffer.
corinna [Sat, 16 Jan 2010 19:22:58 +0000 (19:22 +0000)]
* fhandler_socket.cc (fhandler_socket::accept4): Reset async flag
on accepted socket.
gdbadmin [Sat, 16 Jan 2010 09:00:33 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Sat, 16 Jan 2010 08:00:05 +0000 (08:00 +0000)]
daily update
shebs [Sat, 16 Jan 2010 07:37:16 +0000 (07:37 +0000)]
Add trace file support.
* tracepoint.h (enum trace_stop_reason): New enum.
(struct trace_status): New struct.
(parse_trace_status): Declare.
(struct uploaded_tp): Move here from remote.c,
add fields for actions.
(struct uploaded_tsv): New struct.
* tracepoint.c (tfile_ops): New target vector.
(trace_fd): New global.
(tfile_open): New function.
(tfile_close): New function.
(tfile_files_info): New function.
(tfile_get_trace_status): New function.
(tfile_get_traceframe_address): New function.
(tfile_trace_find): New function.
(tfile_fetch_registers): New function.
(tfile_xfer_partial): New function.
(tfile_get_trace_state_variable_value): New function.
(init_tfile_ops): New function.
(_initialize_tracepoint): Call it, add tfile target.
(trace_status): New global.
(current_trace_status): New function.
(trace_running_p): Remove, change all users to get from
current_trace_status()->running.
(get_trace_status): Remove.
(trace_status_command): Call target_get_trace_status directly,
report more detail including tracing stop reasons.
(trace_find_command): Always allow tfind on a file.
(trace_find_pc_command): Ditto.
(trace_find_tracepoint_command): Ditto.
(trace_find_line_command): Ditto.
(trace_find_range_command): Ditto.
(trace_find_outside_command): Ditto.
(trace_frames_offset, cur_offset): Declare as off_t.
(trace_regblock_size): Rename from reg_size, update users.
(parse_trace_status): New function.
(tfile_interp_line): New function.
(disconnect_or_stop_tracing): Ensure current trace
status before asking what to do.
(stop_reason_names): New global.
(trace_save_command): New command.
(get_uploaded_tp): Move here from remote.c.
(find_matching_tracepoint): Ditto.
(merge_uploaded_tracepoints): New function.
(parse_trace_status): Use stop_reason_names.
(_initialize_tracepoint): Define tsave command.
* target.h (target_ops): New fields to_save_trace_data,
to_upload_tracepoints, to_upload_trace_state_variables,
to_get_raw_trace_data, change to_get_trace_status
to take a pointer to a status struct.
(target_save_trace_data): New macro.
(target_upload_tracepoints): New macro.
(target_upload_trace_state_variables): New macro.
(target_get_raw_trace_data): New macro.
* target.c (update_current_target): Add new methods, change
signature of to_get_trace_status.
* remote.c (hex2bin): Make globally visible.
(bin2hex): Ditto.
(remote_download_trace_state_variable): Download name also.
(remote_get_trace_status): Update parameter, use
parse_trace_status.
(remote_save_trace_data): New function.
(remote_upload_tracepoints): New function.
(remote_upload_trace_state_variables): New function.
(remote_get_raw_trace_data): New function.
(remote_start_remote): Use them.
(_initialize_remote_ops): Add operations.
* ax-gdb.c: Include breakpoint.h.
* breakpoint.c (create_tracepoint_from_upload): Use
break_command_really, return tracepoint, warn about unimplemented
parts.
* NEWS: Mention trace file addition.
* gdb.texinfo (Trace Files): New section.
(Tracepoint Packets): Document QTSave and qTBuffer.
(Trace File Format): New appendix.
* generic/gdbtk-bp.c (gdb_trace_status): Use current_trace_status.
* gdb.trace/tfile.c: New file.
* gdb.trace/tfile.exp: New file.
corinna [Sat, 16 Jan 2010 06:41:47 +0000 (06:41 +0000)]
* faq-using.xml (faq.using.bloda): Clarify wxvault.dll.
jkratoch [Sat, 16 Jan 2010 06:38:15 +0000 (06:38 +0000)]
bfd/
Fix compilation warning on gcc-3.4.
* vms-tir.c (start_etir_record, sto_imm): Rename the prototype
parameter index to sec_index according to the function definition.
corinna [Sat, 16 Jan 2010 06:34:26 +0000 (06:34 +0000)]
* fhandler_socket.cc (fhandler_socket::accept4): Set nonblocking
flag exactly according to flags, as on Linux.
* net.cc (cygwin_accept): Maintain BSD semantics here.
jkratoch [Sat, 16 Jan 2010 06:33:18 +0000 (06:33 +0000)]
gdb/
Fix compilation warning on gcc-3.4.
* exec.c (print_section_info): Move the `displacement' variable
initialization to its declaration.
spop [Sat, 16 Jan 2010 06:24:12 +0000 (06:24 +0000)]
2010-01-15 Sebastian Pop <sebastian.pop@amd.com>
gas/
* config/tc-i386.c (md_assemble): Before accessing the IMM field
check that it's not an XOP insn.
gas/testsuite/
* gas/i386/x86-64-xop.d: Add missing patterns.
* gas/i386/x86-64-xop.s: Same.
* gas/i386/xop.d: Same.
* gas/i386/xop.s: Same.
opcodes/
* i386-opc.tbl: Support all the possible aliases for VPCOM* insns.
* i386-tbl.h: Regenerated.
jkratoch [Sat, 16 Jan 2010 04:22:40 +0000 (04:22 +0000)]
gdb/
* gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
comparison.
cgf [Sat, 16 Jan 2010 03:47:31 +0000 (03:47 +0000)]
* faq-setup.xml: Add missing setup options. Sort options.
hjl [Sat, 16 Jan 2010 02:30:16 +0000 (02:30 +0000)]
Remove duplicated entries.
ian [Sat, 16 Jan 2010 00:41:42 +0000 (00:41 +0000)]
* arm.cc (Arm_relocate_functions::thm_jump6): New function.
(Arm_relocate_functions::thm_jump8): New function.
(Arm_relocate_functions::thm_jump11): New function.
(Target_arm::Scan::local): Handle R_ARM_THM_JUMP6, R_ARM_THM_JUMP8,
R_ARM_THM_JUMP11.
(Target_arm::Scan::global): Likewise.
(Target_arm::Relocate::relocate): Likewise.
(Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
Likewise.
corinna [Sat, 16 Jan 2010 00:40:04 +0000 (00:40 +0000)]
* cygwin.din (accept4): Export.
* fhandler.h (fhandler_socket::accept4): Rename from accept. Take
additional flag parameter.
* fhandler_socket.cc (fhandler_socket::accept4): Ditto. Handle
SOCK_NONBLOCK and SOCK_CLOEXEC flags.
* net.cc (cygwin_socket): Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags
in type. Check for invalid flag values.
(socketpair): Ditto.
(cygwin_accept): Accommodate renaming of fhandler_socket::accept
function to accept4.
(accept4): New function.
* posix.sgml: Mention accept4 as GNU extensions.
* include/cygwin/socket.h (SOCK_NONBLOCK): Define.
(SOCK_CLOEXEC): Define.
(_SOCK_FLAG_MASK): Define when building Cygwin.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* include/sys/socket.h (accept4): Declare.
corinna [Fri, 15 Jan 2010 23:22:41 +0000 (23:22 +0000)]
* posix.sgml: Mention dup3 and pipe2 as GNU extensions.
brobecke [Fri, 15 Jan 2010 21:14:26 +0000 (21:14 +0000)]
Fix the patch author in the last entry. OOoops!
brobecke [Fri, 15 Jan 2010 21:11:21 +0000 (21:11 +0000)]
"info tasks" broken by typedefs in ATCB type definitions.
* ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
ada_check_typedef before retrieving the length of the type for
regular fields.
brobecke [Fri, 15 Jan 2010 21:07:04 +0000 (21:07 +0000)]
Do not use name-based lookup for unconstrained packed arrays.
* ada-lang.c (find_parallel_type_by_descriptive_type):
Limit the fallback to name-based lookups to the case where
the type is a constrained packed array.
brobecke [Fri, 15 Jan 2010 18:15:46 +0000 (18:15 +0000)]
Enhance gdb-gdb.py to handle main_type.type_specific.
* gdb-gdb.py: Print the type-specific part of struct main_type.
dougkwan [Fri, 15 Jan 2010 13:58:34 +0000 (13:58 +0000)]
2010-01-14 Doug Kwan <dougkwan@google.com>
* arm.cc (map, utility): Include headers.
(Target_arm::apply_cortex_a8_workaround): New method.
(Arm_relobj::do_relocate_sections): Apply any Cortex-A8 workaround.
(Target_arm::Scan::local): Handle R_ARM_THM_JUMP24, R_ARM_THM_JUMP19.
(Target_arm::Scan::global): R_ARM_THM_JUMP19.
(Target_arm::do_finalize_sections): Set fix_cortex_a8_ according to
the --[no-]fix-cortex-a8 command line options.
(Target_arm::Relocate::relocate): Handle R_ARM_JUMP19.
(Target_arm::relocate_stub): Use addend in instruction template.
* options.h (DEFINE_bool): Set the user-set flag.
(General_options): Add --[no-]-fix-cortex options.
* output.cc (Output_section::convert_input_sections_to_relaxed_sections)
: Update fast look-up map after conversion.
tmsriram [Fri, 15 Jan 2010 10:44:22 +0000 (10:44 +0000)]
* object.cc (Sized_relobj::do_layout): Change to call layout_gnu_stack
in the first pass of do_layout.
jkratoch [Fri, 15 Jan 2010 09:34:37 +0000 (09:34 +0000)]
gdb/
* configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
* configure: Regenerate.
* config.in: Regenerate.
* utils.c: Include sys/resource.h.
(dump_core, can_dump_core): New.
(internal_vproblem): Update the comment. Check can_dump_core while
setting dump_core_p. Replace two abort calls by dump_core calls.
gdbadmin [Fri, 15 Jan 2010 09:00:33 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Fri, 15 Jan 2010 08:00:05 +0000 (08:00 +0000)]
daily update
jkratoch [Fri, 15 Jan 2010 06:24:04 +0000 (06:24 +0000)]
gdb/
* NEWS: Document the PIE support.
jkratoch [Fri, 15 Jan 2010 06:20:09 +0000 (06:20 +0000)]
gdb/
* linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
(check_is_pie_binary, _initialize_linux_tdep): Remove.
gdb/testsuite/
* gdb.base/pie-support.exp, gdb.base/pie-support.c: Remove.
jkratoch [Fri, 15 Jan 2010 06:16:51 +0000 (06:16 +0000)]
gdb/
* solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
Replace exec_entry_point call by bfd_get_start_address.
jkratoch [Fri, 15 Jan 2010 06:14:57 +0000 (06:14 +0000)]
gdb/
Support Valgrind attachments broken by the PIE support.
* auxv.c: Include gdbcore.h.
(procfs_xfer_auxv): Make static. Reduce its comment. Drop its
parameters ops, object and annex. Remove their assertions.
(ld_so_xfer_auxv, memory_xfer_auxv): New function.
* auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
(memory_xfer_auxv): ... here.
* linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
memory_xfer_auxv.
* procfs.c (procfs_xfer_partial): Likewise.
* solib-svr4.c (svr4_relocate_main_executable): New prototype.
(svr4_special_symbol_handling): Call svr4_relocate_main_executable.
(svr4_solib_create_inferior_hook): Conditionalize the
svr4_relocate_main_executable call.
gdb/testsuite/
* gdb.base/valgrind-db-attach.exp, gdb.base/valgrind-db-attach.c: New.
jkratoch [Fri, 15 Jan 2010 06:11:59 +0000 (06:11 +0000)]
gdb/testsuite/
* gdb.base/break-interp-lib.c: Include unistd.h, assert.h and stdio.h.
(libfunc): New parameter action. Implement also selectable "sleep".
* gdb.base/break-interp-main.c: Include assert.h.
(libfunc): New parameter action.
(main): New parameters argc and argv. Assert argc. Pass argv.
* gdb.base/break-interp.exp (test_core): Pass the "segv" argument.
(test_attach): New proc.
(test_ld): Pass new "segv" exec parameter. Call also test_attach.
* lib/gdb.exp (core_find): New parameter arg. Pass it to $binfile.
jkratoch [Fri, 15 Jan 2010 06:09:04 +0000 (06:09 +0000)]
gdb/
* solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
target_section. Find SECT in current_target_sections, gdb_assert it.
(elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
New variable abfd.
* symtab.c (lookup_objfile_from_block): Return the binary file instead
of separate debug info file.
gdb/testsuite/
* gdb.base/break-interp.exp (test_core): New proc.
(test_ld): Call it.
jkratoch [Fri, 15 Jan 2010 06:04:52 +0000 (06:04 +0000)]
gdb/testsuite/
* gdb.base/break-interp-main.c, gdb.base/break-interp-lib.c: New.
* gdb.base/break-interp.exp: Exit on skip_shlib_tests. Change $srcfile.
New variables $binfile_lib and $srcfile_lib. Call get_compiler_info
and gdb_compile_shlib. Use new -Wl compiler options.
(dl bt, main bt): New tests.
jkratoch [Fri, 15 Jan 2010 06:01:24 +0000 (06:01 +0000)]
gdb/
Support PIEs with no symfile_objfile.
* exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
* solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
gdb/testsuite/
Support PIEs with no symfile_objfile.
* gdb.base/break-interp.exp: New argument at the test_ld calls.
(test_ld): New parameter trynosym.
(test_ld <$trynosym>): New block.
jkratoch [Fri, 15 Jan 2010 05:48:25 +0000 (05:48 +0000)]
gdb/
* solib-svr4.c (svr4_relocate_main_executable): Move the static exec
code part to ...
(svr4_static_exec_displacement): ... a new function.
(svr4_exec_displacement): New function.
(svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
new_offsets using alloca now. Remove variable old_chain and changed.
Call objfile_relocate unconditionally now.
gdb/testsuite/
* gdb.base/break-interp.exp: New file.
hjl [Fri, 15 Jan 2010 04:35:35 +0000 (04:35 +0000)]
Replace VEX.DNS with VEX.NDS in comments.
2010-01-14 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.h (VexVVVV): Replace VEX.DNS with VEX.NDS in
comments.
devans [Fri, 15 Jan 2010 03:58:57 +0000 (03:58 +0000)]
* gdbtypes.c (arch_flags_type): Fix comment.
* gdbtypes.h (arch_composite_type): Fix comment.
corinna [Fri, 15 Jan 2010 03:56:23 +0000 (03:56 +0000)]
* dcrt0.cc (dll_crt0_1): Reset locale to "C" at the last moment before
calling the application's main.
* syscalls.cc (internal_setlocale): Don't reset locale to "C here.
Change comment accordingly.
corinna [Fri, 15 Jan 2010 03:49:13 +0000 (03:49 +0000)]
* libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
(F_DUPFD_CLOEXEC): Define for Cygwin.
* libc/include/sys/unistd.h (dup3): Define for Cygwin.
(pipe2): Ditto.
corinna [Fri, 15 Jan 2010 03:46:00 +0000 (03:46 +0000)]
* cygwin.din (dup3): Export.
(pipe2): Export.
* dtable.cc (dtable::dup_worker): Take additional flags parameter.
Handle O_CLOEXEC flag.
(dtable::dup3): Rename from dup2. Take additional flags parameter.
Check for valid flags. Drop check for newfd == oldfd.
* dtable.h (dtable::dup_worker): Add flags parameter.
(dtable::dup3): Rename from dup2.
* fcntl.cc (fcntl64): Add F_DUPFD_CLOEXEC case.
* fhandler.h (fhandler_mailslot::get_object_attr): Add flags parameter.
* fhandler.cc (fhandler_base::open): Use security attribute with
inheritance according to setting of O_CLOEXEC flag.
* fhandler_console.cc (fhandler_console::open): Ditto.
* fhandler_fifo.cc (sec_user_cloexec): New inline function to
create security attribute with inheritance according to setting of
O_CLOEXEC flag.
(fhandler_fifo::open): Call sec_user_cloexec to fetch security
attribute.
(fhandler_fifo::wait): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::open): Ditto.
* fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Take
additional flags parameter. Use security attribute with inheritance
according to setting of O_CLOEXEC flag.
(fhandler_mailslot::open): Call get_object_attr with flags parameter.
* fhandler_registry.cc (fhandler_registry::open): Call set_close_on_exec
on real handles to accommodate O_CLOEXEC flag.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
* fhandler_tape.cc: Create mutex with inheritance according to setting
of O_CLOEXEC flag.
* pipe.cc: Replace usage of O_NOINHERIT with O_CLOEXEC.
(fhandler_pipe::init): Simplify setting close_on_exec flag.
(fhandler_pipe::open): Remove setting close_on_exec flag.
(fhandler_pipe::create): Use security attribute with inheritance
according to setting of O_CLOEXEC flag.
(pipe2): New exported function.
* posix_ipc.cc: Throughout, open backing files with O_CLOEXEC
flag to follow POSIX semantics.
* security.h (sec_none_cloexec): New define.
* syscalls.cc (dup): Add missing extern "C" qualifier. Accommodate
renaming of dtable::dup2 to dtable::dup3.
(dup2): Ditto. Check newfd == oldfd here.
(dup3): New function. Check newfd == oldfd here.
(open): Set close_on_exec flag according to O_CLOEXEC flag before
calling fhandler->open.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
hjl [Fri, 15 Jan 2010 02:29:18 +0000 (02:29 +0000)]
Add names_mm, names_xmm and names_ymm.
2010-01-14 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (names_mm): New.
(intel_names_mm): Likewise.
(att_names_mm): Likewise.
(names_xmm): Likewise.
(intel_names_xmm): Likewise.
(att_names_xmm): Likewise.
(names_ymm): Likewise.
(intel_names_ymm): Likewise.
(att_names_ymm): Likewise.
(print_insn): Set names_mm, names_xmm and names_ymm.
(OP_MMX): Use names_mm, names_xmm and names_ymm.
(OP_XMM): Likewise.
(OP_EM): Likewise.
(OP_EMC): Likewise.
(OP_MXC): Likewise.
(OP_EX): Likewise.
(XMM_Fixup): Likewise.
(OP_VEX): Likewise.
(OP_EX_VexReg): Likewise.
(OP_Vex_2src): Likewise.
(OP_Vex_2src_1): Likewise.
(OP_Vex_2src_2): Likewise.
(OP_REG_VexI4): Likewise.
hjl [Fri, 15 Jan 2010 00:18:42 +0000 (00:18 +0000)]
Remove argument name.
2010-01-14 H.J. Lu <hongjiu.lu@intel.com>
* ia64.h (ia64_find_opcode): Remove argument name.
(ia64_find_next_opcode): Likewise.
(ia64_dis_opcode): Likewise.
(ia64_free_opcode): Likewise.
(ia64_find_dependency): Likewise.
hjl [Thu, 14 Jan 2010 23:29:51 +0000 (23:29 +0000)]
Support 64bit targets.
2010-01-14 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/orphan4.d: Support 64bit targets.
corinna [Thu, 14 Jan 2010 21:49:43 +0000 (21:49 +0000)]
Drop accidentally applied ChangeLog entry.
corinna [Thu, 14 Jan 2010 21:48:58 +0000 (21:48 +0000)]
* libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid in
the current charset through.
gingold [Thu, 14 Jan 2010 21:47:44 +0000 (21:47 +0000)]
2009-01-14 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
to symbol_file_add_from_bfd. Add OSO as separate objfile.
(macho_oso_symfile): Add symfile_flags parameter. Pass it to
macho_add_oso_symfile.
(macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
brobecke [Thu, 14 Jan 2010 18:26:50 +0000 (18:26 +0000)]
Tru64: Dead threads are never deleted.
* dec-thread.c (dec_thread_ptid_is_alive): New function.
(dec_thread_count_gdb_threads): Fix counter increment.
(dec_thread_add_gdb_thread): Fix *listp increment.
(resync_thread_list): Fix bug in deletion of dead threads that
caused all threads to be deleted, instead of just the dead ones.
gingold [Thu, 14 Jan 2010 18:19:56 +0000 (18:19 +0000)]
2010-01-14 Tristan Gingold <gingold@adacore.com>
* dwarf.c (get_AT_name): Handle DW_AT_use_GNAT_descriptive_type
and DW_AT_GNAT_descriptive_type.
pmuldoon [Thu, 14 Jan 2010 17:03:34 +0000 (17:03 +0000)]
2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
PR python/10705
* python/python-internal.h: Add lazy_string_object_type
definition.
(create_lazy_string_object, gdbpy_initialize_lazy_string)
(gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
* python/py-value.c (valpy_lazy_string): New function.
(convert_value_from_python): Add lazy string conversion.
* python/py-prettyprint.c (pretty_print_one_value): Check if
return is also a lazy string.
(print_string_repr): Add lazy string printing branch.
(print_children): Likewise.
* python/py-lazy-string.c: New file. Implement lazy strings.
* python/python.c (_initialize_python): Call
gdbpy_initialize_lazy_string.
* varobj.c (value_get_print_value): Add lazy string printing
branch. Account for encoding.
* c-lang.c (c_printstr): Account for new encoding argument. If
encoding is NULL, find encoding suited for type, otherwise use
user encoding.
* language.h (language_defn): Add encoding argument.
(LA_PRINT_STRING): Likewise.
* language.c (unk_lang_printstr): Update to reflect new encoding
argument to language_defn.
* ada-lang.h (ada_printstr): Likewise.
* c-lang.h (c_printstr): Likewise.
* p-lang.h (pascal_printstr);
* f-lang.c (f_printstr): Likewise.
* m2-lang.c (m2_printstr): Likewise.
* objc-lang.c (objc_printstr): Likewise.
* p-lang.c (pascal_printstr): Likewise.
* scm-lang.c (scm_printstr): Likewise.
* c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
encoding argument.
* ada-valprint.c (ada_printstr): Likewise.
* f-valprint.c (f_val_print): Likewise
* m2-valprint.c (m2_val_print): Likewise.
* p-valprint.c (pascal_val_print): Likewise.
* expprint.c (print_subexp_standard): Likewise.
* valprint.c (val_print_string): Likewise.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-lazy-string.o): New rule.
2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Values From Inferior): Document lazy_string value
method.
(Python API): Add Lazy strings menu item.
(Lazy Strings In Python): New node.
2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-value.exp (test_lazy_strings): Add lazy string test.
* gdb.python/py-prettyprint.py (pp_ls): New printer.
* gdb.python/py-prettyprint.exp (run_lang_tests): Add lazy string
test.
* gdb.python/py-prettyprint.c: Define lazystring test structure.
* gdb.python/py-mi.exp: Add lazy string test.
dj [Thu, 14 Jan 2010 15:55:46 +0000 (15:55 +0000)]
Wildcard the file offset.
dj [Thu, 14 Jan 2010 13:56:10 +0000 (13:56 +0000)]
* emultempl/elf32.em (_place_orphan): If an input section doesn't
match an existing output section, but an unused output section
statement does match, use it.
* emultempl/pe.em (_place_orphan): Likewise.
* emultempl/pep.em (_place_orphan): Likewise.
* ld-elf/orphan4.d: New.
* ld-elf/orphan4.ld: New.
* ld-elf/orphan4.s: New.