Jakub Jelinek [Wed, 14 Nov 2001 11:16:47 +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.
Andrew Cagney [Wed, 14 Nov 2001 08:18:33 +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.
Jeff Holcomb [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.
Jeff Holcomb [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.
Alan Modra [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.
gdbadmin [Wed, 14 Nov 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Richard Henderson [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.
Richard Henderson [Tue, 13 Nov 2001 23:36:38 +0000 (23:36 +0000)]
* readelf.c (read_and_display_attr_value): New function to
handle DW_FORM_indirect.
(read_and_display_attr): Use it.
Alan Modra [Tue, 13 Nov 2001 23:00:10 +0000 (23:00 +0000)]
daily update
Geoffrey Keating [Tue, 13 Nov 2001 20:13:30 +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.
Elena Zannoni [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.
Michael Snyder [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.
Jim Blandy [Tue, 13 Nov 2001 18:52:53 +0000 (18:52 +0000)]
* gdbint.texinfo (COERCE_FLOAT_TO_DOUBLE): Clarify.
Michael Snyder [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".
Jeff 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.
Jim Blandy [Tue, 13 Nov 2001 17:47:19 +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.
Jim Blandy [Tue, 13 Nov 2001 17:38:49 +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.
Jim Blandy [Tue, 13 Nov 2001 17:26:46 +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.
Jim Blandy [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.
Jim Blandy [Tue, 13 Nov 2001 16:42:50 +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.
Timothy Wall [Tue, 13 Nov 2001 14:23:41 +0000 (14:23 +0000)]
remove diff indicators
Timothy Wall [Tue, 13 Nov 2001 14:22:53 +0000 (14:22 +0000)]
Fix tic54x testsuite failures and Lmem disassembly bugs.
DJ Delorie [Tue, 13 Nov 2001 03:54:15 +0000 (03:54 +0000)]
merge from gcc
Alan Modra [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.
Alan Modra [Tue, 13 Nov 2001 03:24:25 +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.
Andrew Cagney [Tue, 13 Nov 2001 03:10:35 +0000 (03:10 +0000)]
Eliminate REGISTER_CONVERTIBLE().
Andrew Cagney [Tue, 13 Nov 2001 02:39:29 +0000 (02:39 +0000)]
Zap REGISTER_CONVERTIBLE from m88k.
Alan Modra [Tue, 13 Nov 2001 01:03:55 +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.
gdbadmin [Tue, 13 Nov 2001 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Hans-Peter Nilsson [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.
Alan Modra [Mon, 12 Nov 2001 23:01:05 +0000 (23:01 +0000)]
daily update
Mark 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.
Thiemo Seufer [Mon, 12 Nov 2001 22:22:20 +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.
Thiemo Seufer [Mon, 12 Nov 2001 22:20:44 +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.
Thiemo Seufer [Mon, 12 Nov 2001 22:19:30 +0000 (22:19 +0000)]
* config/tc-mips.c (md_assemble): Remove superflous casts.
(append_insn): Likewise.
(mips16_macro_build): Likewise.
(macro): Likewise.
(mips16_ip): Likewise.
(s_cpload): Likewise.
(mips_relax_frag): Likewise.
Jim Blandy [Mon, 12 Nov 2001 21:20:18 +0000 (21:20 +0000)]
Patch from Andreas Schwab <schwab@suse.de>:
* eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
instead of xmalloc.
Jim Blandy [Mon, 12 Nov 2001 21:08:04 +0000 (21:08 +0000)]
* corefile.c (write_memory_unsigned_integer,
write_memory_signed_integer): New functions.
(write_memory): Move to be with other write_memory_* functions.
* gdbcore.h (write_memory_unsigned_integer,
write_memory_signed_integer): New declarations.
Jeff Johnston [Mon, 12 Nov 2001 21:07:42 +0000 (21:07 +0000)]
2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
* COPYING.NEWLIB: Add BSD-style license/copyright blurb for my work.
Geoffrey Keating [Mon, 12 Nov 2001 20:36:55 +0000 (20:36 +0000)]
* dwarf2read.c (dwarf_decode_lines): Properly deal with
unknown standard opcodes.
Daniel Jacobowitz [Mon, 12 Nov 2001 19:44:28 +0000 (19:44 +0000)]
* lib/mi-support.exp (mi_run_to_helper): Move comments
outside of gdb_expect.
Thiemo Seufer [Mon, 12 Nov 2001 16:54:54 +0000 (16:54 +0000)]
* config/tc-mips.c (mips_abi_level): Move in front of
mips_set_options.
(mips_set_options): Add members gp32, fp32, abi.
(file_mips_gp32): New flag.
(file_mips_fp32): New flag.
(mips_opts): Initialize the new members.
(mips_gp32): Remove.
(mips_fp32): Remove.
(HAVE_32BIT_GPRS): Use the new values from mips_opts.
(HAVE_32BIT_FPRS): Likewise.
(HAVE_NEWABI): Likewise.
(HAVE_64BIT_OBJECTS): Likewise.
(md_begin): Likewise. Save default (file) values.
(md_parse_option): Use the new values from mips_opts.
(s_mipsset): Likewise. Fix logic to keep the ABI selection if
possible. Let .set mipsN work together with .set push/pop.
Enhance error messages.
(mips_elf_final_processing): Use file_mips_* for header processing.
Nick Clifton [Mon, 12 Nov 2001 16:36:06 +0000 (16:36 +0000)]
Fix definitions of wddata[bwl].
Nick Clifton [Mon, 12 Nov 2001 16:26:17 +0000 (16:26 +0000)]
Only compare the tail end of the two binary files produced in order to avoid
date stamp present in PE binaries.
Nick Clifton [Mon, 12 Nov 2001 16:17:39 +0000 (16:17 +0000)]
Use mkstemp in place of mktemp.
Nick Clifton [Mon, 12 Nov 2001 14:39:11 +0000 (14:39 +0000)]
New symbol: DATA_START_SYMBOLS
Alan Modra [Mon, 12 Nov 2001 00:20:16 +0000 (00:20 +0000)]
* Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
* Makefile.in: Regenerate.
gdbadmin [Mon, 12 Nov 2001 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Sun, 11 Nov 2001 23:51:36 +0000 (23:51 +0000)]
2001-11-11 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
_bfd_elf_strtab_size instead of _bfd_stringtab_size.
* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
dynstr type to `struct elf_strtab_hash *'.
Alan Modra [Sun, 11 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update
Hans-Peter Nilsson [Sun, 11 Nov 2001 22:18:01 +0000 (22:18 +0000)]
* elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
size_t. Rename second i to j.
Daniel Jacobowitz [Sun, 11 Nov 2001 20:11:03 +0000 (20:11 +0000)]
* lib/mi-support.exp: (mi_run_to_helper, mi_run_to,
mi_step_to, mi_next_to, mi_continue_to, mi_finish_to,
mi0_step_to, mi0_next_to, mi0_continue_to, mi0_finish_to,
mi0_run_to): New functions.
* gdb.mi/mi-simplerun.exp: Use them.
* gdb.mi/mi0-simplerun.exp: Likewise.
* gdb.mi/mi-var-cmd.exp: Likewise.
* gdb.mi/mi0-var-cmd.exp: Likewise.
Corinna Vinschen [Sun, 11 Nov 2001 19:58:19 +0000 (19:58 +0000)]
Change target name from stormy16 to xstormy16.
Andrew Cagney [Sun, 11 Nov 2001 18:34:46 +0000 (18:34 +0000)]
* README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
(sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
(i586-sco-sysv5uw7.1.1): Mention problem with threads.
Andrew Cagney [Sun, 11 Nov 2001 16:39:59 +0000 (16:39 +0000)]
From Mark Kettenis <kettenis@gnu.org>:
* breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
breakpoints when they fail.
Timothy Wall [Sun, 11 Nov 2001 15:45:34 +0000 (15:45 +0000)]
Clarify length reference in comment
Hans-Peter Nilsson [Sun, 11 Nov 2001 11:47:37 +0000 (11:47 +0000)]
* ld-mmix/sec-5.d (Sections): Add whitespace missing in commit.
Hans-Peter Nilsson [Sun, 11 Nov 2001 11:29:22 +0000 (11:29 +0000)]
* gas/mmix/bspec-2.d, gas/mmix/bspec-1.d, gas/mmix/comment-1.d:
Prune and generalize, adjusting to generic ELF file layout changes.
gdbadmin [Sun, 11 Nov 2001 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 10 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update
Andrew Cagney [Sat, 10 Nov 2001 21:34:56 +0000 (21:34 +0000)]
s/value_ptr/struct value */
Andrew Cagney [Sat, 10 Nov 2001 20:44:38 +0000 (20:44 +0000)]
s/value_ptr/struct value */
Andrew Cagney [Sat, 10 Nov 2001 20:15:13 +0000 (20:15 +0000)]
s/value_ptr/struct value */
Andrew Cagney [Sat, 10 Nov 2001 17:55:48 +0000 (17:55 +0000)]
* gdb.asm/asmsrc1.s: Add ``gdbasm_'' prefix to all macros.
* gdb.asm/asmsrc2.s, gdb.asm/d10v.inc: Update.
Jeff Law [Sat, 10 Nov 2001 15:53:31 +0000 (15:53 +0000)]
* binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
Denis Chertykov [Sat, 10 Nov 2001 09:40:53 +0000 (09:40 +0000)]
* avr.h: Update for new devices.
Denis Chertykov [Sat, 10 Nov 2001 09:35:53 +0000 (09:35 +0000)]
* config/tc-avr.c (mcu_types): Update for new devices.
Andrew Cagney [Sat, 10 Nov 2001 02:28:37 +0000 (02:28 +0000)]
* gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
Andrew Cagney [Sat, 10 Nov 2001 01:44:43 +0000 (01:44 +0000)]
* gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
H.J. Lu [Sat, 10 Nov 2001 01:17:58 +0000 (01:17 +0000)]
2001-11-09 H.J. Lu <hjl@gnu.org>
* ld-discard/discard.exp: New. Test ld discard.
* ld-discard/discard.ld: Likewise.
* ld-discard/exit.s: Likewise.
* ld-discard/extern.d: Likewise.
* ld-discard/extern.s: Likewise.
* ld-discard/start.d: Likewise.
* ld-discard/start.s: Likewise.
* ld-discard/static.d: Likewise.
* ld-discard/static.s: Likewise.
Jeff Law [Sat, 10 Nov 2001 01:04:39 +0000 (01:04 +0000)]
* unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
(unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise.
(unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise.
(unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise.
(unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise.
(unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise.
(unw_decode_b2, unw_decode_b3_b4): Likewise.
Jeff Law [Sat, 10 Nov 2001 00:55:48 +0000 (00:55 +0000)]
* readelf.c (get_elf_class): Fix ISO portability glitch.
(get_data_encoding, get_osabi_name, request_dump): Likewise.
Alan Modra [Sat, 10 Nov 2001 00:23:35 +0000 (00:23 +0000)]
* elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
relocs into shared libs.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elf.c (bfd_section_from_r_symndx): New function.
* elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
(struct sym_sec_cache): New.
(bfd_section_from_r_symndx): Declare.
(struct bfd_elf_section_data): Change local_dynrel type to PTR.
* elflink.h (elf_link_input_bfd): Don't test for removed linkonce
relocs when relocatable. Don't zero entire reloc, just zero the
addend and sym.
* elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
(elf_i386_link_hash_table_create): Init it.
(elf_i386_check_relocs): Track dynamic relocs needed for local
syms on a per-section basis as we do for globals.
(elf_i386_gc_sweep_hook): Update for local_dynrel change.
Remove dead code.
(allocate_dynrelocs): Warning fix.
(elf_i386_size_dynamic_sections): Don't allocate relocs when
section has been discarded.
(elf_i386_relocate_section): Don't copy STN_UNDEF relocs
into shared libs.
* elf32-hppa.c: Likewise.
* elf32-s390.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
gdbadmin [Sat, 10 Nov 2001 00:00:37 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 9 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update
Stephane Carrez [Fri, 9 Nov 2001 20:30:40 +0000 (20:30 +0000)]
* ld.texinfo: Use @command for commands, @option for options.
* Makefile.am (POD2MAN): Use 'GNU Development Tools' for
the page man title.
* Makefile.in: Rebuild.
Stephane Carrez [Fri, 9 Nov 2001 20:24:02 +0000 (20:24 +0000)]
* doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
the page man title.
* doc/Makefile.in: Rebuild.
* doc/as.texinfo: Do not put man SEEALSO in document;
Use @command for commands, @option for options; Reorganize usage
to clearly identify target specific options.
Michael Snyder [Fri, 9 Nov 2001 19:14:54 +0000 (19:14 +0000)]
2001-11-08 Michael Snyder <msnyder@redhat.com>
* gdb.base/callfuncs.exp: Add tests for nested call dummies.
Add pass/fail message for stop at breakpoint in call dummy function.
Jim Blandy [Fri, 9 Nov 2001 19:14:00 +0000 (19:14 +0000)]
* s390-tdep.c: Don't use a call dummy.
(s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
(s390_push_return_address): Put the address of the inferior call
breakpoint in r14.
(s390_gdbarch_init):
- Provide trivial definition of s390_call_dummy_words; register it
with the gdbarch appropriately.
- Delete S390x_call_dummy_words.
- Gather inferior-call-related settings into a group.
- Use generic dummy frames.
- Put the inferior call breakpoint at the entry point.
- Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
generic_push_dummy_frame, generic_fix_call_dummy.
- There is a call dummy breakpoint offset; it's zero.
Jim Blandy [Fri, 9 Nov 2001 19:01:13 +0000 (19:01 +0000)]
Typo: s390-nat.c -> s390-tdep.c.
Jim Blandy [Fri, 9 Nov 2001 18:58:14 +0000 (18:58 +0000)]
* s390-nat.c: (s390_push_arguments): Write a back chain pointer
into the dummy frame, to help us get backtraces.
Richard Sandiford [Fri, 9 Nov 2001 18:05:30 +0000 (18:05 +0000)]
* cgen-asm.c (cgen_parse_keyword): If the keyword is too big to
fit in the buffer, try to match the empty keyword.
Jim Blandy [Fri, 9 Nov 2001 16:41:50 +0000 (16:41 +0000)]
* values.c (value_as_address): If VAL is a function or method,
just return its address; don't let COERCE_ARRAY convert its
address to a pointer, and then have unpack_long convert it back to
an address.
Nick Clifton [Fri, 9 Nov 2001 10:21:22 +0000 (10:21 +0000)]
Fix badly placed #if 0...
Pierre Muller [Fri, 9 Nov 2001 09:48:09 +0000 (09:48 +0000)]
2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
* p-lang.c (is_pascal_string_type): New function to determine if a
type is a string type.
* p-lang.h: Add prototype for is_pascal_string_type.
* p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
to display strings nicely.
Pierre Muller [Fri, 9 Nov 2001 09:46:40 +0000 (09:46 +0000)]
2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y (yylex): Only change case of expression if symbol is found.
Also check for GPC standard name form.
Andrew Cagney [Fri, 9 Nov 2001 04:00:00 +0000 (04:00 +0000)]
A simple script to indent GDB source code.
DJ Delorie [Fri, 9 Nov 2001 02:21:21 +0000 (02:21 +0000)]
* configure.in (--enable-languages): Be more permissive about
syntax. Check for empty lists better. Warn about $LANGUAGES.
gdbadmin [Fri, 9 Nov 2001 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***
Jim Blandy [Thu, 8 Nov 2001 23:28:36 +0000 (23:28 +0000)]
* s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
got_load_len, to placate compiler.
Alan Modra [Thu, 8 Nov 2001 23:00:04 +0000 (23:00 +0000)]
daily update
Mark Kettenis [Thu, 8 Nov 2001 20:26:42 +0000 (20:26 +0000)]
* i386-tdep.c (i386_gdbarch_init): Fix typo.
Thiemo Seufer [Thu, 8 Nov 2001 19:32:24 +0000 (19:32 +0000)]
* config/tc-mips.c (mips_force_relocation): Remove duplicate code.
Michael Snyder [Thu, 8 Nov 2001 19:21:54 +0000 (19:21 +0000)]
2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp: Replace "const &" with "const ?&",
making the whitespace optional. Also replace "(void) with
"((void|)), making the keyword "void" optional.
Jim Blandy [Thu, 8 Nov 2001 19:16:10 +0000 (19:16 +0000)]
* s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
file_frame_chain_valid.
Michael Snyder [Thu, 8 Nov 2001 19:12:30 +0000 (19:12 +0000)]
2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/virtfunc.exp: Replace "const &" with "const ?&",
making the whitespace optional. Also replace "(void) with
"((void|)), making the keyword "void" optional.
Michael Snyder [Thu, 8 Nov 2001 19:08:34 +0000 (19:08 +0000)]
2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.base/callfuncs.c (t_float_values): This function must
_not_ be prototyped, and the following function (t_float_values2)
must be prototyped (if the compiler supports it), so that GDB
can be tested against both cases. Usually one case involves
promotion of float to double, while the other does not.
* gdb.base/callfwmall.c: Ditto.
Michael Snyder [Thu, 8 Nov 2001 19:06:18 +0000 (19:06 +0000)]
2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.asm/asm-source.exp (bt ALL in foo2): Accept a backtrace that
includes a stack frame for "start".
Jim Blandy [Thu, 8 Nov 2001 19:06:04 +0000 (19:06 +0000)]
* s390-tdep.c (s390_get_frame_info): If the prologue loads r12
from the constant pool, but doesn't add in the constant pool's
address to it, then this function probably isn't using r12 as a
GOT pointer, and that load probably wasn't part of the prologue.
Jim Blandy [Thu, 8 Nov 2001 19:03:54 +0000 (19:03 +0000)]
* s390-tdep.c (s390_gdbarch_init): Use the default
prepare_to_proceed function established by config/nm-linux.h;
don't try to set it to linuxthreads_prepare_to_proceed.
Martin Schwidefsky [Thu, 8 Nov 2001 18:45:46 +0000 (18:45 +0000)]
* elf32-s390: Major rework that introduces all recent changes to
the s390 backends. Get a closer match to elf32-i386.
(elf_s390_relocate_section): Make use of dynamic section short-cuts.
Localise vars, and delay setting. Better error reporting, replace
BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
symbol is not defined in the regular object file and tread the weak
definition as the normal one. Don't discard relocs for undefweak or
undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
test for avoided copy relocs. Reinstate fudge for unresolved relocs
in debugging sections.
(elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
reloc processing for weakdefs. Remove redundant casts and aborts.
Delay setting of vars until needed. Move creation of dynamic symbols
and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
BFD_ASSERT with abort. Discard .plt entries for everything with
plt.refcount <= 0.
(elf_s390_check_relocs): Don't allocate space for dynamic relocs,
.got or .relgot here but do it in allocate_dynrelocs. Reference count
possible .plt and .got entries. Don't test input section SEC_READONLY
here to try to avoid copy relocs, and keep dyn_relocs regardless of
ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
variables until needed. Remove separate switch stmt for creating .got
section. Initialise local_got_refcounts to 0. Cache pointer to
"sreloc" section in elf_section_data. Tweak condition under which .got
created. Report files with bad relocation section names.
(elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
have been forced local. Use same test to decide if we can use a
relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
comment. Move expressions out of function calls. Replace BFD_ASSERT
with abort.
(elf_s390_finish_dynamic_sections): Migrate common code out of switch
statement. Replace BFD_ASSERT with abort.
(elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
instead of looking up section names for DT_TEXTREL. Replace
BFD_ASSERT with abort. Zero out the dynamic allocated content space.
Add a comment to remind us that one day this ought to be fixed.
(struct elf_s390_link_hash_entry): Rename "root" to "elf".
(struct elf_s390_link_hash_table): Likewise.
(elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
rid of unnecessary casts.
(struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
Remove "section" field.
(elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
Reference count possible .plt entries. Don't deallocate .got and
.relgot space here.
(struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
Update comment.
(struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
dyn_relocs.
(elf_s390_discard_copies): Delete.
(elf_s390_link_hash_traverse): Delete.
(bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
rather than gc variety).
(struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
srelplt, sdynbss, srelbss fields.
(elf_s390_link_hash_table_create): Init them.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(allocate_dynrelocs): New function.
(create_got_section): New function.
(elf_backend_can_refcount): Define.
(elf_backend_copy_indirect_symbol): Define.
(elf_s390_copy_indirect_symbol): New function.
(elf_s390_create_dynamic_sections): New function.
(readonly_dynrelocs): New function.
* elf64-s390x: Likewise.