OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
15 years agodaily update
amodra [Sun, 14 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * fhandler_socket.cc (fhandler_socket::recv_internal): Set namelen
corinna [Sat, 13 Jun 2009 16:13:00 +0000 (16:13 +0000)]
* fhandler_socket.cc (fhandler_socket::recv_internal): Set namelen
pointer to NULL if name pointer is NULL.  Explain why.

15 years ago * dwarf2read.c (dwarf2_psymtab_to_symtab): Propagate
kevinb [Sat, 13 Jun 2009 04:23:32 +0000 (04:23 +0000)]
* dwarf2read.c (dwarf2_psymtab_to_symtab): Propagate
`has_section_at_zero' flag from stripped objfile to separate,
debug info only, objfile.

15 years ago*** empty log message ***
gdbadmin [Sat, 13 Jun 2009 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Sat, 13 Jun 2009 00:00:06 +0000 (00:00 +0000)]
daily update

15 years agogdb/testsuite/
jkratoch [Fri, 12 Jun 2009 21:28:34 +0000 (21:28 +0000)]
gdb/testsuite/
Report error on GDB crash during runto.
* lib/gdb.exp (runto <eof>): New.

15 years ago * exec.h (section_table_xfer_memory_partial): Improve description,
palves [Fri, 12 Jun 2009 18:38:36 +0000 (18:38 +0000)]
* exec.h (section_table_xfer_memory_partial): Improve description,
mention SECTION_NAME.
* exec.c (section_table_xfer_memory_partial): Remove stale
description.

15 years ago * corefile.c (num_of_syms_in): New function - computes the number
nickc [Fri, 12 Jun 2009 15:33:30 +0000 (15:33 +0000)]
    * corefile.c (num_of_syms_in): New function - computes the number
        of symbols in a given file.
        (core_create_syms_from): New function - populates a symbol table
        from the symbols found in a specified file.
        * corefile.h: Prototype core_create_syms_from.
        * gprof.c (long_options): Add --external-symbol-table.
        (usage): Mention it.
        (main): Initiailize external_symbol_table from
        --external-symbol-table option.  If set use it.
        * gprof.texi: Document the new option.

        * NEWS: Mention new feature added to gprof.

15 years ago * faq-using.xml (faq.using.emacs): Update.
corinna [Fri, 12 Jun 2009 15:16:27 +0000 (15:16 +0000)]
* faq-using.xml (faq.using.emacs): Update.

15 years ago * localtime.cc (time2): Change "spring gap" to "spring forward gap"
corinna [Fri, 12 Jun 2009 15:08:43 +0000 (15:08 +0000)]
* localtime.cc (time2): Change "spring gap" to "spring forward gap"
in comment.

15 years ago * localtime.cc (time2): Add workaround for spring gap problem. Add
corinna [Fri, 12 Jun 2009 15:06:26 +0000 (15:06 +0000)]
* localtime.cc (time2): Add workaround for spring gap problem.  Add
explaining comment.

15 years ago2009-06-10 Philip Blundell <philb@gnu.org>
pb [Fri, 12 Jun 2009 14:27:21 +0000 (14:27 +0000)]
2009-06-10  Philip Blundell  <philb@gnu.org>

* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
if section has no ELF data.

15 years ago2009-06-10 Philip Blundell <philb@gnu.org>
pb [Fri, 12 Jun 2009 14:26:07 +0000 (14:26 +0000)]
2009-06-10  Philip Blundell  <philb@gnu.org>

* elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
elf_sec->this_hdr == NULL.

15 years ago * readelf.c (process_symbol_table): Set gnubuckets to NULL after
nickc [Fri, 12 Jun 2009 13:54:44 +0000 (13:54 +0000)]
    * readelf.c (process_symbol_table): Set gnubuckets to NULL after
        freeing it and before returning.

15 years ago* opncls.c (_maybe_make_executable): New function. Gives execute
nickc [Fri, 12 Jun 2009 12:04:19 +0000 (12:04 +0000)]
* opncls.c (_maybe_make_executable): New function.  Gives execute
        permission to an executable bfd that was opened for writing
        provided that it is a regular file.  Replaces common code found in...
        (bfd_close): here and ...
        (bfd_close_all_done): here.

15 years ago * readelf.c (process_symbol_table): Don't return early if
jakub [Fri, 12 Jun 2009 10:19:54 +0000 (10:19 +0000)]
* readelf.c (process_symbol_table): Don't return early if
.hash/.gnu.hash is empty/unusable and not -D.

15 years ago * Makefile.in (SUBLIBS): Add librt.a.
corinna [Fri, 12 Jun 2009 10:19:35 +0000 (10:19 +0000)]
* Makefile.in (SUBLIBS): Add librt.a.
(librt.a): New rule to build librt.a.

15 years agoImprove ChangeLog entry. Fix posix_ipc.cc copyright
corinna [Fri, 12 Jun 2009 09:52:06 +0000 (09:52 +0000)]
Improve ChangeLog entry.  Fix posix_ipc.cc copyright

15 years ago * posix_ipc.cc (check_path): Fix typo in comment. Align naming
corinna [Fri, 12 Jun 2009 09:50:04 +0000 (09:50 +0000)]
* posix_ipc.cc (check_path): Fix typo in comment.  Align naming
convention rules to Linux.  Add comment.

15 years ago2009-06-12 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 12 Jun 2009 09:15:45 +0000 (09:15 +0000)]
2009-06-12  Tristan Gingold  <gingold@adacore.com>

* reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
* bfd-in2.h: Regenerated.
* libbfd.h: Regenerated.

* mach-o.c (FILE_ALIGN): New macro.
(bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_scan_write_thread): Adjust type of variable offset.
(bfd_mach_o_get_reloc_upper_bound): New function.
(bfd_mach_o_canonicalize_reloc): Ditto.
(bfd_mach_o_scan_write_relocs): Ditto.
(bfd_mach_o_scan_write_section_32): Remove offset argument.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_segment_32): Write relocs.  Fix size of data
written for load command.  Do not compute section file offset.
(bfd_mach_o_scan_write_segment_64): Ditto.
(bfd_mach_o_scan_write_symtab): Compute file offset first.
Adjust for bfd_mach_o_asymbol.  Move code to convert from BFD to
Mach-O to ...
(bfd_mach_o_mangle_symbols): ... this new function.
(bfd_mach_o_write_contents): Be sure to habe load commands built.
Call bfd_mach_o_mangle_symbols.
(bfd_mach_o_build_commands): Adjust for filelen field.
Use FILE_ALIGN macro.  Clear section file offset if section is empty.
Do not set symtab file offset anymore here.
(bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol.
(bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc.
Set reloc_count and rel_filepos section fields.
(bfd_mach_o_scan_read_section_32): Type of argument offset is now
unsigned int.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_section): Ditto.
(bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now
bfd_mach_o_asymbol.  Use unsigned int for file offset type.
(bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol.
Handle weak-ref symbols.
(bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol.
(bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
(bfd_mach_o_scan): Remove assignment to removed field.
(bfd_mach_o_mkobject_init): Ditto.
(bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter.
(bfd_mach_o_bfd_reloc_type_lookup): New macro.
(bfd_mach_o_bfd_reloc_name_lookup): Ditto.
(bfd_mach_o_swap_reloc_in): Ditto.
(bfd_mach_o_swap_reloc_out): Ditto.

* mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY)
(BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY)
(BFD_MACH_O_REFERENCE_FLAG_DEFINED)
(BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED)
(BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY)
(BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY)
(BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED)
(BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF)
(BFD_MACH_O_N_WEAK_DEF): New macros.
Add comments.
(bfd_mach_o_section_type): Add new enumeration values.
(BFD_MACH_O_S_SELF_MODIFYING_CODE)
(BFD_MACH_O_S_ATTR_LIVE_SUPPORT)
(BFD_MACH_O_S_ATTR_NO_DEAD_STRIP)
(BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New
macros.
(BFD_MACH_O_GENERIC_RELOC_VANILLA)
(BFD_MACH_O_GENERIC_RELOC_PAIR)
(BFD_MACH_O_GENERIC_RELOC_SECTDIFF)
(BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR)
(BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto.
(BFD_MACH_O_RELENT_SIZE): Ditto.
(BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH)
(BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE)
(BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH)
(BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto.
(BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL)
(BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE)
(BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH)
(BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto.
(bfd_mach_o_reloc_info): New struct.
(bfd_mach_o_asymbol): New struct.
(bfd_mach_o_symtab_command): The symbols field is now of type
bfd_mach_o_asymbol.
(bfd_mach_o_load_command): The offset and len fields are now of type
unsigned int.
(mach_o_data_struct): Remove symbols, nsymbols and ibfd fields.
Add a filelen field.  Add comments.
(bfd_mach_o_backend_data): New struct.
(bfd_mach_o_get_backend_data): New macro.
(bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type
bfd_mach_o_asymbol.
(bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
(bfd_mach_o_get_reloc_upper_bound): New prototype.
(bfd_mach_o_canonicalize_reloc): Ditto.

* mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove
duplicated macro.  Now defined to _bfd_generic_is_local_label.
(TARGET_NAME_BACKEND): New macro...
(TARGET_NAME_BACKEND): ... used to name a new variable.
(TARGET_NAME): Define relocs table using bfd_mach_o, reference
Mach-O backend data.

* mach-o-i386.c (i386_howto_table): New variable.
(bfd_mach_o_i386_swap_reloc_in): New function.
(bfd_mach_o_i386_swap_reloc_out): Ditto.
(bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto.
(bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto.
(bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros.
(bfd_mach_o_bfd_reloc_type_lookup)
(bfd_mach_o_bfd_reloc_name_lookup): Ditto.

15 years ago* nto-tdep.h (nto_generic_supply_gpregset)
aristovski [Fri, 12 Jun 2009 02:32:09 +0000 (02:32 +0000)]
* nto-tdep.h (nto_generic_supply_gpregset)
(nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
* nto-tdep.c (nto_generic_supply_gpregset)
(nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.

15 years ago*** empty log message ***
gdbadmin [Fri, 12 Jun 2009 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Fri, 12 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * i386-nto-tdep.c (I386_NTO_SIGCONTEXT_OFFSET): Remove define.
aristovski [Thu, 11 Jun 2009 20:55:18 +0000 (20:55 +0000)]
* i386-nto-tdep.c (I386_NTO_SIGCONTEXT_OFFSET): Remove define.
(i386nto_sigcontext_addr): Change the way context address is calculated.
(i386nto_init_abi): Remove usage of deprecated sc_reg_offset and
sc_sp_offset and set sc_reg_offset and sc_num_regs.

15 years ago * i386-nto-tdep.c (i386_nto_target): Remove definition.
aristovski [Thu, 11 Jun 2009 19:29:00 +0000 (19:29 +0000)]
* i386-nto-tdep.c (i386_nto_target): Remove definition.
(init_i386nto_ops): Use macros to set fields to global
current_nto_target directly.
(i386nto_init_abi): Remove unused nto_set_target call.
* nto-tdep.h (nto_set_target): Remove unused declaration.
* nto-tdep.c (nto_set_target): Remove unused function.

15 years ago * breakpoint.c (break_command_really): Rename local variable
palves [Thu, 11 Jun 2009 18:51:42 +0000 (18:51 +0000)]
* breakpoint.c (break_command_really): Rename local variable
breakpoint_chain to bkpt_chain.

15 years ago Add support for XMM registers.
aristovski [Thu, 11 Jun 2009 17:12:11 +0000 (17:12 +0000)]
Add support for XMM registers.
* i386-nto-tdep.c (i386nto_regset_id): Add case for SSE register set.
(i386nto_register_area): Correctly calculate offsets and sizes for
all supported registers.

15 years ago * eval.c (evaluate_subexp_standard) <OP_OBJC_MSGCALL>: Remove
tromey [Thu, 11 Jun 2009 16:49:46 +0000 (16:49 +0000)]
* eval.c (evaluate_subexp_standard) <OP_OBJC_MSGCALL>: Remove
'static' from local variable definitions.

15 years ago * symtab.c (append_expanded_sal): Remove unused local variables.
palves [Thu, 11 Jun 2009 14:24:24 +0000 (14:24 +0000)]
* symtab.c (append_expanded_sal): Remove unused local variables.

15 years agogdb/
palves [Thu, 11 Jun 2009 11:57:45 +0000 (11:57 +0000)]
gdb/
* infrun.c (sched_multi): New global.
(resume): If sched_multi is set, resume only threads of the
current inferior.
(prepare_to_proceed): Don't switch over to wait_ptid if we're
resuming a different inferior, and sched_multi is off.
(show_schedule_multiple): New.
(_initialize_infrun): Register new "set schedule-multiple" command.
* inferior.h (sched_multi): Declare.
* NEWS: Mention new "schedule-multiple" setting.
gdb/doc/
* gdb.texinfo (All-Stop): Document new 'set schedule-multiple'
command.

15 years agoAdd PC-relative branch support to moxie sim.
green [Thu, 11 Jun 2009 11:36:14 +0000 (11:36 +0000)]
Add PC-relative branch support to moxie sim.

15 years agoAdd PC-relative branch instructions to moxie port.
green [Thu, 11 Jun 2009 11:27:56 +0000 (11:27 +0000)]
Add PC-relative branch instructions to moxie port.

15 years agoTypos in ChangeLog :-(
ppluzhnikov [Thu, 11 Jun 2009 00:46:28 +0000 (00:46 +0000)]
Typos in ChangeLog :-(

15 years ago2009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Thu, 11 Jun 2009 00:41:02 +0000 (00:41 +0000)]
2009-06-10  Paul Pluzhnikov  <ppluzhnikov@google.com>

* bfd-in2.h: bfd_mmap prototype
* bfdio.c (bfd_mmap): New function.
* libbfd.h (bfd_iovec): Add bmmap.
* cache.c (cache_bmap): New function.
(cache_iovec): Initialize bmmap member.
* opencls.c (opncls_bmmap): New function.
(opncls_iovec): Initialize bmmap member.

15 years ago*** empty log message ***
gdbadmin [Thu, 11 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Thu, 11 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * varobj.c (varobj_create): Properly restore the selected frame.
palves [Wed, 10 Jun 2009 23:39:45 +0000 (23:39 +0000)]
* varobj.c (varobj_create): Properly restore the selected frame.

15 years ago * inferior.c (print_inferior): Make a table, not a list. Emit
tromey [Wed, 10 Jun 2009 22:08:18 +0000 (22:08 +0000)]
* inferior.c (print_inferior): Make a table, not a list.  Emit
table headers.

15 years ago2009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>
palves [Wed, 10 Jun 2009 21:08:27 +0000 (21:08 +0000)]
2009-06-10  Jonas Maebe  <jonas.maebe@elis.ugent.be>

* darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
darwin_wait (blocking wait).
(darwin_kill_inferior): Likewise.

15 years ago * infrun.c (handle_inferior_event): Update comment around trying
palves [Wed, 10 Jun 2009 17:26:36 +0000 (17:26 +0000)]
* infrun.c (handle_inferior_event): Update comment around trying
to revert back to a stepping thread that has exited.

15 years ago * dwarf2read.c (dwarf_decode_lines): Recognize and ignore
ccoutant [Wed, 10 Jun 2009 14:55:13 +0000 (14:55 +0000)]
* dwarf2read.c (dwarf_decode_lines): Recognize and ignore
DW_LNE_set_discriminator.

15 years ago * path.cc (oopts): Sort alphabetically, add missing "auto" and
corinna [Wed, 10 Jun 2009 10:42:22 +0000 (10:42 +0000)]
* path.cc (oopts): Sort alphabetically, add missing "auto" and
"override" entries.
(from_fstab_line): Handle mount points same as Cygwin itself.  Use
"cygdrive prefix" as posix name of cygdrive prefix.
(from_fstab): Add auto entries for /usr/bin and /usr/lib.  Add
MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry.
Use "cygdrive prefix" as posix name of default cygdrive prefix.
(getmntent): Allocate smaller buffers.  Align output closer to output
of mount(1).

15 years agoHandle MOXIE_F1_M opcodes.
green [Wed, 10 Jun 2009 06:07:47 +0000 (06:07 +0000)]
Handle MOXIE_F1_M opcodes.

15 years ago * breakpoint.c: ARI fixes.
muller [Wed, 10 Jun 2009 04:32:08 +0000 (04:32 +0000)]
* breakpoint.c: ARI fixes.
(create_overlay_event_breakpoint): Avoid assignment inside if statement.
(print_one_breakpoint_location): Likewise.
(create_longjmp_breakpoint): Likewise.
(tracepoint_save_command): Likewise
(bpstat_find_step_resume_breakpoint): No operator at end of line.
(bpstat_stop_status): Likewise.
(describe_other_breakpoints): Likewise.
(hw_watchpoint_used_count): Likewise.
(expand_line_sal_maybe): Likewise.
(break_command_really): Likewise.
(delete_command): Likewise.
(do_enable_breakpoint): Likewise.
(delete_trace_command): Likewise.
(catch_exception_command_1): Likewise and remove extra parentheses.

15 years ago*** empty log message ***
gdbadmin [Wed, 10 Jun 2009 00:00:07 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Wed, 10 Jun 2009 00:00:07 +0000 (00:00 +0000)]
daily update

15 years ago * gdb.mi/mi-async.exp, gdb.mi/mi-basics.exp,
drow [Tue, 9 Jun 2009 17:12:42 +0000 (17:12 +0000)]
* gdb.mi/mi-async.exp, gdb.mi/mi-basics.exp,
gdb.mi/mi-break.exp, gdb.mi/mi-cli.exp,
gdb.mi/mi-disassemble.exp, gdb.mi/mi-eval.exp,
gdb.mi/mi-file-transfer.exp, gdb.mi/mi-file.exp,
gdb.mi/mi-regs.exp, gdb.mi/mi-return.exp,
gdb.mi/mi-simplerun.exp, gdb.mi/mi-stepi.exp,
gdb.mi/mi-var-block.exp, gdb.mi/mi-var-cmd.exp,
gdb.mi/mi-var-display.exp, gdb.mi/mi-var-invalidate.exp,
gdb.mi/mi-watch.exp, gdb.mi/mi2-basics.exp,
gdb.mi/mi2-break.exp, gdb.mi/mi2-cli.exp,
gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-eval.exp,
gdb.mi/mi2-file.exp, gdb.mi/mi2-regs.exp,
gdb.mi/mi2-return.exp, gdb.mi/mi2-simplerun.exp,
gdb.mi/mi2-stepi.exp, gdb.mi/mi2-var-block.exp,
gdb.mi/mi2-var-child.exp, gdb.mi/mi2-var-cmd.exp,
gdb.mi/mi2-var-display.exp, gdb.mi/mi2-watch.exp,
gdb.server/ext-run.exp, gdb.server/file-transfer.exp,
gdb.server/server-mon.exp, gdb.server/server-run.exp,
gdb.trace/actions.exp, gdb.trace/backtrace.exp,
gdb.trace/deltrace.exp, gdb.trace/infotrace.exp,
gdb.trace/packetlen.exp, gdb.trace/passc-dyn.exp,
gdb.trace/passcount.exp, gdb.trace/report.exp,
gdb.trace/save-trace.exp, gdb.trace/tfind.exp,
gdb.trace/tracecmd.exp, gdb.trace/while-dyn.exp,
gdb.trace/while-stepping.exp: Use a unique name for the compiled
executable.

15 years ago PR 10165
nickc [Tue, 9 Jun 2009 15:14:23 +0000 (15:14 +0000)]
    PR 10165
        * winduni.c (wind_MultiByteToWideChar): Do not pass MB_PRECOMPOSED
        to MultiByteToWideChar when using the CP_UTF8 or CO_UTF7 types.

15 years ago * dw2gencfi.c (output_cfi_insn): Initialize fragment before rs_cfa
jakub [Tue, 9 Jun 2009 15:12:44 +0000 (15:12 +0000)]
* dw2gencfi.c (output_cfi_insn): Initialize fragment before rs_cfa
to DW_CFA_advance_loc4.

* gas/cfi/cfi-common-7.d: New test.
* gas/cfi/cfi-common-7.s: New.
* gas/cfi/cfi.exp: Add cfi-common-7 test.

15 years ago * libc/ctype/tolower.c (tolower): Cast conversion result from
corinna [Tue, 9 Jun 2009 11:33:56 +0000 (11:33 +0000)]
* libc/ctype/tolower.c (tolower): Cast conversion result from
mbtowc/wctomb to unsigned char to avoid negative return values.
* libc/ctype/toupper.c (toupper): Ditto.

15 years ago * autoload.cc (GetSystemTimes): Remove.
corinna [Tue, 9 Jun 2009 09:45:29 +0000 (09:45 +0000)]
* autoload.cc (GetSystemTimes): Remove.
* fhandler_proc.cc (format_proc_uptime): Use global system_info rather
than retrieving a local copy of the SYSTEM_INFO.  Drop call to
GetSystemTimes and retrieve SystemPerformanceInformation on all systems
again with buffer size big enough for 64 bit systems.
(format_proc_stat): Use global system_info rather than retrieving a
local copy of the SYSTEM_INFO.  Retrieve SystemPerformanceInformation
with buffer size big enough for 64 bit systems.

15 years ago2009-06-09 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 9 Jun 2009 07:37:18 +0000 (07:37 +0000)]
2009-06-09  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
and stabstr_segment fields.
(mach_o_be_vec, mach_o_le_vec): Removed
(bfd_mach_o_version): New prototype.

* mach-o.c (bfd_mach_o_version): Make this function public.
(mach_o_wide_p): New function.
(bfd_mach_o_wide_p): Ditto.
(bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
weird names.
(bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
Search in the list only if the name starts with a dot.
(bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
test.  Check bfd_seek status.
(bfd_mach_o_scan_write_thread): Check bfd_seek status.
(bfd_mach_o_scan_write_section_32): Ditto.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_section): Removed.
(bfd_mach_o_scan_write_segment): Split into ...
(bfd_mach_o_scan_write_segment_32): ... this and ...
(bfd_mach_o_scan_write_segment_64): ... this.  Check bfd_seek status.
(bfd_mach_o_scan_write_symtab_symbols): Moved into ...
(bfd_mach_o_scan_write_symtab): ... this.  Write symtab from BFD
symbol table.  Now returns a boolean.
(bfd_mach_o_write_contents): Set filetype.  Check bfd_seek status.
Adjust for status type.
(bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
test.  Write symbol table.  Numbers the sections.
(bfd_mach_o_read_header): Check bfd_seek status.
Use mach_o_wide_p instead of hard-coded test.
(bfd_mach_o_scan_read_section_32): Check bfd_seek status.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_symtab_symbol): Ditto.  Check bfd_seek status.
Use BFD_MACH_O_N_TYPE instead of hard-coded value.  Correctly
handled common symbols.
(bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
(bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
(bfd_mach_o_scan_read_dylinker): Ditto.
(bfd_mach_o_scan_read_dylib): Ditto.
(bfd_mach_o_scan_read_thread): Ditto.
(bfd_mach_o_scan_read_symtab): Ditto.
Do not create a section for the stabs.
(bfd_mach_o_scan_read_uuid): Check bfd_seek status.
(bfd_mach_o_scan_read_segment): Ditto.
(bfd_mach_o_scan_read_command): Ditto.
(bfd_mach_o_scan_start_address): Ditto.
(bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
(bfd_mach_o_archive_p): Check bfd_seek status.
(bfd_mach_o_core_fetch_environment): Ditto.

* mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.

15 years ago*** empty log message ***
gdbadmin [Tue, 9 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Tue, 9 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agoFix ChangeLog entry
corinna [Mon, 8 Jun 2009 20:06:55 +0000 (20:06 +0000)]
Fix ChangeLog entry

15 years ago * autoload.cc (GetSystemTimes): Define.
corinna [Mon, 8 Jun 2009 20:04:36 +0000 (20:04 +0000)]
* autoload.cc (GetSystemTimes): Define.
* fhandler_proc.cc (format_proc_uptime): Use GetSystemInfo to retrieve
processor count.  Use GetSystemTimes when available to retrieve system
idle time.  Improve debug output.
(format_proc_stat): Use GetSystemInfo to retrieve processor
count.  Improve debug output.  Ignore if SystemPerformanceInformation
returns error.  Explain why.

15 years ago * fork.cc (frok::parent): Remove ancient code erroneously flushing
corinna [Mon, 8 Jun 2009 19:45:39 +0000 (19:45 +0000)]
* fork.cc (frok::parent): Remove ancient code erroneously flushing
stdout descriptor.

15 years ago * cygerrno.h (save_errno::~save_errno): Set errno directly to avoid
corinna [Mon, 8 Jun 2009 19:44:32 +0000 (19:44 +0000)]
* cygerrno.h (save_errno::~save_errno): Set errno directly to avoid
flooding debug output.

15 years ago PR gas/977
davek [Mon, 8 Jun 2009 16:06:23 +0000 (16:06 +0000)]
PR gas/977
* config/tc-i386.c (md_estimate_size_before_relax):  Don't relax
branches to weak symbols.
(md_apply_fix):  Don't convert fixes against weak symbols to
section-relative offsets, but save addend for later reloc emission.
(tc_gen_reloc):  When emitting reloc against weak symbol, adjust
addend to pre-compensate for bfd_install_relocation.

15 years ago * breakpoint.c (_initialize_breakpoint): Remove "bu" command alias of
muller [Mon, 8 Jun 2009 16:05:12 +0000 (16:05 +0000)]
* breakpoint.c (_initialize_breakpoint): Remove "bu" command alias of
"ubreak" command that does not exist.

15 years ago * gas/i386/jump.d: Tweak patterns to also match PE platform output.
davek [Mon, 8 Jun 2009 15:55:36 +0000 (15:55 +0000)]
* gas/i386/jump.d:  Tweak patterns to also match PE platform output.

15 years ago * cli/cli-decode.c (add_alias_cmd): Correct assertion.
muller [Mon, 8 Jun 2009 15:45:33 +0000 (15:45 +0000)]
* cli/cli-decode.c (add_alias_cmd): Correct assertion.

15 years ago * path.cc (symlink_info::check): Return with error set to ENOENT if
corinna [Mon, 8 Jun 2009 15:22:52 +0000 (15:22 +0000)]
* path.cc (symlink_info::check): Return with error set to ENOENT if
STATUS_NO_MEDIA_IN_DEVICE is returned.

15 years ago* cygheap.h (mini_cygheap): New struct.
cgf [Mon, 8 Jun 2009 03:53:40 +0000 (03:53 +0000)]
* cygheap.h (mini_cygheap): New struct.
(init_cygheap): Inherit locale field via mini_cygheap.
* cygheap.cc (cygheap_at_start): Define new variable.
(cygheap): Initialize as cygheap_at_start so that locale information is always
available.
(cygheap_init): Initialize cygheap iff it is set to cygheap_at_start.
* shared_info.h (memory_init): Accommodate argument change.
* memory.cc (memory_init): Accept an argument indicating whether cygheap should
be initialized or not.
* dcrt0.cc (child_info_fork::handle_fork): Pass false to memory_init().
(child_info_spawn::handle_spawn): Ditto.
(dll_crt0_0): Pass true to memory_init when not forking or execing.
* cygheap.h (cygheap_types::HEAP_2_DLL): New enum.
* dll_init.h (dll): Remove unused namelen field.
(dll_list::load_after_fork): Accommodate change in arguments.
* dll_init.cc (dll_list::alloc): Allocate dll information in the cygwin heap.
(dll_list::detach): Free dll information from the cygwin heap.
(dll_list::load_after_fork): Use dll information in the cygwin heap directly
rather than querying parent.
* fork.cc (frok::first_dll): Delete.
(frok::child): Don't report on first_dll.  Don't pass it to load_on_fork.
(frok::parent): Don't set first_dll.
(fork): Ditto.

15 years agodaily update
amodra [Mon, 8 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 8 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
palves [Sun, 7 Jun 2009 22:52:44 +0000 (22:52 +0000)]
* hppa-tdep.c (_initialize_hppa_tdep): Add declaration.

15 years ago2009-06-07 Pedro Alves <pedro@codesourcery.com>
palves [Sun, 7 Jun 2009 22:33:24 +0000 (22:33 +0000)]
2009-06-07  Pedro Alves  <pedro@codesourcery.com>

* procfs.h: New.
* proc-utils.h (procfs_first_available): Don't declare here.
* sol-thread.c: Include procfs.h instead of sys/procfs.h and
proc-utils.h.
* procfs.c: Include procfs.h.
(procfs_target): Make it public.  Don't register
procfs_can_use_hw_breakpoint here.
(proc_set_watchpoint): Check for PCWATCH or PIOCSWATCH being
defined instead of TARGET_HAS_HARDWARE_WATCHPOINTS.
(procfs_can_use_hw_breakpoint): Remove check of
TARGET_HAS_HARDWARE_WATCHPOINTS.
(procfs_use_watchpoints): Register procfs_can_use_hw_breakpoint
here.
(_initialize_procfs): Don't add the procfs target here.

* i386-sol2-nat.c: Include target.h and procfs.h.
(_initialize_amd64_sol2_nat): Install the procfs target here,
customized with watchpoints support.
* irix5-nat.c: Include target.h.
(_initialize_core_irix5): Rename to ...
(_initialize_irix5_nat): ... this.  Install the procfs target
here, customized with watchpoints support.
* alpha-nat.c: Include procfs.h.
(_initialize_core_alpha): Rename to...
(_initialize_alpha_nat): ... this.  Install the procfs target
here, customized with watchpoints support.
* sparc-sol2-nat.c: Include target.h and procfs.h.
(_initialize_sparc_sol2_nat): New.

* config/i386/nm-i386sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
* config/sparc/nm-sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
* config/mips/irix5.mh (NAT_FILE): Delete.
* config/mips/irix6.mh (NAT_FILE): Delete.
* config/mips/nm-irix5.h: Delete.

2009-06-07  Pedro Alves  <pedro@codesourcery.com>

* gdbint.texinfo (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete all
references.

15 years ago * gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is
palves [Sun, 7 Jun 2009 19:50:51 +0000 (19:50 +0000)]
* gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is
defined before referencing it.

15 years ago * auxv.c (procfs_xfer_auxv): Change type of the `object' argument
palves [Sun, 7 Jun 2009 19:07:08 +0000 (19:07 +0000)]
* auxv.c (procfs_xfer_auxv): Change type of the `object' argument
to enum target_object.  Cleanup comments.
* auxv.h: Include "target.h".  Cleanup comments to not mention
NATIVE_XFER_AUXV anymore.

15 years ago * inferior.h (procfs_first_available): Move declaration to...
palves [Sun, 7 Jun 2009 18:41:40 +0000 (18:41 +0000)]
* inferior.h (procfs_first_available): Move declaration to...
* proc-utils.h: ... here.
* sol-thread.c: Include procfs.h and proc-utils.h.

15 years ago * inferior.h (proc_iterate_over_mappings): Delete declaration.
palves [Sun, 7 Jun 2009 17:58:24 +0000 (17:58 +0000)]
* inferior.h (proc_iterate_over_mappings): Delete declaration.
* nto-tdep.h (proc_iterate_over_mappings): Delete declaration.
* procfs.c (proc_iterate_over_mappings): Delete.

15 years ago * target.h (struct target_ops): Make to_has_all_memory,
palves [Sun, 7 Jun 2009 16:46:48 +0000 (16:46 +0000)]
* target.h (struct target_ops): Make to_has_all_memory,
to_has_memory, to_has_stack, to_has_registers and to_has_execution
methods instead of variables.
(target_has_all_memory_1, target_has_memory_1, target_has_stack_1)
(target_has_registers_1, target_has_execution_1): Declare
functions.
(target_has_all_memory): Rewrite to call target_has_all_memory_1.
(target_has_memory): Rewrite to call target_has_memory_1.
(target_has_stack): Rewrite to call target_has_all_stack_1.
(target_has_registers): Rewrite to call target_has_registers_1.
(target_has_execution): Rewrite to call target_has_execution_1.
(default_child_has_all_memory, default_child_has_memory)
(default_child_has_stack, default_child_has_registers)
(default_child_has_execution): Declare.
(target_mark_running, target_mark_exited): Delete declarations.
* target.c (default_child_has_all_memory,
default_child_has_memory, default_child_has_stack,
default_child_has_registers, default_child_has_execution): New.
(target_has_all_memory_1, target_has_memory_1, target_has_stack_1,
target_has_registers_1, target_has_execution_1): New.
(add_target): Default the to_has_all_memory, to_has_all_memory,
to_has_memory, to_has_stack, to_has_registers and to_has_execution
callbacks to return 0.
(update_current_target): Do not inherit to_has_all_memory,
to_has_memory, to_has_stack, to_has_registers or to_has_execution.
(target_mark_running, target_mark_exited): Delete.
(memory_xfer_partial): Adjust.
(target_read_memory, target_write_memory, target_search_memory):
Dispatch to the the top-most target, not the flattened
current_target.
(target_info): Adjust.
(init_dummy_target): Install return_zero as callback for
to_has_all_memory, to_has_memory, to_has_stack, to_has_registers,
to_has_execution.
(set_maintenance_target_async_permitted): Use have_live_inferiors
instead of target_has_execution.
* target-memory.c (target_write_memory_blocks): Dispatch memory
writes to the the top-most target, not the flattened
current_target.

* breakpoint.c (insert_breakpoints): Don't check for
target_has_execution here.
(update_global_location_list): Check if there are live inferiors
to debug instead of target_has_execution.
* infcmd.c (kill_command, detach_command): Check if there are
inferiors instead of target_has_execution.
* inferior.h (have_live_inferiors): Declare.
* inferior.c (have_live_inferiors): New.
* infrun.c (normal_stop): Don't check for target_has_execution to
finish the thread states.
* thread.c (is_thread_state, is_stopped, is_exited, is_running)
(any_running, is_executing): Remove checks for
target_has_execution.
* top.c (kill_or_detach): Don't try to kill core inferiors.
(quit_target): Don't check for target_has_execution.

* corelow.c (core_has_memory, core_has_stack, core_has_registers):
New.
(init_core_ops): Install core_has_memory, core_has_stack and
core_has_registers.
* exec.c (exec_has_memory): New.
(init_exec_ops): Install exec_has_memory.
* remote.c (remote_add_inferior): Don't call target_mark_running.
(remote_start_remote): Don't call target_mark_exited or call
target_mark_running.
(remote_open_1): Use have_inferiors instead of
target_has_execution.  Don't use target_mark_exited.
(init_remote_ops): Install deafult_child_has_all_memory,
default_child_has_memory, default_child_has_stack,
default_child_has_registers, default_child_has_execution.
* bsd-kvm.c (bsd_kvm_return_one): New.
(bsd_kvm_add_target): Register bsd_kvm_return_one as
to_has_memory, to_has_stack and to_has_registers callbacks.
* remote-m32r-sdi.c (m32r_return_one): New.
(init_m32r_ops): Register it.
* inf-child.c (inf_child_target): Adjust to register
default_child_has_all_memory, default_child_has_memory,
default_child_has_stack, default_child_has_registers,
default_child_has_execution callbacks.
* gnu-nat.c (init_gnu_ops): Likewise.
* go32-nat.c (init_go32_ops): Likewise.
* hpux-thread.c (init_hpux_thread_ops): Likewise.
* monitor.c (init_base_monitor_ops): Likewise.
* nto-procfs.c (init_procfs_ops): Likewise.
* remote-mips.c (_initialize_remote_mips): Likewise.
* windows-nat.c (init_windows_ops): Likewise.
* remote-sim.c (gdbsim_create_inferior): Don't use
target_mark_running or target_mark_exited.
(gdbsim_mourn_inferior): Don't call target_mark_exited.
(init_gdbsim_ops): Adjust to register
default_child_has_all_memory, default_child_has_memory,
default_child_has_stack, default_child_has_registers,
default_child_has_execution callbacks.

* linux-nat.c (linux_nat_xfer_partial): If reading memory, and
there's no inferior selected, defer to a lower stratum.

15 years agoTiny formatting fix.
palves [Sun, 7 Jun 2009 16:09:28 +0000 (16:09 +0000)]
Tiny formatting fix.

15 years ago * include/ddk/ntapi.h: Add NtXxx equivalent to ZwXxx where missing
corinna [Sun, 7 Jun 2009 11:40:08 +0000 (11:40 +0000)]
* include/ddk/ntapi.h: Add NtXxx equivalent to ZwXxx where missing
and vice versa.
* include/ddk/ntifs.h: Ditto.
* include/ddk/winddk.h: Ditto.
* lib/ntdll.def (NtPlugPlayControl, NtQueryInstallUILanguage,
ZwPlugPlayControl, ZwQueryInstallUILanguage): Add entry points defined
in header, but missing in lib.  Omit NT4-only entry points.

15 years ago * dll_init.cc (dll_list::alloc): Allocate memory using a section
corinna [Sun, 7 Jun 2009 07:26:06 +0000 (07:26 +0000)]
* dll_init.cc (dll_list::alloc): Allocate memory using a section
object.  Explain why.  Drop call to GetSystemInfo, rather call
getpagesize to get allocation granularity.  Only align to allocation
granularity under WOW64.  Use roundup2 to align.
(dll_list::detach): Call NtUnmapViewOfSection instead of VirtualFree.

15 years ago*** empty log message ***
gdbadmin [Sun, 7 Jun 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Sun, 7 Jun 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years agobfd/
hjl [Sat, 6 Jun 2009 22:39:24 +0000 (22:39 +0000)]
bfd/

2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_link_hash_table): Add irelifunc.
(elf_i386_link_hash_table_create): Initialize irelifunc.
(elf_i386_check_relocs): Updated.  Set up irelifunc for
shared objects.
(elf_i386_allocate_dynrelocs): Use irelifunc for dynamic
relocation for non-GOT reference of STT_GNU_IFUNC symbol in
shared objects.
(elf_i386_relocate_section): Likewise.

* elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc.
(elf64_x86_64_link_hash_table_create): Initialize irelifunc.
(elf64_x86_64_check_relocs): Updated.  Set up irelifunc for
shared objects.
(elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic
relocation for non-GOT reference of STT_GNU_IFUNC symbol in
shared objects.
(elf64_x86_64_relocate_section): Likewise.

* elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to
...
(_bfd_elf_create_ifunc_sections): This.

* elflink.c (_bfd_elf_create_static_ifunc_sections): Renamd to
...
(_bfd_elf_create_ifunc_sections): This.  Create .rel[a].ifunc
for shared objects.

ld/

2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>

* scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.

15 years ago * mmap.cc: Use NtUnmapViewOfSection instead of UnmapViewOfFile
corinna [Sat, 6 Jun 2009 19:56:41 +0000 (19:56 +0000)]
* mmap.cc: Use NtUnmapViewOfSection instead of UnmapViewOfFile
throughout for symmetry.
(fhandler_dev_mem::munmap): Use correct process handle in call to
NtUnmapViewOfSection.

15 years agoPrint moxie addresses nicely.
green [Sat, 6 Jun 2009 13:02:21 +0000 (13:02 +0000)]
Print moxie addresses nicely.

15 years ago2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
hjl [Sat, 6 Jun 2009 11:48:11 +0000 (11:48 +0000)]
2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
relocation for R_386_32 against STT_GNU_IFUNC symbol when
building shared object.  Check info->executable instead of
!info->shared when setting non_got_ref.
(elf_i386_allocate_dynrelocs): Allocate dynamic relocation
for non-GOT reference of STT_GNU_IFUNC symbol in shared
object. Allocate GOT relocation agsinst STT_GNU_IFUNC
symbol if needed.
(elf_i386_relocate_section): Output dynamic relocation for
R_386_32 against STT_GNU_IFUNC symbol to get the real
function address when building shared object.
(elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
relocation for STT_GNU_IFUNC symbol in shared object.

* elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
symbol when building shared object.  Check info->executable
instead of !info->shared when setting non_got_ref.
(elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
for non-GOT reference of STT_GNU_IFUNC symbol in shared
library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
if needed.
(elf64_x86_64_relocate_section): Output dynamic relocation
for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
function address when building shared object.
(elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
relocation for STT_GNU_IFUNC symbol in shared object.

15 years ago * dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.
corinna [Sat, 6 Jun 2009 11:47:29 +0000 (11:47 +0000)]
* dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.
* dll_init.cc: Fix formatting.
(dll_list::alloc): Only allocate as much memory for struct dll as
necessary for given DLL name.
(dll_list::load_after_fork): Only read a single page of parent memory.
Only read more if namelen indicates that it's necessary.

15 years agobfd/
jkratoch [Sat, 6 Jun 2009 07:48:02 +0000 (07:48 +0000)]
bfd/
* Makefile.am: Run "make dep-am".
(BFD32_BACKENDS): Add mach-o-i386.lo.
(BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
* Makefile.in: Regenerate.

15 years ago * elf32-spu.c (spu_elf_relocate_section): Match overlay number
amodra [Sat, 6 Jun 2009 06:36:52 +0000 (06:36 +0000)]
* elf32-spu.c (spu_elf_relocate_section): Match overlay number
when looking for soft-icache stubs.

15 years ago*** empty log message ***
gdbadmin [Sat, 6 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Sat, 6 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2009-06-05 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 5 Jun 2009 21:32:56 +0000 (21:32 +0000)]
2009-06-05  Doug Kwan  <dougkwan@google.com>

* Makefile.am (CCFILES): Add target.cc.
* Makefile.in: Regenerate.
* i386.cc (class Target_i386): Define new virtual method to
override do_is_local_label_name in parent.
* object.cc (Sized_relobj::do_count_local_symbols): Discard
local symbols if --discard-locals or -X is given.
* options.h (class General_options): Declare new options
'--discard-locals' and '-X' for discarding locals.
* target.h (class Target): Define new methods is_local_label_name.
Declare new virtual method do_is_local_label_name.
* target.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add discard_locals_test.
(check_SCRIPTS): Add discard_locals_test.sh.
(check_DATA): Add discard_local_tests.syms.
(discard_locals_test_SOURCES, discard_locals_test_LDFLAGS): Define.
(discard_local_tests.syms, discard_locals_test.o): New make rules.
* testsuite/Makefile.in: Regenerate.
* testsuite/discard_locals_test.c: New file.
* testsuite/discard_locals_test.sh: Same.

15 years ago * varobj.c (update_dynamic_varobj_children): Wrap error text in
tromey [Fri, 5 Jun 2009 19:43:01 +0000 (19:43 +0000)]
* varobj.c (update_dynamic_varobj_children): Wrap error text in
_().
(install_visualizer): Likewise.
(varobj_set_visualizer): Likewise.

15 years ago * mi/mi-main.c (mi_cmd_exec_continue)
vprus [Fri, 5 Jun 2009 18:34:21 +0000 (18:34 +0000)]
* mi/mi-main.c (mi_cmd_exec_continue)
(mi_cmd_exec_interrupt): Adjust parsing of thread group
ids to current reality, where they don't have any 'p' prefix.

15 years ago2009-06-05 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 5 Jun 2009 18:16:31 +0000 (18:16 +0000)]
2009-06-05  Doug Kwan  <dougkwan@google.com>

* object.cc (Sized_relobj::Sized_relobj): Initialize
discarded_eh_frame_shndx_ to -1U.
(Sized_relobj::do_layout): Record index of a discard .eh_frame
section.
(Sized_relobj::do_count_local_symbols): Skip local symbols in
a discarded .eh_frame section.
(Sized_relobj::do_finalize_local_symbols): Ditto.
* object.h (class Sized_relobj): Declare new member
discarded_eh_frame_shndx_.
* testsuite/Makefile.am (check_PROGRAMS): Add local_labels_test.
(local_labels_test.o, local_labels_test): New rules.
* testsuite/Makefile.in: Regenerate.

15 years ago* corelow.c (core_open): Check for core_gdbarch before calling
aristovski [Fri, 5 Jun 2009 18:08:52 +0000 (18:08 +0000)]
* corelow.c (core_open): Check for core_gdbarch before calling
gdbarch_target_signal_from_host.

15 years ago * c-exp.y (parse_number): Don't use K&R definition.
tromey [Fri, 5 Jun 2009 17:18:37 +0000 (17:18 +0000)]
* c-exp.y (parse_number): Don't use K&R definition.
(yylex): Likewise.
(yyerror): Likewise.

15 years ago2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 5 Jun 2009 16:49:14 +0000 (16:49 +0000)]
2009-06-05  H.J. Lu  <hongjiu.lu@intel.com>

* scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.

15 years ago * winbase.h (ilockexch): Fix asm constraints.
davek [Fri, 5 Jun 2009 13:53:01 +0000 (13:53 +0000)]
* winbase.h (ilockexch):  Fix asm constraints.
(ilockcmpexch):  Likewise.

15 years ago * heap.cc (heap_init): Fix typo in comment.
corinna [Fri, 5 Jun 2009 11:15:28 +0000 (11:15 +0000)]
* heap.cc (heap_init): Fix typo in comment.

15 years ago2009-06-05 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 5 Jun 2009 09:19:44 +0000 (09:19 +0000)]
2009-06-05  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Update copyright year.
(bfd_mach_o_mach_header_magic): New enum.
(bfd_mach_o_cpu_subtype): Now an enum.
(BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
(BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
(BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
(bfd_mach_o_load_command): Field type_required is now a boolean.
Reindent prototypes.
(bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
(bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
(bfd_mach_o_get_symtab_upper_bound): Ditto.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.
(bfd_mach_o_make_empty_symbol): Ditto.
(bfd_mach_o_write_contents): Ditto.

* mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
bfd_mach_o_mkobject): Defines.
(bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
Do not check with target vector but with flavour.
(struct mach_o_section_name_xlat): New declaration.
(dwarf_section_names_xlat): Ditto.
(text_section_names_xlat): Ditto.
(data_section_names_xlat): Ditto.
(struct mach_o_segment_name_xlat): Ditto.
(segsec_names_xlat): Ditto.
(bfd_mach_o_convert_section_name_to_bfd): New function.
(bfd_mach_o_convert_section_name_to_mach_o): Ditto.
(bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
Accept any input and output flavour.  Do not share private data
anymore.
(bfd_mach_o_count_symbols): Add a comment.
(bfd_mach_o_get_symtab_upper_bound): Make it public.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_write_header): Now returns a boolean instead of an int.
Use constants instead of hard-coded values.
(bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_segment): Ditto.
Do not copy sections anymore.
(bfd_mach_o_write_contents): Make it public.
Remove dead code.  Rewrite typeflag assignment.
(bfd_mach_o_build_commands): New function.
(bfd_mach_o_set_section_contents): Ditto.
(bfd_mach_o_make_empty_symbol): Make it public.
(bfd_mach_o_read_header): Make it static.
Convert to bfd_boolean.
Use constants instead of hard-coded values.
(bfd_mach_o_make_bfd_section): Call
bfd_mach_o_convert_section_name_to_bfd to create name.
(bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_segment): Do not create a bfd section for
a segment anymore.  Use constants instead of hard-coded values.
(bfd_mach_o_scan_read_command): Fix style.
(bfd_mach_o_scan): Use constants instead of hard-coded values.
Get rid of BFD_IO_FUNCS.
(bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
(bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
(bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
(bfd_mach_o_object_p): Removed.
(bfd_mach_o_gen_core_p): New function, replaces ...
(bfd_mach_o_core_p): ... deleted.
(bfd_mach_o_bfd_print_private_bfd_data): Make it public.

* mach-o-i386.c: New file.
* config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
* configure.in (TDEFINES): Add mach_o_i386_vec.
* configure: Regenerated.
* targets.c: Add mach_o_i386_vec.

* mach-o.c: Update copyright years.
(BFD_IO_FUNCS): Remove (was not used).
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
bfd_mach_o_slurp_extended_name_table,
bfd_mach_o_construct_extended_name_table,
bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
bfd_mach_o_get_section_contents_in_window,
bfd_mach_o_bfd_is_local_label_name,
bfd_mach_o_bfd_is_target_special_symbol,
bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
bfd_mach_o_minisymbol_to_symbol,
bfd_mach_o_bfd_get_relocated_section_contents,
bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
bfd_mach_o_bfd_merge_private_bfd_data,
bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
bfd_mach_o_bfd_copy_private_header_data,
bfd_mach_o_core_file_matches_executable_p): Move these defines ...
* mach-o-target.c: ... here.
Update copyright years.

15 years agodaily update
amodra [Fri, 5 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 5 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago* mepcfgtool.c (do_config_cc_spec): Pass -mivc2 to gcc when
dj [Thu, 4 Jun 2009 23:09:14 +0000 (23:09 +0000)]
* mepcfgtool.c (do_config_cc_spec): Pass -mivc2 to gcc when
appropriate.