OSDN Git Service

pf3gnuchains/sourceware.git
21 years ago2002-09-21 Robert Collins <rbtcollins@hotmail.com>
rbcollins [Sat, 21 Sep 2002 03:59:57 +0000 (03:59 +0000)]
2002-09-21  Robert Collins <rbtcollins@hotmail.com>

        * pthread.cc: Use class::call for converted pthread and semaphore
        calls.
        * thread.cc: Convert various __pthread_call and __sem_call to
        pthread::call and sem::call throughout.
        * pthread.h (__pthread_cancel): Convert to pthread::cancel.
        (__pthread_join): Convert to pthread::join.
        (__pthread_detach): Convert to pthread::detach.
        (__pthread_create): Convert to pthread::create.
        (__pthread_once): Convert to pthread::once.
        (__pthread_atfork): Convert to pthread::atfork.
        (__pthread_suspend): Convert to pthread::suspend.
        (__pthread_continue): Convert to pthread::resume.
        (__sem_init): Convert to semaphore::init.
        (__sem_destroy): Convert to semaphore::destroy.
        (__sem_wait): Convert to semaphore::wait.
        (__sem_trywait): Convert to semaphore::trywait.
        (__sem_post): Convert to semaphore::post.

21 years ago2002-09-21 Robert Collins <rbtcollins@hotmail.com>
rbcollins [Sat, 21 Sep 2002 03:20:26 +0000 (03:20 +0000)]
2002-09-21  Robert Collins <rbtcollins@hotmail.com>

        * thread.cc: Finish the removal of the separate pthread_key
        destructor list.
        Remove all pthread_key_destructor and pthread_key_destructor_list
        references throughout.
        (pthread::exit): Call the new pthread_key interface to activate
        destructors.
        (pthread_key::keys): Change into a list.
        (pthread_key::saveAKey): New method, used via forEach.
        (pthread_key::restoreAKey): Ditto.
        (pthread_key::destroyAKey): Ditto.
        (pthread_key::fixup_before_fork): Use the List::forEach functionality.
        (pthread_key::fixup_after_fork): Ditto.
        (pthread_key::runAllDestructors): New method implementation.
        (pthread_key::pthread_key): Use List::Insert rather than custom list
        code.
        (pthread_key::~pthread_key): Use List::Remove for the same reason.
        * thread.h: Remove all pthread_key_destructor and
        pthread_key_destructor_list references throughout.
        (List): Move the interface above pthread_key in the header.
        Use atomic operations during insert and delete.
        (List::forEach): A generic interface for doing something on each node.
        (pthread_key::runAllDestructors): New method, run all destructors.
        (pthread_key::fork_buf): Make private.
        (pthread_key::run_destructor): Ditto.
        (pthread_key::saveAKey): New method for clearer source.
        (pthread_key::restoreAKey): Ditto.
        (pthread_key::destroyAKey): Ditto.
        (MTinterface::destructors): Remove.

21 years ago2002-09-21 Robert Collins <rbtcollins@hotmail.com>
rbcollins [Sat, 21 Sep 2002 01:59:46 +0000 (01:59 +0000)]
2002-09-21  Robert Collins <rbtcollins@hotmail.com>

        * thread.cc: Partial refactoring of pthread_key destructor
        handling. Loosely based on Thomas Pfaff's work.
        (pthread_key_destructor_list::Insert): Remove.
        (pthread_key_destructor_list::Pop): Remove.
        (pthread_key_destructor_list::IterateNull): Call the key's
        run_destructor method.
        (pthread_key::pthread_key): Initialize new member.
        (pthread_key::get): Mark as const for correctness.
        (pthread_key::run_destructor): Implement.
        * thread.h (pthread_key::get): Mark as const for correctness.
        (pthread_key::run_destructor): Declare.
        (List): New template class that implements a generic list.
        (pthread_key_destructor_list): Inherit from List, and remove
        now duplicate functions.

21 years ago2002-09-20 Kevin Buettner <kevinb@redhat.com>
kevinb [Sat, 21 Sep 2002 00:29:04 +0000 (00:29 +0000)]
2002-09-20  Kevin Buettner  <kevinb@redhat.com>

From Eli Zaretskii  <eliz@is.elta.co.il>:
* gdb.texinfo (Character Sets): Use @smallexample instead of
@example.  Use GNU/Linux instead of Linux.

