remote_gdb.hh revision 10600
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
368229Snate@binkert.org#include "arch/alpha/kgdb.h"
373536Sgblack@eecs.umich.edu#include "arch/alpha/types.hh"
388229Snate@binkert.org#include "base/pollevent.hh"
393536Sgblack@eecs.umich.edu#include "base/remote_gdb.hh"
408229Snate@binkert.org#include "base/socket.hh"
413536Sgblack@eecs.umich.edu#include "cpu/pc_event.hh"
423536Sgblack@eecs.umich.edu
433536Sgblack@eecs.umich.educlass System;
443536Sgblack@eecs.umich.educlass ThreadContext;
453536Sgblack@eecs.umich.edu
465569Snate@binkert.orgnamespace AlphaISA {
475569Snate@binkert.org
485569Snate@binkert.orgclass RemoteGDB : public BaseRemoteGDB
493536Sgblack@eecs.umich.edu{
505569Snate@binkert.org  protected:
515569Snate@binkert.org    Addr notTakenBkpt;
525569Snate@binkert.org    Addr takenBkpt;
533536Sgblack@eecs.umich.edu
545569Snate@binkert.org  protected:
555569Snate@binkert.org    void getregs();
565569Snate@binkert.org    void setregs();
573536Sgblack@eecs.umich.edu
585569Snate@binkert.org    void clearSingleStep();
595569Snate@binkert.org    void setSingleStep();
603536Sgblack@eecs.umich.edu
615569Snate@binkert.org    // Machine memory
625569Snate@binkert.org    bool acc(Addr addr, size_t len);
635569Snate@binkert.org    bool write(Addr addr, size_t size, const char *data);
643536Sgblack@eecs.umich.edu
658700Ssteve.reinhardt@amd.com    virtual bool insertHardBreak(Addr addr, size_t len);
668700Ssteve.reinhardt@amd.com
675569Snate@binkert.org  public:
685569Snate@binkert.org    RemoteGDB(System *system, ThreadContext *context);
695569Snate@binkert.org};
703536Sgblack@eecs.umich.edu
715569Snate@binkert.org} // namespace AlphaISA
723536Sgblack@eecs.umich.edu
735569Snate@binkert.org#endif // __ARCH_ALPHA_REMOTE_GDB_HH__
74