remote_gdb.hh (11274:d9a0136ab8cc) | remote_gdb.hh (12019:65939e37768a) |
---|---|
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 --- 189 unchanged lines hidden (view full) --- 198 BaseGdbRegCache(BaseRemoteGDB *g) : gdb(g) 199 {} 200 201 protected: 202 BaseRemoteGDB *gdb; 203 }; 204 205 protected: | 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 --- 189 unchanged lines hidden (view full) --- 198 BaseGdbRegCache(BaseRemoteGDB *g) : gdb(g) 199 {} 200 201 protected: 202 BaseRemoteGDB *gdb; 203 }; 204 205 protected: |
206 uint8_t getbyte(); 207 void putbyte(uint8_t b); | 206 bool getbyte(uint8_t &b); 207 bool putbyte(uint8_t b); |
208 209 int recv(char *data, int len); | 208 209 int recv(char *data, int len); |
210 void send(const char *data); | 210 ssize_t send(const char *data); |
211 212 protected: 213 // Machine memory 214 virtual bool read(Addr addr, size_t size, char *data); 215 virtual bool write(Addr addr, size_t size, const char *data); 216 217 template <class T> T read(Addr addr); 218 template <class T> void write(Addr addr, T data); --- 126 unchanged lines hidden --- | 211 212 protected: 213 // Machine memory 214 virtual bool read(Addr addr, size_t size, char *data); 215 virtual bool write(Addr addr, size_t size, const char *data); 216 217 template <class T> T read(Addr addr); 218 template <class T> void write(Addr addr, T data); --- 126 unchanged lines hidden --- |