This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Overhaul i386nbsd-nat.c, add support for XMM + ELF core files

The following patch overhauls i386nbsd-nat.c, using new interfaces to
access the gdb regcache, and adds support for XMM registers and ELF
format NetBSD core files.

        [ for gdb/ChangeLog ]
2002-01-04  Jason Thorpe  <> 
        * i386nbsd-nat.c (supply_regs): New function. 
        (fetch_inferior_registers): Use supply_regs to
        provide integer registers.  Use i387_supply_fsave
        to supply FP registers.  Add support for XMM
        registers using PT_GETXMMREGS and i387_supply_fxsave.    
        (store_inferior_registers): Use regcache_collect 
        for integer registers.  Use i387_fill_fsave for
        FP registers.  Add support for XMM registers
        using i387_fill_fxsave and PT_SETXMMREGS. 
        (fetch_core_registers): Use supply_regs for
        integer registers and i387_supply_fsave for 
        FP registers.
        (fetch_elfcore_registers): New function. 
        (i386nbsd_elfcore_fns): New.
        (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns. 
        * config/i386/ (NATDEPFILES): Add i387-nat.o. 
        * config/i386/ (NATDEPFILES): Likewise. 
        * config/i386/tm-nbsd.h: Update copyright years.
        (HAVE_SSE_REGS): Define.

        -- Jason R. Thorpe <>

Attachment: JRT-patch3
Description: patch3

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]