mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
Added debugging hints to the FAQ.
This commit is contained in:
1 parent
07b8f2689e
commit
92ff2667f4
3 files changed
+10
-8
No files matched your search
@@ -63,6 +63,7 @@ END-INFO-DIR-ENTRY
|
||||
@c The alternative is to rework a sentence to avoid this problem.
|
||||
|
||||
@include basic.texi
|
||||
@include debug.texi
|
||||
|
||||
@ifinfo
|
||||
@node Top, Basic Information, (dir), (dir)
|
||||
@@ -77,6 +78,7 @@ Common questions have been divided into the following categories.
|
||||
|
||||
@menu
|
||||
* Basic Information::
|
||||
* Debugging Hints::
|
||||
@end menu
|
||||
|
||||
@c * Command and Variable Index::
|
||||
|
||||
+5
-5
@@ -19,7 +19,7 @@ dirs:
|
||||
COMMON_FILES=../common/cpright.texi ../common/setup.texi
|
||||
|
||||
GENERATED_FILES= \
|
||||
basic.texi
|
||||
basic.texi debug.texi
|
||||
|
||||
FILES=$(PROJECT).texi $(GENERATED_FILES)
|
||||
|
||||
@@ -65,7 +65,7 @@ basic.texi: basic.t Makefile
|
||||
-u "Top" \
|
||||
-n "" ${*}.t
|
||||
|
||||
#target.texi: target.t Makefile
|
||||
# $(BMENU) -p "Introduction" \
|
||||
# -u "Top" \
|
||||
# -n "Makefiles" ${*}.t
|
||||
debug.texi: debug.t Makefile
|
||||
$(BMENU) -c -p "" \
|
||||
-u "Top" \
|
||||
-n "" ${*}.t
|
||||
+3
-3
@@ -27,7 +27,7 @@ one free block of memory in the workspace (very likely if no task
|
||||
deletions). Then do this:
|
||||
|
||||
(gdb) p *(Heap_Block *)_Workspace_Area->first
|
||||
$3 = {back_flag = 1, front_flag = 68552, next = 0x1e260, previous = 0x1e25c}
|
||||
$3 = @{back_flag = 1, front_flag = 68552, next = 0x1e260, previous = 0x1e25c@}
|
||||
|
||||
In this case, I had 68552 bytes left in the workspace.
|
||||
|
||||
@@ -36,8 +36,8 @@ In this case, I had 68552 bytes left in the workspace.
|
||||
The C heap is a region so this should work:
|
||||
|
||||
(gdb) p *((Region_Control *)_Region_Information->local_table[1])->Memory->first
|
||||
$9 = {back_flag = 1, front_flag = 8058280, next = 0x7ea5b4,
|
||||
previous = 0x7ea5b0}
|
||||
$9 = @{back_flag = 1, front_flag = 8058280, next = 0x7ea5b4,
|
||||
previous = 0x7ea5b0@}
|
||||
|
||||
In this case, the first block on the C Heap has 8,058,280 bytes left.
|
||||
|
||||
Reference in new issue
Block a user