Nick Clifton
94f592af1b
Update all uses of md_apply_fix to use md_apply_fix3. Make it a void function.
2001-11-15 21:29:00 +00:00
Andrew Cagney
ad10f812bf
* 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.
2001-11-15 20:58:38 +00:00
Andrew Cagney
9525aa9055
Really zap tty_input from multi-arch swap.
2001-11-15 20:30:41 +00:00
H.J. Lu
c3b1835c01
2001-11-15 H.J. Lu <hjl@gnu.org>
...
* ld-sh/ld-r-1.d: Updated.
2001-11-15 19:10:05 +00:00
DJ Delorie
dc5790516e
merge from gcc
2001-11-15 19:06:06 +00:00
Andrew Cagney
45a1e86678
Correctly handle phex(*,0) and phex_nz(*,0).
2001-11-15 18:35:05 +00:00
Andrew Cagney
faf833caca
* utils.c (phex_nz): For default case, set str to phex_nz return
...
value.
2001-11-15 18:24:17 +00:00
Alan Modra
a847613f74
* 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.
2001-11-15 13:19:46 +00:00
Alan Modra
0d3afcfcaa
* common.h (NT_ARCH): Define. Remove incorrect comment.
2001-11-15 13:19:10 +00:00
Andreas Schwab
e5fb9629dd
* readelf.c: Fix warnings without terminating newline.
2001-11-15 13:14:09 +00:00
Alan Modra
7dc9bd67ad
* binutils-all/objcopy.exp: Allow '? main', to suit powerpc64.
2001-11-15 12:51:42 +00:00
Alan Modra
c56feb2b8c
* 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.
2001-11-15 12:44:03 +00:00
Alan Modra
c86380b586
* po/POTFILES.in: Regenerate.
2001-11-15 12:27:07 +00:00
Alan Modra
beb1d4ece2
* po/SRC-POTFILES.in: Regenerate.
2001-11-15 12:18:27 +00:00
Thiemo Seufer
645dc66c72
* config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
2001-11-15 09:50:00 +00:00
Alan Modra
f9f32305f7
* 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.
2001-11-15 09:31:25 +00:00
Alan Modra
33861b119a
revert last change.
2001-11-15 09:16:46 +00:00
H.J. Lu
a48ca7f2ea
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.
2001-11-15 07:12:48 +00:00
Andrew Cagney
193cb69f7b
* 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.
2001-11-15 06:43:10 +00:00
Alan Modra
7c2b59d0e8
gas/ChangeLog
...
* dwarf2dbg.c (get_frag_fix): Align last frag size.
2001-11-15 05:18:22 +00:00
Andrew Cagney
d01949b65b
Move global state variables to ``struct remote_state''.
2001-11-15 05:00:46 +00:00
Alexandre Oliva
6361c4c9bc
* elf64-sparc.c (sparc64_elf_relocate_section): Disregard
...
overflows in the .stab section.
2001-11-15 04:13:35 +00:00
Andrew Cagney
1ff9c3d6f7
* 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.
2001-11-15 02:56:29 +00:00
Michael Snyder
86884b3733
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.
2001-11-15 02:18:46 +00:00
Michael Snyder
4749e309f2
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'.
2001-11-15 02:16:59 +00:00
Michael Snyder
47663de598
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.
2001-11-15 01:55:59 +00:00
Daniel Jacobowitz
73d074b4e2
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.
2001-11-15 01:34:12 +00:00
Geoffrey Keating
86651999ac
* binutils-all/readelf.exp: powerpc-*-eabi* is an ELF target.
2001-11-15 01:11:09 +00:00
Alan Modra
802a735ed9
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.
2001-11-15 01:08:53 +00:00
gdbadmin
025eb37b39
*** empty log message ***
2001-11-15 00:00:02 +00:00
Alan Modra
883d69e653
daily update
2001-11-14 23:00:06 +00:00
Jim Blandy
9a1befc916
* 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.
2001-11-14 22:34:38 +00:00
Jim Blandy
f2c6cfba86
* s390-tdep.c (s390_extract_return_value): Returned `float' values
...
can simply be copied bitwise from the registers into the value
object's buffer.
2001-11-14 22:29:39 +00:00
Jim Blandy
0902523724
* s390-tdep.c (s390_get_frame_info): Initialize SP's element of
...
the frame's saved_regs array correctly.
2001-11-14 22:14:11 +00:00
Jim Blandy
0d43edd16b
* 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.
2001-11-14 21:55:21 +00:00
Dave Brolley
1c00926451
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.
2001-11-14 20:07:27 +00:00
Andrew Cagney
bebd2b3536
when #size-cells is zero, don't expect a size.
2001-11-14 19:54:59 +00:00
Dave Brolley
378af1d671
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.
2001-11-14 19:51:40 +00:00
Dave Brolley
3e43c635d5
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.
2001-11-14 19:50:01 +00:00
Dave Brolley
2e1ef6b479
2001-11-14 Dave Brolley <brolley@redhat.com>
...
* m32r-dis.c: Regenerated.
* fr30-dis.c: Regenerated.
2001-11-14 19:48:54 +00:00
Martin Schwidefsky
27018c3f68
* 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.
2001-11-14 18:48:26 +00:00
Michael Snyder
befc81ac1d
2001-11-14 Michael Snyder <msnyder@redhat.com>
...
* Makefile.in (doublest.o): Add dependency on gdbtypes.h.
2001-11-14 18:38:01 +00:00
Nick Clifton
c1a44b0823
Use frag_make_room() to grow the obstack.
2001-11-14 17:43:32 +00:00
Corinna Vinschen
2505098499
* gdb.asm/asm-sources.exp: Allow defining linker flags.
2001-11-14 16:37:18 +00:00
Nick Clifton
42ebd756d5
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.
2001-11-14 14:07:26 +00:00
Andreas Jaeger
58a3581362
* cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
...
x86-64 for display.
2001-11-14 12:01:58 +00:00
Andreas Jaeger
fa405d97a1
* i386-dis.c (print_insn): Use x86-64 as option.
2001-11-14 12:01:12 +00:00
Andreas Jaeger
b89e9eae55
* doc/binutils.texi (objdump): Fix description to use x86-64.
2001-11-14 12:00:59 +00:00
Nick Clifton
a6a256529f
Replace use of mkstemp with mkstemps, provided by libiberty.
2001-11-14 11:56:41 +00:00
Nick Clifton
86017ce918
Only scan tail of executable for PE targets.
2001-11-14 11:18:42 +00:00