OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years agoFix regcache_restore() handling of unavailable regs.
davem [Tue, 11 Oct 2011 18:35:25 +0000 (18:35 +0000)]
Fix regcache_restore() handling of unavailable regs.

* regcache.c (regcache_restore): Do not write unavailable regs, mark
static.
* regcache.h (regcache_restore): Remove declaration.

12 years ago PR binutils/13051
nickc [Tue, 11 Oct 2011 15:56:27 +0000 (15:56 +0000)]
PR binutils/13051
Fix a syntax error bug when compiling rc files with the VERSIONINFO resource
containing more than one language block inside a single StringFileInfo block.

* windint.h (rc_ver_stringtable): New structure definition.
(rc_ver_info): Use it.
* rcparse.y (verstringtable): New variable.
(verstringtables): New type.
(verstringtables:): New rule declaration.
(verblocks:): Use it.
* resrc.c (append_ver_stringtable): New function.
(append_ver_stringfileinfo): Update to use stringtables.
* windres.h (append_ver_stringfileinfo): Update declaration.
(append_ver_stringtable): New declaration.
* resrc.c (write_rc_versioninfo): Update to support multiple blocks.
* resbin.c (bin_to_res_version): Likewise.
(res_to_bin_versioninfo): Likewise.

* binutils-all\windres\version.rsd: Regenerate.
* binutils-all\windres\version_cat.rsd: Regenerate.
* binutils-all\windres\version_mlang.rc: Add new test.
* binutils-all\windres\version_mlang.rsd: Likewise.