2002-09-20  Jim Blandy  <jimb@redhat.com>

* gdb.texinfo: Add character set documentation.

21 years agodaily update
amodra [Sat, 21 Sep 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sat, 21 Sep 2002 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2002-09-21 Robert Collins <rbtcollins@hotmail.com>
rbcollins [Fri, 20 Sep 2002 23:46:12 +0000 (23:46 +0000)]
2002-09-21  Robert Collins <rbtcollins@hotmail.com>

        * thread.cc: Change verifyable_object_isvalid calls with
        PTHREAD_CONDATTR_MAGIC, PTHREAD_MUTEXATTR_MAGIC, PTHREAD_COND_MAGIC,
        SEM_MAGIC to objecttype::isGoodObject() calls throughout.
        (pthread_condattr::isGoodObject): Implement.
        (pthread_mutex::isGoodInitializer): Implement.
        (pthread_mutex::isGoodInitializerOrObject): Minor bugfix in the
        check for verifyable_object_isvalid result.
        (pthread_mutexattr::isGoodObject): Implement.
        (pthread_cond::isGoodObject): Ditto.
        (pthread_cond::isGoodInitializer): Ditto.
        (pthread_cond::isGoodInitializerOrObject): Ditto.
        (semaphore::isGoodObject): Ditto.
        * thread.h (pthread_mutex::isGoodInitializer): Declare.
        (pthread_condattr::isGoodObject): Ditto.
        (pthread_cond::isGoodObject): Const correctness.
        (pthread_cond::isGoodInitializer): Declare.
        (pthread_cond::isGoodInitializerOrObject): Ditto.
        (semaphore::isGoodObject): Const correctness.

21 years ago2002-09-21 Robert Collins <rbtcollins@hotmail.com>
rbcollins [Fri, 20 Sep 2002 22:34:05 +0000 (22:34 +0000)]
2002-09-21  Robert Collins <rbtcollins@hotmail.com>

        * thread.cc: Change verifyable_object_isvalid calls with
        PTHREAD_MUTEX_MAGIC and PTHREAD_KEY_MAGIC and PTHREAD_ATTR_MAGIC to
        ::isGoodObject() calls throughout.
        (MTinterface::Init): Remove dead code.
        (pthread_attr::isGoodObject): Implement.
        (pthread_key::isGoodObject): Implement.
        (pthread_mutex::isGoodObject): Implement.
        (pthread_mutex::isGoodInitializerOrObject): Implement.
        (pthread::isGoodObject): Update signature.
        * thread.h (pthread_key::isGoodObject): Declare.
        (pthread_attr::isGoodObject): Ditto.
        (pthread_mutex::isGoodObject): Ditto.
        (pthread_mutex::isGoodInitializerOrObject): Ditto.
        (pthread::isGoodObject): Change to a const parameter for const
        correctness.
        (pthread_mutexattr::isGoodObject): Declare.
        (pthread_condattr::isGoodObject): Ditto.
        (pthread_cond::isGoodObject): Ditto.
        (semaphore::isGoodObject): Ditto.

21 years ago2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Fri, 20 Sep 2002 21:56:13 +0000 (21:56 +0000)]
2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/wctype.h: New file.

21 years agoFix tabs converted to spaces by cut and paste in ChangeLog entry
fnasser [Fri, 20 Sep 2002 21:05:52 +0000 (21:05 +0000)]
Fix tabs converted to spaces by cut and paste in ChangeLog entry

21 years ago2002-09-20 Nathanael Nerode <neroden@doctor.moo.mud.org>
neroden [Fri, 20 Sep 2002 21:03:04 +0000 (21:03 +0000)]
2002-09-20  Nathanael Nerode  <neroden@doctor.moo.mud.org>

* configure.in: Rearrange.

21 years agoFix small ChangeLog typo.
fnasser [Fri, 20 Sep 2002 20:36:57 +0000 (20:36 +0000)]
Fix small ChangeLog typo.

