OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
22 years ago*** empty log message ***
gdbadmin [Fri, 16 Nov 2001 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
amodra [Thu, 15 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update

22 years agoUpdate all uses of md_apply_fix to use md_apply_fix3. Make it a void function.
nickc [Thu, 15 Nov 2001 21:28:52 +0000 (21:28 +0000)]
Update all uses of md_apply_fix to use md_apply_fix3.  Make it a void function.

22 years ago* remote.c (struct packet_reg): Declare.
cagney [Thu, 15 Nov 2001 20:58:36 +0000 (20:58 +0000)]
* remote.c (struct packet_reg): Declare.
(struct remote_state): Add fields sizeof_g_packet and g_packet.
(init_remote_state): Initialize sizeof_g_packet and g_packet.
(free_remote_state): Free g_packet.
(packet_reg_from_pnum, packet_reg_by_regnum): New functions.
(remote_wait): Use above instead of gdbarch methods
REGISTER_RAW_SIZE and REGISTER_BYTES.
(remote_async_wait): Ditto.
(remote_fetch_registers, remote_store_registers): Ditto.
(store_register_using_P): Ditto.

22 years agoReally zap tty_input from multi-arch swap.
cagney [Thu, 15 Nov 2001 20:30:40 +0000 (20:30 +0000)]
Really zap tty_input from multi-arch swap.

22 years ago2001-11-15 H.J. Lu <hjl@gnu.org>
hjl [Thu, 15 Nov 2001 19:10:05 +0000 (19:10 +0000)]
2001-11-15  H.J. Lu <hjl@gnu.org>

* ld-sh/ld-r-1.d: Updated.

22 years agomerge from gcc
dj [Thu, 15 Nov 2001 19:06:06 +0000 (19:06 +0000)]
merge from gcc

22 years agoCorrectly handle phex(*,0) and phex_nz(*,0).
cagney [Thu, 15 Nov 2001 18:35:04 +0000 (18:35 +0000)]
Correctly handle phex(*,0) and phex_nz(*,0).

22 years ago* utils.c (phex_nz): For default case, set str to phex_nz return
cagney [Thu, 15 Nov 2001 18:24:16 +0000 (18:24 +0000)]
* utils.c (phex_nz): For default case, set str to phex_nz return
value.

22 years ago * config/tc-i386.h (md_end): Define.
amodra [Thu, 15 Nov 2001 13:19:46 +0000 (13:19 +0000)]
* config/tc-i386.h (md_end): Define.
(i386_elf_emit_arch_note): Declare.
(CpuUnknown): Delete.
* config/tc-i386.c (default_arch): Constify.
(smallest_imm_type): Remove CpuUnknown test.
(md_assemble): Don't bother checking cpu_arch_flags non-zero.
(i386_elf_emit_arch_note): New function.

22 years ago * common.h (NT_ARCH): Define. Remove incorrect comment.
amodra [Thu, 15 Nov 2001 13:19:10 +0000 (13:19 +0000)]
* common.h (NT_ARCH): Define.  Remove incorrect comment.

22 years ago * readelf.c: Fix warnings without terminating newline.
schwab [Thu, 15 Nov 2001 13:14:09 +0000 (13:14 +0000)]
* readelf.c: Fix warnings without terminating newline.

22 years ago * binutils-all/objcopy.exp: Allow '? main', to suit powerpc64.
amodra [Thu, 15 Nov 2001 12:51:42 +0000 (12:51 +0000)]
* binutils-all/objcopy.exp: Allow '? main', to suit powerpc64.

22 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
amodra [Thu, 15 Nov 2001 12:44:01 +0000 (12:44 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
function when LDEMUL_FINISH isn't set to the same name.  Don't
call ${LDEMUL_FINISH}.
(ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
* emultempl/armelf.em (arm_elf_finish): Call
gld${EMULATION_NAME}_finish.
* emultempl/hppaelf.em (hppaelf_finish): Rename to
gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
hppaelf_layout_sections_again if necessary.
(need_laying_out): New var.
(hppaelf_layaout_sections_again): Rename to
hppaelf_layout_sections_again.  Clear need_laying_out.
(PARSE_AND_LIST_OPTIONS): Format text.

22 years ago * po/POTFILES.in: Regenerate.
amodra [Thu, 15 Nov 2001 12:27:05 +0000 (12:27 +0000)]
* po/POTFILES.in: Regenerate.

22 years ago * po/POTFILES.in: Regenerate.
amodra [Thu, 15 Nov 2001 12:26:32 +0000 (12:26 +0000)]
* po/POTFILES.in: Regenerate.

22 years ago * po/SRC-POTFILES.in: Regenerate.
amodra [Thu, 15 Nov 2001 12:18:24 +0000 (12:18 +0000)]
* po/SRC-POTFILES.in: Regenerate.

22 years agoFix typo.
duda [Thu, 15 Nov 2001 11:27:15 +0000 (11:27 +0000)]
Fix typo.

22 years ago* winsup.api/pthread/: New directory. Ports of pthread functionality
duda [Thu, 15 Nov 2001 11:19:45 +0000 (11:19 +0000)]
* winsup.api/pthread/: New directory. Ports of pthread functionality
tests ported from pthreads-win32 project.
* winsup.api/pthread/test.h: Commmon declaraions for pthread tests.
* winsup.api/pthread/cleanup2.c: New test.
* winsup.api/pthread/cleanup3.c: Ditto.
* winsup.api/pthread/condvar1.c: Ditto.
* winsup.api/pthread/condvar2.c: Ditto.
* winsup.api/pthread/condvar2_1.c: Ditto.
* winsup.api/pthread/condvar3.c: Ditto.
* winsup.api/pthread/condvar3_1.c: Ditto.
* winsup.api/pthread/condvar3_2.c: Ditto.
* winsup.api/pthread/condvar3_3.c: Ditto.
* winsup.api/pthread/condvar4.c: Ditto.
* winsup.api/pthread/condvar5.c: Ditto.
* winsup.api/pthread/condvar6.c: Ditto.
* winsup.api/pthread/condvar8.c: Ditto.
* winsup.api/pthread/count1.c: Ditto.
* winsup.api/pthread/create1.c: Ditto.
* winsup.api/pthread/create2.c: Ditto.
* winsup.api/pthread/equal1.c: Ditto.
* winsup.api/pthread/exit1.c: Ditto.
* winsup.api/pthread/exit2.c: Ditto.
* winsup.api/pthread/exit3.c: Ditto.
* winsup.api/pthread/inherit1.c: Ditto.
* winsup.api/pthread/join0.c: Ditto.
* winsup.api/pthread/join1.c: Ditto.
* winsup.api/pthread/join2.c: Ditto.
* winsup.api/pthread/mutex1.c: Ditto.
* winsup.api/pthread/mutex1r.c: Ditto.
* winsup.api/pthread/mutex2.c: Ditto.
* winsup.api/pthread/mutex3.c: Ditto.
* winsup.api/pthread/mutex6r.c: Ditto.
* winsup.api/pthread/once1.c: Ditto.
* winsup.api/pthread/priority1.c: Ditto.
* winsup.api/pthread/priority2.c: Ditto.
* winsup.api/pthread/self1.c: Ditto.
* winsup.api/pthread/self2.c: Ditto.
* winsup.api/pthread/tsd1.c: Ditto.

22 years ago* include/pthread.h (PTHREAD_COND_INITIALIZER): Define.
duda [Thu, 15 Nov 2001 11:10:37 +0000 (11:10 +0000)]
* include/pthread.h (PTHREAD_COND_INITIALIZER): Define.
* thread.cc (__pthread_cond_destroy): Add support for
PTHREAD_COND_INITIALIZER.
(__pthread_cond_init): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_dowait): Ditto.
(__pthread_mutex_init): Handle PTHREAD_MUTEX_INITIALIZER correctly,
don't return error when it's passed as parameter.
* winsup.h (check_null_invalid_struct): Call correct function.

22 years ago * config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
ths [Thu, 15 Nov 2001 09:49:54 +0000 (09:49 +0000)]
* config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.

22 years ago * elflink.h (elf_link_input_bfd): Complain about all relocs
amodra [Thu, 15 Nov 2001 09:31:23 +0000 (09:31 +0000)]
* elflink.h (elf_link_input_bfd): Complain about all relocs
against local syms from discarded sections.
(elf_reloc_symbol_deleted_p): Don't try to swap in external syms.

22 years agorevert last change.
amodra [Thu, 15 Nov 2001 09:16:45 +0000 (09:16 +0000)]
revert last change.

22 years ago2001-11-14 H.J. Lu <hjl@gnu.org>
hjl [Thu, 15 Nov 2001 07:12:45 +0000 (07:12 +0000)]
2001-11-14  H.J. Lu  <hjl@gnu.org>

* emultempl/armelf.em (arm_elf_finish): Renamed from
gld${EMULATION_NAME}_finish.
(LDEMUL_FINISH): Set to arm_elf_finish.

22 years ago* TODO (register_buffer): Delete.
cagney [Thu, 15 Nov 2001 06:43:07 +0000 (06:43 +0000)]
* TODO (register_buffer): Delete.
* regcache.c (register_buffer): Make static.
(regcache_collect): New function.
* regcache.h (register_buffer): Delete declaration.
(regcache_collect): Declare.
* remote.c (store_register_using_P): Rewrite using
regcache_collect.
(remote_store_registers): Ditto.
* go32-nat.c (store_register): Ditto.

22 years agogas/ChangeLog
amodra [Thu, 15 Nov 2001 05:18:22 +0000 (05:18 +0000)]
gas/ChangeLog
* dwarf2dbg.c (get_frag_fix): Align last frag size.

22 years agoMove global state variables to ``struct remote_state''.
cagney [Thu, 15 Nov 2001 05:00:45 +0000 (05:00 +0000)]
Move global state variables to ``struct remote_state''.

22 years ago* elf64-sparc.c (sparc64_elf_relocate_section): Disregard
aoliva [Thu, 15 Nov 2001 04:13:35 +0000 (04:13 +0000)]
* elf64-sparc.c (sparc64_elf_relocate_section): Disregard
overflows in the .stab section.

22 years ago* exceptions.cc: Add stdlib.h include for alloca declaration.
cgf [Thu, 15 Nov 2001 03:25:52 +0000 (03:25 +0000)]
* exceptions.cc: Add stdlib.h include for alloca declaration.
* poll.cc: Ditto.
* termios.cc: Ditto.
* syscalls.cc (_write): Only allow zero length when fd is valid.

22 years ago* remote.c: Include "gdb_assert.h".
cagney [Thu, 15 Nov 2001 02:56:28 +0000 (02:56 +0000)]
* remote.c: Include "gdb_assert.h".
(tty_input): Wire buffer to 400 bytes.
(readsocket): Check tty_input doesn't overflow.
(build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
tty_input.

22 years ago* lib/remote.exp (local_exec, standard_close): Use SHELL
cagney [Thu, 15 Nov 2001 02:29:56 +0000 (02:29 +0000)]
* lib/remote.exp (local_exec, standard_close): Use SHELL
background instead of tcl background to background the kill
processes.  Work around problem found by Nick Duffek in older
CYGWINs.

22 years ago2001-11-14 Michael Snyder <msnyder@redhat.com>
msnyder [Thu, 15 Nov 2001 02:18:46 +0000 (02:18 +0000)]
2001-11-14  Michael Snyder  <msnyder@redhat.com>

        * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
into the instruction address space.
* Makefile.in (doublest.o): Add dependency on gdbtypes.h.

22 years ago2001-11-13 Michael Snyder <msnyder@redhat.com>
msnyder [Thu, 15 Nov 2001 02:16:58 +0000 (02:16 +0000)]
2001-11-13  Michael Snyder  <msnyder@redhat.com>

* gdb.base/cvexpr.c, gdb.base/cvexpr.exp: New files.
Tests for expressions using 'const' and 'volatile'.

22 years ago2001-11-14 Michael Snyder <msnyder@redhat.com>
msnyder [Thu, 15 Nov 2001 01:55:59 +0000 (01:55 +0000)]
2001-11-14  Michael Snyder  <msnyder@redhat.com>
Add address space identifiers to expression language for types.
* c-exp.y (space_identifier, cv_with_space_id,
const_or_volatile_or_space_identifier_noopt,
const_or_volatile_or_space_identifier): New terminals.
(ptype): Accept const_or_volatile_or_space_identifier.
(typebase): Accept const_or_volatile_or_space_identifier.
* c-typeprint.c (c_type_print_cv_qualifier): Rename to
c_type_print_modifier.  Handle address space modified types.
* gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
New type flags.
(struct type): Add new field as_type for addr-space qualified types.
(TYPE_AS_TYPE): New macro, retrieves the chain of types that are
identical to this one except for address-space qualification.
* gdbtypes.c (alloc_type): Initialize new field 'as_type'.
(address_space_name_to_int): New function.
(address_space_int_to_name): New function.
(make_type_with_address_space): New function.
(make_cv_type): Handle as_type field of new struct type object.
* parse.c (check_type_stack_depth): New function.
(push_type_address_space): New function.
(follow_types): Handle types with address-space qualifier.
* parser-defs.h (enum type_pieces): Add enum tp_space_identifier.

22 years ago2001-11-11 Daniel Jacobowitz <drow@mvista.com>
drow [Thu, 15 Nov 2001 01:34:09 +0000 (01:34 +0000)]
2001-11-11  Daniel Jacobowitz  <drow@mvista.com>

* bfd-in.h (bfd_elf32_discard_info): Add prototype.
(bfd_elf64_discard_info): Likewise.
* bfd-in2.h: Regenerate.
* elf-bfd.h (struct elf_reloc_cookie): New.
(struct elf_backend_data): Add elf_backend_discard_info,
elf_backend_ignore_discarded_relocs, and elf_backend_write_section.
(_bfd_elf32_reloc_symbol_deleted_p): Add prototype.
(_bfd_elf64_reloc_symbol_deleted_p): Likewise.
* elf32-mips.c (_bfd_elf32_mips_discard_info): New.
(_bfd_elf32_mips_ignore_discarded_relocs): New.
(_bfd_elf32_mips_write_section): New.
(elf_backend_discard_info): Define.
(elf_backend_ignore_discarded_relocs): Define.
(elf_backend_write_section): Define.
* elfcode.h (elf_bfd_discard_info): Define.
(elf_reloc_symbol_deleted_p): Define.
* elflink.h (elf_link_input_bfd): Check
elf_section_ignore_discarded_relocs.  Call
bed->elf_backend_write_section if available.
(elf_reloc_symbol_deleted_p): New.
(elf_bfd_discard_info): New.
(elf_section_ignore_discarded_relocs): New.
* elfxx-target.h (elf_backend_discard_info): Define.
(elf_backend_ignore_discarded_relocs): Define.
(elf_backend_write_section): Define.
(elfNN_bed): Add elf_backend_discard_info,
elf_backend_ignore_discarded_relocs, and
elf_backend_write_section.
* libbfd-in.h (_bfd_discard_section_stabs): Add prototype.
* libbfd.h: Regenerate.
* stabs.c (_bfd_discard_section_stabs): New.

2001-11-11  Daniel Jacobowitz  <drow@mvista.com>

* emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
(struct ld_emulation_xfer_struct): Use it.

22 years ago * binutils-all/readelf.exp: powerpc-*-eabi* is an ELF target.
geoffk [Thu, 15 Nov 2001 01:11:08 +0000 (01:11 +0000)]
* binutils-all/readelf.exp: powerpc-*-eabi* is an ELF target.

22 years agobinutils/ChangeLog
amodra [Thu, 15 Nov 2001 01:08:48 +0000 (01:08 +0000)]
binutils/ChangeLog
* doc/binutils.texi (objdump): Document ppc -M options.
gas/ChangeLog
* config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size)
to operand->insert.
(md_assemble): Likewise.
gas/testsuite/ChangeLog
* gas/ppc/booke.d: Modify reloc and target matches for powerpc64.
include/opcode/ChangeLog
* ppc.h (struct powerpc_operand <insert, extract>): Add dialect param.
opcodes/ChangeLog
* ppc-opc.c (PPC64): Revert 2001-10-12. Do include PPC_OPCODE_PPC.
(insert_bat, extract_bat, insert_bba, extract_bba,
insert_bd, extract_bd, insert_bdm, extract_bdm,
insert_bdp, extract_bdp, valid_bo,
insert_bo, extract_bo, insert_boe, extract_boe,
insert_ds, extract_ds, insert_de, extract_de,
insert_des, extract_des, insert_li, extract_li,
insert_mbe, extract_mbe, insert_mb6, extract_mb6,
insert_nb, extract_nb, insert_nsi, extract_nsi,
insert_ral, insert_ram, insert_ras,
insert_rbs, extract_rbs, insert_sh6, extract_sh6,
insert_spr, extract_spr, insert_tbr, extract_tbr): Add dialect param.
(extract_bd, extract_bdm, extract_bdp,
extract_ds, extract_des,
extract_li, extract_nsi): Implement sign extension without conditional.
(insert_bdm, extract_bdm,
insert_bdp, extract_bdp, valid_bo): Handle 64 bit branch hints.
(extract_bdm, extract_bdp): Correct 32 bit validation.
(AT1_MASK, AT2_MASK): Define.
(BBOAT_MASK): Define.
(BBOATCB_MASK, BBOAT2CB_MASK, BBOATBI_MASK): Define.
(BOFM64, BOFP64, BOTM64, BOTP64): Define.
(BODNZM64, BODNZP64, BODZM64, BODZP64): Define.
(PPCCOM32, PPCCOM64): Define.
(powerpc_opcodes): Modify existing 32 bit insns with branch hints
and add new patterns to implement 64 bit branches with hints.  Move
booke instructions so they match before ppc64.
* ppc-dis.c (powerpc_dialect): Set PPC_OPCODE_64 in dialect for
64 bit default targets, and parse "32" and "64" in options.
Formatting fixes.
(print_insn_powerpc): Pass dialect to operand->extract.

22 years ago*** empty log message ***
gdbadmin [Thu, 15 Nov 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
amodra [Wed, 14 Nov 2001 23:00:06 +0000 (23:00 +0000)]
daily update

22 years ago* s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
jimb [Wed, 14 Nov 2001 22:34:38 +0000 (22:34 +0000)]
* s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
pointer and the SP are often the same, so we can't pop the frame
by setting the SP to the FP; we need to get the old SP from
saved_regs.

22 years ago* s390-tdep.c (s390_extract_return_value): Returned `float' values
jimb [Wed, 14 Nov 2001 22:29:38 +0000 (22:29 +0000)]
* s390-tdep.c (s390_extract_return_value): Returned `float' values
can simply be copied bitwise from the registers into the value
object's buffer.

22 years ago* s390-tdep.c (s390_get_frame_info): Initialize SP's element of
jimb [Wed, 14 Nov 2001 22:14:11 +0000 (22:14 +0000)]
* s390-tdep.c (s390_get_frame_info): Initialize SP's element of
the frame's saved_regs array correctly.

22 years ago* symfile.c (simple_read_overlay_table): Make sure we can find
jimb [Wed, 14 Nov 2001 21:55:21 +0000 (21:55 +0000)]
* symfile.c (simple_read_overlay_table): Make sure we can find
both `_novlys' and `_ovly_table' before we try anything else;
print a helpful error message.
(simple_overlay_update): No need to print error message here.

22 years ago * fhandler.cc (fhandler_disk_file::fstat): Add setting access time
corinna [Wed, 14 Nov 2001 21:47:39 +0000 (21:47 +0000)]
* fhandler.cc (fhandler_disk_file::fstat): Add setting access time
and creation time to last modification time for files on filesystems
not supporting multiple timestamps.
(fhandler_disk_file::fstat_helper): Set access time and creation
time in incoming Windows structure instead of in stat buf to avoid
incorrectly overwriting Epoch timestamp.

22 years ago2001-11-14 Dave Brolley <brolley@redhat.com>
brolley [Wed, 14 Nov 2001 20:07:27 +0000 (20:07 +0000)]
2001-11-14  Dave Brolley  <brolley@redhat.com>

* cgen-dis.c (count_decodable_bits): New function.
(add_insn_to_hash_chain): New function.
(hash_insn_array): Call add_insn_to_hash_chain.
(hash_insn_list): Call add_insn_to_hash_chain.

22 years agowhen #size-cells is zero, don't expect a size.
cagney [Wed, 14 Nov 2001 19:54:59 +0000 (19:54 +0000)]
when #size-cells is zero, don't expect a size.

22 years ago2001-11-14 Dave Brolley <brolley@redhat.com>
brolley [Wed, 14 Nov 2001 19:51:40 +0000 (19:51 +0000)]
2001-11-14  Dave Brolley  <brolley@redhat.com>

* arch.c: Regenerate.
* arch.h: Regenerate.
* cpu.c: Regenerate.
* cpu.h: Regenerate.
* cpuall.h: Regenerate.
* cpux.c: Regenerate.
* cpux.h: Regenerate.
* decode.c: Regenerate.
* decode.h: Regenerate.
* decodex.c: Regenerate.
* decodex.h: Regenerate.
* model.c: Regenerate.
* modelx.c: Regenerate.
* sem-switch.c: Regenerate.
* sem.c: Regenerate.
* semx-switch.c: Regenerate.

22 years ago2001-11-14 Dave Brolley <brolley@redhat.com>
brolley [Wed, 14 Nov 2001 19:50:01 +0000 (19:50 +0000)]
2001-11-14  Dave Brolley  <brolley@redhat.com>

* arch.c: Regenerate.
* arch.h: Regenerate.
* cpu.c: Regenerate.
* cpu.h: Regenerate.
* cpuall.h: Regenerate.
* decode.c: Regenerate.
* decode.h: Regenerate.
* model.c: Regenerate.
* sem-switch.c: Regenerate.
* sem.c: Regenerate.

22 years ago2001-11-14 Dave Brolley <brolley@redhat.com>
brolley [Wed, 14 Nov 2001 19:48:53 +0000 (19:48 +0000)]
2001-11-14  Dave Brolley  <brolley@redhat.com>

* m32r-dis.c: Regenerated.
* fr30-dis.c: Regenerated.

22 years ago2001-11-14 Dave Brolley <brolley@redhat.com>
brolley [Wed, 14 Nov 2001 19:46:42 +0000 (19:46 +0000)]
2001-11-14  Dave Brolley  <brolley@redhat.com>

* utils-gen.scm (-gen-extract-word): Correct computation of the length
of the field being extracted.

22 years ago * elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
sky [Wed, 14 Nov 2001 18:48:26 +0000 (18:48 +0000)]
* elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
scheme to get rid of an ugly complicated test.
* elf64-s390.c (elf_s390_relocate_section): Likewise.

22 years ago2001-11-14 Michael Snyder <msnyder@redhat.com>
msnyder [Wed, 14 Nov 2001 18:38:00 +0000 (18:38 +0000)]
2001-11-14  Michael Snyder  <msnyder@redhat.com>

* Makefile.in (doublest.o): Add dependency on gdbtypes.h.

22 years agoUse frag_make_room() to grow the obstack.
nickc [Wed, 14 Nov 2001 17:43:31 +0000 (17:43 +0000)]
Use frag_make_room() to grow the obstack.

22 years ago * gdb.asm/asm-sources.exp: Allow defining linker flags.
corinna [Wed, 14 Nov 2001 16:37:18 +0000 (16:37 +0000)]
* gdb.asm/asm-sources.exp: Allow defining linker flags.

22 years agoDo not remove the symbol's value from the addend for fixups against local
nickc [Wed, 14 Nov 2001 14:07:26 +0000 (14:07 +0000)]
Do not remove the symbol's value from the addend for fixups against local
symbols in SEC_MERGE sections - it was not added in, in the first place.

22 years ago * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
aj [Wed, 14 Nov 2001 12:01:58 +0000 (12:01 +0000)]
* cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
x86-64 for display.

22 years ago * i386-dis.c (print_insn): Use x86-64 as option.
aj [Wed, 14 Nov 2001 12:01:11 +0000 (12:01 +0000)]
* i386-dis.c (print_insn): Use x86-64 as option.

22 years ago * doc/binutils.texi (objdump): Fix description to use x86-64.
aj [Wed, 14 Nov 2001 12:00:58 +0000 (12:00 +0000)]
* doc/binutils.texi (objdump): Fix description to use x86-64.

22 years agoReplace use of mkstemp with mkstemps, provided by libiberty.
nickc [Wed, 14 Nov 2001 11:56:41 +0000 (11:56 +0000)]
Replace use of mkstemp with mkstemps, provided by libiberty.

22 years agoOnly scan tail of executable for PE targets.
nickc [Wed, 14 Nov 2001 11:18:42 +0000 (11:18 +0000)]
Only scan tail of executable for PE targets.

22 years ago * dwarf2.c (struct line_head) [total_length]: Change type to
jakub [Wed, 14 Nov 2001 11:16:46 +0000 (11:16 +0000)]
* dwarf2.c (struct line_head) [total_length]: Change type to
bfd_vma.
(struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size.
(struct comp_unit): Add stash and offset_size.
(read_8_bytes): Return bfd_vma.
(read_indirect_string): New.
(read_attribute): Handle DW_FORM_strp.
(decode_line_info): Support 64-bit DWARF format.
(_bfd_dwarf2_find_nearest_line): Likewise.
(parse_comp_unit): Set offset_size and stash.

22 years ago * winsup.h: Remove alloca definition since it's now defined through
corinna [Wed, 14 Nov 2001 10:47:53 +0000 (10:47 +0000)]
* winsup.h: Remove alloca definition since it's now defined through
inclusion of stdlib.h.
* lib/cygwin_crt0.c: Ditto.

22 years ago * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
corinna [Wed, 14 Nov 2001 10:25:30 +0000 (10:25 +0000)]
* libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
to here.  Rearrange for general inclusion by stdlib.h.
* libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
isn't defined.
* libc/sys/linux/include/alloca.h: Move to libc/include.

22 years ago* arm-tdep.c (arm_register_type): New function.
cagney [Wed, 14 Nov 2001 08:18:31 +0000 (08:18 +0000)]
* arm-tdep.c (arm_register_type): New function.
(arm_register_convertible): Delete.
(arm_register_convert_to_virtual): Delete.
(arm_register_convert_to_raw): Delete.
* config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
(REGISTER_CONVERT_TO_VIRTUAL): Delete.
(REGISTER_CONVERT_TO_RAW): Delete.
(REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
(arm_register_type): Declare.

22 years ago2001-11-13 Jeff Holcomb <jeffh@redhat.com>
jeffh [Wed, 14 Nov 2001 06:24:41 +0000 (06:24 +0000)]
2001-11-13  Jeff Holcomb  <jeffh@redhat.com>

Merged from net gcc:
2001-07-30  Jeff Sturm  <jsturm@one-pont.com>
* ltcf-c.sh: Use $objext, not $ac_objext.
2001-07-27  Mark Kettenis  <kettenis@gnu.org>
* ltcf-cxx.sh: Add support for GNU.
2001-07-22  Timothy Wall  <twall@redhat.com>
* ltcf-c.sh: Don't disable shared libraries for AIX5/IA64.  Preserve
default settings if using GNU tools with that configuration.
* ltcf-cxx.sh: Ditto.
* ltcf-gcj.sh: Ditto.
2001-07-21  Michael Chastain  <chastain@redhat.com>
* ltconfig: Set max_cmd_len to a maximum of 512Kb, as it seems some
HPUX 11.0 systems have trouble with 1MB.  Mark as gcc-local.
* ltmain.sh: Mark as gcc-local.

22 years ago2001-11-13 Jeff Holcomb <jeffh@redhat.com>
jeffh [Wed, 14 Nov 2001 05:49:24 +0000 (05:49 +0000)]
2001-11-13  Jeff Holcomb  <jeffh@redhat.com>

* Makefile.in (all-bison): Revert 2001-10-24.
Don't depend on texinfo.

22 years ago* syscalls.cc (_write): Allow zero length as per SUSv2.
cgf [Wed, 14 Nov 2001 04:12:10 +0000 (04:12 +0000)]
* syscalls.cc (_write): Allow zero length as per SUSv2.

22 years agobinutils/ChangeLog
amodra [Wed, 14 Nov 2001 03:15:28 +0000 (03:15 +0000)]
binutils/ChangeLog
* doc/binutils.texi (objdump): Document x86 -M options.
include/ChangeLog
  * dis-asm.h (print_insn_i386): Declare.
opcodes/ChangeLog
* disassemble.c (disassembler): Call print_insn_i386.
* i386-dis.c (SUFFIX_ALWAYS): Define.
(struct dis_private): Add orig_sizeflag.
(print_insn_i386): Make it a wrapper, calling..
(print_insn): ..The old body of print_insn_i386.  Avoid longjmp
warning without using volatile by moving orig_sizeflag to priv,
and removing inbuf.  Parse disassembler_options.
(print_insn_i386_att, print_insn_i386_intel): Move initialisation
code to print_insn.
(putop): Remove #ifdef SUFFIX_ALWAYS.

22 years ago*** empty log message ***
gdbadmin [Wed, 14 Nov 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago * dwarf2.c (read_attribute_value): New function to handle
rth [Tue, 13 Nov 2001 23:37:41 +0000 (23:37 +0000)]
    * dwarf2.c (read_attribute_value): New function to handle
        DW_FORM_indirect.
        (read_attribute): Use it.

22 years ago * readelf.c (read_and_display_attr_value): New function to
rth [Tue, 13 Nov 2001 23:36:37 +0000 (23:36 +0000)]
    * readelf.c (read_and_display_attr_value): New function to
        handle DW_FORM_indirect.
        (read_and_display_attr): Use it.

22 years agodaily update
amodra [Tue, 13 Nov 2001 23:00:10 +0000 (23:00 +0000)]
daily update

22 years ago * dir.cc (mkdir): Add HIDDEN file attribute if file has leading dot
corinna [Tue, 13 Nov 2001 21:49:05 +0000 (21:49 +0000)]
* dir.cc (mkdir): Add HIDDEN file attribute if file has leading dot
and HIDDEN_DOT_FILES is defined.
* fhandler.cc (fhandler_base::open): Ditto.
* path.cc (symlink): Ditto.
* syscalls.cc (_rename): Ditto and remove HIDDEN file attribute if
new filename does not begin with a dot.

22 years agoIndex: bfd/ChangeLog
geoffk [Tue, 13 Nov 2001 20:13:29 +0000 (20:13 +0000)]
Index: bfd/ChangeLog
2001-11-11  Geoffrey Keating  <geoffk@redhat.com>

* dwarf2.c (decode_line_info): Properly deal with unknown standard
opcodes.

Index: binutils/ChangeLog
2001-11-11  Geoffrey Keating  <geoffk@redhat.com>

* readelf.c (display_debug_lines): Deal with unknown standard
opcodes.  Handle DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin,
DW_LNS_set_isa.

Index: include/elf/ChangeLog
2001-11-11  Geoffrey Keating  <geoffk@redhat.com>

* dwarf2.h (dwarf_line_number_ops): Add DWARF 3 opcodes.

22 years ago2001-11-13 Elena Zannoni <ezannoni@redhat.com>
ezannoni [Tue, 13 Nov 2001 19:07:00 +0000 (19:07 +0000)]
2001-11-13  Elena Zannoni  <ezannoni@redhat.com>

From Andrew Cagney <cagney@redhat.com>:
* gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
* gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
new builtin types.

22 years ago2001-11-07 Michael Snyder <msnyder@redhat.com>
msnyder [Tue, 13 Nov 2001 18:54:40 +0000 (18:54 +0000)]
2001-11-07  Michael Snyder  <msnyder@redhat.com>

        * gdb.c++/templates.exp (test_template_breakpoints):
If we get an overload menu, but it does not match what
we expect, we still need to issue the "cancel" command.

22 years ago* gdbint.texinfo (COERCE_FLOAT_TO_DOUBLE): Clarify.
jimb [Tue, 13 Nov 2001 18:52:53 +0000 (18:52 +0000)]
* gdbint.texinfo (COERCE_FLOAT_TO_DOUBLE): Clarify.

22 years ago2001-11-07 Michael Snyder <msnyder@redhat.com>
msnyder [Tue, 13 Nov 2001 18:52:08 +0000 (18:52 +0000)]
2001-11-07  Michael Snyder  <msnyder@redhat.com>

        * gdb.c++/templates.exp: Replace "void \\*" with "void ?\\*",
making the whitespace optional.  Argument for "new" may be
"unsigned" as well as "unsigned int/long".

22 years ago * emulparams/elf64hppa.sh (OTHER_BSS_END_SECTIONS): Add
law [Tue, 13 Nov 2001 18:25:37 +0000 (18:25 +0000)]
    * emulparams/elf64hppa.sh (OTHER_BSS_END_SECTIONS): Add
        additional symbols referenced by newer crt0.o files from HP.

22 years ago* s390-tdep.c: Rewrite inferior function call code. This may
jimb [Tue, 13 Nov 2001 17:47:17 +0000 (17:47 +0000)]
* s390-tdep.c: Rewrite inferior function call code.  This may
break zSeries support; that should be fixed soon.
#include "gdb_assert.h".
(is_integer_like, is_pointer_like, is_simple_arg,
pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
round_down, alignment_of): New functions.
(s390_push_arguments): Rewritten to handle passing large arguments
by value, and to make more readable.

22 years ago* s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
jimb [Tue, 13 Nov 2001 17:38:48 +0000 (17:38 +0000)]
* s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
interact correctly with generic dummy frames.
(s390_pop_frame_regular): Move the guts of the frame-popping code
to here, to be called by generic_pop_current_frame.  Use the
frame's saved_regs array; this works for `return' as well as
inferior function calls.

22 years ago* s390-tdep.c (s390_gdbarch_init): Register the function
jimb [Tue, 13 Nov 2001 17:26:44 +0000 (17:26 +0000)]
* s390-tdep.c (s390_gdbarch_init): Register the function
`standard_coerce_float_to_double', since GCC for the S/390 follows
the standard rules for passing floats.

22 years ago* valops.c (default_coerce_float_to_double,
jimb [Tue, 13 Nov 2001 16:44:13 +0000 (16:44 +0000)]
* valops.c (default_coerce_float_to_double,
standard_coerce_float_to_double): Doc fixes.

22 years agoPatch from Peter Schauer:
jimb [Tue, 13 Nov 2001 16:42:49 +0000 (16:42 +0000)]
Patch from Peter Schauer:

* symtab.c (find_pc_sect_line): If we can't find the function
containing PC, we certainly won't have line number information for
that location, so return zero immediately.

22 years agoremove diff indicators
twall [Tue, 13 Nov 2001 14:23:41 +0000 (14:23 +0000)]
remove diff indicators

22 years agoFix tic54x testsuite failures and Lmem disassembly bugs.
twall [Tue, 13 Nov 2001 14:22:38 +0000 (14:22 +0000)]
Fix tic54x testsuite failures and Lmem disassembly bugs.

22 years agomerge from gcc
dj [Tue, 13 Nov 2001 03:54:14 +0000 (03:54 +0000)]
merge from gcc

22 years ago * section.c (bfd_make_section_anyway): Don't increment section_id
amodra [Tue, 13 Nov 2001 03:52:25 +0000 (03:52 +0000)]
* section.c (bfd_make_section_anyway): Don't increment section_id
and the BFD's section_count if adding the section failed.
* vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
change.

22 years agoAdd __stack_base__
green [Tue, 13 Nov 2001 03:31:14 +0000 (03:31 +0000)]
Add __stack_base__

22 years ago * config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
amodra [Tue, 13 Nov 2001 03:24:24 +0000 (03:24 +0000)]
* config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
put in note section.  Use sizeof instead of hard-coded constants.

22 years agoEliminate REGISTER_CONVERTIBLE().
cagney [Tue, 13 Nov 2001 03:10:33 +0000 (03:10 +0000)]
Eliminate REGISTER_CONVERTIBLE().

22 years ago * libc/sys/mmixware/*: Correct spacing in all source files.
hp [Tue, 13 Nov 2001 02:49:11 +0000 (02:49 +0000)]
* libc/sys/mmixware/*: Correct spacing in all source files.
* libc/sys/mmixware/syscall.h: Move misplaced file...
* libc/sys/mmixware/sys/syscall.h: ...here.

22 years agoZap REGISTER_CONVERTIBLE from m88k.
cagney [Tue, 13 Nov 2001 02:39:29 +0000 (02:39 +0000)]
Zap REGISTER_CONVERTIBLE from m88k.

22 years ago * i386.h (i386_optab): Add entries for "sldr", "smsw" and "str" to
amodra [Tue, 13 Nov 2001 01:03:54 +0000 (01:03 +0000)]
* i386.h (i386_optab): Add entries for "sldr", "smsw" and "str" to
accept WordReg.
* i386-dis.c (grps): Change "sldt", "str", and "smsw" entries
to "sldtQ", "strQ", "smswQ" respectively; all with Ev operand
category instead of Ew.

22 years ago*** empty log message ***
gdbadmin [Tue, 13 Nov 2001 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
hp [Mon, 12 Nov 2001 23:47:02 +0000 (23:47 +0000)]
* elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
core dump format.

22 years agodaily update
amodra [Mon, 12 Nov 2001 23:01:05 +0000 (23:01 +0000)]
daily update

22 years ago* i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
kettenis [Mon, 12 Nov 2001 22:27:35 +0000 (22:27 +0000)]
* i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
* i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
* config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
(SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.

22 years ago * config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
ths [Mon, 12 Nov 2001 22:22:19 +0000 (22:22 +0000)]
* config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
(md_longopts): Allow OPTION_MABI for ELF compilation only. RE-allow
OPTION_GP32, OPTION_GP64, OPTION_FP32 for non-ELF compilation.
Sort options a bit more logical.
(md_parse_option): Allow OPTION_32, OPTION_N32, OPTION_N64,
OPTION_MABI only for elf targets.
* gas/mips/mips.exp: Change naming of some conditionals to reflect
the object format they actually mean. Don't try mips-abi32 and
mips-abi32-pic tests for ecoff.

22 years ago * config/tc-mips.c (set_at): Add cast needed for varargs.
ths [Mon, 12 Nov 2001 22:20:43 +0000 (22:20 +0000)]
* config/tc-mips.c (set_at): Add cast needed for varargs.
(load_register): Likewise.
(macro): Likewise. Some code reformatting.
(macro2): Add cast needed for varargs.
(mips16_macro): Likewise.