<commit_before>/*
 * Copyright (c) 2020 Intel Corporation.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @file
 * @brief IA-32 specific gdbstub interface header
 */

#ifndef ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_
#define ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_

#ifndef _ASMLANGUAGE

#include <stdint.h>
#include <toolchain.h>

/**
 * @brief Number of register used by gdbstub in IA-32
 */
#define ARCH_GDB_NUM_REGISTERS 16

#define GDB_STUB_NUM_REGISTERS 16

/**
 * @brief GDB interruption context
 *
 * The exception stack frame contents used by gdbstub. The contents
 * of this struct are used to display information about the current
 * cpu state.
 */

struct gdb_interrupt_ctx {
	uint32_t ss;
	uint32_t gs;
	uint32_t fs;
	uint32_t es;
	uint32_t ds;
	uint32_t edi;
	uint32_t esi;
	uint32_t ebp;
	uint32_t esp;
	uint32_t ebx;<commit_msg>x86: gdbstub: remove ARCH_GDB_NUM_REGISTERS<commit_after>/*
 * Copyright (c) 2020 Intel Corporation.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @file
 * @brief IA-32 specific gdbstub interface header
 */

#ifndef ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_
#define ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_

#ifndef _ASMLANGUAGE

#include <stdint.h>
#include <toolchain.h>

/**
 * @brief Number of register used by gdbstub in IA-32
 */
#define GDB_STUB_NUM_REGISTERS 16

/**
 * @brief GDB interruption context
 *
 * The exception stack frame contents used by gdbstub. The contents
 * of this struct are used to display information about the current
 * cpu state.
 */

struct gdb_interrupt_ctx {
	uint32_t ss;
	uint32_t gs;
	uint32_t fs;
	uint32_t es;
	uint32_t ds;
	uint32_t edi;
	uint32_t esi;
	uint32_t ebp;
	uint32_t esp;
	uint32_t ebx;
{'fraction_non_alphanumeric': 0.08703374777975133, 'fraction_numerical': 0.044997039668442866, 'mean_word_length': 4.314465408805032, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6622637', 'n_tokens_mistral': 724, 'n_tokens_neox': 672, 'n_words': 177}