binutils-gdb.git
22 years ago*** empty log message ***
gdbadmin [Fri, 20 Sep 2002 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago * write.h (struct fix): Add fx_dot_value.
Alan Modra [Thu, 19 Sep 2002 23:51:35 +0000 (23:51 +0000)]
* write.h (struct fix): Add fx_dot_value.
(dot_value): Declare.
* write.c (dot_value): New var.
(fix_new_internal): Save dot_value as fx_dot_value.
* expr.c (expr): Update dot_value.

22 years ago2002-09-19 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 19 Sep 2002 23:09:30 +0000 (23:09 +0000)]
2002-09-19  Andrew Cagney  <ac131313@redhat.com>

* gdb.texinfo (Packets): Revise `z' and `Z' packet documentation.
(Packets): Add cross reference from `b' packet to `z' packets.

22 years agobfd/
Jakub Jelinek [Thu, 19 Sep 2002 19:01:18 +0000 (19:01 +0000)]
bfd/
* reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE,
BFD_RELOC_386_TLS_GOTIE): Add.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE
and R_386_TLS_GOTIE.
(elf_i386_reloc_type_lookup): Handle it.
(struct elf_i386_link_hash_entry): Change tls_type type to unsigned
char instead of enum, change GOT_* into defines.
(GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define.
(elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
(elf_i386_check_relocs): Likewise.  Avoid crash if local symbol is
accessed both as normal and TLS symbol.  Move R_386_TLS_LDM and
R_386_PLT32 cases so that R_386_TLS_IE can fall through.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if
tls_type is GOT_TLS_IE_BOTH.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch
all 4 GOT_TLS_* TLS types.
gas/
* config/tc-i386.c (tc_i386_fix_adjustable): Handle
BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
(BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
if not defined.
(lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
(md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
BFD_RELOC_386_TLS_GOTIE.
gas/testsuite/
* gas/i386/tlspic.s: Add tests.
* gas/i386/tlspic.d: Regenerated.
* gas/i386/tlsnopic.s: Add tests.
* gas/i386/tlsnopic.d: Regenerated.
include/
* elf/i386.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE):
Define.
ld/testsuite/
* ld-i386/i386.exp: New.
* ld-i386/tlsbin.dd: New test.
* ld-i386/tlsbinpic.s: New test.
* ld-i386/tlsbin.rd: New test.
* ld-i386/tlsbin.s: New test.
* ld-i386/tlsbin.sd: New test.
* ld-i386/tlsbin.td: New test.
* ld-i386/tlslib.s: New test.
* ld-i386/tlsnopic1.s: New test.
* ld-i386/tlsnopic2.s: New test.
* ld-i386/tlsnopic.dd: New test.
* ld-i386/tlsnopic.rd: New test.
* ld-i386/tlsnopic.sd: New test.
* ld-i386/tlspic1.s: New test.
* ld-i386/tlspic2.s: New test.
* ld-i386/tlspic.dd: New test.
* ld-i386/tlspic.rd: New test.
* ld-i386/tlspic.sd: New test.
* ld-i386/tlspic.td: New test.

22 years agoUpdate email addresses for bugs and patches.
Nick Clifton [Thu, 19 Sep 2002 18:07:44 +0000 (18:07 +0000)]
Update email addresses for bugs and patches.

22 years agoWhen examining weak symbols, follow indirect links.
Nick Clifton [Thu, 19 Sep 2002 16:34:14 +0000 (16:34 +0000)]
When examining weak symbols, follow indirect links.

22 years ago * config/tc-alpha.c (md_pcrel_from): Only adjust special for
Richard Henderson [Thu, 19 Sep 2002 16:13:38 +0000 (16:13 +0000)]
    * config/tc-alpha.c (md_pcrel_from): Only adjust special for
        branch type relocs.
        (alpha_force_relocation): Don't special-case branch type relocs.

        * gas/alpha/elf-reloc-7.s: New.
        * gas/alpha/elf-reloc-7.d: New.
        * gas/alpha/alpha.exp: Run it.

22 years ago2002-09-19 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 19 Sep 2002 15:51:25 +0000 (15:51 +0000)]
2002-09-19  Andrew Cagney  <ac131313@redhat.com>

* gdb.texinfo (Maintenance Commands): Document ``maint
internal-error'' and ``maint internal-warning''.

22 years agoRemove (errant) trailing semicolon (;) from the extern "C" { } declaration.
Nick Clifton [Thu, 19 Sep 2002 15:48:16 +0000 (15:48 +0000)]
Remove (errant) trailing semicolon (;) from the extern "C" { } declaration.

22 years ago2002-09-19 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 19 Sep 2002 15:43:49 +0000 (15:43 +0000)]
2002-09-19  Andrew Cagney  <ac131313@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Revise
description of STACK_ALIGN.  Add description of FRAME_ALIGN.

22 years agoFix error reading ECOFF information: 'ioptMax' refers to the actual *size*
Nick Clifton [Thu, 19 Sep 2002 15:38:36 +0000 (15:38 +0000)]
Fix error reading ECOFF information: 'ioptMax' refers to the actual *size*
of the optimization symtab, not the number of entries.

22 years agoUpdate to correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)
Nick Clifton [Thu, 19 Sep 2002 15:31:30 +0000 (15:31 +0000)]
Update to correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)