21 years ago2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Fri, 20 Sep 2002 20:13:09 +0000 (20:13 +0000)]
2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/ctype/Makefile.am: Add new files.
        * libc/ctype/Makefile.in: Regenerated.
        * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
        and wctrans functions to documentation index.
        * libc/ctype/iswalnum.c: New file.
        * libc/ctype/iswalpha.c: Ditto.
        * libc/ctype/iswblank.c: Ditto.
        * libc/ctype/iswcntrl.c: Ditto.
        * libc/ctype/iswctype.c: Ditto.
        * libc/ctype/iswdigit.c: Ditto.
        * libc/ctype/iswgraph.c: Ditto.
        * libc/ctype/iswlower.c: Ditto.
        * libc/ctype/iswprint.c: Ditto.
        * libc/ctype/iswpunct.c: Ditto.
        * libc/ctype/iswspace.c: Ditto.
        * libc/ctype/iswupper.c: Ditto.
        * libc/ctype/iswxdigit.c: Ditto.
        * libc/ctype/jp2uc.c: Ditto.
        * libc/ctype/jp2uc.h: Ditto.
        * libc/ctype/local.h: Ditto.
        * libc/ctype/towctrans.c: Ditto.
        * libc/ctype/towlower.c: Ditto.
        * libc/ctype/towupper.c: Ditto.
        * libc/ctype/utf8alpha.h: Ditto.
        * libc/ctype/utf8print.h: Ditto.
        * libc/ctype/utf8punct.h: Ditto.
        * libc/ctype/wctrans.c: Ditto.
        * libc/ctype/wctype.c: Ditto.
        * libc/locale/locale.c (__lc_ctype): New external array to
        replace static lc_ctype array.
        * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
        rather than reentrancy structure's _current_locale field.
        * libc/stdlib/wctomb_r.c: Ditto.

21 years ago2002-09-20 David Carlton <carlton@math.stanford.edu>
carlton [Fri, 20 Sep 2002 18:14:48 +0000 (18:14 +0000)]
2002-09-20  David Carlton  <carlton@math.stanford.edu>

* Makefile.in (c-lang.o): Correct dependencies.
(utils.o): Gather dependencies.
(charset.o): Move.

21 years ago * library/combobox.tcl (build): New variable to save grabs.
fnasser [Fri, 20 Sep 2002 17:38:52 +0000 (17:38 +0000)]
* library/combobox.tcl (build): New variable to save grabs.
(widgetProc): Save and restore previous grabs.

21 years ago2002-09-20 David Carlton <carlton@math.stanford.edu>
carlton [Fri, 20 Sep 2002 17:37:11 +0000 (17:37 +0000)]
2002-09-20  David Carlton  <carlton@math.stanford.edu>

* c-lang.c: #include "gdb_string.h"

21 years ago2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Fri, 20 Sep 2002 17:11:28 +0000 (17:11 +0000)]
2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.host: Minor comment and formatting changes.
        * libc/Makefile.am: Add libc_la_DEPENDENCIES.
        * libc/Makefile.in: Regenerated.
        * libc/include/sys/config.h: Minor format change.

21 years agoAllow CRFS and CRFD operands to accept CR register names
nickc [Fri, 20 Sep 2002 15:44:23 +0000 (15:44 +0000)]
Allow CRFS and CRFD operands to accept CR register names

21 years ago From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
fnasser [Fri, 20 Sep 2002 15:07:13 +0000 (15:07 +0000)]
    From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
        * cli/cli-cmds.c (list_command): New function.  Implements the new
        cli edit command.
        (_init_cli_cmds): Add new command definition.
        * gdb.1: Document edit command.
        * doc/gdb.texinfo: Document edit command.

21 years ago * source.c: Make global variables current_source_symtab and
fnasser [Fri, 20 Sep 2002 14:58:57 +0000 (14:58 +0000)]
    * source.c: Make global variables current_source_symtab and
        current_source_line static.
        (list_command): Moved to cli/cli-cmds.c.
        (ambiguous_line_spec): Moved to cli/cli-cmds.c.
        (get_first_line_listed): New accessor function.
        (get_lines_to_list): New accessor function.
        (get_current_source_symtab_and_line): New function. Retrieves the
        position in the source code that we consider current.
        (get_current_or_default_source_symtab_and_line): New function.
        Like the above but attempts to determine a default position if one
        is not currently defined.
        (set_current_source_symtab_and_line): New function. Sets the source
        code position considered current and returns the previously set one.
        (clear_current_source_symtab_and_line): Reset stored information about
        a current source line.
        (_initialize_source): Remove registration for the "list" command and
        its alias.
        * source.h: Add declarations for the new functions above.
        * symtab.h: Remove declarations for the global variables mentioned
        above.
        * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
        obtain current source line.
        * linespec.c (decode_line_1): Ditto.
        * macroscope.c (default_macro_scope): Ditto.
        * scm-lang.c (scm_unpac): Ditto.
        * stack.c (print_frame_info_base): Ditto.
        * symfile.c (clear_symtab_users): Ditto.
        * symtab.c (decode_line_spec): Ditto.
        * cli/cli-cmds.c (list_command): Moved here from source.c.
        (ambiguous_line_spec): Moved here from source.c.
        (_init_cli_cmds): Add definition for "list" and its alias.
        * Makefile.in: Update dependencies.

