Andreas Schwab
c481dac737
* m68k-tdep.h (enum struct_return): Define.
...
(struct gdbarch_tdep): Add struct_return.
* m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
bytes are padded to the right, not to the left. Pass struct value
address in register %a1, not on stack.
(m68k_use_struct_convention): New function.
(m68k_gdbarch_init): Set use_struct_convention. Initialize
struct_return in tdep to pcc_struct_return.
* m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
reg_struct_return.
2003-07-09 21:36:08 +00:00
Joel Brobecker
64176fa3bb
* somread.c (som_symfile_offsets): Fix compilation error.
2003-07-09 18:50:12 +00:00
Andrew Cagney
96a4ee76e5
2003-07-09 Andrew Cagney <cagney@redhat.com>
...
* regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
Add comments about the checks.
2003-07-09 14:35:26 +00:00
Elena Zannoni
d99968dcc1
2003-07-09 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/annota1.exp: Make sure that we properly escape the
full path of the source file. Xfail more permissive patterns,
due to a compiler debug info problem.
2003-07-09 13:19:08 +00:00
Richard Sandiford
18ad015f6c
* elfxx-mips.c (mips_elf_link_hash_entry): Remove min_dyn_reloc_index.
...
(bfd_mips_elf_swap_msym_in, bfd_mips_elf_swap_msym_out): Delete.
(mips_elf_create_msym_section): Delete.
(mips_elf_create_dynamic_relocation): Don't set min_dyn_reloc_index.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_mips_elf_create_dynamic_sections): Don't create .msym.
(_bfd_mips_elf_size_dynamic_sections): Don't calculate its size.
(_bfd_mips_elf_size_dynamic_sections): Don't add DT_MIPS_MSYM.
(_bfd_mips_elf_finish_dynamic_symbol): Don't add symbols to .msym.
(_bfd_mips_elf_finish_dynamic_sections): Likewise.
2003-07-09 11:55:49 +00:00
Richard Sandiford
e10609d3f7
* elfxx-mips.c (mips_elf_irix6_finish_dynamic_symbol): Make the
...
symbols protected.
2003-07-09 11:53:36 +00:00
Richard Sandiford
0d591ff7fb
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Fix handling
...
of relocations whose offset is -2.
2003-07-09 11:52:52 +00:00
Richard Sandiford
fdd0740558
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): Treat
...
forced-local symbols like other locals. Don't create relocations
against STN_UNDEF in irix objects.
2003-07-09 11:51:53 +00:00
Richard Sandiford
d2fba50dd9
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): In SGI-
...
compatible objects, add the values of defined external symbols
to the addend.
2003-07-09 11:50:16 +00:00
Richard Sandiford
6eaa6adc99
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Always
...
initialize a GOT entry to the symbol's st_value.
2003-07-09 11:48:17 +00:00
Chris Demetriou
115695a81d
[ gas/ChangeLog ]
...
2003-07-08 Chris Demetriou <cgd@broadcom.com>
* config/tc-mips.c (mips_validate_fix): Do not warn about branch
target being a global symbol if not compiling SVR4 PIC code.
[ gas/testsuite/ChangeLog ]
2003-07-08 Chris Demetriou <cgd@broadcom.com>
* gas/testsuite/gas/mips/mips.exp: Make sure that branch-misc-2 is
run to compile non-PIC code, and add branch-misc-2pic.
* gas/mips/branch-misc-2.l: Adjust for change in non-PIC warnings.
* gas/mips/branch-misc-2pic.l: New file.
* gas/mips/branch-misc-2pic.s: New file.
2003-07-09 01:27:30 +00:00
gdbadmin
6a18135f6a
*** empty log message ***
2003-07-09 00:00:32 +00:00
Alan Modra
bc50d3dd0c
daily update
2003-07-09 00:00:05 +00:00
Andrew Cagney
1517c6d1f3
2003-07-08 Andrew Cagney <cagney@redhat.com>
...
* Makefile.in: Make dependency section headers consistent.
(config_h): Move to $BUILD headers section.
(exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
(msg_U_h, notify_S_h, process_reply_S_h): Ditto.
(ada-exp.tab.c): Move to YACC/LEX section.
(ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
(jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2003-07-08 20:18:41 +00:00
Kris Warkentin
fda848e0ad
Cleaned up ChangeLog entry.
2003-07-08 19:37:15 +00:00
Mark Kettenis
1c0a559ec8
* mem-break.c: Remove whitespace at end of file.
2003-07-08 18:51:44 +00:00
Joern Rennecke
fb319d8d1d
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
...
Allow second call from ldemul_finish.
2003-07-08 18:05:34 +00:00
Kris Warkentin
dc5dd1eba0
2003-07-08 Kris Warkentin <kewarken@qnx.com>
...
* nto-procfs.c: Cleaned up a bunch of ARI hits.
2003-07-08 15:36:44 +00:00
Alan Modra
43c40ab2d9
* elf-bfd.h (struct elf_obj_tdata): Move linker_section_pointers..
...
* elf32-ppc.c (struct ppc_elf_obj_tdata): ..to here. New.
(ppc_elf_tdata): Define.
(elf_local_ptr_offsets): Adjust.
(ppc_elf_mkobject): New function.
(bfd_elf32_mkobject): Define.
2003-07-08 13:10:51 +00:00
Alan Modra
0c83546ac6
* elfcode.h (elf_object_p): Allocate tdata via _bfd_set_format.
...
* elfcore.h (elf_core_file_p): Likewise.
* section.c (bfd_section_init): Remove prototype.
2003-07-08 08:08:00 +00:00
Alan Modra
234d84da5b
daily update
2003-07-08 00:00:05 +00:00
gdbadmin
17c215c0a9
*** empty log message ***
2003-07-08 00:00:02 +00:00
Andrew Cagney
612dde91c1
2003-07-07 Andrew Cagney <cagney@redhat.com>
...
* frame.c (get_prev_frame): Enable check for identical frames.
Update comments. Update error messages.
2003-07-07 20:07:12 +00:00
Joel Brobecker
492c11d3be
* hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2003-07-07 18:19:07 +00:00
Joel Brobecker
376a5a4963
* xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
...
sort_symtab_syms, no longer necessary.
2003-07-07 18:13:52 +00:00
Joel Brobecker
22b4a9ad26
* config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2003-07-07 18:06:53 +00:00
Joel Brobecker
5bbcb741a1
* mips-tdep.c (mips_register_raw_size): Fix compilation failure.
...
(mips_register_byte): Likewise.
2003-07-07 17:36:26 +00:00
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