remote_gdb.hh revision 7087:fb8d5786ff30
12207SN/A/* 22207SN/A * Copyright (c) 2007 The Hewlett-Packard Development Company 32207SN/A * All rights reserved. 42207SN/A * 52207SN/A * The license below extends only to copyright in the software and shall 62207SN/A * not be construed as granting a license to any other intellectual 72207SN/A * property including but not limited to intellectual property relating 82207SN/A * to a hardware implementation of the functionality of the software 92207SN/A * licensed hereunder. You may use the software subject to the license 102207SN/A * terms below provided that you ensure that this notice is replicated 112207SN/A * unmodified and in its entirety in all distributions of the software, 122207SN/A * modified or unmodified, in source code or in binary form. 132207SN/A * 142207SN/A * Redistribution and use in source and binary forms, with or without 152207SN/A * modification, are permitted provided that the following conditions are 162207SN/A * met: redistributions of source code must retain the above copyright 172207SN/A * notice, this list of conditions and the following disclaimer; 182207SN/A * redistributions in binary form must reproduce the above copyright 192207SN/A * notice, this list of conditions and the following disclaimer in the 202207SN/A * documentation and/or other materials provided with the distribution; 212207SN/A * neither the name of the copyright holders nor the names of its 222207SN/A * contributors may be used to endorse or promote products derived from 232207SN/A * this software without specific prior written permission. 242207SN/A * 252207SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 262207SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 272665Ssaidi@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 282665Ssaidi@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 292665Ssaidi@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 302207SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 312207SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 325569Snate@binkert.org * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 335569Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 342207SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 352474SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 362207SN/A * 372474SN/A * Authors: Gabe Black 382207SN/A */ 397532Ssteve.reinhardt@amd.com 407532Ssteve.reinhardt@amd.com#ifndef __ARCH_X86_REMOTEGDB_HH__ 417532Ssteve.reinhardt@amd.com#define __ARCH_X86_REMOTEGDB_HH__ 422474SN/A 435569Snate@binkert.org#include "arch/x86/types.hh" 442207SN/A#include "base/remote_gdb.hh" 4511168Sandreas.hansson@arm.com 4611169Sandreas.hansson@arm.comclass System; 475759Shsul@eecs.umich.educlass ThreadContext; 485759Shsul@eecs.umich.edu 495958Sgblack@eecs.umich.edunamespace X86ISA 505958Sgblack@eecs.umich.edu{ 5111169Sandreas.hansson@arm.com class RemoteGDB : public BaseRemoteGDB 529552Sandreas.hansson@arm.com { 539552Sandreas.hansson@arm.com protected: 5411169Sandreas.hansson@arm.com enum RegisterContants 5511169Sandreas.hansson@arm.com { 5611169Sandreas.hansson@arm.com NumGDBRegs 5711386Ssteve.reinhardt@amd.com //XXX fill this in 5811386Ssteve.reinhardt@amd.com }; 5911386Ssteve.reinhardt@amd.com 6011386Ssteve.reinhardt@amd.com public: 612474SN/A RemoteGDB(System *system, ThreadContext *context); 622474SN/A 6310299Salexandru.dutu@amd.com bool acc(Addr addr, size_t len); 6410299Salexandru.dutu@amd.com 6510299Salexandru.dutu@amd.com protected: 665569Snate@binkert.org void getregs(); 67 void setregs(); 68 69 void clearSingleStep(); 70 void setSingleStep(); 71 72 Addr nextBkpt; 73 }; 74} 75 76#endif // __ARCH_X86_REMOTEGDB_HH__ 77