21 years agosymbols.c (colon): Do not allow symbols to be created in the absolute section
nickc [Fri, 20 Sep 2002 14:47:13 +0000 (14:47 +0000)]
symbols.c (colon): Do not allow symbols to be created in the absolute section
if WORKING_DOT_WORD is not defined and new_broken_words would require a new
frag to be created.

21 years ago * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
corinna [Fri, 20 Sep 2002 14:22:43 +0000 (14:22 +0000)]
* h8300-tdep.c (h8300_examine_prologue): Match saved regs location
with what gcc thinks is correct.

21 years agomerge from gcc
dj [Fri, 20 Sep 2002 13:45:20 +0000 (13:45 +0000)]
merge from gcc

21 years ago * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
corinna [Fri, 20 Sep 2002 12:08:35 +0000 (12:08 +0000)]
* h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
multiple register push instruction.

21 years ago * ld-i386/i386.exp: Only run tests on ELF targets.
amodra [Fri, 20 Sep 2002 07:57:07 +0000 (07:57 +0000)]
* ld-i386/i386.exp: Only run tests on ELF targets.

21 years ago(_bfd_dwarf2_find_nearest_line): If address length is zero, set it to 8 for
nickc [Fri, 20 Sep 2002 07:28:54 +0000 (07:28 +0000)]
(_bfd_dwarf2_find_nearest_line): If address length is zero, set it to 8 for
(non-standard) 64-bit DWARF2 formats (e.g. IRIX64).

21 years agoDo not allow symbols to be created in the absolute section.
nickc [Fri, 20 Sep 2002 06:57:41 +0000 (06:57 +0000)]
Do not allow symbols to be created in the absolute section.

21 years ago2002-09-19 Martin M. Hunt <hunt@redhat.com>
hunt [Fri, 20 Sep 2002 06:12:28 +0000 (06:12 +0000)]
2002-09-19  Martin M. Hunt  <hunt@redhat.com>

* library/srctextwin.itb (FillAssembly): Fix debug
        statement for 64-bit addresses.
        (showBPBalloon): Fix for 64-bit addresses.

21 years ago2002-09-19 Martin M. Hunt <hunt@redhat.com>
hunt [Fri, 20 Sep 2002 06:03:19 +0000 (06:03 +0000)]
2002-09-19  Martin M. Hunt  <hunt@redhat.com>

* library/memwin.itb (incr_addr): Fix 64-bit addresses.

21 years ago2002-09-19 Jakub Jelinek <jakub@redhat.com>
hjl [Fri, 20 Sep 2002 05:54:40 +0000 (05:54 +0000)]
2002-09-19  Jakub Jelinek  <jakub@redhat.com>

* elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Clear .got word
even if generating R_PPC_RELATIVE reloc.
(ppc_elf_relocate_section): Make sure relocation is performed
if skip == -2.  Clear memory at r_offset when creating dynamic
relocation.

21 years ago* Import these changes from the config master repository:
aoliva [Fri, 20 Sep 2002 01:00:28 +0000 (01:00 +0000)]
* Import these changes from the config master repository:

21 years ago * expr.c (expr): Simplify foo-foo here.
amodra [Fri, 20 Sep 2002 00:58:39 +0000 (00:58 +0000)]
* expr.c (expr): Simplify foo-foo here.
(clean_up_expression): Remove O_subtract code.

21 years agoAdd new tests for charset support.
kevinb [Fri, 20 Sep 2002 00:26:06 +0000 (00:26 +0000)]
Add new tests for charset support.

