Mark Kettenis
7553697134
* m68k-tdep.c (m68k_frameless_function_invocation): Remove
...
function.
(m68k_gdbarch_init): Don't set
deprecated_frameless_function_invocation.
2004-05-08 15:52:15 +00:00
Alexandre Oliva
3f980e41d7
* elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
...
a zero symndx for which we hadn't accounted a dynamic relocation.
(_frvfdpic_add_rofixup): Likewise.
2004-05-08 07:05:32 +00:00
Randolph Chung
f4ca1d1f22
2004-05-07 Randolph Chung <tausq@debian.org>
...
* hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
read_memory_nobpt for code reading when doing frame unwinding.
* hppa-linux-tdep.c (insns_match_pattern): Likewise.
2004-05-08 03:59:34 +00:00
Randolph Chung
2f0e8c7aff
2004-05-07 Randolph Chung <tausq@debian.org>
...
* hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
instead of sp, handle sigaltstack case.
(hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
signal handler and not that of the caller.
(hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
hppa_linux_sigtramp_find_sigcontext.
2004-05-08 03:45:44 +00:00
Randolph Chung
959464ff2c
2004-05-07 Randolph Chung <tausq@debian.org>
...
* Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
hppa-linux-nat.c.
(hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
* hppa-linux-nat.c (fetch_register, store_register): Define.
(fetch_inferior_registers, store_inferior_registers): Define.
(supply_gregset): Add comment and clean up some unneeded code.
(fill_gregset): Add comment and fix so that it saves registers in
the right place in the gregset.
(fill_fpregset): Fix buffer overrun problem.
* config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2004-05-08 03:27:24 +00:00
Randolph Chung
0da28f8a58
2004-05-07 Randolph Chung <tausq@debian.org>
...
* hppa-tdep.c (hppa_frame_prev_register_helper): New function to
do common handling of the pcoqt register.
(hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
to use helper function.
(hppa_frame_unwind_sniffer): Only use if unwind entry is present.
(hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
(hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
generic fallback unwinder when all else fails.
(hppa_gdbarch_init): Add fallback sniffer.
* hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
* hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
to use helper function.
2004-05-08 03:17:57 +00:00
Joel Brobecker
b9ec757a56
* config/djgpp/fnchange.lst: Add translation rules for
...
gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
2004-05-08 00:10:45 +00:00
Joel Brobecker
c0586a34cd
* gdb.arch/powerpc-aix-prologue.c: New file.
...
* gdb.arch/powerpc-aix-prologue.exp: New file.
2004-05-08 00:08:24 +00:00
Alan Modra
dd732f94a8
daily update
2004-05-08 00:00:07 +00:00
Mark Kettenis
756e95f198
* frame.c (get_prev_frame_1): Work around GCC bug.
...
* frame.h: Add comment about GCC bug.
2004-05-07 23:19:14 +00:00
Andrew Cagney
2b4855ab6b
2004-05-07 Andrew Cagney <cagney@redhat.com>
...
* observer.c: Include "commands.h" and "gdbcmd.h".
(observer_debug, _initialize_observer): Add the
command "set/show debug observer".
* observer.sh: When observer debugging, log notify calls.
* Makefile.in (observer.o): Update dependencies.
Index: doc/ChangeLog
2004-05-07 Andrew Cagney <cagney@redhat.com>
* observer.texi (GDB Observers): Add "Debugging" section. Include
cross reference to "set/show debug observer".
* gdb.texinfo (Debugging Output): Document "set/show debug
observer".
2004-05-07 22:51:55 +00:00
Jason Molenda
ba3e8e4643
2004-05-07 Jason Molenda (jmolenda@apple.com)
...
* cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
2004-05-07 21:36:34 +00:00
Jim Blandy
daf6dc85b1
* aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
...
fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
to recognize gpr regnums, instead of assuming that
tdep->ppc_fp0_regnum marks the end of the general-purpose
registers.
2004-05-07 20:50:37 +00:00
Jim Blandy
16796152f1
* ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
...
the given architecture has floating-point registers.
2004-05-07 20:48:43 +00:00
Richard Sandiford
532c738a13
* config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
...
to cope with VR4181A errata MD(1) and MD(4).
2004-05-07 16:39:26 +00:00
H.J. Lu
e4b17d5c7a
2004-05-07 H.J. Lu <hongjiu.lu@intel.com>
...
* readelf.c (section_groups): New.
(group_count): New.
(section_headers_groups): New.
(process_section_groups): Populate group_count, section_groups
and section_headers_groups.
(process_unwind): Support section group.
(process_object): Always call process_section_groups. Free
section_groups and section_headers_groups.
2004-05-07 15:33:36 +00:00
Joern Rennecke
5f9b892013
* ldlang.c (print_padding_statement): Cast size_t to bfd_vma
...
before printing it with %W.
2004-05-07 15:21:27 +00:00
Brian Ford
26d2d8a262
* emultempl/pe.em (real_flags): New static.
...
(OPTION_LARGE_ADDRESS_AWARE): New define.
(gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
(gld_${EMULATION_NAME}_list_options): Likewise.
(gld${EMULATION_NAME}_handle_option): Likewise.
(gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
* ld.texinfo: Document it.
* NEWS: Mention it.
2004-05-07 15:17:58 +00:00
Brian Ford
d70270c5ec
* coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
...
Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
2004-05-07 15:08:49 +00:00
Andrew Cagney
c69b8bfcf6
2004-05-07 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
macro defined to 1.
* gdbarch.h, gdbarch.c: Re-generate.
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set
deprecated_use_generic_dummy_frames.
2004-05-07 14:55:59 +00:00
Brian Ford
1b16950104
* NEWS: Mention DWARF 2 support for i386pe.
2004-05-07 14:49:48 +00:00
Brian Ford
0503b35538
* NEWS: Mention .secrel32 for pe[i]-i386.
2004-05-07 14:44:56 +00:00
Brian Ford
7243600ab5
* NEWS: Mention Cygwin DWARF 2 support.
2004-05-07 14:34:35 +00:00
Andrew Cagney
73c1e0a129
2004-05-07 Andrew Cagney <cagney@redhat.com>
...
* objfiles.h (struct entry_info): Delete unused fields
deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
* objfiles.c (init_entry_point_info, objfile_relocate): Update.
* mipsread.c (mipscoff_symfile_read): Update.
* mdebugread.c (parse_partial_symbols): Update.
* dwarfread.c (read_file_scope): Update.
* dwarf2read.c (read_file_scope): Update.
* dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
* coffread.c (complete_symtab): Update.
2004-05-07 14:29:34 +00:00
Mark Kettenis
1d3056ac0d
* infcall.c (_initialize_infcall): Fix typo.
2004-05-07 14:08:52 +00:00
Andrew Cagney
1517056850
2004-05-07 Andrew Cagney <cagney@redhat.com>
...
* cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
* command.h (add_setshow_zinteger_cmd): Declare.
2004-05-07 13:35:52 +00:00
Jim Blandy
f2785d123f
* gdb.base/lineinc.exp, gdb.base/lineinc1.h, gdb.base/lineinc2.h,
...
gdb.base/lineinc3.h, gdb.base/lineinc.c: New tests.
2004-05-07 09:16:29 +00:00
Alexandre Oliva
7e9f3bd695
* elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
...
immediately if there's no link info.
(elf32_frvfdpic_copy_private_bfd_data): New.
(bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
2004-05-07 06:28:39 +00:00
Alexandre Oliva
daeea9904e
* config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
...
(HANDLE_ALIGN): New.
2004-05-07 06:28:04 +00:00
Daniel Jacobowitz
bfbdcf0474
* Makefile.am (DIST_SUBDIRS): Define.
...
* aclocal.m4: Regenerate with automake 1.8.4.
* Makefile.in: Likewise.
* doc/Makefile.in: Likewise.
2004-05-07 06:23:54 +00:00
Randolph Chung
34f75cc19f
2004-05-06 Randolph Chung <tausq@debian.org>
...
* config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
(HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
(PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
(EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
(RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
(CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
(ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
definitions ...
* hppa-tdep.h: ... to here, with HPPA_ prefix.
* Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
* hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
(hppa64_hpux_frame_find_saved_regs_in_sig)
(child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
* hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
* hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
(hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
(hppa_linux_sigtramp_frame_prev_register): Likewise.
* hppa-tdep.c (hppa32_return_value, hppa64_return_value)
(hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
(hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
(hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
(hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
(hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
(hppa32_register_type, hppa_cannot_store_register)
(hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
* hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
* hpread.c (hpread_process_one_debug_symbol): Likewise.
* pa64solib.c (pa64_solib_have_load_event)
(pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
(pa64_solib_unloaded_library_pathname): Likewise.
* somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
(som_solib_library_pathname): Likewise.
2004-05-07 05:48:50 +00:00
Zack Weinberg
eb61d2d606
* dwarf2.c (add_line_info): Also set info->filename to NULL if
...
filename argument is null; do not call strlen on a null pointer.
2004-05-07 00:01:25 +00:00
Alan Modra
00ed60a15b
daily update
2004-05-07 00:00:07 +00:00
Daniel Jacobowitz
ecb2d096d3
* elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
...
special case.
2004-05-06 23:43:40 +00:00
Jim Wilson
5e819f9c88
Patch from David Mosberger-Tang.
...
* config/tc-ia64.c (dot_serialize): Declare.
(dot_serialize): New function.
(md_pseudo_table): Add ".serialize.data" and
".serialize.instruction" directives.
2004-05-06 22:32:44 +00:00
Joel Brobecker
bd7f6e305c
* gdb.base/sep.exp: No longer setup_kfail when the program was
...
built with dwarf2.
2004-05-06 21:32:01 +00:00
Nick Clifton
e59763172f
Remove duplicate code and provide a function for generating internally consistent 'value out of range' messages
2004-05-06 11:01:48 +00:00
Alexandre Oliva
41cf0c6285
* emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
...
elf32-frvfdpic.
2004-05-06 02:46:54 +00:00
Alexandre Oliva
996991aa95
* configure.in: Set em=linux for frv-*-*linux*.
...
* configure: Rebuilt.
* config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
(frv_md_fdpic_enabled): New.
* config/tc-frv.c (frv_md_fdpic_enabled): New.
(DEFAULT_FDPIC): New.
(frv_flags): Use DEFAULT_FDPIC.
(frv_pic_flag): Likewise.
(OPTION_NOPIC): New.
(md_longopts): Add -mnopic.
(md_parse_option): Handle it.
(md_show_usage): Add -mfdpic and -mnopic.
2004-05-06 02:46:45 +00:00
Alexandre Oliva
43850d5b4b
* configure.in (bfd_elf32_frvfdpic_vec): New.
...
* configure: Rebuilt.
* targets.c (bfd_elf32_frvfdpic_vec): New.
* config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
on the latter.
* elf32-frv.c: Prefix all identifiers added for FDPIC support with
frvfdpic instead of frv. Rearrange elf-target macros such that
the FDPIC-specific ones are only defined for this new target
vector.
(bfd_elf32_frvfdpic_vec): Declare.
(IS_FDPIC): New.
(elf32_frv_relocate_section): Use it to enable segment checking
and to control rofixup emission. Add output section vma to
applied relocation in non-LOAD non-ALLOC sections. Use
_bfd_error_handler for errors.
(_frv_create_got_section): Create .rel.got and .rofixup only in
FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
linker script.
(elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
(elf32_frvfdpic_modify_segment_map): Likewise.
(elf32_frv_finish_dynamic_sections): New, do-nothing.
(elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
error message if we miscompute the rofixup size.
(frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
(frvfdpic_elf_encode_eh_address): Likewise.
(elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
Record relocs only in FDPIC. Make sure _gp is defined for GPREL
relocs. Reject unknown relocation types.
(elf32_frv_object_p): Make sure target vector matches FDPIC bits.
(frv_elf_merge_private_bfd_data): Likewise.
(ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
0x4000 for newly-added elf32-frvfdpic.
2004-05-06 02:46:29 +00:00
Alexandre Oliva
b8bfc9e13d
* ld-frv/fdpic.exp: Restore $LDFLAGS at the end.
...
* ld-frv/fr450-link.d: Match fdpic as well.
2004-05-06 02:46:13 +00:00
Alexandre Oliva
d15c497051
* gas/frv/reloc1.d: Match elf32-frvfdpic as well.
...
* gas/frv/fr405-insn.d: Likewise.
* gas/frv/fr450-insn.d: Likewise.
2004-05-06 02:46:07 +00:00
Kaz Kojima
7e415deb05
* ld-sh/sh64/crange1.rd: Update sh_info to decimal.
...
* ld-sh/sh64/crange2.rd: Likewise.
* ld-sh/sh64/crange3.rd: Likewise.
* ld-sh/sh64/crange3-cmpct.rd: Likewise.
* ld-sh/sh64/crange3-media.rd: Likewise.
* ld-sh/sh64/crangerel1.rd: Likewise.
* ld-sh/sh64/crangerel2.rd: Likewise.
2004-05-06 00:13:39 +00:00
Alan Modra
24b8fce8cd
daily update
2004-05-06 00:00:07 +00:00
Jim Ingham
0a5e7efe29
Preserve the ignore count when we resolve a pending breakpoint. Also add
...
a test for this to pending.exp.
2004-05-05 21:18:11 +00:00
Nick Clifton
33216455a7
Remove checks of the return value from bfd_cache_ookup()
2004-05-05 15:46:35 +00:00
Andrew Cagney
10a4b11321
2004-05-05 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (PARM_BOUNDARY): Delete.
gdbarch.h, gdbarch.c: Re-generate.
* valops.c (PARM_BOUNDARY): Delete macro.
(value_push): Delete PARM_BOUNDARY code.
* m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
2004-05-05 15:42:53 +00:00
Nick Clifton
06fc8a8ce6
PR/136 - Have bfd_cache_lookup_worker() abort rather than return an
...
(unchecked-for) NULL.
2004-05-05 15:39:11 +00:00
Nick Clifton
6b6e92f432
Add support for 521x,5249,547x,548x.
2004-05-05 14:33:14 +00:00
Alan Modra
a404d431a8
* ppc-opc.c (PPCVEC): Remove PPC_OPCODE_PPC.
2004-05-05 13:43:36 +00:00