OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
16 years agoFrom Cary Coutant: Set DF_STATIC_TLS as appropriate.
iant [Tue, 11 Dec 2007 23:30:52 +0000 (23:30 +0000)]
From Cary Coutant: Set DF_STATIC_TLS as appropriate.

16 years agodaily update
amodra [Tue, 11 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * config/tc-xtensa.c (frag_format_size): Handle frags that expand to
bwilson [Tue, 11 Dec 2007 21:52:39 +0000 (21:52 +0000)]
* config/tc-xtensa.c (frag_format_size): Handle frags that expand to
wide branches.
(get_aligned_diff): For RELAX_ALIGN_NEXT_OPCODE, skip to the next
non-empty frag to find the LOOP instruction.  Change comma typo to
a semicolon.
(relax_frag_immed, convert_frag_immed): Rename wide_insn variable to
from_widen_insn.

16 years agoFrom Cary Coutant: Fix x86_64 TLS problem.
iant [Tue, 11 Dec 2007 21:21:14 +0000 (21:21 +0000)]
From Cary Coutant: Fix x86_64 TLS problem.

16 years ago * fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix R/O bit
corinna [Tue, 11 Dec 2007 18:57:44 +0000 (18:57 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix R/O bit
handling on filesystems without ACL support.

16 years ago2007-12-11 Dave Korn <dave.korn@artimi.com>
davek [Tue, 11 Dec 2007 18:38:25 +0000 (18:38 +0000)]
2007-12-11  Dave Korn  <dave.korn@artimi.com>

* include/wincrypt.h (PCRYPT_DECODE_PARA):  Add missing typedef.
(CERT_POLICY_MAPPINGS_INFO):  Move before CERT_POLICY_MAPPING.

16 years agoFrom Craig Silverstein: Speed up ODR violation reporting.
iant [Tue, 11 Dec 2007 18:17:27 +0000 (18:17 +0000)]
From Craig Silverstein: Speed up ODR violation reporting.

16 years ago * localtime.cc (tzset): Guard by a muto for thread safety.
corinna [Tue, 11 Dec 2007 16:14:24 +0000 (16:14 +0000)]
* localtime.cc (tzset): Guard by a muto for thread safety.

16 years ago * cygheap.cc (_csbrk): Don't request zero bytes from VirtualAlloc,
davek [Tue, 11 Dec 2007 15:16:19 +0000 (15:16 +0000)]
* cygheap.cc (_csbrk):  Don't request zero bytes from VirtualAlloc,
as windows treats that as an invalid parameter and returns an error.

16 years ago * localtime.cc (tzset): Call tzsetwall only if it hasn't been
corinna [Tue, 11 Dec 2007 15:01:31 +0000 (15:01 +0000)]
* localtime.cc (tzset): Call tzsetwall only if it hasn't been
called before.

16 years ago * bfd/elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if
clm [Tue, 11 Dec 2007 13:13:59 +0000 (13:13 +0000)]
    * bfd/elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if
        the symbol's section is the undefined section.
        * gas/testsuite/gas/elf/symtab.s: New test.
        gas/testsuite/gas/elf/symtab.d: New expected output.
        gas/testsuite/gas/elf/elf.exp: Run the new symbtab test.

16 years ago * dwarf2.h (DW_AT_hi_user): Correct value.
drow [Tue, 11 Dec 2007 12:56:21 +0000 (12:56 +0000)]
* dwarf2.h (DW_AT_hi_user): Correct value.

16 years agoFrom Cary Coutant: Handle TLS entry for TLS module index.
iant [Tue, 11 Dec 2007 04:23:05 +0000 (04:23 +0000)]
From Cary Coutant: Handle TLS entry for TLS module index.

16 years ago*** empty log message ***
gdbadmin [Tue, 11 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agowarning messages should contain "warning:"
amodra [Mon, 10 Dec 2007 23:44:21 +0000 (23:44 +0000)]
warning messages should contain "warning:"

16 years ago * config/tc-m32r.c (md_begin): Mark .sbss as being bss style section.
amodra [Mon, 10 Dec 2007 23:33:46 +0000 (23:33 +0000)]
* config/tc-m32r.c (md_begin): Mark .sbss as being bss style section.

16 years agodaily update
amodra [Mon, 10 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoKeep views on views_ list so that they can be found again.
iant [Mon, 10 Dec 2007 22:55:31 +0000 (22:55 +0000)]
Keep views on views_ list so that they can be found again.

16 years ago * lib/gdb.exp (build_id_debug_filename_get): OBJCOPY pipe being read
jkratoch [Mon, 10 Dec 2007 14:32:50 +0000 (14:32 +0000)]
* lib/gdb.exp (build_id_debug_filename_get): OBJCOPY pipe being read
must be set to binary.

16 years agogas/
rsandifo [Mon, 10 Dec 2007 10:35:59 +0000 (10:35 +0000)]
gas/
* config/tc-mips.h (mips_nop_opcode): Declare.
(NOP_OPCODE): Define.
(mips_segment_info): New structure.
(TC_SEGMENT_INFO_TYPE): Use it instead of insn_label_list.
* config/tc-mips.c (label_list): Adjust for new TC_SEGMENT_INFO_TYPE.
(mips_record_mips16_mode): New function.
(install_insn): Call it.
(mips_align): Likewise.  Turn the fill argument into an "int *".
Use frag_align_code for code segments if no fill data is given.
(s_align): Adjust call accordingly.
(mips_nop_opcode): New function.
(mips_handle_align): Use the first variable byte to decide which
nop sequence is needed.  Use md_number_to_chars and mips16_nop_insn.

gas/testsuite/
* gas/mips/align2.s, gas/mips/align2.d, gas/mips/align2-el.d: New
tests.
* gas/mips/mips.exp: Run them.

16 years ago*** empty log message ***
gdbadmin [Mon, 10 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Sun, 9 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.
palves [Sun, 9 Dec 2007 11:21:20 +0000 (11:21 +0000)]
* lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.

16 years ago*** empty log message ***
gdbadmin [Sun, 9 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Sat, 8 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoReleased gold-alpha 0.9.
csilvers [Sat, 8 Dec 2007 03:17:25 +0000 (03:17 +0000)]
Released gold-alpha 0.9.

16 years agoFrom Craig Silverstein: Fix error message, add this->.
iant [Sat, 8 Dec 2007 03:05:27 +0000 (03:05 +0000)]
From Craig Silverstein: Fix error message, add this->.

16 years ago * readelf.c (is_32bit_pcrel_reloc): Add Xtensa.
bwilson [Sat, 8 Dec 2007 01:04:59 +0000 (01:04 +0000)]
* readelf.c (is_32bit_pcrel_reloc): Add Xtensa.

16 years ago*** empty log message ***
gdbadmin [Sat, 8 Dec 2007 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

16 years agoFrom Cary Coutant: Fix x86_64 TLS. Also set DT_TEXTREL as well as
iant [Fri, 7 Dec 2007 23:26:51 +0000 (23:26 +0000)]
From Cary Coutant: Fix x86_64 TLS.  Also set DT_TEXTREL as well as
DF_TEXTREL.

16 years agodaily update
amodra [Fri, 7 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-12-07 Bob Wilson <bob.wilson@acm.org>
bwilson [Fri, 7 Dec 2007 22:52:08 +0000 (22:52 +0000)]
2007-12-07  Bob Wilson  <bob.wilson@acm.org>

include/elf/
* xtensa.h (R_XTENSA_32_PCREL): New.

bfd/
* elf32-xtensa.c (elf_howto_table): Add R_XTENSA_32_PCREL.
(elf_xtensa_reloc_type_lookup): Handle BFD_RELOC_32_PCREL.
(elf_xtensa_check_relocs): Use default case for all relocations that
need nothing done here.
(elf_xtensa_do_reloc): Compute self_address for all relocation types.
Handle R_XTENSA_32_PCREL.
(elf_xtensa_relocate_section): Check for R_XTENSA_32_PCREL for dynamic
symbols.
(check_section_ebb_pcrels_fit): Ignore R_XTENSA_32_PCREL relocations.

gas/
* config/tc-xtensa.c (O_pcrel): Define.
(suffix_relocs): Add pcrel suffix.
(md_pseudo_table): Add 4byte and 2byte directives.
(xtensa_elf_cons): Pass correct pcrel argument to fix_new_exp.
(xg_assemble_literal): Likewise.  Check for O_pcrel.
(expression_maybe_register): Reorganize.  Handle BFD_RELOC_32_PCREL.
(xg_valid_literal_expression): Allow O_pcrel.
(md_pcrel_from, md_apply_fix): Handle BFD_RELOC_32_PCREL.
(tc_gen_reloc): Fix punctuation in error message.

gas/testsuite/
* gas/xtensa/all.exp: Run new pcrel test.
* gas/xtensa/err-pcrel.s: New.
* gas/xtensa/pcrel.d: New.
* gas/xtensa/pcrel.s: New.
* gas/xtensa/xtensa-err.exp: New.

16 years agoFrom Cary Coutant: Fix handling of RELATIVE RELA relocs.
iant [Fri, 7 Dec 2007 19:32:56 +0000 (19:32 +0000)]
From Cary Coutant: Fix handling of RELATIVE RELA relocs.

16 years ago* mips-tdep.c (extended_offset): Fix a comment.
macro [Fri, 7 Dec 2007 15:07:12 +0000 (15:07 +0000)]
* mips-tdep.c (extended_offset): Fix a comment.

16 years ago* target.c (update_current_target): Inherit to_log_command.
macro [Fri, 7 Dec 2007 15:02:09 +0000 (15:02 +0000)]
* target.c (update_current_target): Inherit to_log_command.
* target.h (struct target_ops). Add to_log_command.
(target_log_command): New macro.
* top.c (execute_command): Call target_log_command() rather than
serial_log_command().
* monitor.c (init_base_monitor_ops): Initialize to_log_command.
* remote-m32r-sdi.c (init_m32r_ops): Likewise.
* remote-mips.c (_initialize_remote_mips): Likewise.
* remote.c (init_remote_ops): Likewise.

16 years ago * server.c (myresume): Add own_buf argument.
drow [Fri, 7 Dec 2007 14:00:37 +0000 (14:00 +0000)]
* server.c (myresume): Add own_buf argument.
(main): Update calls.

16 years ago * regtool.cc (opts): Add missing 'W'.
corinna [Fri, 7 Dec 2007 09:37:46 +0000 (09:37 +0000)]
* regtool.cc (opts): Add missing 'W'.

16 years ago * include/sys/cygwin.h: Include limits.h.
corinna [Fri, 7 Dec 2007 09:37:14 +0000 (09:37 +0000)]
* include/sys/cygwin.h: Include limits.h.

16 years agoFix ehframe header handling for shared libraries.
iant [Fri, 7 Dec 2007 06:44:01 +0000 (06:44 +0000)]
Fix ehframe header handling for shared libraries.

16 years ago * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
drow [Fri, 7 Dec 2007 01:41:29 +0000 (01:41 +0000)]
* linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
* remote-utils.c (remote_open): Do not call disable_async_io.
(block_async_io): Delete.
(unblock_async_io): Make static.
(initialize_async_io): New.
* server.c (handle_v_cont): Handle async I/O here.
(myresume): Likewise.  Move other common resume tasks here...
(main): ... from here.  Call initialize_async_io.  Disable async
I/O before the main loop.
* server.h (initialize_async_io): Declare.
(block_async_io, unblock_async_io): Delete prototypes.
* spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.

16 years ago * config/tc-xtensa.c (xg_force_frag_space): Delete.
bwilson [Fri, 7 Dec 2007 01:07:33 +0000 (01:07 +0000)]
    * config/tc-xtensa.c (xg_force_frag_space): Delete.
        (xg_finish_frag, xg_assemble_literal_space): Replace calls to it.
        (xtensa_create_property_segments, xtensa_create_xproperty_segments):
        Set output_section for new property sections.  Use subseg_set and
        seg_info instead of retrieve_segment_info.  Adjust arguments to
        add_xt_block_frags and add_xt_prop_frags.  Use standard functions
        to create frags and fix records.
        (retrieve_segment_info): Delete.
        (add_xt_block_frags, add_xt_prop_frags): Replace calls to
        retrieve_segment_info.  Remove unused xt_block_sec arguments.

16 years agoFrom Cary Coutant: Some x86_64 shared library fixes.
iant [Fri, 7 Dec 2007 00:59:31 +0000 (00:59 +0000)]
From Cary Coutant: Some x86_64 shared library fixes.

16 years agoFrom Cary Coutant: Remove commented out assert. Also add comment for
iant [Fri, 7 Dec 2007 00:54:28 +0000 (00:54 +0000)]
From Cary Coutant: Remove commented out assert.  Also add comment for
bitfield check.

16 years ago * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
drow [Fri, 7 Dec 2007 00:44:26 +0000 (00:44 +0000)]
* infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
(handle_inferior_event): Clear stop_stack_dummy earlier.

16 years ago*** empty log message ***
gdbadmin [Fri, 7 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * addrmap.c (addrmap_splay_tree_remove): New function.
jimb [Thu, 6 Dec 2007 23:37:34 +0000 (23:37 +0000)]
* addrmap.c (addrmap_splay_tree_remove): New function.
(addrmap_mutable_set_empty): Use it.

16 years agodaily update
amodra [Thu, 6 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * ps.cc: Include limits.h.
corinna [Thu, 6 Dec 2007 18:26:18 +0000 (18:26 +0000)]
* ps.cc: Include limits.h.
(main): Set file name buffer size to PATH_MAX.  Use progname or
progname_long member of struct external_pinfo dependent of the value of
the struct's version member.

16 years ago * dcrt0.cc (initial_env): Use PATH_MAX instead of CYG_MAX_PATH for path
corinna [Thu, 6 Dec 2007 18:24:05 +0000 (18:24 +0000)]
* dcrt0.cc (initial_env): Use PATH_MAX instead of CYG_MAX_PATH for path
name buffer size.
(dll_crt0_1): Allocate new_argv0 with PATH_MAX size.
* exceptions.cc (debugger_command): Set size to 2 * PATH_MAX + 20;
(error_start_init): Use PATH_MAX instead of CYG_MAX_PATH for path
name buffer size.
* external.cc (fillout_pinfo): Always fill out ep.progname 0-terminated.
Fill out ep.progname_long.
* fhandler_process.cc (fhandler_process::fill_filebuf): Allocate
buffer for executable filename with PATH_MAX size.
* pinfo.cc: Throughout use PATH_MAX instead of CYG_MAX_PATH.
* pinfo.h (class _pinfo): Set progname size to PATH_MAX.
* smallprint.cc: Include limits.h.  Use PATH_MAX instead of CYG_MAX_PATH
for path name buffer size.
* strace.cc (strace::vsprntf): Ditto.
* include/sys/cygwin.h (EXTERNAL_PINFO_VERSION_32_LP): Define.
(EXTERNAL_PINFO_VERSION): Set to EXTERNAL_PINFO_VERSION_32_LP.
(struct external_pinfo): Add progname_long member.
* include/sys/dirent.h: Correctly include limits.h instead of
sys/limits.h.

16 years agoconfig/
rsandifo [Thu, 6 Dec 2007 17:44:07 +0000 (17:44 +0000)]
config/
* mt-sde (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Use +=, not =.
* mt-mips-elfoabi: Likewise.

16 years ago* addrmap.c, addrmap.h: Update to GPLv3.
jimb [Thu, 6 Dec 2007 17:26:03 +0000 (17:26 +0000)]
* addrmap.c, addrmap.h: Update to GPLv3.

* addrmap.c (struct addrmap): Make the referenced function table
const.
(addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
Don't use designated initializers.

* addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
(addrmap_mutable_relocate): Use internal_error, not abort.

16 years agoFrom Craig Silverstein: Reorganize testsuite Makefile.am.
iant [Thu, 6 Dec 2007 17:07:24 +0000 (17:07 +0000)]
From Craig Silverstein: Reorganize testsuite Makefile.am.

16 years ago* NEWS: Mention support for non-contiguous lexical blocks and
jimb [Thu, 6 Dec 2007 17:07:14 +0000 (17:07 +0000)]
* NEWS: Mention support for non-contiguous lexical blocks and
function bodies.

16 years ago * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
deuling [Thu, 6 Dec 2007 16:32:51 +0000 (16:32 +0000)]
* gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
gdbarch as parameter.
* gdbarch.{c,h}: Regenerate.

* xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
Replace current_gdbarch by gdbarch.
* s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
* rs6000-tdep.c (rs6000_stab_reg_to_regnum)
(rs6000_dwarf2_reg_to_regnum): Likewise.
* mips-tdep.c (mips_stab_reg_to_regnum)
(mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
* mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
* m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
* i386-tdep.c (i386_dbx_reg_to_regnum)
(i386_svr4_reg_to_regnum): Likewise
* h8300-tdep.c (h8300s_dbg_reg_to_regnum)
(h8300_dbg_reg_to_regnum): Likewise.
* amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
* arch-utils.c (no_op_reg_to_regnum): Likewise.
* arch-utils.h (no_op_reg_to_regnum): Likewise.
* arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
* cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
* hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
* ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
* m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.

16 years ago2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
drow [Thu, 6 Dec 2007 14:21:26 +0000 (14:21 +0000)]
2007-12-06  Mick Davis  <mickd@goanna.iinet.net.au>

* remote-utils.c (readchar): Allow binary data in received messages.

16 years ago Localize infrun use of remove_breakpoints.
vprus [Thu, 6 Dec 2007 13:47:55 +0000 (13:47 +0000)]
Localize infrun use of remove_breakpoints.
* infrun.c (handle_inferior_event): Remove
calls to remove_breakpoints, except where needed to
communicate change of breakpoint locations to inferior.
(keep_going): If steppping over breakpoint, remove
breakpoints.

16 years ago Clarify infrun variable naming.
vprus [Thu, 6 Dec 2007 12:57:50 +0000 (12:57 +0000)]
Clarify infrun variable naming.
* infrun.c (trap_expected): Rename
to stepping_over_breakpoint.  Document.
(stepping_past_breakpoint): Remove.
(stepping_past_breakpoint_ptdi): Renamed
to deferred_step_ptid.
(struct execution_control_state): Rename
the another_trap field to stepping_over_breakpoint.
(struct inferior_status): Rename the trap_expected
field to stepping_over_breakpoint.
(clear_proceed_status, proceed)
(init_execution_control_state, context_switch)
(handle_inferior_event, currently_stepping)
(keep_going, save_inferior_status)
(restore_inferior_status, prepare_to_proceed): Adjust.
* gdbthread.h (struct thread_info): Rename the
trap_expected field to stepping_over_breakpoint.
* thread.c (load_infrun_state, save_infrun_state):
Adjust.

16 years ago2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
muller [Thu, 6 Dec 2007 11:17:03 +0000 (11:17 +0000)]
2007-12-06  Pierre Muller  <muller@ics.u-strasbg.fr>

* win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
Add "gdb_stdint.h" dependency required for uintptr_t type use.
(handle_output_debug_string): Use uintptr_t typecast.
(handle_exception): Ditto.
(win32_xfer_memory): Ditto.
* Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.

16 years agoInitialize variable to avoid warning.
iant [Thu, 6 Dec 2007 06:03:00 +0000 (06:03 +0000)]
Initialize variable to avoid warning.

16 years agoFrom Cary Coutant: More support for generating shared libraries.
iant [Thu, 6 Dec 2007 05:55:50 +0000 (05:55 +0000)]
From Cary Coutant: More support for generating shared libraries.

16 years agoFix comment.
iant [Thu, 6 Dec 2007 05:27:24 +0000 (05:27 +0000)]
Fix comment.

16 years agoDon't write out the symbol table when stripping.
iant [Thu, 6 Dec 2007 05:00:00 +0000 (05:00 +0000)]
Don't write out the symbol table when stripping.

16 years ago*** empty log message ***
gdbadmin [Thu, 6 Dec 2007 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Wed, 5 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agoRework Stringpool to not compute the hash code twice when adding a new
iant [Wed, 5 Dec 2007 22:56:51 +0000 (22:56 +0000)]
Rework Stringpool to not compute the hash code twice when adding a new
string.

16 years ago * fhandler_tty.cc (fhandler_tty_slave::open): Use MAX_PATH instead of
corinna [Wed, 5 Dec 2007 16:50:18 +0000 (16:50 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::open): Use MAX_PATH instead of
CYG_MAX_PATH for event name buffer size.
(fhandler_pty_master::setup): Use MAX_PATH instead of CYG_MAX_PATH for
mutex name buffer size.
* netdb.cc: Drop old comment.
(open_system_file): Set path buffer size to MAX_PATH instead of
CYG_MAX_PATH.  Drop conversion to posix path.  Open file using win32
path.

Fix typo in ChangeLog.

16 years ago * fhandler_registry.cc: Use NAME_MAX + 1 instead of CYG_MAX_PATH
corinna [Wed, 5 Dec 2007 15:10:19 +0000 (15:10 +0000)]
* fhandler_registry.cc: Use NAME_MAX + 1 instead of CYG_MAX_PATH
throughout for subkey name buffer size.
* fhandler_socket.cc (search_wsa_event_slot): Use MAX_PATH instead of
CYG_MAX_PATH for mutext name buffer size.
(fhandler_socket::init_events): Ditto.
* fhandler_virtual.cc (fhandler_virtual::opendir): Check path length
against PATH_MAX instead of against CYG_MAX_PATH.
* registry.cc (get_registry_hive_path): Use PATH_MAX instead of
CYG_MAX_PATH for registry value path buffer size.
* shared.cc (open_shared): Use MAX_PATH instead of CYG_MAX_PATH
for shared memory name buffer size.
* thread.cc (semaphore::semaphore): Use MAX_PATH instead of CYG_MAX_PATH
for semaphore name buffer size.
* uinfo.cc (cygheap_user::env_userprofile): Use PATH_MAX instead of
CYG_MAX_PATH for temporary path name buffer size.
* winf.h (LINE_BUF_CHUNK): Define as MAX_PATH * 2.
* include/sys/dirent.h: Include sys/limits.h.  Define name buffer sizes
using NAME_MAX.

16 years ago Add missing ChangeLog entry.
corinna [Wed, 5 Dec 2007 12:32:30 +0000 (12:32 +0000)]
Add missing ChangeLog entry.

16 years ago * elf32-spu.c (spu_elf_size_stubs): Do consider branches to
amodra [Wed, 5 Dec 2007 03:29:19 +0000 (03:29 +0000)]
* elf32-spu.c (spu_elf_size_stubs): Do consider branches to
non-function symbols for overlay stubs.

16 years ago * config.sub, config.guess: Update from upstream sources.
bje [Wed, 5 Dec 2007 03:27:21 +0000 (03:27 +0000)]
* config.sub, config.guess: Update from upstream sources.

16 years agoFrom Craig Silverstein: Support -o -.
iant [Wed, 5 Dec 2007 01:13:28 +0000 (01:13 +0000)]
From Craig Silverstein: Support -o -.

16 years agoFrom Craig Silverstein: Test some flags.
iant [Wed, 5 Dec 2007 01:10:16 +0000 (01:10 +0000)]
From Craig Silverstein: Test some flags.

16 years agoStringpool stats. Also make Symbol_table support functions inline.
iant [Wed, 5 Dec 2007 00:48:49 +0000 (00:48 +0000)]
Stringpool stats.  Also make Symbol_table support functions inline.

16 years ago*** empty log message ***
gdbadmin [Wed, 5 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agoSupport lexical blocks and function bodies that occupy
jimb [Tue, 4 Dec 2007 23:43:57 +0000 (23:43 +0000)]
Support lexical blocks and function bodies that occupy
non-contiguous address ranges.
* addrmap.c, addrmap.h: New files.
* block.h (struct addrmap): New forward declaration.
(struct blockvector): New member, 'map'.
(BLOCKVECTOR_MAP): New accessor macro.
* block.c: #include "addrmap.h"
(blockvector_for_pc_sect): If the blockvector we've found has
an address map, use it instead of searching the blocks.
* buildsym.c: #include "addrmap.h"
(pending_addrmap_obstack, pending_addrmap_interesting): New static
variables.
(really_free_pendings): If we have a pending addrmap, free it too.
(record_block_range): New function.
(make_blockvector): If we have an interesting pending addrmap,
record it in the new blockvector.
(start_symtab, buildsym_init): Assert that there is no pending
addrmap now; we should have cleaned up any addrmaps we'd built
previously.
(end_symtab): If there is a pending addrmap left over that didn't
get included in the blockvector, free it.
* buildsym.h (struct addrmap): New forward declaration.
(record_block_range): New prototype.
* objfiles.c: #include "addrmap.h".
(objfile_relocate): Relocate the blockvector's address map, if
present.
* dwarf2read.c (dwarf2_record_block_ranges): New function.
(read_func_scope, read_lexical_block_scope): Call it.
* Makefile.in (SFILES): Add addrmap.c.
(addrmap_h): New header dependency variable.
(COMMON_OBS): Add addrmap.o.
(addrmap.o): New rule.l
(block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).

* block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
pointer to the block, not its index in the blockvector.
(block_for_pc_sect): Use the returned block, instead of looking it
up ourselves.
* block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
declarations.
* breakpoint.c (resolve_sal_pc): Use returned block, instead of
looking it up ourselves.
* stack.c (print_frame_label_vars): Disable function, which
depends on the block's index.

* buildsym.c (finish_block): Return the block we've built.
* buildsym.h (finish_block): Update prototype.

* defs.h (CORE_ADDR_MAX): New constant.

16 years agoFrom Craig Silverstein: Support irregular output files.
iant [Tue, 4 Dec 2007 23:42:27 +0000 (23:42 +0000)]
From Craig Silverstein: Support irregular output files.

16 years ago * coffread.c (decode_type): Use builtin_type_int32 instead
uweigand [Tue, 4 Dec 2007 23:32:58 +0000 (23:32 +0000)]
* coffread.c (decode_type): Use builtin_type_int32 instead
of FT_INTEGER fundamental type for array range index type.
(decode_base_type): Use builtin types of current_gdbarch
instead of fundamental types.

* dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
(read_file_scope): Do not initialize ftypes member.
(dwarf_base_type, dwarf2_fundamental_types): Remove functions.
(read_array_type): Use builtin_type_int32 instead of FT_INTEGER
fundamental type for array range index type.
(read_tag_string_type): Likewise for string range index type.
Also, do not overwrite FT_CHAR type with new string type.
(read_base_type): If DW_AT_name is missing, create unnamed type
with given properties instead of looking for a fundamental type.
Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
DW_ATE_complex_float types.
(read_subrange_type): Create new type to represent missing
DW_AT_type instead of looking for a fundamental type.
(die_type): Use builtin type to represent "void" instead of
looking for a fundamental type.

* stabsread.c (define_symbol): Use builtin types to represent
'r' and 'i' floating-point and integer constants.

* gdbtypes.c (lookup_fundamental_type): Remove.
* gdbtypes.h (lookup_fundamental_type): Remove prototype.
(FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
* objfiles.c (struct objfile): Remove fundamental_types member.
* symfile.c (reread_symbols): Do not clear fundamental_types.

* language.h (struct language_defn): Remove la_fund_type member.
(create_fundamental_type): Remove.
* language.c (unk_lang_create_fundamental_type): Remove.
(unknown_language_defn, auto_language_defn,
local_language_defn): Adapt initializer.
* ada-lang.c (ada_create_fundamental_type): Remove.
(ada_language_defn): Adapt initializer.
* c-lang.h (c_create_fundamental_type): Remove prototype.
* c-lang.c (c_create_fundamental_type): Remove.
(c_language_defn, cplus_language_defn, asm_language_defn,
minimal_language_defn): Adapt initializer.
* f-lang.c (f_create_fundamental_type): Remove.
(f_language_defn): Adapt initializer.
* jv-lang.c (java_create_fundamental_type): Remove.
(java_language_defn): Adapt initializer.
* m2-lang.c (m2_create_fundamental_type): Remove.
(m2_language_defn): Adapt initializer.
* objc-lang.c (objc_create_fundamental_type): Remove.
(objc_language_defn): Adapt initializer.
* p-lang.h (pascal_create_fundamental_type): Remove prototype.
* p-lang.c (pascal_create_fundamental_type): Remove.
(pascal_language_defn): Adapt initializer.
* scm-lang.c (scm_language_defn): Adapt initializer.

16 years agoPrint symbol table statistics with --stats.
iant [Tue, 4 Dec 2007 23:11:33 +0000 (23:11 +0000)]
Print symbol table statistics with --stats.

16 years agodaily update
amodra [Tue, 4 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-11-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
bje [Tue, 4 Dec 2007 22:54:32 +0000 (22:54 +0000)]
2007-11-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* Makefile.in (decimal32.o): Prepend $(srcdir) to dependencies
and substitute $< for the source file in compilation command.
(decimal64.o): Likewise.
(decimal128.o): Likewise.
(bid2dpd_dpd2bid.o): Likewise.
(host-ieee32.o): Likewise.
(host-ieee64.o): Likewise.
(host-ieee128.o): Likewise.

16 years ago * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT
bwilson [Tue, 4 Dec 2007 22:41:58 +0000 (22:41 +0000)]
* elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT
entry for all dynamic objects.

16 years ago* features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
macro [Tue, 4 Dec 2007 15:41:42 +0000 (15:41 +0000)]
* features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
* features/mips64-cpu.xml: Likewise.
* features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
* features/mips64-fpu.xml: Likewise.
* features/mips-linux.c: Regenerate.
* features/mips64-linux.c: Regenerate.

16 years ago* target.h (target_find_new_threads): Fix definition.
macro [Tue, 4 Dec 2007 14:14:59 +0000 (14:14 +0000)]
* target.h (target_find_new_threads): Fix definition.

16 years ago * fhandler_fifo.cc (fhandler_fifo::open): Use MAX_NAME for pipe name
corinna [Tue, 4 Dec 2007 13:29:44 +0000 (13:29 +0000)]
* fhandler_fifo.cc (fhandler_fifo::open): Use MAX_NAME for pipe name
buffer size.
(fhandler_fifo::fstatvfs): Use same technique as in fhandler_socket.
* fhandler_proc.cc (format_proc_partitions): Use NAME_MAX+1 for
device name buffer size.  Use MAX_PATH for device path buffer size.

16 years ago * elf32-spu.c (spu_elf_size_stubs): Correct section alignment.
amodra [Tue, 4 Dec 2007 03:29:43 +0000 (03:29 +0000)]
* elf32-spu.c (spu_elf_size_stubs): Correct section alignment.

16 years agoFrom Craig Silverstein: Use gold_fatal in options.h, beef up value checks.
iant [Tue, 4 Dec 2007 01:30:46 +0000 (01:30 +0000)]
From Craig Silverstein: Use gold_fatal in options.h, beef up value checks.

16 years ago2007-12-03 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Tue, 4 Dec 2007 00:35:54 +0000 (00:35 +0000)]
2007-12-03  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/wingdi.h: Change WINVER guard to _WIN32_WINNT.

16 years ago2007-12-03 techrazy <techrazy@users.sourceforge.net>
ironhead [Tue, 4 Dec 2007 00:30:40 +0000 (00:30 +0000)]
2007-12-03  techrazy  <techrazy@users.sourceforge.net>

        * include/wingdi.h (NTM_NONNEGATIVE_AC, NTM_PS_OPENTYPE, NTM_TT_OPENTYPE,
        NTM_MULTIPLEMASTER, NTM_TYPE1, NTM_DSIG): define.

16 years ago*** empty log message ***
gdbadmin [Tue, 4 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU.
amodra [Mon, 3 Dec 2007 23:19:25 +0000 (23:19 +0000)]
* readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU.

16 years ago * config/tc-ppc.c (ppc_tc): Allow a space between toc symbol
amodra [Mon, 3 Dec 2007 23:14:23 +0000 (23:14 +0000)]
* config/tc-ppc.c (ppc_tc): Allow a space between toc symbol
name and bracket.

16 years agodaily update
amodra [Mon, 3 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * autoload.cc (GetModuleFileNameExW): Replace definition of
corinna [Mon, 3 Dec 2007 14:13:01 +0000 (14:13 +0000)]
* autoload.cc (GetModuleFileNameExW): Replace definition of
GetModuleFileNameExA.
* fhandler_process.cc (format_process_maps): Change modname type to
WCHAR.  Set buffer sizes to PATH_MAX.  Call GetModuleFileNameExW
instead of GetModuleFileNameExA.  Call mount_info::conv_to_posix_path
instead of cygwin_conv_to_full_posix_path.  Set posix_modname to
modname if that call fails.
(format_process_stat): Set cmd buffer size to NAME_MAX + 1.  Simplify
setting cmd to process name.
(format_process_status): Ditto.
* path.cc (mount_info::conv_to_posix_path): Call sys_wcstombs
correctly.

16 years ago * include/cygwin/time.h: Remove redundant #endif.
corinna [Mon, 3 Dec 2007 11:34:58 +0000 (11:34 +0000)]
* include/cygwin/time.h: Remove redundant #endif.

16 years ago * win32-low.c (attaching): New global.
palves [Mon, 3 Dec 2007 01:42:06 +0000 (01:42 +0000)]
* win32-low.c (attaching): New global.
(win32_create_inferior): Clear the `attaching' global.
(win32_attach): Set the `attaching' global.
(get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
attaching.  Only set a breakpoint at the entry point if not
attaching.

16 years ago * server.c (main): Don't report dll events on the initial
palves [Mon, 3 Dec 2007 01:38:09 +0000 (01:38 +0000)]
* server.c (main): Don't report dll events on the initial
connection on attaches.

16 years ago * server.c (main): Relax numerical bases supported for the pid of
palves [Mon, 3 Dec 2007 01:34:09 +0000 (01:34 +0000)]
* server.c (main): Relax numerical bases supported for the pid of
the --attach command line argument.

16 years ago * win32-low.c (win32_attach): Call OpenProcess before
palves [Mon, 3 Dec 2007 01:30:59 +0000 (01:30 +0000)]
* win32-low.c (win32_attach): Call OpenProcess before
DebugActiveProcess, not after.  Add last error output to error
call.

16 years ago * win32-low.c (win32_get_thread_context)
palves [Mon, 3 Dec 2007 01:27:19 +0000 (01:27 +0000)]
* win32-low.c (win32_get_thread_context)
(win32_set_thread_context): New functions.
(thread_rec): Use win32_get_thread_context.
(continue_one_thread, win32_resume): Use win32_set_thread_context.
* win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
field.

16 years ago * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
palves [Mon, 3 Dec 2007 01:18:49 +0000 (01:18 +0000)]
* win32-low.c (soft_interrupt_requested, faked_breakpoint): New
global variables.
(child_add_thread): Minor cleanup.
(child_continue): Resume artificially suspended threads before
calling ContinueDebugEvent.
(suspend_one_thread): New.
(fake_breakpoint_event): New.
(get_child_debug_event): Change return type to int.  Check here if
gdb sent an interrupt request.  If a soft interrupt was requested,
fake a breakpoint event.  Return 0 if there is no event to handle,
and 1 otherwise.
(win32_wait): Don't check here if gdb sent an interrupt request.
Ensure there is a valid event to handle.
(win32_request_interrupt): Add soft interruption method as last
resort.