12 years agogdb/
jkratoch [Tue, 11 Oct 2011 15:24:10 +0000 (15:24 +0000)]
gdb/
Revert this part of:
2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
Support @entry in input expressions.
* c-exp.y (ENTRY, unknown_cpp_name): New.
(exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
(unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
(variable: name_not_typename '@' ENTRY, name: ENTRY)
(name_not_typename: ENTRY): New.
(yylex): Recognize ENTRY.

Reimplement @entry in input expressions.
* c-exp.y (ENTRY): New.
(variable: name_not_typename ENTRY): New.
(lex_one_token): Optionally return ENTRY instead of the '@' lex.

gdb/testsuite/
Reimplement @entry in input expressions.
* gdb.base/exprs.c (v_int_array_init): New variable.
* gdb.base/exprs.exp (print v_int_array_init)
(print *v_int_array_init@1, print *v_int_array_init@2)
(print v_int_array_init[0]@1, print v_int_array_init[0]@2)
(print v_int_array_init[1]@1): New tests.

12 years ago2011-10-11 Pedro Alves <pedro@codesourcery.com>
palves [Tue, 11 Oct 2011 14:58:18 +0000 (14:58 +0000)]
2011-10-11  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (linux_handle_extended_wait): Always dump both the
parent and child's pids as soon as we detect a clone event.
Adjust another debug message.

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

gdb/
* linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
not zombie instead of reading the whole file.

12 years agogdb/
jkratoch [Tue, 11 Oct 2011 12:58:06 +0000 (12:58 +0000)]
gdb/
Fix separate debuginfo warning with "remote:" access.
* objfiles.h (struct objfile): New fields crc32 and crc32_p.
* symfile.c (get_file_crc): New function with the code moved from ...
(separate_debug_file_exists): ... this function, specifically variables
buffer and count.  New variable verified_as_different, set it.  Remove
file_crc initialization.  Verify also if both files are not the same
manually, if needed.

12 years ago* dtable.cc (fh_alloc): Don't parse /dev/tty if ctty is < 0. Reset major/minor
cgf [Tue, 11 Oct 2011 12:39:31 +0000 (12:39 +0000)]
* dtable.cc (fh_alloc): Don't parse /dev/tty if ctty is < 0.  Reset major/minor
from the specific tty to those for /dev/tty.

12 years ago * libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.
corinna [Tue, 11 Oct 2011 11:28:04 +0000 (11:28 +0000)]
* libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.
* libc/time/mktime.c: (mktime) Fix tm_yday, tm_mday updating when
timezone causes roll over.

12 years agooops - fix typo in previous delta.
nickc [Tue, 11 Oct 2011 09:29:56 +0000 (09:29 +0000)]
oops - fix typo in previous delta.

12 years agooops - omitted from previous delta.
nickc [Tue, 11 Oct 2011 07:38:33 +0000 (07:38 +0000)]
oops - omitted from previous delta.

12 years ago gdb/
qiyao [Tue, 11 Oct 2011 07:31:26 +0000 (07:31 +0000)]
gdb/
* arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
to get address.

12 years ago PR binutils/13278
amodra [Tue, 11 Oct 2011 06:44:12 +0000 (06:44 +0000)]
PR binutils/13278
* archive.c (bfd_generic_archive_p): Only check first element
when target_defaulted.
(_bfd_construct_extended_name_table): Use ar_maxnamelen.
(_bfd_archive_bsd44_construct_extended_name_table): Likewise.

12 years ago PR binutils/13257
amodra [Tue, 11 Oct 2011 06:30:17 +0000 (06:30 +0000)]
PR binutils/13257
* archive.c (_bfd_find_nested_archive, _bfd_get_elt_at_filepos): Open
thin archive element using container target if not defaulted.

12 years ago * linux-thread-db.c (thread_db_new_objfile): Only try to load
devans [Tue, 11 Oct 2011 03:31:57 +0000 (03:31 +0000)]
* linux-thread-db.c (thread_db_new_objfile): Only try to load
libthread_db when we load libpthread or the main symbol file.
(thread_db_inferior_created): New function.
(_initialize_thread_db): Attach inferior_created observer.
* linux-nat.c (linux_child_post_attach): Remove call to
check_for_thread_db.
(linux_child_post_startup_inferior): Ditto.
* objfiles.h (OBJF_MAINLINE): Define.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
allocate_objfile when appropriate.

12 years ago * gdb.cp/gdb2495.exp: Do not include directories in filename in
jsm28 [Tue, 11 Oct 2011 01:27:48 +0000 (01:27 +0000)]
* gdb.cp/gdb2495.exp: Do not include directories in filename in
expected message.

12 years ago*** empty log message ***
gdbadmin [Tue, 11 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Mon, 10 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago* syscalls.cc (open): Add temporary kludge to avoid assigning the controlling
cgf [Mon, 10 Oct 2011 22:01:03 +0000 (22:01 +0000)]
* syscalls.cc (open): Add temporary kludge to avoid assigning the controlling
tty on open unless the open is for stdin/stdout/stderr.
* tty.cc (tty_list::connect): Set ENXIO when can't find a tty.

12 years agomerge from gcc
dj [Mon, 10 Oct 2011 21:02:57 +0000 (21:02 +0000)]
merge from gcc

12 years agomerge from gcc
dj [Mon, 10 Oct 2011 21:02:44 +0000 (21:02 +0000)]
merge from gcc

12 years ago * fhandler.h (fhandler_process::closedir): Declare.
corinna [Mon, 10 Oct 2011 18:59:55 +0000 (18:59 +0000)]
* fhandler.h (fhandler_process::closedir): Declare.
* fhandler_process.cc (fhandler_process::closedir): New function to
avoid a SEGV in fhandler_proc::closedir.

12 years ago PR gdb/13218
uweigand [Mon, 10 Oct 2011 18:47:46 +0000 (18:47 +0000)]
PR gdb/13218
* arm-linux-nat.c (os_version, os_major, os_minor, os_release):
Remove unused variables.
(get_linux_version): Remove function.
(_initialize_arm_linux_nat): Do not call it.

12 years ago * gold/incremental.cc (Sized_relobj_incr::Sized_relobj_incr):
ccoutant [Mon, 10 Oct 2011 17:38:07 +0000 (17:38 +0000)]
* gold/incremental.cc (Sized_relobj_incr::Sized_relobj_incr):
Initialize defined_count_.
(Sized_relobj_incr::do_add_symbols): Count defined symbols.
(Sized_relobj_incr::do_get_global_symbol_counts): Rewrite.
(Sized_incr_dynobj::Sized_incr_dynobj): Initialize defined_count_.
(Sized_incr_dynobj::do_add_symbols): Count defined symbols.
(Sized_incr_dynobj::do_get_global_symbol_counts): Rewrite.
* gold/incremental.h (Sized_relobj_incr::defined_count_): New data
member.
(Sized_incr_dynobj::defined_count_): New data member.
* gold/plugin.cc (Sized_pluginobj::do_get_global_symbol_counts):
Return zeroes instead of internal error.

12 years ago PR gold/13249
ccoutant [Mon, 10 Oct 2011 17:29:52 +0000 (17:29 +0000)]
PR gold/13249
* gold/output.cc (Output_reloc::Output_reloc): Add use_plt_offset flag.
(Output_reloc::symbol_value): Return PLT offset if flag is set.
* gold/output.h (class Output_reloc): Add use_plt_offset flag.
(Output_reloc::type_): Adjust size of bit field.
(Output_reloc::use_plt_offset_): New bit field.
(class Output_data_reloc): Adjust all calls to Output_reloc_type.
(Output_data_reloc::add_local_relative): (RELA only) Add use_plt_offset
flag.  Adjust all callers.
* gold/x86_64.cc (Target_x86_64::Scan::local): Check for IFUNC when
creating RELATIVE relocations.

12 years ago2011-10-10 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 10 Oct 2011 16:39:56 +0000 (16:39 +0000)]
2011-10-10  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (linux_handle_extended_wait): Don't resume the new
new clone lwp if the core asked it to stop.  Don't pass on
unexpected signals to the new clone; leave them pending instead.

12 years agoUpdated Bulgarian, Spanish, Finnish, French, Russian and Ukranian translations.
nickc [Mon, 10 Oct 2011 16:12:12 +0000 (16:12 +0000)]
Updated Bulgarian, Spanish, Finnish, French, Russian and Ukranian translations.

12 years ago * cygserver.sgml: Change -v to -V, same as in sources.
corinna [Mon, 10 Oct 2011 15:52:48 +0000 (15:52 +0000)]
* cygserver.sgml: Change -v to -V, same as in sources.

12 years ago * cygserver.cc (print_usage): Align output to utilities in utils
corinna [Mon, 10 Oct 2011 15:48:54 +0000 (15:48 +0000)]
* cygserver.cc (print_usage): Align output to utilities in utils
directory.
(print_version): Ditto.

12 years ago * ldd.cc (VERSION): Remove.
corinna [Mon, 10 Oct 2011 15:34:52 +0000 (15:34 +0000)]
* ldd.cc (VERSION): Remove.

12 years ago* ldd.cc: Update copyright.
cgf [Mon, 10 Oct 2011 15:04:00 +0000 (15:04 +0000)]
* ldd.cc: Update copyright.

12 years ago * Align usage output, version output, as well as usage and version
corinna [Mon, 10 Oct 2011 14:57:47 +0000 (14:57 +0000)]
* Align usage output, version output, as well as usage and version
option handling to use the same style throughout all Cygwin utils.
Throughout use program_invocation_short_name to refer to current
process name in Cygwin executables.
* utils.sgml: Align documentation to above change.  Add missing
sections for getconf, ldd, and setmetamode.
* strace.cc (proc_child): Avoid compiler warning.

12 years ago2011-10-10 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 10 Oct 2011 13:50:46 +0000 (13:50 +0000)]
2011-10-10  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (resume_lwp): Remove redundant debug output.

12 years ago2011-10-10 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 10 Oct 2011 13:23:49 +0000 (13:23 +0000)]
2011-10-10  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (linux_nat_wait_1): Copy the event lwp's
last_resume_kind before clearing it, and use the copy instead to
determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
resume_clear_callback in the non-stop path too.

