2002-02-14 Daniel Jacobowitz <drow@mvista.com>
authorDaniel Jacobowitz <drow@false.org>
Thu, 14 Feb 2002 06:21:24 +0000 (06:21 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 14 Feb 2002 06:21:24 +0000 (06:21 +0000)
commit0a30fbc4cfd38f7966ea783b292031986645c6ce
treed4bc0d4810c3e91c3f12e9db9af9e81c099b38ea
parent4cc841d043e50739f0f98baaec7ed806984805be
2002-02-14  Daniel Jacobowitz  <drow@mvista.com>

        * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
        and remove unused $(INCLUDE_DIR).
        Add regcache.c to OBS.
        Add generated register protocol files to clean target.
        Update dependencies for new objects, obsolete old target code.

        * gdbserver/linux-low.c: Remove all platform-specific code to
        new files.  Remove various dead code.  Update to use regcache
        functionality.
        * gdbserver/remote-utils.c (fromhex): Add return statement
        to quiet warning.
        (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
        constant.
        (input_interrupt): Add integer parameter to match prototype
        of a signal handler.
        (outreg): Use register_data ().
        (prepare_resume_reply): Use gdbserver_expedite_regs.
        * gdbserver/server.c (main): Dynamically allocate own_buf because
        PBUFSIZ is no longer constant.  Use registers_to_string () and
        registers_from_string ().
        * gdbserver/server.h: No longer include "defs.h".  Add prototypes
        for error (), fatal (), and warning ().  Update definition of
        PBUFSIZ to use regcache functionality.  Add include guard.
        * gdbserver/utils.c (fatal): Add missing ``const''.
        (warning): New function.

        * regformats/regdat.sh: Include "regcache.h" in generated files.
        Provide init_registers () function.
        * regformats/regdef.h: Add prototype for set_register_cache ().
        Add include guard.

        * gdbserver/linux-arm-low.c: New file.
        * gdbserver/linux-i386-low.c: New file.
        * gdbserver/linux-ia64-low.c: New file.
        * gdbserver/linux-m68k-low.c: New file.
        * gdbserver/linux-mips-low.c: New file.
        * gdbserver/linux-ppc-low.c: New file.
        * gdbserver/linux-sh-low.c: New file.

        * gdbserver/regcache.c: New file.
        * gdbserver/regcache.h: New file.

        * gdbserver/low-linux.c: Removed obsolete file.
19 files changed:
gdb/ChangeLog
gdb/gdbserver/Makefile.in
gdb/gdbserver/linux-arm-low.c [new file with mode: 0644]
gdb/gdbserver/linux-i386-low.c [new file with mode: 0644]
gdb/gdbserver/linux-ia64-low.c [new file with mode: 0644]
gdb/gdbserver/linux-low.c
gdb/gdbserver/linux-m68k-low.c [new file with mode: 0644]
gdb/gdbserver/linux-mips-low.c [new file with mode: 0644]
gdb/gdbserver/linux-ppc-low.c [new file with mode: 0644]
gdb/gdbserver/linux-sh-low.c [new file with mode: 0644]
gdb/gdbserver/low-linux.c [deleted file]
gdb/gdbserver/regcache.c [new file with mode: 0644]
gdb/gdbserver/regcache.h [new file with mode: 0644]
gdb/gdbserver/remote-utils.c
gdb/gdbserver/server.c
gdb/gdbserver/server.h
gdb/gdbserver/utils.c
gdb/regformats/regdat.sh
gdb/regformats/regdef.h