diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-12-16 06:14:00 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-12-16 06:14:00 +0000 |
commit | 077e0a524271358ddf0dda9993f3c3e4820b2481 (patch) | |
tree | 214a37a59db20bc8fb6b5082239b0e8198b15fc2 /gdb/doc | |
parent | 7b1f21e5c448158d2d5f6db508fa2dd4f391de41 (diff) | |
download | gdb-077e0a524271358ddf0dda9993f3c3e4820b2481.zip gdb-077e0a524271358ddf0dda9993f3c3e4820b2481.tar.gz gdb-077e0a524271358ddf0dda9993f3c3e4820b2481.tar.bz2 |
* gdb.texinfo (Omissions from Ada): Add missing GDB prompt in
examples.
(Additions to Ada): Likewise. Add the missing opening and closing
parenthesis of the GDB prompt in one of the examples.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 28 |
2 files changed, 21 insertions, 14 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index c67066e..94fc296 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2008-12-16 Joel Brobecker <brobecker@adacore.com> + + * gdb.texinfo (Omissions from Ada): Add missing GDB prompt in + examples. + (Additions to Ada): Likewise. Add the missing opening and closing + parenthesis of the GDB prompt in one of the examples. + 2008-12-14 Joel Brobecker <brobecker@adacore.com> * gdb.texinfo (Omissions from Ada): Remove incorrect documentation diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 29a55af..6ef124c 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -11334,12 +11334,12 @@ There is limited support for array and record aggregates. They are permitted only on the right sides of assignments, as in these examples: @smallexample -set An_Array := (1, 2, 3, 4, 5, 6) -set An_Array := (1, others => 0) -set An_Array := (0|4 => 1, 1..3 => 2, 5 => 6) -set A_2D_Array := ((1, 2, 3), (4, 5, 6), (7, 8, 9)) -set A_Record := (1, "Peter", True); -set A_Record := (Name => "Peter", Id => 1, Alive => True) +(@value{GDBP}) set An_Array := (1, 2, 3, 4, 5, 6) +(@value{GDBP}) set An_Array := (1, others => 0) +(@value{GDBP}) set An_Array := (0|4 => 1, 1..3 => 2, 5 => 6) +(@value{GDBP}) set A_2D_Array := ((1, 2, 3), (4, 5, 6), (7, 8, 9)) +(@value{GDBP}) set A_Record := (1, "Peter", True); +(@value{GDBP}) set A_Record := (Name => "Peter", Id => 1, Alive => True) @end smallexample Changing a @@ -11361,8 +11361,8 @@ you can assign a value with a different size of @code{Vals} with two assignments: @smallexample -set A_Rec.Len := 4 -set A_Rec := (Id => 42, Vals => (1, 2, 3, 4)) +(@value{GDBP}) set A_Rec.Len := 4 +(@value{GDBP}) set A_Rec := (Id => 42, Vals => (1, 2, 3, 4)) @end smallexample As this example also illustrates, @value{GDBN} is very loose about the usual @@ -11448,8 +11448,8 @@ The assignment statement is allowed as an expression, returning its right-hand operand as its value. Thus, you may enter @smallexample -set x := y + 3 -print A(tmp := y + 1) +(@value{GDBP}) set x := y + 3 +(@value{GDBP}) print A(tmp := y + 1) @end smallexample @item @@ -11459,8 +11459,8 @@ This allows, for example, complex conditional breaks: @smallexample -break f -condition 1 (report(i); k += 1; A(k) > 100) +(@value{GDBP}) break f +(@value{GDBP}) condition 1 (report(i); k += 1; A(k) > 100) @end smallexample @item @@ -11484,7 +11484,7 @@ The subtype used as a prefix for the attributes @t{'Pos}, @t{'Min}, and to write @smallexample -print 'max(x, y) +(@value{GDBP}) print 'max(x, y) @end smallexample @item @@ -11517,7 +11517,7 @@ For the rare occasions when you actually have to look at them, enclose them in angle brackets to avoid the lower-case mapping. For example, @smallexample -@value{GDBP} print <JMPBUF_SAVE>[0] +(@value{GDBP}) print <JMPBUF_SAVE>[0] @end smallexample @item |