22 years ago2002-09-19 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 19 Sep 2002 15:22:47 +0000 (15:22 +0000)]
2002-09-19  Andrew Cagney  <ac131313@redhat.com>

* gdb.gdb/complaints.exp: New file.

22 years ago(elf32_arm_adjust_dynamic_symbol): Update ELF_LINK_HASH_NEEDS_PLT logic.
Nick Clifton [Thu, 19 Sep 2002 14:59:51 +0000 (14:59 +0000)]
(elf32_arm_adjust_dynamic_symbol): Update ELF_LINK_HASH_NEEDS_PLT logic.

22 years agoHandle situation where architecture has not yet been selected.
Nick Clifton [Thu, 19 Sep 2002 14:52:15 +0000 (14:52 +0000)]
Handle situation where architecture has not yet been selected.

22 years ago * ada-exp.y: Add missing semicolons to end rules. Fixes a
Joel Brobecker [Thu, 19 Sep 2002 13:59:26 +0000 (13:59 +0000)]
   * ada-exp.y: Add missing semicolons to end rules. Fixes a
       bison 1.35 warning.

22 years ago * gdbint.texinfo (Target Conditionals): Document the new
Joel Brobecker [Thu, 19 Sep 2002 13:14:46 +0000 (13:14 +0000)]
    * gdbint.texinfo (Target Conditionals): Document the new
        NAME_OF_MALLOC macro.

22 years agoFix the ChangeLog entry for my last commit.
Jakub Jelinek [Thu, 19 Sep 2002 11:38:22 +0000 (11:38 +0000)]
Fix the ChangeLog entry for my last commit.

22 years agoAdd missing ".
Richard Earnshaw [Thu, 19 Sep 2002 10:21:53 +0000 (10:21 +0000)]
Add missing ".

22 years ago* gdb_mbuild.sh: New file.
Richard Earnshaw [Thu, 19 Sep 2002 10:11:41 +0000 (10:11 +0000)]
* gdb_mbuild.sh: New file.

22 years agoRemove v850ea references
Nick Clifton [Thu, 19 Sep 2002 07:52:02 +0000 (07:52 +0000)]
Remove v850ea references

22 years agoCredit Apple and AdamF for their part in the objective C patches.
Andrew Cagney [Thu, 19 Sep 2002 04:26:26 +0000 (04:26 +0000)]
Credit Apple and AdamF for their part in the objective C patches.

22 years agoFix (C) and credit Michael Snyder with objc-lang.c.
Andrew Cagney [Thu, 19 Sep 2002 04:12:10 +0000 (04:12 +0000)]
Fix (C) and credit Michael Snyder with objc-lang.c.

22 years agoRevert previous change. Not obvious.
Andrew Cagney [Thu, 19 Sep 2002 03:58:41 +0000 (03:58 +0000)]
Revert previous change.  Not obvious.

22 years ago2002-09-18 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 19 Sep 2002 01:34:51 +0000 (01:34 +0000)]
2002-09-18  Michael Snyder  <msnyder@redhat.com>

