From 92ff2667f4bf842f5b616fe51b37656b2be46ee2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 19 Apr 1999 22:34:20 +0000 Subject: Added debugging hints to the FAQ. --- doc/FAQ/FAQ.texi | 2 ++ doc/FAQ/Makefile | 10 +++++----- doc/FAQ/debug.t | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) (limited to 'doc/FAQ') diff --git a/doc/FAQ/FAQ.texi b/doc/FAQ/FAQ.texi index e024135240..cdb6abf9b4 100644 --- a/doc/FAQ/FAQ.texi +++ b/doc/FAQ/FAQ.texi @@ -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:: diff --git a/doc/FAQ/Makefile b/doc/FAQ/Makefile index dee4fcf27e..fd35ca8033 100644 --- a/doc/FAQ/Makefile +++ b/doc/FAQ/Makefile @@ -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 diff --git a/doc/FAQ/debug.t b/doc/FAQ/debug.t index 8026d93e11..90d923af71 100644 --- a/doc/FAQ/debug.t +++ b/doc/FAQ/debug.t @@ -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. -- cgit v1.2.3