12 years agoinclude/elf/
amodra [Mon, 10 Oct 2011 13:21:05 +0000 (13:21 +0000)]
include/elf/
* ppc64.h (R_PPC64_TOCSAVE): Add.
bfd/
* elf64-ppc.c (ppc64_elf_howto_table): Add R_PPC64_TOCSAVE entry.
(struct ppc_link_hash_table): Add tocsave_htab.
(struct tocsave_entry): New.
(tocsave_htab_hash, tocsave_htab_eq, tocsave_find): New functions.
(ppc64_elf_link_hash_table_create): Create tocsave_htab..
(ppc64_elf_link_hash_table_free): ..and delete it.
(build_plt_stub): Always put STD_R2_40R1 first.
(ppc64_elf_size_stubs): Check for R_PPC64_TOCSAVE following reloc
on plt call.  If present add prologue nop location to tocsave_htab.
(ppc64_elf_relocate_section): Convert prologue nop to std.  Skip
first insn of plt call stub when R_PPC64_TOCSAVE present.

12 years ago * libc/sys/arm/crt0.S: Synchronise with libgloss version.
nickc [Mon, 10 Oct 2011 13:00:25 +0000 (13:00 +0000)]
* libc/sys/arm/crt0.S: Synchronise with libgloss version.
* libc/sys/arm/arm.h: Imported from libgloss.

12 years ago * ldmain.c (main): Move code twiddling various config and link_info
amodra [Mon, 10 Oct 2011 12:43:14 +0000 (12:43 +0000)]
* ldmain.c (main): Move code twiddling various config and link_info
bits to..
* lexsup.c (parse_args): ..here.  Move plugin_load_plugins call
into main.
* plugin.c (set_tv_header): Test link_info.executable, not
link_info.shared.
(is_visible_from_outside): Likewise.  Delete redundant
is_ir_dummy_bfd check and "section" parameter.

12 years ago * locale.cc (usage): Restructure, rephrase, add new options. Drop
corinna [Mon, 10 Oct 2011 09:50:43 +0000 (09:50 +0000)]
* locale.cc (usage): Restructure, rephrase, add new options.  Drop
arguments, don't exit.
(print_version): New function.
(longopts): Add -f, -n, and -V options.  Reorder.
(opts): Add -f, -n, and -V options.
(main): Call GetSystemDefaultUILanguage for -s option.  Call
GetUserDefaultUILanguage for -u option.  Add -f and -n options and
call GetUserDefaultLCID and GetSystemDefaultLCID respectively.  Return
0 after calling usage in -h case.  Add -V option and call print_version.
Don't print full usage in default case, rather just a short help message
similar to GNU tools.
* utils.sgml (locale): Align to above changes.  Rephrase description.

12 years ago * cygcheck.cc (check_keys): Use UNICODE Win32 functions.
corinna [Mon, 10 Oct 2011 09:42:00 +0000 (09:42 +0000)]
* cygcheck.cc (check_keys): Use UNICODE Win32 functions.

12 years agold/
amodra [Mon, 10 Oct 2011 09:05:38 +0000 (09:05 +0000)]
ld/
* emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes.
ld/testsuite/
* ld-powerpc/relbrlt.d: Update for stub alignment change.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexetoc.g: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.g: Likewise.
* ld-powerpc/tlsso.r: Likewise.

12 years ago* fhandler_tty.cc (fhandler_pty_slave::open): Clarify debugging output.
cgf [Mon, 10 Oct 2011 04:05:28 +0000 (04:05 +0000)]
* fhandler_tty.cc (fhandler_pty_slave::open): Clarify debugging output.
(fhandler_pty_slave::open): Change ENOENT to ENXIO when can't open a tty.

12 years agogdb/
qiyao [Mon, 10 Oct 2011 02:50:46 +0000 (02:50 +0000)]
gdb/
* valprint.c (value_check_printable): Add one parameter OPTIONS.
Honor OPTIONS and VAL's type.
(common_val_print, value_print): Update to pass one more parameter.

12 years agosim: dv-cfi: include stdbool.h
vapier [Mon, 10 Oct 2011 02:41:54 +0000 (02:41 +0000)]
sim: dv-cfi: include stdbool.h

The dv-cfi code uses the bool type but doesn't include the stdbool.h
header.  I didn't notice for Blackfin targets as the core Blackfin
header will include stdbool.h, but most targets don't do this.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agosim: dv-cfi: include common headers only
vapier [Mon, 10 Oct 2011 02:41:07 +0000 (02:41 +0000)]
sim: dv-cfi: include common headers only

The "devices.h" header is Blackfin-specific, so trying to build dv-cfi
for any other target fails.  Include the specific hw headers this file
needs directly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago*** empty log message ***
gdbadmin [Mon, 10 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sun, 9 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago Add new "alias" command.
devans [Sun, 9 Oct 2011 22:21:41 +0000 (22:21 +0000)]
Add new "alias" command.
* NEWS: Mention new command.
* command.h (valid_user_defined_cmd_name_p): Declare.
* defs.h (make_cleanup_dyn_string_delete): Declare.
* utils.c: #include "dyn-string.h".
(do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
* cli/cli-cmds.c: #include "dyn-string.h".
(argv_to_dyn_string, valid_command_p, alias_command): New functions.
(init_cli_cmds): Add new command.
* cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.

doc/
* gdb.texinfo (Extending GDB): Document alias command.

testsuite/
* gdb.base/alias.exp: Add tests for alias command.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 20:57:02 +0000 (20:57 +0000)]
gdb/
Fix compatibility with older GCCs.
* dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
* stack.c (read_frame_arg): Initialize val_deref.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 20:21:48 +0000 (20:21 +0000)]
gdb/
Add forgotten gdb/dwarf2-frame-tailcall.c.
Add forgotten gdb/dwarf2-frame-tailcall.h.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:46:04 +0000 (19:46 +0000)]
gdb/
Entry values NEWS entries, DWARF disassembly support.
* NEWS: New entry values entry.
(set print entry-values, show print entry-values)
(set debug entry-values, show debug entry-values): New entries.
* dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
indent.  Remove variable start.  Move header printing out.  Respect
INDENT.  Support DW_OP_GNU_entry_value.
(locexpr_describe_location_1): Move the header printing here, extend
the disassemble_dwarf_expression passed parameters.

