remote_gdb.hh revision 4120
13536Sgblack@eecs.umich.edu/* 23536Sgblack@eecs.umich.edu * Copyright (c) 2002-2005 The Regents of The University of Michigan 33536Sgblack@eecs.umich.edu * All rights reserved. 43536Sgblack@eecs.umich.edu * 53536Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 63536Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are 73536Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright 83536Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer; 93536Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright 103536Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the 113536Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution; 123536Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its 133536Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from 143536Sgblack@eecs.umich.edu * this software without specific prior written permission. 153536Sgblack@eecs.umich.edu * 163536Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 173536Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 183536Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 193536Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 203536Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 213536Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 223536Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 233536Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 243536Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 253536Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 263536Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 273536Sgblack@eecs.umich.edu * 283536Sgblack@eecs.umich.edu * Authors: Nathan Binkert 293536Sgblack@eecs.umich.edu */ 303536Sgblack@eecs.umich.edu 313536Sgblack@eecs.umich.edu#ifndef __ARCH_ALPHA_REMOTE_GDB_HH__ 323536Sgblack@eecs.umich.edu#define __ARCH_ALPHA_REMOTE_GDB_HH__ 333536Sgblack@eecs.umich.edu 343536Sgblack@eecs.umich.edu#include <map> 353536Sgblack@eecs.umich.edu 363536Sgblack@eecs.umich.edu#include "arch/alpha/types.hh" 373536Sgblack@eecs.umich.edu#include "arch/alpha/kgdb.h" 383536Sgblack@eecs.umich.edu#include "base/remote_gdb.hh" 393536Sgblack@eecs.umich.edu#include "cpu/pc_event.hh" 403536Sgblack@eecs.umich.edu#include "base/pollevent.hh" 413536Sgblack@eecs.umich.edu#include "base/socket.hh" 423536Sgblack@eecs.umich.edu 433536Sgblack@eecs.umich.educlass System; 443536Sgblack@eecs.umich.educlass ThreadContext; 453536Sgblack@eecs.umich.educlass PhysicalMemory; 463536Sgblack@eecs.umich.edu 473536Sgblack@eecs.umich.edunamespace AlphaISA 483536Sgblack@eecs.umich.edu{ 493536Sgblack@eecs.umich.edu class RemoteGDB : public BaseRemoteGDB 503536Sgblack@eecs.umich.edu { 513536Sgblack@eecs.umich.edu protected: 523536Sgblack@eecs.umich.edu // Machine memory 533536Sgblack@eecs.umich.edu bool write(Addr addr, size_t size, const char *data); 543536Sgblack@eecs.umich.edu 553536Sgblack@eecs.umich.edu public: 563536Sgblack@eecs.umich.edu RemoteGDB(System *system, ThreadContext *context); 573536Sgblack@eecs.umich.edu 583536Sgblack@eecs.umich.edu bool acc(Addr addr, size_t len); 593536Sgblack@eecs.umich.edu 603536Sgblack@eecs.umich.edu protected: 613536Sgblack@eecs.umich.edu void getregs(); 623536Sgblack@eecs.umich.edu void setregs(); 633536Sgblack@eecs.umich.edu 643536Sgblack@eecs.umich.edu void clearSingleStep(); 653536Sgblack@eecs.umich.edu void setSingleStep(); 663536Sgblack@eecs.umich.edu 673550Sgblack@eecs.umich.edu protected: 683536Sgblack@eecs.umich.edu 693550Sgblack@eecs.umich.edu Addr notTakenBkpt; 703550Sgblack@eecs.umich.edu Addr takenBkpt; 713536Sgblack@eecs.umich.edu }; 723536Sgblack@eecs.umich.edu} 733536Sgblack@eecs.umich.edu 743536Sgblack@eecs.umich.edu#endif /* __ARCH_ALPHA_REMOTE_GDB_H__ */ 75