remote_gdb.cc (11658:370d69b00fcf) | remote_gdb.cc (11793:ef606668d247) |
---|---|
1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2002-2005 The Regents of The University of Michigan 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 105 unchanged lines hidden (view full) --- 114/* 115 * $NetBSD: kgdb_stub.c,v 1.8 2001/07/07 22:58:00 wdk Exp $ 116 * 117 * Taken from NetBSD 118 * 119 * "Stub" to allow remote cpu to debug over a serial line using gdb. 120 */ 121 | 1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2002-2005 The Regents of The University of Michigan 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 105 unchanged lines hidden (view full) --- 114/* 115 * $NetBSD: kgdb_stub.c,v 1.8 2001/07/07 22:58:00 wdk Exp $ 116 * 117 * Taken from NetBSD 118 * 119 * "Stub" to allow remote cpu to debug over a serial line using gdb. 120 */ 121 |
122#include <signal.h> | 122#include "base/remote_gdb.hh" 123 |
123#include <sys/signal.h> 124#include <unistd.h> 125 | 124#include <sys/signal.h> 125#include <unistd.h> 126 |
127#include <csignal> |
|
126#include <cstdio> 127#include <string> 128 129#include "arch/vtophys.hh" 130#include "base/intmath.hh" | 128#include <cstdio> 129#include <string> 130 131#include "arch/vtophys.hh" 132#include "base/intmath.hh" |
131#include "base/remote_gdb.hh" | |
132#include "base/socket.hh" 133#include "base/trace.hh" 134#include "config/the_isa.hh" 135#include "cpu/base.hh" 136#include "cpu/static_inst.hh" 137#include "cpu/thread_context.hh" 138#include "debug/GDBAll.hh" | 133#include "base/socket.hh" 134#include "base/trace.hh" 135#include "config/the_isa.hh" 136#include "cpu/base.hh" 137#include "cpu/static_inst.hh" 138#include "cpu/thread_context.hh" 139#include "debug/GDBAll.hh" |
139#include "mem/port.hh" | |
140#include "mem/fs_translating_port_proxy.hh" | 140#include "mem/fs_translating_port_proxy.hh" |
141#include "mem/port.hh" |
|
141#include "mem/se_translating_port_proxy.hh" 142#include "sim/full_system.hh" 143#include "sim/system.hh" 144 145using namespace std; 146using namespace TheISA; 147 148#ifndef NDEBUG --- 922 unchanged lines hidden --- | 142#include "mem/se_translating_port_proxy.hh" 143#include "sim/full_system.hh" 144#include "sim/system.hh" 145 146using namespace std; 147using namespace TheISA; 148 149#ifndef NDEBUG --- 922 unchanged lines hidden --- |