dbg_hif.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* dbg_hif.h -- ARMulator debug interface: ARM6 Instruction Emulator.
  2. Copyright (C) 1994 Advanced RISC Machines Ltd.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, see <http://www.gnu.org/licenses/>. */
  13. #include <stdarg.h>
  14. typedef void Hif_DbgPrint (void *arg, const char *format, va_list ap);
  15. typedef void Hif_DbgPause (void *arg);
  16. typedef void Hif_WriteC (void *arg, int c);
  17. typedef int Hif_ReadC (void *arg);
  18. typedef int Hif_Write (void *arg, char const *buffer, int len);
  19. typedef char *Hif_GetS (void *arg, char *buffer, int len);
  20. typedef void Hif_RDIResetProc (void *arg);
  21. struct Dbg_HostosInterface
  22. {
  23. Hif_DbgPrint *dbgprint;
  24. Hif_DbgPause *dbgpause;
  25. void *dbgarg;
  26. Hif_WriteC *writec;
  27. Hif_ReadC *readc;
  28. Hif_Write *write;
  29. Hif_GetS *gets;
  30. void *hostosarg;
  31. Hif_RDIResetProc *reset;
  32. void *resetarg;
  33. };