This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rfa/doco] Srink the overlay diagram


Hello,

One of the things giving overfull hboxes is JimB's overlay diagram.  The 
attached patch srinks it a little.

ok?

Andrew

PS: This diagram isn't on the 5.1 branch.
2002-01-21  Andrew Cagney  <ac131313@redhat.com>

	* gdb.texinfo (How Overlays Work): Srink the overlay diagram.

Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.76
diff -p -r1.76 gdb.texinfo
*** gdb.texinfo	2002/01/20 11:59:38	1.76
--- gdb.texinfo	2002/01/21 05:07:10
*************** there.
*** 6420,6453 ****
  
  @example
  @group
!     Data                   Instruction            Larger
! Address Space             Address Space        Address Space
! +-----------+             +-----------+        +-----------+
! |           |             |           |        |           |
! +-----------+             +-----------+        +-----------+<-- overlay 1
! | program   |             |   main    |        |           | load address
! | variables |             |  program  |        | overlay 1 |
! | and heap  |             |           |    ,---|           |
! +-----------+             |           |    |   |           |
! |           |             +-----------+    |   +-----------+
! +-----------+             |           |    |   |           |
!                mapped --->+-----------+    /   +-----------+<-- overlay 2
!                address    |  overlay  | <-'    | overlay 2 | load address
!                           |   area    |  <-----|           |
!                           |           | <---.  +-----------+
!                           |           |     |  |           |
!                           +-----------+     |  |           |
!                           |           |     |  +-----------+<-- overlay 3
!                           +-----------+     `--|           | load address
!                                                | overlay 3 |
!                                                |           |
!                                                +-----------+
!                                                |           |
!                                                +-----------+
  
!     To map an overlay, copy its code from the larger address space
!     to the instruction address space.  Since the overlays shown here
!     all use the same mapped address, only one may be mapped at a time.
  @end group
  @end example
  
--- 6420,6452 ----
  
  @example
  @group
!     Data             Instruction            Larger
! Address Space       Address Space        Address Space
! +-----------+       +-----------+        +-----------+
! |           |       |           |        |           |
! +-----------+       +-----------+        +-----------+<-- overlay 1
! | program   |       |   main    |        |           | load address
! | variables |       |  program  |   ,----| overlay 1 |
! | and heap  |       |           |   |    |           |
! +-----------+       |           |   |    +-----------+
! |           |       +-----------+   |    |           |
! +-----------+       |           |   |    +-----------+<-- overlay 2
!                     |           |   |    |           | load address
!          mapped --->+-----------+   |  .-| overlay 2 |
!          address    |  overlay  | <-'  | |           |
!                     |   area    |  <---' +-----------+
!                     |           | <---.  |           |
!                     +-----------+     |  +-----------+<-- overlay 3
!                     |           |     |  |           | load address
!                     +-----------+     `--| overlay 3 |
!                                          |           |
!                                          +-----------+
!                                          |           |
!                                          +-----------+
  
! To map an overlay, copy its code from the larger address space to the
! instruction address space.  Since the overlays shown here all use the
! same mapped address, only one may be mapped at a time.
  @end group
  @end example
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]