mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
1216
cpukit/libdebugger/rtems-debugger-powerpc.c
Normal file
1216
cpukit/libdebugger/rtems-debugger-powerpc.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1797,7 +1797,16 @@ rtems_debugger_session(void)
|
||||
|
||||
if (rtems_debugger_server_flag(RTEMS_DEBUGGER_FLAG_RESET)) {
|
||||
rtems_debugger_printf("rtems-db: shutdown\n");
|
||||
/*
|
||||
* Wait a moment to let any disconnection protocol a transport has
|
||||
* complete. The legacy stack needs this to close the connection
|
||||
* to GDB and clean up.
|
||||
*/
|
||||
sleep(2);
|
||||
/*
|
||||
* No special exit code, the user will asked GDB to kill the
|
||||
* target
|
||||
*/
|
||||
rtems_fatal_error_occurred(1122);
|
||||
}
|
||||
|
||||
|
||||
@@ -92,9 +92,11 @@ typedef struct rtems_debugger_target_swbreak {
|
||||
} rtems_debugger_target_swbreak;
|
||||
|
||||
/**
|
||||
* Target memory update handler. If set this is called to modify
|
||||
* the executable memory. It may not be possible to make it
|
||||
* read/write.
|
||||
* Target executable memory update handler. If set the handler is
|
||||
* called to modify the executable memory. The target's executable
|
||||
* memory may not be directly writable. The handler is responsible for
|
||||
* making sure the code update is ready to be executed, for example
|
||||
* caches are flushed.
|
||||
*/
|
||||
typedef int (*rtems_debugger_target_code_writer)(void* address,
|
||||
const void* data,
|
||||
|
||||
@@ -20,6 +20,8 @@ links:
|
||||
uid: objdbgi386
|
||||
- role: build-dependency
|
||||
uid: objdbgmicroblaze
|
||||
- role: build-dependency
|
||||
uid: objdbpowerpc
|
||||
source:
|
||||
- cpukit/libdebugger/rtems-debugger-block.c
|
||||
- cpukit/libdebugger/rtems-debugger-bsp.c
|
||||
|
||||
15
spec/build/cpukit/objdbpowerpc.yml
Normal file
15
spec/build/cpukit/objdbpowerpc.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: objects
|
||||
cflags: []
|
||||
copyrights:
|
||||
- Copyright (C) 2023 Contemporary Software (CS)
|
||||
cppflags: []
|
||||
cxxflags: []
|
||||
enabled-by:
|
||||
- powerpc
|
||||
includes: []
|
||||
install: []
|
||||
links: []
|
||||
source:
|
||||
- cpukit/libdebugger/rtems-debugger-powerpc.c
|
||||
type: build
|
||||
@@ -20,6 +20,12 @@ enabled-by:
|
||||
- not: bsps/arm/stm32f4
|
||||
- i386
|
||||
- microblaze
|
||||
- and:
|
||||
- powerpc
|
||||
- not: bsps/powerpc/mpc55xxevb
|
||||
- not: bsps/powerpc/qoriq
|
||||
- not: bsps/powerpc/ss555
|
||||
- not: bsps/powerpc/t32mppc
|
||||
links: []
|
||||
name: BUILD_LIBDEBUGGER
|
||||
type: build
|
||||
|
||||
Reference in New Issue
Block a user