* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
-#ifndef RTOS_H
-#define RTOS_H
+#ifndef OPENOCD_RTOS_RTOS_H
+#define OPENOCD_RTOS_RTOS_H
#include "server/server.h"
#include <jim-nvp.h>
struct thread_detail {
threadid_t threadid;
bool exists;
- char *display_str;
char *thread_name_str;
char *extra_info_str;
};
unsigned char stack_registers_size;
signed char stack_growth_direction;
unsigned char num_output_registers;
- unsigned char stack_alignment;
+ /* Some targets require evaluating the stack to determine the
+ * actual stack pointer for a process. If this field is NULL,
+ * just use stacking->stack_registers_size * stack_growth_direction
+ * to calculate adjustment.
+ */
+ int64_t (*calculate_process_stack)(struct target *target,
+ const uint8_t *stack_data,
+ const struct rtos_register_stacking *stacking,
+ int64_t stack_ptr);
const struct stack_register_offset *register_offsets;
};
/* function for handling symbol access */
int rtos_qsymbol(struct connection *connection, char const *packet, int packet_size);
-#endif /* RTOS_H */
+#endif /* OPENOCD_RTOS_RTOS_H */