Daniel Jacobowitz
c139e7d9ef
* Makefile.in (sparc_tdep_h): New.
...
(sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
(sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
* sparc-linux-nat.c: Include "sparc-tdep.h".
* sparc-nat.c: Likewise.
* sparc-tdep.c: Likewise.
* sparc64nbsd-nat.c: Likewise.
* sparcnbsd-nat.c: Likewise.
* sparcnbsd-tdep.c: Likewise.
* sparc-tdep.h: New file.
* config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
and sparc_npc_regnum.
2003-07-07 15:56:08 +00:00
Alan Modra
58111eb706
* elf-bfd.h (struct elf_link_hash_entry): Remove linker_section_pointer
...
field.
(enum elf_linker_section_enum): Delete.
(struct elf_linker_section): Delete.
(struct elf_linker_section_pointers): Delete.
(struct elf_obj_tdata): Remove #if 0 chunk. Remove linker_section.
Make linker_section_pointers a void**.
(elf_local_ptr_offsets, elf_linker_section): Don't define.
* elf32-ppc.c (enum elf_linker_section_enum): New, cut-down version
of old item in elf-bfd.h.
(struct elf_linker_section): Likewise.
(struct elf_linker_section_pointers): Likewise.
(elf_local_ptr_offsets): Define.
(struct ppc_elf_link_hash_entry): Add linker_section_pointer.
(ppc_elf_link_hash_newfunc): Init it.
(struct ppc_elf_link_hash_table): Add sbss.
(ppc_elf_link_hash_table_create): zmalloc rather than clearing
individual fields.
(elf_create_linker_section): Fold into..
(ppc_elf_create_linker_section): ..here. Remove hole_size code.
Make rela section here if shared.
(elf_find_pointer_linker_section): Pass lsect rather than enum.
(elf_create_pointer_linker_section): Adjust. zalloc rather than
clearing in a loop.
(elf_finish_pointer_linker_section): Adjust. Don't make rela
section here.
(ppc_elf_check_relocs): Adjust.
(ppc_elf_add_symbol_hook): Tighten hash creator test. Remove code
creating .sbss by hand.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust.
2003-07-07 15:51:57 +00:00
Daniel Jacobowitz
fd8f87c5ee
* mips-linux-nat.c (mips_linux_cannot_fetch_register)
...
(mips_linux_cannot_store_register): List supported instead of
unsupported registers.
2003-07-07 15:17:55 +00:00
Daniel Jacobowitz
13adf674f8
* disasm.c (dump_insns): Separate instructions from addresses.
2003-07-07 15:13:17 +00:00
Andreas Schwab
8de307e0c2
* Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
...
dependencies.
* m68k-tdep.c (NUM_FREGS): Delete.
(SIG_PC_FP_OFFSET): Delete.
(TARGET_M68K): Delete.
(P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
P_MOVEL_SP, P_MOVEML_SP): Define.
(P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
P_TRAP): Delete.
(m68k_register_raw_size): Delete.
(m68k_register_virtual_size): Delete.
(m68k_register_type): Renamed from m68k_register_virtual_type and
add gdbarch argument.
(m68k_store_struct_return): Delete.
(m68k_deprecated_extract_return_value): Delete.
(m68k_deprecated_extract_struct_value_address): Delete.
(m68k_frame_chain): Delete.
(m68k_frame_saved_pc): Delete.
(m68k_fix_call_dummy): Delete.
(m68k_push_dummy_frame): Delete.
(m68k_pop_frame): Delete.
(m68k_extract_return_value): New function.
(m68k_store_return_value): Rewrite using regcache.
(m68k_extract_struct_value_address): Rewrite using regcache.
(m68k_push_dummy_call): New function.
(struct m68k_frame_cache): Define.
(m68k_alloc_frame_cache): New function.
(m68k_analyze_frame_setup): New function.
(m68k_analyze_register_saves): New function.
(m68k_analyze_prologue): New function.
(m68k_skip_prologue): Rewrite using above functions.
(m68k_unwind_pc): New function.
(m68k_frame_cache): New function.
(m68k_frame_this_id): New function.
(m68k_frame_prev_register): New function.
(m68k_frame_unwind): New variable.
(m68k_frame_p): New function.
(m68k_sigtramp_frame_cache): New function.
(m68k_sigtramp_frame_this_id): New function.
(m68k_sigtramp_frame_prev_register): New function.
(m68k_sigtramp_frame_unwind): New variable.
(m68k_sigtramp_frame_p): New function.
(m68k_frame_base_address): New function.
(m68k_frame_base): New function.
(m68k_unwind_dummy_id): New function.
(fill_gregset): Use regcache_collect.
(fill_fpregset): Likewise.
(m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
defined.
(m68k_gdbarch_init): Don't define call_dummy_words. Don't set
deprecated_init_frame_pc, deprecated_store_struct_return,
deprecated_extract_return_value, deprecated_store_return_value,
deprecated_frame_chain, deprecated_frame_saved_pc,
deprecated_frame_init_saved_regs, deprecated_register_raw_size,
deprecated_register_virtual_size,
deprecated_max_register_raw_size,
deprecated_max_register_virtual_size,
deprecated_register_virtual_type, deprecated_register_size,
deprecated_register_byte, deprecated_register_bytes,
deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
call_dummy_location, deprecated_call_dummy_breakpoint_offset,
deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
deprecated_push_dummy_frame, deprecated_pop_frame,
deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
only if SYSCALL_TRAP is defined. Set extract_return_value,
store_return_value, extract_struct_value_address, register_type,
push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
predicates.
* m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
M68K_MAX_REGISTER_SIZE): Define.
(struct m68k_sigtramp_info): Define.
(struct gdbarch_tdep): Add get_sigtramp_info.
* m68klinux-nat.c (fetch_register): Use register_size instead of
REGISTER_RAW_SIZE. Don't put assignment in if.
(store_register): Likewise.
(fetch_inferior_registers): Likewise.
(store_inferior_registers): Likewise.
* m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
(m68k_linux_frame_saved_pc): Delete.
(m68k_linux_sigcontext_reg_offset,
m68k_linux_ucontext_reg_offset): Define.
(m68k_linux_get_sigtramp_info): New function.
(m68k_linux_extract_return_value): Rewrite using regcache.
(m68k_linux_store_return_value): Likewise.
(m68k_linux_extract_struct_value_address): Likewise.
(m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
Don't set deprecated_frame_saved_pc,
deprecated_extract_return_value, deprecated_store_return_value,
deprecated_extract_struct_value_address. Set
extract_return_value, store_return_value,
extract_struct_value_address.
2003-07-07 15:06:11 +00:00
Andreas Schwab
2705e97210
* gdb.asm/m68k.inc: New file.
...
* gdb.asm/asm-source.exp: Use it for m68k-*-*.
2003-07-07 14:48:50 +00:00
Andrew Cagney
eb8bc28217
2003-07-07 Andrew Cagney <cagney@redhat.com>
...
* expprint.c: Include "user-regs.h" instead of "frame.h".
(print_subexp): Use user_reg_map_regnum_to_name, instead of
frame_map_regnum_to_name.
* frame.c: Include "user-regs.h" instead of "builtin-regs.h".
(frame_map_name_to_regnum): Simplify, call
user_reg_map_name_to_regnum.
(frame_map_regnum_to_name): Simplify, call
user_reg_map_regnum_to_name.
(frame_register_unwind): Update.
* std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
(_initialize_frame_reg): Call user_reg_add_builtin.
* findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
(value_of_register): Use value_of_user_reg.
* eval.c (evaluate_subexp_standard): Update.
* parse.c (write_dollar_variable): Update.
* d10v-tdep.c (d10v_print_registers_info): Update.
* infcmd.c (registers_info): Update.
* Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
(builtin_regs_h): Delete macro.
(user_regs_h): Define.
(COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
(builtin-regs.o): Delete target.
(user-regs.o): Specify dependencies.
(expprint.o): Update dependencies.
(findvar.o): Update dependencies.
(frame.o): Update dependencies.
(std-regs.o): Update dependencies.
2003-07-07 14:36:58 +00:00
Jakub Jelinek
15f8604d21
* elf32-s390.c (elf_howto_table): Change R_390_GOT12 to
...
complain_overflow_bitfield.
* elf64-s390.c (elf_howto_table): Change R_390_GOT12 to
complain_overflow_bitfield.
2003-07-07 11:14:40 +00:00
Nick Clifton
9f7598c156
Add documentation of M32R .high, .shigh and .low directives.
2003-07-07 10:24:08 +00:00
Nick Clifton
e0a868d179
Add Clarke's surname to ChangeLog entry
2003-07-07 09:40:16 +00:00
Richard Sandiford
1b680e4f57
* config/tc-h8300.c (h8300sxnmode): Add prototype.
...
(DSYMMODE): Remove.
(parse_exp): Replace expressionS argument with a h8_op. Parse the
operand size as well.
(skip_colonthing): Remove unused expression argument. Tighten checks
for 2-digit sizes.
(colonmod24): Remove.
(get_mova_operands): Combine calls to parse_exp and skip_colonthing.
(get_operand): Likewise. Use the standard code to read the size of
pc-relative operands.
(fix_operand_size): Include the size-guessing logic that used to be
in colonmod24 and get_operand. Don't apply dd:2 optimizations to
offsets with a symbolic component.
testsuite/
* gas/h8300/h8sx_disp2.[sd]: Add tests for symbolic displacements.
2003-07-07 09:33:02 +00:00
Alan Modra
8427c42425
* ppc-opc.c: Remove NULL pointer checks. Formatting. Remove
...
extraneous ATTRIBUTE_UNUSED.
* ppc-dis.c (print_insn_powerpc): Always pass a valid address to
operand->extract.
2003-07-07 01:34:04 +00:00
gdbadmin
503e66900f
*** empty log message ***
2003-07-07 00:00:31 +00:00
Alan Modra
1d6f398dc5
daily update
2003-07-07 00:00:05 +00:00
Andreas Schwab
83876b3be5
* gdb.objc/basicclass.exp ("Call an Objective-C method with no
...
arguments"): Also match negative number.
* gdb.base/float.exp ("info float"): Add test for m68k-*-*.
2003-07-06 22:27:34 +00:00
H.J. Lu
87242c6460
2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
...
* demangle.h: Support C++.
2003-07-06 21:44:55 +00:00
H.J. Lu
b40e3958d9
2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
...
* config-ml.in: Replace PWD with PWD_COMMAND.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerated.
2003-07-06 21:38:00 +00:00
Christopher Faylor
9f476a0143
* win32-nat.c (solib_symbols_add): Use one variable for all section address
...
stuff. Pass variable rather than address of variable to safe_symbol_file_add.
2003-07-06 19:48:54 +00:00
Andreas Schwab
a731b83190
* m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2003-07-06 18:58:26 +00:00
Alan Modra
bebd9d3f19
daily update
2003-07-06 00:00:05 +00:00
gdbadmin
d997928b76
*** empty log message ***
2003-07-06 00:00:01 +00:00
Zack Weinberg
a5089878c1
Clean up white space
2003-07-05 16:54:46 +00:00
Christopher Faylor
ff6b622203
* dlltool.c (prefix_encode): Use a fixed length for alpha.
2003-07-05 13:49:50 +00:00
Christopher Faylor
bf7a6389e8
* dlltool.c (prefix_encode): New function. Encode temp file prefix from pid.
...
(dlltmp): Pass address of pointer being alloced or suffer neverending mallocs.
(make_one_lib_file): Allocate enough space for new longer stub names.
(gen_lib_file): Ditto.
(main): Generate the temp file prefix from the pid if prefix was not specified
on the command line.
2003-07-05 02:58:29 +00:00
DJ Delorie
dbb9d0f3ee
merge from gcc
2003-07-05 01:59:15 +00:00
Alan Modra
81563749a4
daily update
2003-07-05 00:00:05 +00:00
gdbadmin
fc814fa1b7
*** empty log message ***
2003-07-05 00:00:02 +00:00
Joel Brobecker
9f83329d30
* rs6000-nat.c (vmap_symtab): Fix compilation error.
2003-07-04 16:42:59 +00:00
Joern Rennecke
3a51fda661
Allow to override sh64 initial stack value with --defsym:
...
* emulparams/shelf32.sh (STACK_ADDR): Don't define.
(OTHER_SECTIONS): Include .stack.
* emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
2003-07-04 16:07:01 +00:00
Kris Warkentin
27e28cc5db
2003-07-04 Kris Warkentin <kewarken@qnx.com>
...
* config/i386/nto.mh: Set XM_FILE to xm-i386.h
2003-07-04 15:57:08 +00:00
Kris Warkentin
61bb466e19
2003-07-04 Kris Warkentin <kewarken@qnx.com>
...
* nto-procfs.c: New file. Native procfs support for QNX Neutrino.
* config/i386/nto.mh: New file.
* config/i386/nm-nto.h: New file.
* configure.host: Add i[3456]86-*-nto*.
2003-07-04 15:48:57 +00:00
Alan Modra
2fbfdc41e7
* ppc-opc.c: Convert to C90, removing unnecessary prototypes and
...
casts. Formatting.
2003-07-04 15:27:25 +00:00
Nick Clifton
32a3339c51
(MKDOC rule): Add $(CFLAGS) in case it contains CC_FOR_BUILD specific switches.
2003-07-04 14:46:14 +00:00
Jakub Jelinek
3368a7fb7a
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
...
true even if -pie.
2003-07-04 13:57:14 +00:00
Jakub Jelinek
9203ba999f
bfd/
...
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add rel_fptr_sec.
(elfNN_ia64_dynamic_symbol_p): Change info->shared into
!info->executable.
(get_fptr): For -pie create .opd as writable section and create
.rela.opd as well.
(elfNN_ia64_check_relocs): Change info->shared into
!info->executable.
(allocate_fptr): Likewise.
(allocate_dynrel_entries): Account for a relative reloc for -pie
@fptr(). Don't account for a relative reloc if -pie want_ltoff_fptr
for undefweak symbol. Account for an IPLT reloc in .rela.opd
section if -pie.
(set_got_entry): Don't create a relative reloc if -pie
want_ltoff_fptr for undefweak symbol.
(set_fptr_entry): Emit an IPLT reloc in .rela.opd for -pie.
(elfNN_ia64_relocate_section): Emit a relative reloc for -pie
@fptr().
* elfxx-ia64.c (elfNN_ia64_relocate_section): Issue undefined_symbol
even if -pie.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
ld/
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
.opd if -pie.
(OTHER_READWRITE_SECTIONS): Include .opd if -pie.
* scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
if -pie.
2003-07-04 13:53:38 +00:00
Alan Modra
03417200ae
* gas/ppc/test2elf64.s: Rename to..
...
* gas/ppc/power4.s: ..this. Add mtcr and mfcr testcases.
* gas/ppc/test2elf64.d: Rename to..
* gas/ppc/power4.d: ..this. Update.
* gas/ppc/ppc.exp: Update.
2003-07-04 13:35:35 +00:00
Alan Modra
c168870a29
* ppc-opc.c: Remove PARAMS from prototypes.
...
(FXM4): Define.
(insert_fxm): New function, used by both FXM and FXM4.
(extract_fxm): Likewise.
(XFXFXM_MASK): Remove 1 << 20 term.
(powerpc_opcodes): Add Power4 version of "mfcr". Simplify "mtcr" mask.
2003-07-04 13:06:21 +00:00
Nick Clifton
0cea619061
* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
...
macro to compute size of selected register name array.
2003-07-04 10:46:35 +00:00
Nick Clifton
96c223ce90
* readelf.c (get_data): Print (unsigned) hex values for size and offset in
...
error messages.
(process_section_headers): If the string table could not be allocated, do
not continue.
2003-07-04 10:42:26 +00:00
Nick Clifton
8c17da6e59
* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
...
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
<R_H8_DIR32A16>: Fix type of relocation.
* ld-h8300/h8300.exp: Replace loop with explicit list. Run relax.d
unconditionally. Run relax-2.d for *-elf targets.
* ld-h8300/relax.d: Fix typo.
* ld-h8300/relax.s: Add 0x prefixes.
* ld-h8300/relad-2.[sd]: New test.
2003-07-04 10:25:14 +00:00
Kaz Kojima
35cad4c475
* elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
...
sections were created already. Remove unnecessary tests of
the previous change.
2003-07-04 08:41:57 +00:00
Kaz Kojima
03151a5a11
* elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
...
bfd_make_section for existing sections.
2003-07-04 07:38:33 +00:00
Alan Modra
2293c4998c
* elf32-sparc.c (elf32_sparc_check_relocs): Don't call
...
create_got_section if we already have done so.
* elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
(sh_elf_check_relocs): Likewise.
(sh_elf_adjust_dynamic_symbol): Delete "dynobj" var. Use
htab->root.dynobj instead.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_sections): Likewise.
2003-07-04 04:58:03 +00:00
Alan Modra
003d627e6e
* section.c (bfd_make_section): Return NULL for existing section.
2003-07-04 04:14:56 +00:00
Alan Modra
fa681e5d43
* elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
...
ppc_elf_create_got if we've already done so.
2003-07-04 01:57:26 +00:00
Alan Modra
3dab13f62b
* elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
...
(_bfd_elf_find_pointer_linker_section): Likewise.
(bfd_elf32_create_pointer_linker_section): Likewise.
(bfd_elf32_finish_pointer_linker_section): Likewise.
(bfd_elf64_create_pointer_linker_section): Likewise.
(bfd_elf64_finish_pointer_linker_section): Likewise.
(_bfd_elf_make_linker_section_rela): Likewise.
* elfcode.h (elf_create_pointer_linker_section): Don't define.
(elf_finish_pointer_linker_section): Likewise.
* elflink.c (_bfd_elf_make_linker_section_rela): Delete.
(_bfd_elf_create_linker_section): Move this function..
(_bfd_elf_find_pointer_linker_section): ..and this..
* elflink.h (elf_create_pointer_linker_section): ..and this..
(elf_finish_pointer_linker_section): ..and this..
* elf32-ppc.c: ..to here, renaming to the following, and adjusting
calls.
(elf_create_linker_section): Convert to C90, tidy.
(elf_find_pointer_linker_section): Likewise.
(elf_create_pointer_linker_section): Likewise.
(elf_finish_pointer_linker_section): Likewise.
* elf32-i370.c: Delete #if 0 code.
2003-07-04 01:50:12 +00:00
Joel Brobecker
100f2e98f8
* remote-vx.c (vx_add_symbols): Fix compilation error.
2003-07-04 01:27:25 +00:00
Michael Snyder
e53a5a69d7
2003-07-03 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (movs): Fix a couple of text transpositions.
2003-07-04 00:03:52 +00:00
Alan Modra
b214fcbec0
daily update
2003-07-04 00:00:05 +00:00
gdbadmin
5df1b4db85
*** empty log message ***
2003-07-04 00:00:02 +00:00