mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
This commit add to GDBstup:
1. Multicore suupor 2. Stepping 3. Console output 4. Update example + readme 5. Jumps
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
@@ -29,6 +21,17 @@ typedef struct {
|
||||
uint32_t pc;
|
||||
} esp_gdbstub_gdb_regfile_t;
|
||||
|
||||
|
||||
// Amount of HW breakpoints used in GDB
|
||||
#ifndef GDB_BP_SIZE
|
||||
#define GDB_BP_SIZE 2
|
||||
#endif // GDB_BP_SIZE
|
||||
|
||||
// Amount of HW watchpoints used in GDB
|
||||
#ifndef GDB_WP_SIZE
|
||||
#define GDB_WP_SIZE 2
|
||||
#endif // GDB_WP_SIZE
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -47,10 +47,37 @@ void esp_gdbstub_tcb_to_regfile(TaskHandle_t tcb, esp_gdbstub_gdb_regfile_t *dst
|
||||
|
||||
int esp_gdbstub_get_signal(const esp_gdbstub_frame_t *frame)
|
||||
{
|
||||
return 5; // SIGTRAP, see IDF-2490
|
||||
return 5; // SIGTRAP, see IDF-2490
|
||||
}
|
||||
|
||||
void _xt_gdbstub_int(void * frame)
|
||||
void _xt_gdbstub_int(void *frame)
|
||||
{
|
||||
}
|
||||
|
||||
void esp_gdbstub_init_dports()
|
||||
{
|
||||
}
|
||||
|
||||
void esp_gdbstub_stall_other_cpus_start()
|
||||
{
|
||||
}
|
||||
|
||||
void esp_gdbstub_stall_other_cpus_end()
|
||||
{
|
||||
}
|
||||
|
||||
void esp_gdbstub_clear_step()
|
||||
{
|
||||
}
|
||||
|
||||
void esp_gdbstub_do_step()
|
||||
{
|
||||
}
|
||||
|
||||
void esp_gdbstub_trigger_cpu(void)
|
||||
{
|
||||
}
|
||||
|
||||
void esp_gdbstub_set_register(esp_gdbstub_frame_t *frame, uint32_t reg_index, uint32_t value)
|
||||
{
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user