Alan Modra
b89fe0ee4b
* elf.c (map_sections_to_segments): Correct test for start of
...
writable section in the same page as end of read-only section.
2002-09-28 03:25:56 +00:00
Geoffrey Keating
c02920230d
* configure.in (powerpc-*-darwin*): Don't configure BFD, TK, or the
...
things that depend on them.
2002-09-28 01:44:34 +00:00
Kevin Buettner
6fde09ad29
* gdb.base/annota1.exp (info break): Make directory components of
...
path optional since not all compilers emit this debug information.
* gdb.base/shlib-call.exp (step inside shr2): Don't fail if first
step ends up stepping out of the function instead of stopping on
the epilogue.
2002-09-28 01:12:04 +00:00
Daniel Jacobowitz
8ba4dac030
2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
...
* config/tc-sh.c (sh_force_relocation): Return 0 for
some PC relative relocations when not relaxing.
* testsuite/gas/sh/pcrel2.s: New.
* testsuite/gas/sh/pcrel2.d: New.
* testsuite/gas/sh/basic.exp: Add pcrel2 test.
2002-09-28 00:41:27 +00:00
gdbadmin
613d38b830
*** empty log message ***
2002-09-28 00:00:32 +00:00
Alan Modra
d6f80f8172
daily update
2002-09-28 00:00:05 +00:00
Andrew Cagney
058f270dea
Add support for -m option. Fix PR gdb/433.
2002-09-27 23:57:50 +00:00
Jason Thorpe
8f3f366625
* gas/vax/elf-rel.[ds]: New test.
...
* gas/vax/quad.exp: Move contents to...
* gas/vax/vax.exp: ...here. New file.
2002-09-27 23:36:01 +00:00
Jason Thorpe
b29635ba03
* elf32-vax.c (elf_vax_check_relocs): Remove unused
...
local_got_refcounts usage. Remove allocation of got slot.
(elf_vax_gc_sweep_hook): Remove unused local_got_refcounts usage.
Remove de-allocation of got slot.
(elf_vax_size_dynamic_section): Fix some indentation. Add hash
traversal for elf_vax_instantiate_got_entries. Allow empty .got
sections to be GC'ed.
(elf_vax_instantiate_got_entries): New function.
(elf_vax_relocate_section): Simplify R_VAX_GOT32 handling. Remove
tests that are now handled by elf_vax_instantiate_got_entries.
Assert GOT entry falls within .got section size. Remove redundant
comparisions. Fix comments.
2002-09-27 22:28:17 +00:00
Mark Kettenis
167baebf18
Last ChangeLog entry for defs.h is for both this patch and the previous patch.
2002-09-27 22:08:51 +00:00
Mark Kettenis
975ac915d6
* defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
...
Fix some whitespace problems.
2002-09-27 21:31:22 +00:00
Andrew Cagney
fe1198e63e
2002-09-27 Andrew Cagney <ac131313@redhat.com>
...
* hw_disk.c (hw_disk_init_address): Set device type to "block",
not "disk".
2002-09-27 21:02:14 +00:00
David Carlton
9bbe19fb37
2002-09-27 David Carlton <carlton@math.stanford.edu>
...
* Makefile.in (cris-tdep.o): Depend on gdb_string_h.
(mcore-tdep.o): Ditto.
(ns32k-tdep.o): Ditto.
(ns32knbsd-tdep.o): Ditto.
(sh3-rom.o): Ditto.
(vax-tdep.o): Ditto.
* cris-tdep.c: #include "gdb_string.h"
* mcore-tdep.c: Ditto.
* ns32k-tdep.c: Ditto.
* ns32knbsd-tdep.c: Ditto.
* sh3-rom.c: Ditto.
* vax-tdep.c: Ditto.
2002-09-27 19:33:48 +00:00
Jakub Jelinek
bffbf9406f
bfd/
...
* reloc.c: Add x86-64 TLS relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit
relocs. Add TLS relocs.
(x86_64_reloc_map): Add TLS relocs.
(elf64_x86_64_info_to_howto): Adjust for added TLS relocs.
(struct elf64_x86_64_link_hash_entry): Add tls_type field.
(GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define.
(elf64_x86_64_hash_entry): Define.
(struct elf64_x86_64_obj_tdata): New.
(elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define.
(struct elf64_x86_64_link_hash_table): Add tls_ld_got.
(link_hash_newfunc): Initialize tls_type.
(elf64_x86_64_link_hash_table_create): Initialize tls_ld_got.
(elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary.
(elf64_x86_64_mkobject): New.
(elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata.
(elf64_x86_64_tls_transition): New.
(elf64_x86_64_check_relocs): Add r_type variable and use it.
Handle TLS relocs.
(elf64_x86_64_gc_sweep_hook): Handle TLS relocs.
(allocate_dynrelocs): Allocate GOT space for TLS relocs.
(elf64_x86_64_size_dynamic_sections): Likewise.
(dtpoff_base, tpoff): New.
(elf64_x86_64_relocate_section): Handle TLS relocs.
(elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT
entries.
(bfd_elf64_mkobject): Define.
* elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set
DF_STATIC_TLS if shared.
gas/
* config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
Define them if not BFD_ASSEMBLER.
(lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
@tlsld.
(md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
(tc_gen_reloc): Handle x86-64 TLS relocs.
include/
* elf/x86-64.h: Add TLS relocs.
ld/testsuite/
* lib/ld-lib.exp (run_ld_link_tests): Add.
* ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff,
file_contents): Remove.
(sh64tests): Add 6th field to the tests array.
* ld-i386/i386.exp (run_ld_link_tests): Remove.
* ld-x86-64/x86-64.exp: New.
* ld-x86-64/tlsbin.dd: New test.
* ld-x86-64/tlsbinpic.s: New test.
* ld-x86-64/tlsbin.rd: New test.
* ld-x86-64/tlsbin.s: New test.
* ld-x86-64/tlsbin.sd: New test.
* ld-x86-64/tlsbin.td: New test.
* ld-x86-64/tlslib.s: New test.
* ld-x86-64/tlspic1.s: New test.
* ld-x86-64/tlspic2.s: New test.
* ld-x86-64/tlspic.dd: New test.
* ld-x86-64/tlspic.rd: New test.
* ld-x86-64/tlspic.sd: New test.
* ld-x86-64/tlspic.td: New test.
2002-09-27 19:29:18 +00:00
David Carlton
43b2fdc74c
2002-09-27 David Carlton <carlton@math.stanford.edu>
...
* config/djgpp/fnchange.lst: Add entries for
gdb/testsuite/gdb.c++/m-static files.
2002-09-27 19:20:53 +00:00
Jim Wilson
2e8162cedb
Fix bug in support for trap instruction.
...
* simops (OP_10007E0): Don't subtract 4 from PC.
2002-09-27 18:59:08 +00:00
Jim Wilson
e8cfbbd913
* MAINTAINERS: Add myself to the Write After Approval list.
2002-09-27 18:58:04 +00:00
Jim Wilson
57514745d6
Add myself to write-after-approval section with Andrew Cagney's permission.
2002-09-27 18:55:44 +00:00
Andrew Cagney
7501537f4e
2002-07-12 Mo DeJong <supermo@bayarea.net>
...
* gdbmi.texinfo (var-evaluate-expression): Note that
var-list-children must be invoked before child variable
values can be evaluated.
2002-09-27 18:09:27 +00:00
Andrew Cagney
050be0dcbe
Use @sc{gcc} and @sc{gdb}.
2002-09-27 17:56:37 +00:00
H.J. Lu
502eccd936
2002-09-27 H.J. Lu <hjl@gnu.org>
...
* gas/mips/mips-jalx.s: Add ".p2align 4".
* gas/mips/mips16-jalx.s: Likewise.
* gas/mips/mips-jalx.d: Check nop.
* gas/mips/mips16-jalx.d: Likewise.
2002-09-27 14:53:16 +00:00
Keith Seitz
9e8aab7587
* lib/insight-support.exp (gdbtk_start): Figure out where
...
the insight executable is based on where gdb is. Use this
executable to start insight instead of gdb.
2002-09-27 14:49:26 +00:00
Alan Modra
8773354138
* config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
...
fixups to current or absolute section.
2002-09-27 04:38:47 +00:00
Martin Hunt
4e0df2df38
2002-09-26Martin M. Hunt <hunt@redhat.com>
...
* mips-tdep.c (find_proc_desc): Initialize startaddr.
2002-09-27 00:49:01 +00:00
Alan Modra
1b29edd56e
daily update
2002-09-27 00:00:03 +00:00
gdbadmin
54726db0b4
*** empty log message ***
2002-09-27 00:00:02 +00:00
Andrew Cagney
9f3b7f0716
2002-09-26 Andrew Cagney <ac131313@redhat.com>
...
* rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
frame.
2002-09-26 22:34:07 +00:00
Andrew Cagney
11269d7ebb
2002-09-26 Andrew Cagney <ac131313@redhat.com>
...
* rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
(rs6000_struct_return_address): Delete variable.
(rs6000_store_struct_return): Update.
(rs6000_gdbarch_init): Set extract_struct_value_address instead of
deprecated_extract_struct_value_address.
(rs6000_frame_align): New function.
(rs6000_gdbarch_init): Set frame_align.
2002-09-26 22:29:09 +00:00
Jim Wilson
825487fa2d
Fix v850 .offset pseudo-op
...
* config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
and frag_more.
2002-09-26 22:04:19 +00:00
Andrew Cagney
afbcd36fc1
2002-09-26 Andrew Cagney <ac131313@redhat.com>
...
* regs/: Delete directory.
2002-09-26 19:40:29 +00:00
Elena Zannoni
b72b33ef9b
2002-09-26 Elena Zannoni <ezannoni@redhat.com>
...
* mi-cmd-disas.c (dump_insns): Add text only output for CLI.
(do_mixed_source_and_assembly): Ditto.
2002-09-26 18:35:21 +00:00
Andrew Cagney
f15ab4a7d1
2002-09-26 Andrew Cagney <ac131313@redhat.com>
...
From Grace Sainsbury <graces@redhat.com>:
* Makefile.in (gdbtk-main.o): New target.
(gdb.o): New target.
(main_h): Define.
(main.o): Update dependencies.
(gdb$(EXEEXT)): Add gdb.o.
(SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
(SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
(SUBDIR_GDBTK_CLEAN): Set.
(install-gdbtk): Install the insight binary.
(uninstall-gdbtk): New target.
(all-gdbtk, clean-gdbtk): New rule.
* top.c (use_windows): Default to zero.
* main.c: Include "main.h".
(main): Delete.
(struct captured_main_args): Delete.
(gdb_main): New function.
* main.h: New file.
* gdb.c: New File.
2002-09-26 Andrew Cagney <ac131313@redhat.com>
From Grace Sainsbury <graces@redhat.com>:
* generic/gdbtk-main.c: New file.
2002-09-26 17:46:04 +00:00
Thiemo Seufer
3396de367a
/gas/ChangeLog
...
* config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
capable configuration.
(macro_build): Check for MIPS16 capability, not for actual MIPS16 code
generation.
(mips_ip): Likewise.
/gas/testsuite/ChangeLog
* gas/mips/mips-jalx.d: New file, check jalx assembly.
* gas/mips/mips-jalx.s: Likewise.
* gas/mips/mips-no-jalx.l: Likewise.
* gas/mips/mips-no-jalx.s: Likewise.
* gas/mips/mips16-jalx.d: Likewise.
* gas/mips/mips16-jalx.s: Likewise.
* gas/mips/mips.exp: Add new tests.
/opcodes/ChangeLog:
* mips-dis.c (print_insn_mips): Always allow disassembly of
32-bit jalx opcode.
2002-09-26 09:56:35 +00:00
Thiemo Seufer
1436646065
* elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded
...
empty relocation sections.
2002-09-26 09:10:57 +00:00
Thiemo Seufer
f3c0ec86c4
* config/tc-mips.c (append_insn): Fix jump overflow check.
...
* gas/mips/jal-range.s: Fix jump overflow check.
* gas/mips/jal-range.l: Likewise.
2002-09-26 09:00:08 +00:00
Alan Modra
9f951329b6
* elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here.
...
(ppc64_elf_build_stubs): Build them here instead.
2002-09-26 05:19:38 +00:00
Nathanael Nerode
c66d951ee2
2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
...
* Makefile.tpl: Make subsituted variables more autoconfy.
* Makefile.in: Regenerate.
* configure: Make seds more autoconfy.
2002-09-26 04:25:16 +00:00
Alan Modra
c8776d756a
daily update
2002-09-26 00:00:05 +00:00
gdbadmin
291288b78a
*** empty log message ***
2002-09-26 00:00:02 +00:00
Kevin Buettner
1104b9e790
* gdb.texinfo: Use GNU/Linux instead of Linux.
2002-09-25 22:55:30 +00:00
Andrew Cagney
e36180d795
2002-09-25 Andrew Cagney <cagney@redhat.com>
...
* frame.c: Include "gdb_string.h" and "builtin-regs.h".
(frame_map_regnum_to_name): New function.
(frame_map_name_to_regnum): New function.
* frame.h (frame_map_name_to_regnum): Declare.
(frame_map_regnum_to_name): Declare.
* builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
* builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
* parse.c: Do not include "builtin-regs.h".
(target_map_name_to_register): Delete function.
(write_dollar_variable): Use frame_map_name_to_regnum.
* parser-defs.h (target_map_name_to_register): Delete declaration.
* expprint.c: Include "frame.h".
(print_subexp): Use frame_map_regnum_to_name.
* eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
* infcmd.c (registers_info): Use frame_map_name_to_regnum.
2002-09-25 Andrew Cagney <cagney@redhat.com>
* gdb.base/pc-fp.exp, gdb.base/pc-fp.c: New test.
2002-09-25 20:30:38 +00:00
Nathanael Nerode
58daee9877
2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
...
* Makefile.tpl: Rewrite substituted lines to look autoconfy.
* Makefile.in: Regenerate.
* configure.in: Rewrite sed statements to look autoconfy.
2002-09-25 17:25:27 +00:00
Daniel Jacobowitz
ff3268267c
From "Anita Kulkarni" <AnitaK@kpit.com>
...
* scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
sections.
2002-09-25 17:06:09 +00:00
Nathanael Nerode
14a2a2f196
Really rebuild it this time. :sigh:
2002-09-25 16:56:04 +00:00
Nathanael Nerode
907a7241bb
2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
...
* Makefile.tpl: Autogenerate *-target-* lists, dependencies of
all-target-foo on configure-target-foo.
* Makefile.def: Ditto.
* Makefile.in: Rebuild.
2002-09-25 16:53:08 +00:00
Keith Seitz
1154261b1f
* mi-pthreads.exp (get_mi_thread_list): Check if expect_out
...
exists before using it.
(check_mi_and_console_threads): Likewise.
* gdb669.exp (get_mi_thread_list): Likewise.
(check_mi_and_console_threads): Likewise.
2002-09-25 16:08:43 +00:00
Andrew Cagney
512217c7cc
2002-09-25 Andrew Cagney <ac131313@redhat.com>
...
* gdb.texinfo (Packets): Replace @samp{} with ``an empty string''.
2002-09-25 13:56:54 +00:00
Andrew Cagney
8b69000d63
2002-09-25 Andrew Cagney <ac131313@redhat.com>
...
* rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
wasn't saved, and the next innermost frame is a dummy, return the
dummy frame's link register.
2002-09-25 13:34:53 +00:00
Alan Modra
1ddd7b13ed
* genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
...
TARGET_PAGE_SIZE.
* scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
SEGMENT_SIZE alignment.
* emulparams/elf64ppc.sh (DATA_ADDR): Delete.
(SEGMENT_SIZE): Define.
2002-09-25 07:21:08 +00:00
Jim Blandy
046ca86a76
Fix from Paul Breed:
...
* main.c (captured_main): Add a `break' after the case for 'b'.
2002-09-25 03:10:26 +00:00