gdb/testsuite/
* gdb.arch/amd64-entry-value.s: New file.
* gdb.mi/mi2-amd64-entry-value.s: New file.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:43:39 +0000 (19:43 +0000)]
gdb/
Display @entry parameter values even for references.
* ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
coerce_ref_if_computed.
* c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
* dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
(execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
existing push_dwarf_reg_entry_value call.  Add new detection calling
dwarf_block_to_dwarf_reg_deref.  Update the error message.
(ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
* dwarf2expr.h
(struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
parameter deref_size, describe it in the comment.
(ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
(dwarf_block_to_dwarf_reg_deref): New declaration.
* dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
deref_size, describe it in the function comment.  New variables
data_src and size, fetch the alternative block accoring to DEREF_SIZE.
(dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
describe it in the function comment.  Fetch the alternative block
accoring to DEREF_SIZE.
(entry_data_value_coerce_ref, entry_data_value_copy_closure)
(entry_data_value_free_closure, entry_data_value_funcs): New.
(value_of_dwarf_reg_entry): New variables checked_type, target_type,
outer_val, target_val, val and addr.  Try to fetch and create also
referenced value content.
(pieced_value_funcs): NULL value for coerce_ref.
(needs_dwarf_reg_entry_value): Add new parameter deref_size.
* f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
coerce_ref_if_computed.
* opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
* p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
* stack.c (read_frame_arg): Compare also dereferenced values.
* value.c (value_computed_funcs): Make the parameter v const, use
value_lval_const for it.
(value_lval_const, coerce_ref_if_computed): New function.
(coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
* value.h (struct lval_funcs): New field coerce_ref.
(value_computed_funcs): Make the parameter v const.
(value_lval_const, coerce_ref_if_computed): New declarations.

gdb/testsuite/
Display @entry parameter values even for references.
* gdb.arch/amd64-entry-value.cc (reference, datap, datap_input): New
functions.
(main): New variables regvar, nodatavarp, stackvar1, stackvar2.  Call
reference and datap_input.
* gdb.arch/amd64-entry-value.exp (reference, breakhere_reference): New
breakpoints.
(continue to breakpoint: entry_reference: reference)
(entry_reference: bt at entry)
(continue to breakpoint: entry_reference: breakhere_reference)
(entry_reference: bt, entry_reference: ptype regparam)
(entry_reference: p regparam, entry_reference: ptype regparam@entry)
(entry_reference: p regparam@entry, entry_reference: p &regparam@entry)
(entry_reference: p regcopy, entry_reference: p nodataparam)
(entry_reference: p nodataparam@entry): New tests.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:41:16 +0000 (19:41 +0000)]
gdb/
Support @entry in input expressions.
* c-exp.y (ENTRY, unknown_cpp_name): New.
(exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
(unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
(variable: name_not_typename '@' ENTRY, name: ENTRY)
(name_not_typename: ENTRY): New.
(yylex): Recognize ENTRY.
* eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
* expprint.c (print_subexp_standard, dump_subexp_body_standard):
Likewise.
* parse.c (operator_length_standard): Likewise.
* std-operator.def: New operator OP_VAR_ENTRY_VALUE.

gdb/doc/
Support @entry in input expressions.
* gdb.texinfo (Variables): Describe @entry names suffix.
(Print Settings): Add anchor for `set print entry-values'.

gdb/testsuite/
Support @entry in input expressions.
* gdb.arch/amd64-entry-value.exp (entry: p i@entry, entry: p j@entry)
(entry_stack: p s1@entry, entry_stack: p s2@entry)
(entry_stack: p d9@entry, entry_stack: p da@entry, tailcall: p i@entry)
(tailcall: p j@entry): New tests.
* gdb.cp/koenig.cc (A::entry): New function.
(main): Call it.
* gdb.cp/koenig.exp (p entry (c)): New test.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:38:29 +0000 (19:38 +0000)]
gdb/
Display referenced values in backtraces.
* printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
* stack.c (print_frame_arg): Likewise.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:36:06 +0000 (19:36 +0000)]
gdb/
Make some lval_funcs methods to default on NULL.
* valops.c (value_fetch_lazy): Check if lval_computed read method is
NULL.
(value_assign): Check if lval_computed write method is NULL.
* value.h (struct lval_funcs): Comment NULL values for read and write
methods.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:34:18 +0000 (19:34 +0000)]
gdb/
Display @entry parameter values (without references).
* dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
New functions.
* dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
New declarations.
* dwarf2loc.c (dwarf2_find_location_expression): Support location list
entry record.
(dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
(value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
functions.
(dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
(loclist_read_variable_at_entry): New function.
(dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
* dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
DW_AT_location, call dwarf_block_to_sp_offset for it.
* frame.h (print_entry_values_no, print_entry_values_only)
(print_entry_values_preferred, print_entry_values_if_needed)
(print_entry_values_both, print_entry_values_compact)
(print_entry_values_default, print_entry_values): New declarations.
(struct frame_arg): New field entry_kind.
(read_frame_arg): New parameter entryargp.
* mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
arg->entry_kind.  Optionally print the `@entry' suffix.
(list_args_or_locals): New variable entryarg, initialize it.
Initialize also entry_kind of arg and entryarg.  Conditionalize
list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
xfree for entryarg.error.
* stack.c (print_entry_values_no, print_entry_values_only)
(print_entry_values_preferred, print_entry_values_if_needed)
(print_entry_values_both, print_entry_values_compact)
(print_entry_values_default, print_entry_values_choices)
(print_entry_values): New variables.
(print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
print the `@entry' suffix, possibly in combination for
print_entry_values_compact.
(read_frame_arg): New parameter entryargp, new variables entryval,
entryval_error and val_equal.  Read in also entryargp, respect
print_entry_values, compare the values using val_equal, fill in also
argp->entry_kind (together with entryargp->entry_kind).
(print_frame_args): New variable entryarg, initialize it.
Conditionalize print_frame_arg for arg, add print_frame_arg for
entryarg.  Call xfree for entryarg.error.
(_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
* symtab.h (struct symbol_computed_ops): New field
read_variable_at_entry.

gdb/doc/
Display @entry parameter values (without references).
* gdb.texinfo (Tail Call Frames): Add anchor.  Add self tail call
example.
(Print Settings): New description of set print entry-values and show
print entry-values.

gdb/testsuite/
Display @entry parameter values (without references).
* gdb.arch/amd64-entry-value.cc (locexpr, stacktest, data, data2)
(different, validity, invalid): New functions.
(main): Call them.
* gdb.arch/amd64-entry-value.exp: New breakpoints breakhere_locexpr,
stacktest, breakhere_stacktest, different, breakhere_different,
breakhere_validity and breakhere_invalid.
(entry: bt): Update for @entry.
(entry_locexpr: *, entry_stack: *, entry_equal: *, entry_different: *)
(entry_validity: *, entry_invalid: *): Many new tests.
* gdb.base/break.exp
(run until breakpoint set at small function, optimized file): Accept
also the @entry suffix.
* gdb.mi/Makefile.in (PROGS): Add mi2-amd64-entry-value.
* gdb.mi/mi2-amd64-entry-value.c: New files.
* gdb.mi/mi2-amd64-entry-value.exp: New files.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:30:24 +0000 (19:30 +0000)]
gdb/
Code reshuffle.
* frame.h (struct frame_arg): New definition.
(read_frame_arg): New declaration.
* mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
(list_args_or_locals): ... the code here.  New variable arg, call
read_frame_arg and list_arg_or_local with it.  Unify the
PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
arg.error.
* stack.c (print_frame_arg): New functiom from the code of
print_frame_args.
(read_frame_arg): New function.
(print_frame_args): Remove variable val.  New variable arg, call
read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:29:10 +0000 (19:29 +0000)]
gdb/
Protect entry values against self tail calls.
* dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
(dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.

gdb/testsuite/
Protect entry values against self tail calls.
* gdb.arch/amd64-entry-value.cc (self2, self): New.
(main): Call self.
* gdb.arch/amd64-entry-value.exp (self: breakhere, self: bt)
(set debug entry-values 1, self: bt debug entry-values): New tests.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:26:42 +0000 (19:26 +0000)]
gdb/
Recognize virtual tail call frames.
* Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
(HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
(COMMON_OBS): Add dwarf2-frame-tailcall.o.
* dwarf2-frame-tailcall.c: New file.
* dwarf2-frame-tailcall.h: New file.
* dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
(execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
REGS.PREV only after CIE execution.
(struct dwarf2_frame_cache): New field tailcall_cache.
(dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
parts, try to find entry_cfa_sp_offset.  Call
dwarf2_tailcall_sniffer_first.
(dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
when appropriate.
(dwarf2_frame_dealloc_cache): New function.
(dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
(dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
(dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
(dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
(dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
* dwarf2loc.c (func_addr_to_tail_call_list)
(tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
(call_site_find_chain_1, call_site_find_chain): New.
* dwarf2loc.h (struct call_site_chain): New.
(call_site_find_chain): New declaration.
* frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
* frame.h (enum frame_type): New entry TAILCALL_FRAME.
* python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
* stack.c (frame_info): Support also TAILCALL_FRAME.

gdb/doc/
Recognize virtual tail call frames.
* gdb.texinfo (Optimized Code): Add reference to Tail Call Frames.
(Tail Call Frames): New node.
(Frames In Python): Add gdb.TAILCALL_FRAME.

gdb/testsuite/
Recognize virtual tail call frames.
* gdb.arch/amd64-entry-value.cc (c, a, b, amb_z, amb_y, amb_x, amb)
(amb_b, amb_a): New.
(main): Call a and b.
* gdb.arch/amd64-entry-value.exp (tailcall: breakhere, tailcall: bt)
(tailcall: p i, tailcall: p j, set $sp0=$sp, up, p $sp0 == $sp, frame 3)
(p $sp0 + sizeof (void *) == $sp, ambiguous: breakhere, ambiguous: bt):
New tests.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:23:41 +0000 (19:23 +0000)]
gdb/
Tail call sites reader implementation.
* dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
fill in TYPE_TAIL_CALL_LIST.
* gdbtypes.h (struct func_type): New field tail_call_list.
(struct call_site): New field tail_call_next.
(TYPE_TAIL_CALL_LIST): New definition.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:21:37 +0000 (19:21 +0000)]
gdb/
Implement basic support for DW_TAG_GNU_call_site.
* block.c: Include gdbtypes.h and exceptions.h.
(call_site_for_pc): New function.
* block.h (call_site_for_pc): New declaration.
* defs.h: Include hashtab.h.
(make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
declarations.
* dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
ctx_no_push_dwarf_reg_entry_value.
* dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
(dwarf_block_to_dwarf_reg): New function.
(execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
(ctx_no_push_dwarf_reg_entry_value): New function.
* dwarf2expr.h (struct dwarf_expr_context_funcs): New field
push_dwarf_reg_entry_value.
(ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
declarations.
* dwarf2loc.c: Include gdbcmd.h.
(dwarf_expr_ctx_funcs): New forward declaration.
(entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
(dwarf_expr_reg_to_entry_parameter)
(dwarf_expr_push_dwarf_reg_entry_value): New.
(dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
(dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
(needs_dwarf_reg_entry_value): New function.
(needs_frame_ctx_funcs): Install it.
(_initialize_dwarf2loc): New function.
* dwarf2loc.h (entry_values_debug): New declaration.
* dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
(read_call_site_scope): New forward declaration.
(process_full_comp_unit): Copy call_site_htab.
(process_die): Support DW_TAG_GNU_call_site.
(read_call_site_scope): New function.
(dwarf2_get_pc_bounds): Support NULL HIGHPC.
(dwarf_tag_name): Support DW_TAG_GNU_call_site.
(cleanup_htab): Delete.
(write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
* exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
* gdb-gdb.py (StructMainTypePrettyPrinter): Support
FIELD_LOC_KIND_DWARF_BLOCK.
* gdbtypes.h (enum field_loc_kind): New entry
FIELD_LOC_KIND_DWARF_BLOCK.
(struct main_type): New loc entry dwarf_block.
(struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
(TYPE_FIELD_DWARF_BLOCK): New.
* python/py-type.c: Include dwarf2loc.h.
(check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
internal_error call on unknown FIELD_LOC_KIND.
* symtab.h (struct symtab): New field call_site_htab.
* utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
(core_addr_hash, core_addr_eq): New functions.

gdb/testsuite/
Implement basic support for DW_TAG_GNU_call_site.
* gdb.arch/Makefile.in (EXECUTABLES): Add amd64-entry-value.
* gdb.arch/amd64-entry-value.cc: New file.
* gdb.arch/amd64-entry-value.exp: New file.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:10:52 +0000 (19:10 +0000)]
gdb/
Code reshuffle.
* gdb-gdb.py (StructMainTypePrettyPrinter): Change
TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
calling_convention under func_stuff there.
* gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
(init_type) <TYPE_CODE_FUNC>: Likewise.
(recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
* gdbtypes.h (enum type_specific_kind): Change
TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
(struct main_type) <type_specific>: Change calling_convention to
func_stuff.  Move calling_convention to ...
(struct func_type): ... this new struct.
(INIT_FUNC_SPECIFIC): New #define.
(TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 18:46:40 +0000 (18:46 +0000)]
gdb/
Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
* dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
ctx->ref_addr_size.  Handle its invalid value.
* dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
(dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
* dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
* dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
(dwarf2_per_cu_ref_addr_size): New function.

gdb/testsuite/
Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
* gdb.dwarf2/implptr-64bit.S: New file.
* gdb.dwarf2/implptr-64bit.exp: New file.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 18:43:32 +0000 (18:43 +0000)]
gdb/
Code cleanup.
* dwarf2read.c (per_cu_header_read_in): New function.
(dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
variables cu_header_local and cu_headerp.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 18:37:26 +0000 (18:37 +0000)]
gdb/
Fix initial language detection with -readnow.
* dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
* symfile.h (struct quick_symbol_functions): State find_symbol_file
searches only for global symbols.

gdb/testsuite/
Fix initial language detection with -readnow.
* gdb.cp/readnow-language.cc: New file.
* gdb.cp/readnow-language.exp: New file.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 18:33:27 +0000 (18:33 +0000)]
gdb/
Fix printed anonymous struct name.
* dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
(anonymous_struct_prefix): New function.
(determine_prefix): New variables retval.  Call anonymous_struct_prefix.
(dwarf2_name): Strip for anonymous structs any prefixes.

gdb/testsuite/
Fix printed anonymous struct name.
* gdb.cp/anon-struct.exp (print type of X::t2): New test.

12 years ago * gdb.base/solib-symbol.exp: Do not include directories in
jsm28 [Sun, 9 Oct 2011 18:14:40 +0000 (18:14 +0000)]
* gdb.base/solib-symbol.exp: Do not include directories in
filenames in expected messages.

12 years ago * emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
amodra [Sun, 9 Oct 2011 03:41:15 +0000 (03:41 +0000)]
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
missing colon to error message.
(ppc_before_allocation): Likewise.

12 years ago*** empty log message ***
gdbadmin [Sun, 9 Oct 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sat, 8 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agoPreserve the maximum alignment/size for common symbols.
hjl [Sat, 8 Oct 2011 16:51:08 +0000 (16:51 +0000)]
Preserve the maximum alignment/size for common symbols.

bfd/

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

PR ld/13250
* elflink.c (elf_link_add_object_symbols): Preserve the maximum
alignment and size for common symbols.

ld/testsuite/

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

PR ld/13250
* ld-elf/shared.exp (build_tests): Add tests for PR ld/13250.
(run_tests): Likewise.

* ld-elf/pr13250-1.c: New.
* ld-elf/pr13250-2.c: Likewise.
* ld-elf/pr13250-3.c: Likewise.

12 years ago PR ld/13229
amodra [Sat, 8 Oct 2011 07:50:17 +0000 (07:50 +0000)]
PR ld/13229
PR ld/13244
* elflink.c (elf_link_add_object_symbols): Don't make IR symbols
dynamic.

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

12 years ago * elflink.c (elf_link_output_extsym): Strip defined plugin symbols
amodra [Fri, 7 Oct 2011 23:06:07 +0000 (23:06 +0000)]
* elflink.c (elf_link_output_extsym): Strip defined plugin symbols
even when strip_discarded is false.

12 years ago * gdb.texinfo (gdb.printing): Document new `replace' arg to
devans [Fri, 7 Oct 2011 23:01:54 +0000 (23:01 +0000)]
* gdb.texinfo (gdb.printing): Document new `replace' arg to
register_pretty_printer.

12 years agodaily update
amodra [Fri, 7 Oct 2011 23:00:04 +0000 (23:00 +0000)]
daily update

12 years ago * python/lib/gdb/printing.py (register_pretty_printer): New argument
devans [Fri, 7 Oct 2011 22:46:14 +0000 (22:46 +0000)]
* python/lib/gdb/printing.py (register_pretty_printer): New argument
`replace'.

testsuite/
* gdb.python/py-pp-maint.py: Add tests for `replace' arg.

12 years ago * python/lib/gdb/printing.py: Whitespace cleanup.
devans [Fri, 7 Oct 2011 22:25:55 +0000 (22:25 +0000)]
* python/lib/gdb/printing.py: Whitespace cleanup.

12 years ago * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
devans [Fri, 7 Oct 2011 22:02:41 +0000 (22:02 +0000)]
* python/py-value.c (valpy_call): Initialize ftype to avoid compiler
warning.

12 years agoFix PR spelling, 13624 -> 13264.
devans [Fri, 7 Oct 2011 21:56:17 +0000 (21:56 +0000)]
Fix PR spelling, 13624 -> 13264.

12 years agoDon't run dw2-decodedline.S on ia64.
hjl [Fri, 7 Oct 2011 20:13:53 +0000 (20:13 +0000)]
Don't run dw2-decodedline.S on ia64.

2011-10-07  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/objdump.exp: Don't run dw2-decodedline.S on ia64.

12 years agoRun --gc-sections tests only if supported.
hjl [Fri, 7 Oct 2011 19:55:47 +0000 (19:55 +0000)]
Run --gc-sections tests only if supported.

2011-10-07  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/elf.exp: Run --gc-sections tests only if --gc-sections
is available.

12 years ago2011-10-07 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 7 Oct 2011 17:15:15 +0000 (17:15 +0000)]
2011-10-07  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.h (ALL_LWPS): Remove the ptid parameter.
* amd64-linux-nat.c (amd64_linux_dr_set_control)
(amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
* arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
(arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
(arm_linux_remove_watchpoint): Adjust.
* i386-linux-nat.c (i386_linux_dr_set_control)
(i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
* ia64-linux-nat.c (ia64_linux_insert_watchpoint)
(ia64_linux_remove_watchpoint): Adjust.
* mips-linux-nat.c (write_watchpoint_regs): Adjust.
* ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
(ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
(ppc_linux_insert_mask_watchpoint)
(ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
(ppc_linux_remove_watchpoint): Adjust.
* s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
Adjust.

12 years ago2011-10-07 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 7 Oct 2011 17:15:06 +0000 (17:15 +0000)]
2011-10-07  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.h (ALL_LWPS): Remove the ptid parameter.
* amd64-linux-nat.c (amd64_linux_dr_set_control)
(amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
* arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
(arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
(arm_linux_remove_watchpoint): Adjust.
* i386-linux-nat.c (i386_linux_dr_set_control)
(i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
* ia64-linux-nat.c (ia64_linux_insert_watchpoint)
(ia64_linux_remove_watchpoint): Adjust.
* mips-linux-nat.c (write_watchpoint_regs): Adjust.
* ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
(ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
(ppc_linux_insert_mask_watchpoint)
(ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
(ppc_linux_remove_watchpoint): Adjust.
* s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
Adjust.

12 years ago* fhandler.h (fhandler_console::tc_getpgid): New function.
cgf [Fri, 7 Oct 2011 13:52:20 +0000 (13:52 +0000)]
* fhandler.h (fhandler_console::tc_getpgid): New function.
* spawn.cc (spawn_guts): Add logic to put pure-windows processes "in the
background" when they are started that way.

12 years ago * windows-nat.c: Include wchar.h to avoid compiler warnings.
corinna [Fri, 7 Oct 2011 13:52:10 +0000 (13:52 +0000)]
* windows-nat.c: Include wchar.h to avoid compiler warnings.
(clear_win32_environment): New function for Cygwin to clear out
Win32 environment.
(windows_create_inferior): Prepare new environment from in_env
for Cygwin, too.

12 years ago * include/sys/cygwin.h (cygwin_getinfo_types): Define values
corinna [Fri, 7 Oct 2011 13:49:15 +0000 (13:49 +0000)]
* include/sys/cygwin.h (cygwin_getinfo_types): Define values
additionally as preprocessor symbols.

12 years ago2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 7 Oct 2011 13:46:07 +0000 (13:46 +0000)]
2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>

PR python/13624

* python/py-value.c (valpy_call): Check that arguments are
a tuple.
        (is_intlike): Remove call to CHECK_TYPEDEF.
(valpy_nonzero): Catch GDB exceptions.
(valpy_absolute): Ditto.
        (valpy_lazy_string): Ditto.
        (valpy_call): Ditto.
        (valpy_get_is_optimized_out): Ditto.
        (valpy_long): Ditto.
        (valpy_float): Ditto.
        (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
        (valpy_richcompare): Ditto.

12 years ago2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 7 Oct 2011 13:23:18 +0000 (13:23 +0000)]
2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>

PR python/12930
PR python/12802

* gdb.texinfo (Breakpoints In Python): Clarify behavior in the
stop method.

12 years ago * inferior.h (disable_randomization): Declare.
uweigand [Fri, 7 Oct 2011 12:06:43 +0000 (12:06 +0000)]
* inferior.h (disable_randomization): Declare.
* infrun.c (disable_randomization): New global variable.
(show_disable_randomization): New function.
(set_disable_randomization): Likewise.
(_initialize_infrun): Install set/show disable-randomization
commands.
* linux-nat.c (disable_randomization): Remove.
(show_disable_randomization): Likewise.
(set_disable_randomization): Likewise.
(_initialize_linux_nat): No longer install set/show
disable-randomization commands here.
(linux_nat_supports_disable_randomization): New function.
(linux_nat_add_target): Install it.
* remote.c (PACKET_QDisableRandomization): New enum value.
(remote_protocol_packets): Support QDisableRandomization.
(_initialize_remote): Likewise.
(remote_supports_disable_randomization): New function.
(init_remote_ops): Install it.
(extended_remote_supports_disable_randomization): New function.
(init_extended_remote_ops): Install it.
(extended_remote_disable_randomization): New function.
(extended_remote_create_inferior_1): Call it.
* target.h (struct target_ops): Add to_supports_disable_randomization.
(target_supports_disable_randomization): Add prototype.
* target.c (target_supports_disable_randomization): New function.
(find_default_supports_disable_randomization): Likewise.
(init_dummy_target): Install it.

doc/
* gdb.texinfo (Starting your Program): "set disable-randomization"
is no longer Linux-specific.
(Remote Configuration): Document "set remote
disable-randomization-packet".
(General Query Packets): Document "QDisableRandomization" packet
and add it to "qSupported" list.

gdbserver/
* configure.ac: Check support for personality routine.
* configure: Regenerate.
* config.in: Likewise.
* linux-low.c: Include <sys/personality.h>.
Define ADDR_NO_RANDOMIZE if necessary.
(linux_create_inferior): Disable address space randomization when
forking inferior, if requested.
(linux_supports_disable_randomization): New function.
(linux_target_ops): Install it.
* server.h (disable_randomization): Declare.
* server.c (disable_randomization): New global variable.
(handle_general_set): Handle QDisableRandomization.
(handle_query): Likewise for qSupported.
(main): Support --disable-randomization and --no-disable-randomization
command line arguments.
* target.h (struct target_ops): Add supports_disable_randomization.
(target_supports_disable_randomization): New macro.

12 years ago * rx/crt0.S: Initialise the PID address register.
nickc [Fri, 7 Oct 2011 10:09:21 +0000 (10:09 +0000)]
* rx/crt0.S: Initialise the PID address register.
(__pid_base): Define weakly.

12 years agoAdd missing files to previous commit (Allow Python notification of new object-file...
kpouget [Fri, 7 Oct 2011 08:39:57 +0000 (08:39 +0000)]
Add missing files to previous commit (Allow Python notification of new object-file loadings.)

12 years agoFix copyright.
corinna [Fri, 7 Oct 2011 08:14:25 +0000 (08:14 +0000)]
Fix copyright.

12 years agoFix ChangeLog messup (Allow Python notification of new object-file loadings.)
kpouget [Fri, 7 Oct 2011 07:51:19 +0000 (07:51 +0000)]
Fix ChangeLog messup (Allow Python notification of new object-file loadings.)

12 years ago Allow Python notification of new object-file loadings.
kpouget [Fri, 7 Oct 2011 07:38:26 +0000 (07:38 +0000)]
Allow Python notification of new object-file loadings.

* Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
(SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
Add build rule for this file.
* python/py-event.h (emit_new_objfile_event): New prototype.
(newobjfile): New Python event emitter.
* python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
Python event registry.
* python/py-inferior.c: Include objfiles.h
(python_new_objfile): New function.
(gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
observers.
* python/py-newobjfileevent.c: New file.
* python-internal.h (gdbpy_initialize_new_objfile_event): New
prototype.
* python/python.c (_initialize_python): Add
gdbpy_initialize_new_objfile_event call.
* NEWS: Add item for new Python event "gdb.newobjfile"

2011-10-06  Kevin Pouget  <kevin.pouget@st.com>

Allow Python notification of new object-file loadings.
* gdb.texinfo (Events In Python): Document `gdb.NewObjFileEvent'
event type.

2011-10-06  Kevin Pouget  <kevin.pouget@st.com>

Allow Python notification of new object-file loadings.
* gdb.python/py-events.exp: Test newobjfile event.
* gdb.python/py-events.py: Register newobjfile callback.
* gdb.python/py-events.c: Add call to shared library
* gdb.python/py-events-shlib.c: New file.

12 years ago * gdb.base/fixsection.exp: Do not include directories in filename
jsm28 [Fri, 7 Oct 2011 00:24:37 +0000 (00:24 +0000)]
* gdb.base/fixsection.exp: Do not include directories in filename
in expected message.

12 years ago*** empty log message ***
gdbadmin [Fri, 7 Oct 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Thu, 6 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRP
corinna [Thu, 6 Oct 2011 19:47:44 +0000 (19:47 +0000)]
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRP
pseudo signal to process group instead of just calling
init_console_handler.
* sigproc.cc (wait_sig): Call init_console_handler here on __SIGSETPGRP
signal.
* sigproc.h (__SIGSETPGRP): Define.

12 years ago2011-10-06 Christian Franke <franke@computer.org>
chrfranke [Thu, 6 Oct 2011 16:02:34 +0000 (16:02 +0000)]
2011-10-06  Christian Franke  <franke@computer.org>

* include/cygwin/wait.h: Use new __wait_status_to_int()
macro to access status value in W*() status checks.
Fix status description.
* include/sys/wait.h: Allow `int' and `union wait' as
wait status parameter.  Change __wait_status_to_int()
macro and wait () prototypes accordingly.  Add inline
functions for C++.  Remove extra `;'.

12 years agodyslexia
amodra [Thu, 6 Oct 2011 10:26:34 +0000 (10:26 +0000)]
dyslexia

12 years ago PR ld/13329
amodra [Thu, 6 Oct 2011 10:07:16 +0000 (10:07 +0000)]
PR ld/13329
ld/
* plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
(set_tv_header): Handle it.  Adjust LDPT_GET_SYMBOLS.  Return void.
(get_symbols): Add def_ironly_exp param.  Return that value for
syms exported from shared libs.
(get_symbols_v1, get_symbols_v2): New wrapper functions.
* testplug.c: Update for above changes.
ld/testsuite/
* ld-plugin/plugin-1.d, * ld-plugin/plugin-2.d, * ld-plugin/plugin-3.d,
* ld-plugin/plugin-4.d, * ld-plugin/plugin-5.d, * ld-plugin/plugin-6.d,
* ld-plugin/plugin-7.d, * ld-plugin/plugin-8.d, * ld-plugin/plugin-9.d,
* ld-plugin/plugin-10.d, * ld-plugin/plugin-11.d: Update.