21 years agoAdd support for distinct host and target character sets.
kevinb [Fri, 20 Sep 2002 00:24:00 +0000 (00:24 +0000)]
Add support for distinct host and target character sets.

21 years ago* libiberty.h (asprintf, vasprintf): Don't declare them if the
aoliva [Fri, 20 Sep 2002 00:21:58 +0000 (00:21 +0000)]
* libiberty.h (asprintf, vasprintf): Don't declare them if the
corresponding HAVE_DECL_ macro is 1.

21 years agodaily update
amodra [Fri, 20 Sep 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Fri, 20 Sep 2002 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * write.h (struct fix): Add fx_dot_value.
amodra [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.

21 years ago2002-09-19 Andrew Cagney <ac131313@redhat.com>
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.

21 years ago * mingwex/math/files.txt: Remove inadvertantly added file.
dannysmith [Thu, 19 Sep 2002 23:05:26 +0000 (23:05 +0000)]
* mingwex/math/files.txt: Remove inadvertantly added file.

21 years ago2002-09-19 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Thu, 19 Sep 2002 21:37:20 +0000 (21:37 +0000)]
2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
        statement comment.

21 years ago2002-09-19 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Thu, 19 Sep 2002 21:28:50 +0000 (21:28 +0000)]
2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/posix/opendir.c (opendir): Change code to check
        for HAVE_FCNTL before calling fcntl.
        * libc/search/hash.c (hash_open): Ditto.
        * libc/search/hash_page.c (open_tmp): Ditto.
        * libc/reent/Makefile.am: Add fcntlr.c.
        * libc/reent/Makefile.in: Regenerated.
        * libc/reent/fcntlr.c: New file.
        * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
        instead of _fcntl when HAVE_FCNTL flag is set.
        * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
        to see if _fcntl or _fcntl_r should be called.  If flag is not
        set, default to ENOSYS stub.

