Reimplemented the gdb stub support for the 'g' command (read registers):

* Added an arch_debug_gdb_get_registers() interface that is supposed to provide
  the register values in the format expected by gdb and implemented it for x86.
* Reimplemented gdb_regreply() to use that. Also made it buffer overflow safe.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41880 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2011-06-03 15:35:10 +00:00
parent bb2420a474
commit 9536ec0297
7 changed files with 109 additions and 38 deletions
+2
View File
@@ -50,6 +50,8 @@ bool arch_is_debug_variable_defined(const char* variableName);
status_t arch_set_debug_variable(const char* variableName, uint64 value);
status_t arch_get_debug_variable(const char* variableName, uint64* value);
ssize_t arch_debug_gdb_get_registers(char* buffer, size_t bufferSize);
#ifdef __cplusplus
}
#endif