ESP-IDF
s_scratch
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
s_scratch
s_scratch variable
Syntax
Show:
Summary
Declaration
Definition
from
esp_gdbstub_common.h:61
extern
esp_gdbstub_scratch_t
s_scratch
;
Implemented in
gdbstub.c:46
Examples
References
from
examples
Code
Location
Referrer
esp_gdbstub_scratch_t
s_scratch
;
gdbstub.c:46
extern
esp_gdbstub_scratch_t
s_scratch
;
esp_gdbstub_common.h:61
esp_gdbstub_gdb_regfile_t
*
gdb_local_regfile
=
&
s_scratch
.
regfile
;
gdbstub.c:47
if
(
s_scratch
.
state
==
GDBSTUB_STARTED
)
{
gdbstub.c:58
esp_gdbstub_panic_handler()
s_scratch
.
state
=
GDBSTUB_TASK_SUPPORT_DISABLED
;
gdbstub.c:60
esp_gdbstub_panic_handler()
}
else
if
(
s_scratch
.
state
==
GDBSTUB_NOT_STARTED
)
{
gdbstub.c:63
esp_gdbstub_panic_handler()
s_scratch
.
state
=
GDBSTUB_STARTED
;
gdbstub.c:64
esp_gdbstub_panic_handler()
memcpy
(
&
s_scratch
.
paniced_frame
,
frame
,
sizeof
(
*
frame
)
)
;
gdbstub.c:66
esp_gdbstub_panic_handler()
if
(
s_scratch
.
paniced_task_index
==
GDBSTUB_CUR_TASK_INDEX_UNKNOWN
)
{
gdbstub.c:70
esp_gdbstub_panic_handler()
set_active_task
(
s_scratch
.
paniced_task_index
)
;
gdbstub.c:73
esp_gdbstub_panic_handler()
s_scratch
.
signal
=
esp_gdbstub_get_signal
(
frame
)
;
gdbstub.c:78
esp_gdbstub_panic_handler()
esp_gdbstub_send_hex
(
s_scratch
.
signal
,
8
)
;
gdbstub.c:106
send_reason()
s_scratch
.
signal
=
esp_gdbstub_get_signal
(
regs_frame
)
;
gdbstub.c:235
gdbstub_handle_uart_int()
s_scratch
.
signal
=
5
;
/* esp_gdbstub_get_db_signal(regs_frame); */
gdbstub.c:305
gdbstub_handle_debug_int()
s_scratch
.
current_task_index
=
getActiveTaskNum
(
)
;
gdbstub.c:310
gdbstub_handle_debug_int()
uint32_t
*
p
=
(
uint32_t
*
)
&
s_scratch
.
regfile
;
gdbstub.c:385
handle_g_command()
for
(
int
i
=
0
;
i
<
sizeof
(
s_scratch
.
regfile
)
/
sizeof
(
*
p
)
;
++
i
)
{
gdbstub.c:387
handle_g_command()
uint32_t
*
p
=
(
uint32_t
*
)
&
s_scratch
.
regfile
;
gdbstub.c:396
handle_G_command()
for
(
int
i
=
0
;
i
<
sizeof
(
s_scratch
.
regfile
)
/
sizeof
(
*
p
)
;
++
i
)
{
gdbstub.c:397
handle_G_command()
}
else
if
(
s_scratch
.
state
!=
GDBSTUB_TASK_SUPPORT_DISABLED
)
{
gdbstub.c:778
esp_gdbstub_handle_command()
s_scratch
.
task_count
=
uxTaskGetSnapshotAll
(
s_scratch
.
tasks
,
GDBSTUB_TASKS_NUM
,
&
tcb_size
)
;
gdbstub.c:898
init_task_info()
if
(
index
>=
s_scratch
.
task_count
)
{
gdbstub.c:903
get_task_handle()
*
handle
=
(
TaskHandle_t
)
s_scratch
.
tasks
[
index
]
.
pxTCB
;
gdbstub.c:906
get_task_handle()
for
(
int
i
=
0
;
i
<
s_scratch
.
task_count
;
i
++
)
{
gdbstub.c:938
find_paniced_task_index()
s_scratch
.
paniced_task_index
=
i
;
gdbstub.c:940
find_paniced_task_index()
s_scratch
.
paniced_task_index
=
GDBSTUB_CUR_TASK_INDEX_UNKNOWN
;
gdbstub.c:944
find_paniced_task_index()
if
(
index
==
s_scratch
.
paniced_task_index
)
{
gdbstub.c:950
set_active_task()
esp_gdbstub_frame_to_regfile
(
&
s_scratch
.
paniced_frame
,
&
s_scratch
.
regfile
)
;
gdbstub.c:952
set_active_task()
esp_gdbstub_tcb_to_regfile
(
handle
,
&
s_scratch
.
regfile
)
;
gdbstub.c:961
set_active_task()
s_scratch
.
current_task_index
=
index
;
gdbstub.c:964
set_active_task()
}
else
if
(
requested_task_index
>=
s_scratch
.
task_count
||
gdbstub.c:977
handle_H_command()
esp_gdbstub_send_hex
(
task_index_to_gdb_tid
(
s_scratch
.
current_task_index
)
,
32
)
;
gdbstub.c:998
handle_qC_command()
for
(
size_t
i
=
0
;
i
<
s_scratch
.
task_count
;
i
++
)
{
gdbstub.c:1004
getActiveTaskNum()
return
s_scratch
.
task_count
;
gdbstub.c:1012
getActiveTaskNum()
assert
(
s_scratch
.
task_count
>
0
)
;
/* There should be at least one task */
gdbstub.c:1038
handle_qfThreadInfo_command()
s_scratch
.
thread_info_index
=
1
;
gdbstub.c:1040
handle_qfThreadInfo_command()
int
task_index
=
s_scratch
.
thread_info_index
;
gdbstub.c:1045
handle_qsThreadInfo_command()
if
(
task_index
==
s_scratch
.
task_count
)
{
gdbstub.c:1046
handle_qsThreadInfo_command()
send_single_thread_info
(
s_scratch
.
thread_info_index
)
;
gdbstub.c:1051
handle_qsThreadInfo_command()
s_scratch
.
thread_info_index
++
;
gdbstub.c:1052
handle_qsThreadInfo_command()
uint32_t
level
=
s_scratch
.
regfile
.
ps
;
gdbstub_xtensa.c:325
esp_gdbstub_do_step()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
s_scratch
is read by 17 functions:
All items filtered out
s_scratch
esp_gdbstub_panic_handler()
send_reason()
gdbstub_handle_uart_int()
gdbstub_handle_debug_int()
handle_g_command()
handle_G_command()
esp_gdbstub_handle_command()
init_task_info()
get_task_handle()
find_paniced_task_index()
set_active_task()
handle_H_command()
handle_qC_command()
getActiveTaskNum()
handle_qfThreadInfo_command()
handle_qsThreadInfo_command()
esp_gdbstub_do_step()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out