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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user