Preliminary support for Objective-C:
* defs.h (language_objc): New enum value.
(puts_filtered_tabular): Declaration only, exported from utils.c.
(skip_quoted): Delete, declared in completer.h.
* c-exp.y: Include completer.h.
* p-exp.y: Ditto.
* jv-exp.y: Ditto.
* expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
New operator enum values.
* language.h (CAST_IS_CONVERSION): Test for language_objc.
* language.c (binop_result_type): Handle language_objc case.
(integral_type, character_type, string_type, boolean_type,
structured_type, binop_type_check): Ditto.
* symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
(struct objc_specific): Add to general_symbol_info.
(SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
(SYMBOL_DEMANGLED_NAME): Handle objc case.
* parser-defs.h (struct objc_class_str): New struct type.
(start_msglist, end_msglist, add_msglist): Declaration only,
exported from objc-lang.c.
* value.h (value_of_local, value_nsstring,
call_function_by_hand_expecting_type): Exported from valops.c.
* valops.c (find_function_addr): Export.
(call_function_by_hand_expecting_type): New function.
(value_of_local): New function.
* symfile.c (init_filename_language_table): Add ".m" extension
for Objective-C.
* utils.c (puts_filtered_tabular): New function.
(fprintf_symbol_filtered): Add objc demangling support (disabled).
(set/show demangle): Extend help-string to refer to ObjC.
* elfread.c (elf_symtab_read): Skip Objective-C special symbols.
* stabsread.c (symbol_reference_defined): Objective-C symbols
may contain colons: make allowances when scanning stabs strings
for colons.
(objc_find_colon): New function.
* printcmd.c (address_info): If language == objc then print
"self" instead of "this".
* parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
OP_NSSTRING, and OP_SELF.
(prefixify_subexp): Ditto.
* source.c (print_source_lines): Mention objc in comment.
* breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
method names.

22 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 19 Sep 2002 00:42:41 +0000 (00:42 +0000)]
2002-09-18  Andrew Cagney  <ac131313@redhat.com>

* complaints.h: Update copyright.
(struct complaints): Declare.
(struct complaint): Make `message' constant.
(internal_complaint): Declare.
(complaint): Declare.
(complaint_root): Delete declaration.
(symfile_complaints): Delete declaration.
(struct complaints): Add opaque declaration.
(clear_complaints): Add a complaints parameter.
* complaints.c: Update copyright.
(enum complaint_series): Define.
(complaint_root): Delete.
(struct complaints): Define.
(complaint_sentinel, symfile_complaint_book): New variables.
(symfile_explanations, symfile_complaints): New variables.
New variables.
(get_complaints): New function.
(vcomplaint): New function.
(complaint): New function.
(internal_complaint): New function.
(complain): Call vcomplain with symfile_complaint.
(clear_complaints): Rewrite.
(_initialize_complaints): Use add_setshow_command.
* Makefile.in (complaints.o): Update dependencies.
* symfile.c (syms_from_objfile): Add symfile_complaints parameter
to call to clear_complaints.
(new_symfile_objfile, reread_symbols): Ditto.
(oldsyms_complaint): Delete.
(empty_symtab_complaint, unknown_option_complaint): Delete.
(free_named_symtabs): Use complaint instead of complain.

22 years ago2002-09-18 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 19 Sep 2002 00:39:38 +0000 (00:39 +0000)]
2002-09-18  Michael Snyder  <msnyder@redhat.com>

* objc-lang.c: First clean-up round: comments, indentation.
* objc-lang.h: Ditto.
* objc-lang.y: Ditto.

22 years ago*** empty log message ***
gdbadmin [Thu, 19 Sep 2002 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Thu, 19 Sep 2002 00:00:03 +0000 (00:00 +0000)]
daily update

22 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 18 Sep 2002 23:53:52 +0000 (23:53 +0000)]
2002-09-18  Andrew Cagney  <ac131313@redhat.com>

* maint.c (maintenance_internal_error): Print the parameter as the
error message.
(maintenance_internal_warning): New function.
(_initialize_maint_cmds): Add command `maint internal-warning'.

* defs.h (internal_warning, internal_vwarning): Declare.
* utils.c (struct internal_problem): Define.
(internal_vproblem): New function.
(internal_warning): New function.
(internal_vwarning): New function.
(internal_warning_problem, internal_error_problem): New variables.
(internal_verror): Just call internal_vproblem.

Index: testsuite/ChangeLog
2002-09-18  Andrew Cagney  <ac131313@redhat.com>