21 years agobfd/
jakub [Thu, 19 Sep 2002 19:01:11 +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.

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

21 years agoWhen examining weak symbols, follow indirect links.
nickc [Thu, 19 Sep 2002 16:34:13 +0000 (16:34 +0000)]
When examining weak symbols, follow indirect links.

21 years ago * config/tc-alpha.c (md_pcrel_from): Only adjust special for
rth [Thu, 19 Sep 2002 16:13:37 +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.

21 years ago2002-09-19 Andrew Cagney <ac131313@redhat.com>
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''.

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

21 years ago2002-09-19 Andrew Cagney <ac131313@redhat.com>
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.

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

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

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

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

21 years agoCleanup calls to CreateFile throughout.
cgf [Thu, 19 Sep 2002 15:12:47 +0000 (15:12 +0000)]
Cleanup calls to CreateFile throughout.
* dcrt0.cc (__api_fatal): Correctly check for failing return from CreateFile.
* assert.cc (__assert): Don't check return value from CreateFile for NULL.
* fhandler_console.cc (set_console_state_for_spawn): Ditto.
* fork.cc (fork_parent): Ditto.

21 years ago(elf32_arm_adjust_dynamic_symbol): Update ELF_LINK_HASH_NEEDS_PLT logic.
nickc [Thu, 19 Sep 2002 14:59:50 +0000 (14:59 +0000)]
(elf32_arm_adjust_dynamic_symbol): Update ELF_LINK_HASH_NEEDS_PLT logic.

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

21 years ago * ada-exp.y: Add missing semicolons to end rules. Fixes a
brobecke [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.

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

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

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

21 years ago* gdb_mbuild.sh: New file.
rearnsha [Thu, 19 Sep 2002 10:11:40 +0000 (10:11 +0000)]
* gdb_mbuild.sh: New file.

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

21 years ago * include/string.h (_strerror): Move into #ifndef
dannysmith [Thu, 19 Sep 2002 05:35:29 +0000 (05:35 +0000)]
* include/string.h (_strerror): Move into #ifndef
__STRICT_ANSI__ block.

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

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

21 years agoRevert previous change. Not obvious.
cagney [Thu, 19 Sep 2002 03:58:40 +0000 (03:58 +0000)]
Revert previous change.  Not obvious.

21 years ago* cygcheck.cc: Include sys/time.h rather than time.h to avoid a compiler error.
cgf [Thu, 19 Sep 2002 03:48:19 +0000 (03:48 +0000)]
* cygcheck.cc: Include sys/time.h rather than time.h to avoid a compiler error.

21 years ago* cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads
cgf [Thu, 19 Sep 2002 03:30:19 +0000 (03:30 +0000)]
* cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads
may not end up in the pool.
(cygthread::new): Avoid race when checking for initialized.  Add debugging
code.
* fhandler.cc (fhandler_base::raw_read): Add case for ERROR_INVALID_HANDLE due
to Win95 directories.
(fhandler_base::open): Handle errors due to Win95 directories.
(fhandler_base::close): Add get_nohandle () test.
(fhandler_base::set_close_on_exec): Ditto.
(fhandler_base::fork_fixup): Ditto.
(fhandler_base::lock): Change error code to Posix EINVAL.
(fhandler_base::dup): If get_nohandle (), set new value to INVALID_HANDLE_VALUE
instead of NULL.
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Call fstat_by_name if
get_nohandle ().  Remove extraneous element from strpbrk.
(fhandler_disk_file::open): Remove test for Win95 directory.
* fhandler_random.cc (fhandler_dev_random::open): Add set_nohandle ().
* fhandler_clipboard.cc (fhandler_dev_clipboard::open): Ditto.
* fhandler_zero.cc (fhandler_dev_zero::open): Ditto.
(fhandler_dev_zero::close): Delete.
* fhandler.h (class fhandler_dev_zero): Ditto.

21 years ago * library/console.itb (_build_win): Bind control-c and control-v
kseitz [Thu, 19 Sep 2002 02:35:06 +0000 (02:35 +0000)]
    * library/console.itb (_build_win): Bind control-c and control-v
        to copy and paste.

21 years ago2002-09-18 Michael Snyder <msnyder@redhat.com>
msnyder [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.

21 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
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.

21 years ago2002-09-18 Michael Snyder <msnyder@redhat.com>
msnyder [Thu, 19 Sep 2002 00:39:37 +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.

21 years ago2002-09-18 Eric R. Krause <ekrause_98@users.sourceforge.net>
dannysmith [Thu, 19 Sep 2002 00:01:18 +0000 (00:01 +0000)]
2002-09-18  Eric R. Krause  <ekrause_98@users.sourceforge.net>

* include/winuser.h (DS_SHELLFONT): Define.

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

21 years agodaily update
amodra [Thu, 19 Sep 2002 00:00:03 +0000 (00:00 +0000)]
daily update

21 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
cagney [Wed, 18 Sep 2002 23:53:49 +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'.

21 years ago2002-09-18 Michael Snyder <msnyder@redhat.com>
msnyder [Wed, 18 Sep 2002 23:29:19 +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.

21 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
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.

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

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

21 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
cagney [Wed, 18 Sep 2002 22:09:20 +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.

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

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

21 years ago[ gas/ChangeLog ]
cgd [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.

21 years ago[ gas/ChangeLog ]
cgd [Wed, 18 Sep 2002 21:33:06 +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. ]

21 years ago[ gas/ChangeLog ]
cgd [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.

21 years ago[ gas/testsuite/ChangeLog ]
cgd [Wed, 18 Sep 2002 20:50:45 +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.

21 years ago* dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
jimb [Wed, 18 Sep 2002 20:47:37 +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.

21 years ago2002-09-18 David Carlton <carlton@math.stanford.edu>
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.

21 years ago2002-09-18 David Carlton <carlton@math.stanford.edu>
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.

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

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

21 years ago * gdb.base/ending-run.exp: Properly mark "continue after exit" and
fnasser [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.

21 years ago * gdb.base/ending-run.exp: Fix expected string for _wrap_main to
corinna [Wed, 18 Sep 2002 16:04:52 +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.

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

21 years ago2002-09-18 Andrew Cagney <ac131313@redhat.com>
cagney [Wed, 18 Sep 2002 15:37:17 +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.

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

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

21 years ago2002-09-18 Michal Ludvig <mludvig@suse.cz>
mludvig [Wed, 18 Sep 2002 11:24:01 +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.

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

21 years ago * bfd-in.h (bfd_get_dynamic_symcount): Define.
drow [Wed, 18 Sep 2002 02:39:42 +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.

21 years ago * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
scox [Wed, 18 Sep 2002 02:25:18 +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.