remote_gdb.hh revision 5569
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
475569Snate@binkert.orgnamespace AlphaISA {
485569Snate@binkert.org
495569Snate@binkert.orgclass RemoteGDB : public BaseRemoteGDB
503536Sgblack@eecs.umich.edu{
515569Snate@binkert.org  protected:
525569Snate@binkert.org    Addr notTakenBkpt;
535569Snate@binkert.org    Addr takenBkpt;
543536Sgblack@eecs.umich.edu
555569Snate@binkert.org  protected:
565569Snate@binkert.org    void getregs();
575569Snate@binkert.org    void setregs();
583536Sgblack@eecs.umich.edu
595569Snate@binkert.org    void clearSingleStep();
605569Snate@binkert.org    void setSingleStep();
613536Sgblack@eecs.umich.edu
625569Snate@binkert.org    // Machine memory
635569Snate@binkert.org    bool acc(Addr addr, size_t len);
645569Snate@binkert.org    bool write(Addr addr, size_t size, const char *data);
653536Sgblack@eecs.umich.edu
665569Snate@binkert.org  public:
675569Snate@binkert.org    RemoteGDB(System *system, ThreadContext *context);
685569Snate@binkert.org};
693536Sgblack@eecs.umich.edu
705569Snate@binkert.org} // namespace AlphaISA
713536Sgblack@eecs.umich.edu
725569Snate@binkert.org#endif // __ARCH_ALPHA_REMOTE_GDB_HH__
73