* gdb.base/maint.exp: Check `help maint internal-warning'.

22 years ago2002-09-18 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Wed, 18 Sep 2002 23:29:20 +0000 (23:29 +0000)]
2002-09-18  Michael Snyder  <msnyder@redhat.com>

* objc-lang.c: New file, support for Objective-C.
Preliminary check-in, not yet integrated into gdb.
        * objc-lang.h: New file.
        * objc-exp.y:  New file.

22 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 18 Sep 2002 22:44:31 +0000 (22:44 +0000)]
2002-09-18  Andrew Cagney  <ac131313@redhat.com>

* infrun.c (signal_stop_update): Convert definition to ISO C.
(signal_print_update): Ditto.
(signal_pass_update): Ditto.
* inflow.c (terminal_save_ours): Ditto.

22 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 18 Sep 2002 22:17:41 +0000 (22:17 +0000)]
2002-09-18  Andrew Cagney  <ac131313@redhat.com>

* h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
comments.

22 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 18 Sep 2002 22:09:21 +0000 (22:09 +0000)]
2002-09-18  Andrew Cagney  <ac131313@redhat.com>

* config/djgpp/fnchange.lst: Handle name clashes between
bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
bfd/coff-tic80.c.

22 years agoFix GNU/Linux tipo.
Andrew Cagney [Wed, 18 Sep 2002 22:00:22 +0000 (22:00 +0000)]
Fix GNU/Linux tipo.

22 years agoAdd myself to the Write After Approval list.
Adam Fedor [Wed, 18 Sep 2002 21:52:55 +0000 (21:52 +0000)]
Add myself to the Write After Approval list.

22 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 18 Sep 2002 21:45:29 +0000 (21:45 +0000)]
[ gas/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.

[ gas/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/baddata1.s: New file.
        * gas/mips/baddata1.l: New file.
        * gas/mips/mips.exp: Run new test.

22 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 18 Sep 2002 21:33:07 +0000 (21:33 +0000)]
[ gas/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
        (IS_SEXT_16BIT_NUM): New macro.
        (macro_build_ldst_constoffset): New function, to build a set of
        instructions to do a load or store from a constant offset relative
        to a given register.
        (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
        .cprestore pseudo-op.

[ gas/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/mips-abi32-pic2.s: New file.
        * gas/mips/mips-abi32-pic2.d: New file.
        * gas/mips/mips.exp: Run new test.

[ plus, fixed date on prev. gas/testsuite/ChangeLog entry. ]

22 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 18 Sep 2002 21:05:59 +0000 (21:05 +0000)]
[ gas/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.

[ gas/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/baddata1.s: New file.
        * gas/mips/baddata1.l: New file.
        * gas/mips/mips.exp: Run new test.

22 years ago[ gas/testsuite/ChangeLog ]
Chris Demetriou [Wed, 18 Sep 2002 20:50:47 +0000 (20:50 +0000)]
[ gas/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/branch-misc-1.d: New file.
        * gas/mips/branch-misc-1.s: New file.
        * gas/mips/branch-misc-2.s: New file.
        * gas/mips/branch-misc-2.d: New file.
        * gas/mips/mips.exp: Run new tests.

[ ld/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * ld-mips-elf/branch-misc-1.d: New file.
        * ld-mips-elf/branch-misc-2.d: New file.
        * ld-mips-elf/mips-elf.exp: Run new tests.

22 years ago* dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
Jim Blandy [Wed, 18 Sep 2002 20:47:39 +0000 (20:47 +0000)]
* dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
texthigh and textlow to reader-specific structs caused
objfile_relocate to miss them.  This is fixable, but the work that
the change was supposed to prepare GDB for never got done anyway.

22 years ago2002-09-18 David Carlton <carlton@math.stanford.edu>
David Carlton [Wed, 18 Sep 2002 18:48:43 +0000 (18:48 +0000)]
2002-09-18  David Carlton  <carlton@math.stanford.edu>

* gdb.c++/m-static.exp: Remove breakpoints depending on line
numbers, and replace them by a single breakpoint after the
constructors are all finished.
Add test 4.
* gdb.c++/m-static.cc: Add test 4.
* gdb.c++/m-static.h: New file.
* gdb.c++/m-static1.cc: New file.

* gdb.c++/printmethod.exp: New file.
* gdb.c++/printmethod.cc: New file.

* gdb.c++/pr-574.exp: New file.
* gdb.c++/pr-574.cc: New file.

22 years ago2002-09-18 David Carlton <carlton@math.stanford.edu>
David Carlton [Wed, 18 Sep 2002 17:56:59 +0000 (17:56 +0000)]
2002-09-18  David Carlton  <carlton@math.stanford.edu>

* MAINTAINERS: Alphabetize Write After Approval list.

22 years ago* elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
Stan Cox [Wed, 18 Sep 2002 17:28:37 +0000 (17:28 +0000)]
* elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.

22 years ago * gdb.base/ending-run.exp: Add handling of "step to end of run" for
Corinna Vinschen [Wed, 18 Sep 2002 17:20:54 +0000 (17:20 +0000)]
* gdb.base/ending-run.exp: Add handling of "step to end of run" for
embedded targets which never actually exit.

22 years ago * gdb.base/ending-run.exp: Properly mark "continue after exit" and
Fernando Nasser [Wed, 18 Sep 2002 17:11:53 +0000 (17:11 +0000)]
* gdb.base/ending-run.exp: Properly mark "continue after exit" and
"don't step after run" as unresolved or unsupported, instead of xfail.

22 years ago * gdb.base/ending-run.exp: Fix expected string for _wrap_main to
Corinna Vinschen [Wed, 18 Sep 2002 16:04:53 +0000 (16:04 +0000)]
* gdb.base/ending-run.exp: Fix expected string for _wrap_main to
allow correct handling of #ifdef UNDERSCORES from dejagnu/testglue.c.
Add newline to expected string in "step out of main (status wrapper)"
case.

22 years ago Fix PR gdb/709
Daniel Jacobowitz [Wed, 18 Sep 2002 15:43:47 +0000 (15:43 +0000)]
    Fix PR gdb/709
        * values.c (value_static_field): Call read_var_value.

22 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 18 Sep 2002 15:37:18 +0000 (15:37 +0000)]
2002-09-18  Andrew Cagney  <ac131313@redhat.com>

* valops.c (hand_function_call): Align the initial stack pointer
and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
return value.
* mips-tdep.c (mips_frame_align): New function.
(mips_gdbarch_init): Set frame_align.
* gdbarch.sh (FRAME_ALIGN): New method.
* gdbarch.h, gdbarch.c: Re-generate.

22 years ago * lib/gdb.exp (rerun_to_main): Allow restarting application.
Corinna Vinschen [Wed, 18 Sep 2002 15:34:10 +0000 (15:34 +0000)]
* lib/gdb.exp (rerun_to_main): Allow restarting application.
* gdb.base/ena-dis-br.exp (rerun_to_main): Eliminate.

22 years ago * elfcode.h (elf_slurp_reloc_table_from_section): Check
Daniel Jacobowitz [Wed, 18 Sep 2002 13:25:35 +0000 (13:25 +0000)]
    * elfcode.h (elf_slurp_reloc_table_from_section): Check
        correct relocation count.

22 years ago2002-09-18 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Wed, 18 Sep 2002 11:24:02 +0000 (11:24 +0000)]
2002-09-18  Michal Ludvig  <mludvig@suse.cz>

* x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
registers.

22 years ago * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
Thiemo Seufer [Wed, 18 Sep 2002 08:02:22 +0000 (08:02 +0000)]
* config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.

22 years ago * bfd-in.h (bfd_get_dynamic_symcount): Define.
Daniel Jacobowitz [Wed, 18 Sep 2002 02:39:43 +0000 (02:39 +0000)]
    * bfd-in.h (bfd_get_dynamic_symcount): Define.
        * bfd.c (struct _bfd): Add dynsymcount.
        * bfd-in2.h: Regenerated.
        * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Set
        abfd->dynsymcount.
        * elfcode.h (elf_slurp_reloc_table_from_section): Check
        for overflow.

22 years ago * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
Stan Cox [Wed, 18 Sep 2002 02:25:19 +0000 (02:25 +0000)]
* tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
(macro): Likewise for la.  Likewise for ld.
(mips_after_parse_args): Make -xgot optional, not the default.
(md_apply_fix3): Allow composite relocation to set up gp.
(tc_gen_reloc): Allow relaxing for newabi.
Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.

22 years ago * emulparams/elf32bmipn32-defs.sh: New file.
Stan Cox [Wed, 18 Sep 2002 01:54:37 +0000 (01:54 +0000)]
* emulparams/elf32bmipn32-defs.sh: New file.
* emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
* emulparams/elf32btsmipn32.sh: Likewise.
* emulparams/elf64bmip.sh: Likewise.
* emulparams/elf64btsmip.sh: Likewise.

22 years ago * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
Stan Cox [Wed, 18 Sep 2002 01:38:20 +0000 (01:38 +0000)]
* elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
(mips_elf64_final_gp): Don't make up gp value.
* elfn32-mips.c (mips_elf_final_gp): Likewise.
* elfxx-mips.c (_bfd_mips_elf_final_link): Always create
.MIPS.options/.options section.

22 years ago*** empty log message ***
gdbadmin [Wed, 18 Sep 2002 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Wed, 18 Sep 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago2002-09-17 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Tue, 17 Sep 2002 23:26:02 +0000 (23:26 +0000)]
2002-09-17  Andrew Cagney  <ac131313@redhat.com>

* NEWS: Mention that MIPS $fp behavior changed.
* mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
  reference to FP_REGNUM.
(mipsnbsd_cannot_store_register): Ditto.
* mips-linux-nat.c: Update copyright.
  (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
(mips_linux_cannot_store_register): Ditto.
* mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
* config/mips/tm-mips.h: Update copyright.
  (FP_REGNUM): Delete macro.
(MIPS_REGISTER_NAMES): Replace "fp" with "".
* config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
* mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
(mips_r3041_reg_names, mips_r3051_reg_names)
  (mips_r3081_reg_names): Replace "fp" with "".
Fix PR gdb/480.

22 years ago* gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
Theodore A. Roth [Tue, 17 Sep 2002 23:08:45 +0000 (23:08 +0000)]
* gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
generic_read_register_dummy() (PR gdb/703).
(avr_push_return_address): #if 0 out unused vars.
(avr_gdbarch_init): Enable use of avr_push_return_address().

22 years agoFix thinko: m32r, not mips!
Michael Snyder [Tue, 17 Sep 2002 23:00:31 +0000 (23:00 +0000)]
Fix thinko: m32r, not mips!

22 years ago2002-09-17 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 17 Sep 2002 22:58:01 +0000 (22:58 +0000)]
2002-09-17  Michael Snyder  <msnyder@redhat.com>

* mips-stub.c (restore_and_return): Postpone restoring of PSW.
        RTE will take care of it.

22 years ago2002-09-17 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Tue, 17 Sep 2002 21:18:54 +0000 (21:18 +0000)]
2002-09-17  Andrew Cagney  <ac131313@redhat.com>

* arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
invalid, return SP_REGNUM.

22 years agofix date.
Andrew Cagney [Tue, 17 Sep 2002 21:01:01 +0000 (21:01 +0000)]
fix date.

22 years ago2002-08-13 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 17 Sep 2002 20:54:02 +0000 (20:54 +0000)]
2002-08-13  Michael Snyder  <msnyder@redhat.com>

* mips-tdep.c (mips_pop_frame): Read saved values of floating
point registers without sign extension.

22 years ago * mi-var-cmd.exp: Add tests to check when varobj pinned to a
Keith Seitz [Tue, 17 Sep 2002 20:45:28 +0000 (20:45 +0000)]
    * mi-var-cmd.exp: Add tests to check when varobj pinned to a
        selected frame changes type.

22 years ago2002-09-17 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 17 Sep 2002 20:42:01 +0000 (20:42 +0000)]
2002-09-17  Andrew Cagney  <cagney@redhat.com>

* h8300-tdep.c (h8300_frame_chain):
(h8300_frame_saved_pc):

* blockframe.c (deprecated_read_register_dummy): Rename
generic_read_register_dummy.
* frame.c (frame_unwind_signed_register): New function.
(frame_unwind_unsigned_register): New function.
* frame.h (frame_unwind_signed_register): Declare.
(frame_unwind_unsigned_register): Declare.
(deprecated_read_register_dummy): Rename
generic_read_register_dummy.

* xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
* rs6000-tdep.c (rs6000_frame_saved_pc): Update.
* s390-tdep.c (s390_frame_saved_pc_nofix): Update.
(s390_frame_chain): Update.
* v850-tdep.c (v850_find_callers_reg): Update.
(v850_frame_saved_pc): Update.
* m32r-tdep.c (m32r_init_extra_frame_info): Update.
(m32r_find_callers_reg): Update.
(m32r_frame_saved_pc): Update.
* sh-tdep.c (sh_find_callers_reg): Update.
(sh64_get_saved_pr): Update.
(sh_init_extra_frame_info): Update.
(sh_init_extra_frame_info): Update.
(sh64_init_extra_frame_info): Update.
(sh64_init_extra_frame_info): Update.
* mcore-tdep.c (mcore_find_callers_reg): Update.
(mcore_frame_saved_pc): Update.
(mcore_init_extra_frame_info): Update.
* i386-tdep.c (i386_frame_saved_pc): Update.
* ia64-tdep.c (ia64_frame_saved_pc): Update.
(ia64_init_extra_frame_info): Update.
(ia64_init_extra_frame_info): Update.
* d10v-tdep.c (d10v_frame_saved_pc): Update.
* cris-tdep.c (cris_init_extra_frame_info): Update.
* avr-tdep.c (avr_frame_chain): Update.
(avr_init_extra_frame_info): Update.
(avr_frame_saved_pc): Update.
* arm-tdep.c (arm_find_callers_reg): Update.
(arm_init_extra_frame_info): Update.
(arm_frame_saved_pc): Update.

22 years ago * mi-console.exp: Update copyright.
Keith Seitz [Tue, 17 Sep 2002 20:30:24 +0000 (20:30 +0000)]
    * mi-console.exp: Update copyright.
        * mi-var-block.exp: Likewise.
        * mi-var-cmd.exp: Likewise.
        * mi-var-display.exp: Likewise.
        * mi0-console.exp: Likewise.
        * mi0-var-child.exp: Likewise.
        * mi0-var-cmd.exp: Likewise.
        * mi0-var-display.exp: Likewise.

22 years ago2002-09-17 David O'Brien <obrien@FreeBSD.org>
David O'Brien [Tue, 17 Sep 2002 19:49:04 +0000 (19:49 +0000)]
2002-09-17  David O'Brien  <obrien@FreeBSD.org>
* elf32-i386-fbsd.c: Always label using the EI_OSABI method.
It is benign for FreeBSD < 4.1.  Minor reformatting.
* elf64-alpha-fbsd.c: Likewise.

Approved by:  Alan Modra <amodra@bigpond.net.au>
              Message-ID: <20020917182339.B14457@bubble.sa.bigpond.net.au>

22 years agoNote that an implemented BFD_RELOC_ARM_IMMEDIATE has been done.
Nick Clifton [Tue, 17 Sep 2002 19:23:00 +0000 (19:23 +0000)]
Note that an implemented BFD_RELOC_ARM_IMMEDIATE has been done.
Do not issue reloc number of unimplemented BFD_RELOC_ARM_IMMEDIATE and
BFD_RELOC_ARM_OFFSET_IMM relocs - their name is already in the error message
- plus remove them from the default case.
Warn about unpredictable behavior of LDM and STM instructions.

22 years ago * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
Tom Tromey [Tue, 17 Sep 2002 17:01:47 +0000 (17:01 +0000)]
* c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
is "'".

22 years ago * gdb.base/printcmds.exp (test_print_string_constants): Expect
Tom Tromey [Tue, 17 Sep 2002 17:01:22 +0000 (17:01 +0000)]
* gdb.base/printcmds.exp (test_print_string_constants): Expect
\000, not \0, in double-quoted string.

22 years ago * MAINTAINERS: Remove "non multi-arched" text from h8300.
Corinna Vinschen [Tue, 17 Sep 2002 15:54:26 +0000 (15:54 +0000)]
* MAINTAINERS: Remove "non multi-arched" text from h8300.
* h8300-tdep.c (h8300_next_prologue_insn) Renamed from
NEXT_PROLOGUE_INSN.
(h8300_examine_prologue): Call h8300_next_prologue_insn instead of
NEXT_PROLOGUE_INSN.

22 years ago * elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.
Jakub Jelinek [Tue, 17 Sep 2002 09:52:41 +0000 (09:52 +0000)]
* elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.

22 years ago * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
Alan Modra [Tue, 17 Sep 2002 08:59:11 +0000 (08:59 +0000)]
* coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
* cpu-tic4x.c: Ditto.

22 years ago * elf64-alpha.c (alpha_elf_size_info): Make static.
Alan Modra [Tue, 17 Sep 2002 08:48:54 +0000 (08:48 +0000)]
* elf64-alpha.c (alpha_elf_size_info): Make static.

22 years ago2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
Thiemo Seufer [Tue, 17 Sep 2002 08:38:27 +0000 (08:38 +0000)]
2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

* gas/mips/jal-range.s: Check for jal overflows.
* gas/mips/jal-range.l: List file for it.
* gas/mips/mips.exp: Use it.

22 years ago * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
Alan Modra [Tue, 17 Sep 2002 08:35:10 +0000 (08:35 +0000)]
* config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
Convert functions to K&R format.

22 years ago * tic4x-dis.c: Add function declarations and ATTRIBUTE_UNUSED.
Alan Modra [Tue, 17 Sep 2002 08:34:17 +0000 (08:34 +0000)]
* tic4x-dis.c: Add function declarations and ATTRIBUTE_UNUSED.
Convert functions to K&R format.

22 years ago * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
Alan Modra [Tue, 17 Sep 2002 08:33:13 +0000 (08:33 +0000)]
* coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
* cpu-tic4x.c: Ditto.

22 years ago * elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove
Thiemo Seufer [Tue, 17 Sep 2002 07:48:30 +0000 (07:48 +0000)]
* elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove
duplicate define.

22 years ago * config/tc-mips.c (pdr_seg): Define only for ELF.
Thiemo Seufer [Tue, 17 Sep 2002 07:43:25 +0000 (07:43 +0000)]
* config/tc-mips.c (pdr_seg): Define only for ELF.
(s_change_section): Remove unused variable. Don't use for nonELF.

22 years ago * config/obj-elf.c (obj_elf_change_section): Move prototype to
Thiemo Seufer [Tue, 17 Sep 2002 07:38:14 +0000 (07:38 +0000)]
* config/obj-elf.c (obj_elf_change_section): Move prototype to
obj-elf.h
* config/obj-elf.h (obj_elf_change_section): Likewise.

22 years agobinutils:
Zack Weinberg [Tue, 17 Sep 2002 07:09:47 +0000 (07:09 +0000)]
binutils:
* Makefile.am (CFILES): Add cxxfilt.c.
(cxxfilt_SOURCES): Now just cxxfilt.c $(BULIBS).
(cxxfilt_LDADD): Delete.
Remove all references to underscore.c.
Regen dependencies.
* configure.in: Define TARGET_PREPENDS_UNDERSCORE in
config.h from $UNDERSCORE, rather than AC_SUBSTing it.
* binutils/cxxfilt.c: Moved here from gcc/cp, minor
adjustments to fit into binutils framework.
* configure, config.in, Makefile.in, doc/Makefile.in: Regenerate.

gcc/cp:
* Make-lang.in: Remove all references to the demangler.
* cxxfilt.c: Moved to binutils.

22 years ago * osfsolib.c: Remove file, replaced by solib-osf.c.
Joel Brobecker [Tue, 17 Sep 2002 04:45:50 +0000 (04:45 +0000)]
    * osfsolib.c: Remove file, replaced by solib-osf.c.
        * Makefile.in: Remove compilation rules for osfsolib.c.

22 years ago * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
Richard Henderson [Tue, 17 Sep 2002 02:55:57 +0000 (02:55 +0000)]
    * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
        (out_debug_info): Likewise.

22 years ago2002-09-16 Bruno Haible <bruno@clisp.org>
David O'Brien [Tue, 17 Sep 2002 02:24:40 +0000 (02:24 +0000)]
2002-09-16  Bruno Haible  <bruno@clisp.org>
* elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included
by a target variant implementation.
* elf64-alpha.c: Likewise.
* elf32-i386-fbsd.c: New file.
* elf64-alpha-fbsd.c: New file.
* targets.c: Support bfd_elf32_i386_freebsd_vec and
bfd_elf64_alpha_freebsd_vec.
* configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec,
bfd_elf64_alpha_freebsd_vec.
* Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo.
(BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c.
(BFD64_BACKENDS): Add elf64-alpha-fbsd.lo.
(BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c.
(elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies.
* config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD
specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate.

* config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
(TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
* config/tc-i386.c (i386_target_format): Likewise.
* config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
(TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".

* emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
elf32-i386-freebsd.
* emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
elf64-alpha-freebsd.

Approved by:  Alan Modra <amodra@bigpond.net.au>
              Message-ID: <20020715021113.GJ30362@bubble.sa.bigpond.net.au>

22 years agodaily update
Alan Modra [Tue, 17 Sep 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago*** empty log message ***
gdbadmin [Tue, 17 Sep 2002 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago2002-09-16 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 16 Sep 2002 22:02:46 +0000 (22:02 +0000)]
2002-09-16  David Carlton  <carlton@math.stanford.edu>

* cp-valprint.c (cp_print_class_method): Correct args to
check_stub_method_group.

22 years ago * gdb701.exp: New file for testing varobj target type bug.
Keith Seitz [Mon, 16 Sep 2002 19:01:43 +0000 (19:01 +0000)]
    * gdb701.exp: New file for testing varobj target type bug.
        * gdb701.c: New file.

22 years ago * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
Corinna Vinschen [Mon, 16 Sep 2002 15:03:17 +0000 (15:03 +0000)]
* h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
`set architecture'.  Unify naming convention of functions.
(h8300_skip_prologue): Improve prologue analysis.
(h8300_push_arguments): Rewritten to more closely match GCC's
bizarre argument-passing behavior, along with the comment describing
said behavior.
* remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
* config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
sim, remote-e7000.c, remote-hms.c and remote.c

22 years ago*** empty log message ***
gdbadmin [Mon, 16 Sep 2002 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Mon, 16 Sep 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago* i386-tdep.c (gdb_print_insn_i386): Removed.
Mark Kettenis [Sun, 15 Sep 2002 13:53:36 +0000 (13:53 +0000)]
* i386-tdep.c (gdb_print_insn_i386): Removed.
(i386_print_insn): New function.
(i386_gdbarch_init): Set print_insn to i386_print_insns.
(_initialize_i386_tdep): Don't initialize tm_print_insn and
tm_print_insn_info.

22 years ago*** empty log message ***
gdbadmin [Sun, 15 Sep 2002 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Sun, 15 Sep 2002 00:00:04 +0000 (00:00 +0000)]
daily update

22 years ago* gdbtypes.c (check_stub_method_group): Initialize found_stub to
Mark Kettenis [Sat, 14 Sep 2002 15:39:52 +0000 (15:39 +0000)]
* gdbtypes.c (check_stub_method_group): Initialize found_stub to
zero.

22 years ago * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
Corinna Vinschen [Sat, 14 Sep 2002 09:40:36 +0000 (09:40 +0000)]
* arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined.
Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.