From: "Dmitry S. Sivachenko" <dima@Chg.RU>
To: gdb-patches@sourceware.cygnus.com
Subject: Patch to gdbmi.texinfo
Date: Mon, 21 Aug 2000 13:03:00 -0000 [thread overview]
Message-ID: <200008212003.AAA28959@chg.ru> (raw)
Hello!
Please apply this patch to gdbmi.texinfo.
It was made agaist latest revision of gdbmi.texinfo.
It fixes several typos and markup bugs, missed by me in my previous patch.
Thank you in advance,
Dima.
Index: gdbmi.texinfo
===================================================================
RCS file: /home/cvs/en-gdbman/gdbmi.texinfo,v
retrieving revision 1.3
diff -u -r1.3 gdbmi.texinfo
--- gdbmi.texinfo 2000/07/29 14:29:42 1.3
+++ gdbmi.texinfo 2000/08/19 12:05:07
@@ -158,7 +158,7 @@
@code{[} " --" @code{]} ( " " @var{parameter} )* @var{nl}}
@item @var{token} @expansion{}
-@code{"any sequence of digits"}
+"any sequence of digits"
@item @var{option} @expansion{}
@code{"-" @var{parameter} [ " " @var{parameter} ]}
@@ -167,7 +167,7 @@
@code{@var{non-blank-sequence} | @var{c-string}}
@item @var{operation} @expansion{}
-@emph{any of the operations described in this document}
+@emph{any of the operations described in this chapter}
@item @var{non-blank-sequence} @expansion{}
@emph{anything, provided it doesn't contain special characters such as
@@ -180,6 +180,7 @@
@code{CR | CR-LF}
@end table
+@noindent
Notes:
@itemize @bullet
@@ -193,7 +194,7 @@
@item
Some @sc{mi} commands accept optional arguments as part of the parameter
-list. Each option is identified by a leading @samp{-} (dash) and may be
+list. Each option is identified by a leading @samp{-} (dash) and may be
followed by an optional argument parameter. Options occur first in the
parameter list and can be delimited from normal parameters using
@samp{--} (this is useful when some parameters begin with a dash).
@@ -217,7 +218,7 @@
The output from @sc{gdb/mi} consists of zero or more out-of-band records
followed, optionally, by a single result record. This result record
is for the most recent command. The sequence of output records is
-terminated by @samp{(gdb)}.
+terminated by @samp{(@value{GDBP})}.
If an input command was prefixed with a @code{@var{token}} then the
corresponding output for that command will also be prefixed by that same
@@ -283,6 +284,7 @@
@emph{any sequence of digits}.
@end table
+@noindent
In addition, the following are still being developed:
@table @code
@@ -290,6 +292,7 @@
This action is currently undefined.
@end table
+@noindent
Notes:
@itemize @bullet
@@ -299,8 +302,8 @@
@item
The @code{@var{token}} is from the corresponding request. If an execution
command is interrupted by the @samp{-exec-interrupt} command, the
-@var{token} associated with the `*stopped' message is the one of the
-original execution command, not the one of the interrupt-command.
+@var{token} associated with the @samp{*stopped} message is the one of the
+original execution command, not the one of the interrupt command.
@item
@cindex status output in @sc{gdb/mi}
@@ -359,7 +362,7 @@
@example
-> -stop
-<- (gdb)
+<- (@value{GDBP})
@end example
@noindent
@@ -367,7 +370,7 @@
@example
<- *stop,reason="stop",address="0x123",source="a.c:123"
-<- (gdb)
+<- (@value{GDBP})
@end example
@subsubheading Simple CLI Command
@@ -378,7 +381,7 @@
@example
-> print 1+2
<- ~3\n
-<- (gdb)
+<- (@value{GDBP})
@end example
@subsubheading Command With Side Effects
@@ -386,7 +389,7 @@
@example
-> -symbol-file xyz.exe
<- *breakpoint,nr="3",address="0x123",source="a.c:123"
-<- (gdb)
+<- (@value{GDBP})
@end example
@subsubheading A Bad Command
@@ -396,7 +399,7 @@
@example
-> -rubbish
<- error,"Rubbish not found"
-<- (gdb)
+<- (@value{GDBP})
@end example
@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -437,8 +440,8 @@
@table @code
@findex ^done
@item "^done" [ "," @var{results} ]
-The synchronous operation was successful, @code{@var{results}} is the return
-value.
+The synchronous operation was successful, @code{@var{results}} are the return
+values.
@item "^running"
@findex ^running
@@ -503,10 +506,10 @@
@section @sc{gdb/mi} Command Description Format
The remaining sections describe blocks of commands. Each block of
-commands is laid out in a fashion similar to this chapter.
+commands is laid out in a fashion similar to this section.
Note the the line breaks shown in the examples are here only for
-readability. They don't appear in the real output.
+readability. They don't appear in the real output.
Also note that the commands with a non-available example (N.A.@:) are
not yet implemented.
@@ -596,7 +599,7 @@
@end ignore
-@subheading The -break-condition Command
+@subheading The @code{-break-condition} Command
@findex -break-condition
@subsubheading Synopsis
@@ -852,8 +855,8 @@
number of times the breakpoint has been hit
@end table
-If there are no breakpoints or watchpoints, the BreakpointTable field is
-an empty list.
+If there are no breakpoints or watchpoints, the @code{BreakpointTable}
+field is an empty list.
@subsubheading @value{GDBN} Command
@@ -1053,7 +1056,7 @@
@subsubheading Result
-The output for each instruction is composed of two fields:
+The output for each instruction is composed of four fields:
@itemize @bullet
@item Address
@@ -1406,7 +1409,7 @@
in @samp{nr-bytes} and the starting address used to read memory in
@samp{addr}.
-The address of the next/previous page or row is available in
+The address of the next/previous row or page is available in
@samp{next-row} and @samp{prev-row}, @samp{next-page} and
@samp{prev-page}.
@@ -1447,7 +1450,7 @@
@end smallexample
Read thirty two bytes of memory starting at @code{bytes+16} and format
-as eight rows of four columns. Include a string encoding with @code{x}
+as eight rows of four columns. Include a string encoding with @samp{x}
used as the non-printable character.
@smallexample
@@ -1621,7 +1624,7 @@
-environment-path ( @var{pathdir} )+
@end example
-Add directories to beginning of search path for object files.
+Add directories @var{pathdir} to beginning of search path for object files.
@subsubheading @value{GDBN} Command
@@ -1672,7 +1675,7 @@
it doesn't encounter any breakpoints. In this case the output will
include an exit code, if the program has exited exceptionally.
-@subsubheading Examples:
+@subsubheading Examples
@noindent
Program exited normally:
@@ -2118,7 +2121,7 @@
Asynchronous command. Executes the inferior until the @var{location}
specified in the argument is reached. If there is no argument, the inferior
executes until a source line greater than the current one is reached.
-The reason for stopping in this case will be ``location-reached''.
+The reason for stopping in this case will be @samp{location-reached}.
@subsubheading @value{GDBN} Command
@@ -3316,7 +3319,7 @@
@subsubheading Example
-No threads present, besides the main process.
+No threads present, besides the main process:
@smallexample
(@value{GDBP})
@@ -3326,7 +3329,7 @@
@end smallexample
-Several threads.
+Several threads:
@smallexample
(@value{GDBP})
@@ -3445,10 +3448,10 @@
least, the following operations:
@itemize @bullet
-@item -gdb-show output-radix
-@item -stack-list-arguments
-@item -stack-list-locals
-@item -stack-select-frame
+@item @code{-gdb-show} @code{output-radix}
+@item @code{-stack-list-arguments}
+@item @code{-stack-list-locals}
+@item @code{-stack-select-frame}
@end itemize
@subheading Introduction to Variable Objects in @sc{gdb/mi}
@@ -3479,29 +3482,29 @@
@item @strong{Operation}
@tab @strong{Description}
-@item -var-create
+@item @code{-var-create}
@tab create a variable object
-@item -var-delete
+@item @code{-var-delete}
@tab delete the variable object and its children
-@item -var-set-format
+@item @code{-var-set-format}
@tab set the display format of this variable
-@item -var-show-format
+@item @code{-var-show-format}
@tab show the display format of this variable
-@item -var-info-num-children
+@item @code{-var-info-num-children}
@tab tells how many children this object has
-@item -var-list-children
+@item @code{-var-list-children}
@tab return a list of the object's children
-@item -var-info-type
+@item @code{-var-info-type}
@tab show the type of this variable object
-@item -var-info-expression
+@item @code{-var-info-expression}
@tab print what this variable object represents
-@item -var-show-attributes
+@item @code{-var-show-attributes}
@tab is this variable editable? does it exist here?
-@item -var-evaluate-expression
+@item @code{-var-evaluate-expression}
@tab get the value of this variable
-@item -var-assign
+@item @code{-var-assign}
@tab set the value of this variable
-@item -var-update
+@item @code{-var-update}
@tab update the variable and its children
@end multitable
@@ -3526,7 +3529,7 @@
The @var{name} parameter is the string by which the object can be
referenced. It must be unique. If @samp{-} is specified, the varobj
-system will generate a string "varNNNNNN'' automatically. It will be
+system will generate a string ``varNNNNNN'' automatically. It will be
unique provided that one does not specify @var{name} on that format.
The command fails if a duplicate name is found.
@@ -3542,10 +3545,10 @@
@samp{*@var{addr}}, where @var{addr} is the address of a memory cell
@item
-@samp{*@var{addr}-@var{addr}} -- a memory address range (TBD)
+@samp{*@var{addr}-@var{addr}} --- a memory address range (TBD)
@item
-@samp{$@var{regname}} -- a CPU register name
+@samp{$@var{regname}} --- a CPU register name
@end itemize
@subsubheading Result
@@ -3605,7 +3608,7 @@
Returns the format used to display the value of the object @var{name}.
@example
- format @expansion{}
+ @var{format} @expansion{}
@var{format-spec}
@end example
@@ -3639,7 +3642,7 @@
@example
numchild=@var{n},children=@{@{name=@var{name},
- numchild=@var{n},type=@var{type}@},(repeats N times)@}
+ numchild=@var{n},type=@var{type}@},@r{(repeats N times)}@}
@end example
@@ -3724,7 +3727,7 @@
@end example
Assigns the value of @var{expression} to the variable object specified
-by @var{name}. The object must be ``editable''.
+by @var{name}. The object must be @samp{editable}.
@subheading The @code{-var-update} Command
@findex -var-update
@@ -3768,16 +3771,16 @@
The output from @sc{gdb/mi} consists of zero or more out-of-band records
optionally followed by a single result record, the result record being
for the most recent command input. The sequence is terminated by
-``(@value{GDBP})''.
+@samp{(@value{GDBP})}.
Asynchronous @sc{gdb/mi} output is similar.
Each output record directly associated with an input command is prefixed
-by the input commands @code{@var{token}}.
+by the input command's @code{@var{token}}.
@table @code
@item @var{output} @expansion{}
-@{ @var{out-of-band-record} @} @code{[} @var{result-record} @code{]} "(@value{GDBP})" @var{nl}
+@{ @var{out-of-band-record} @} @code{[} @var{result-record} @code{]} "@code{(@value{GDBP})}" @var{nl}
@item @var{result-record} @expansion{}
@code{[} @var{token} @code{]} "^" @var{result-class} @{ "," @var{result} @} @var{nl}
@@ -3862,38 +3865,38 @@
@item
The @code{@var{token}} is from the corresponding request. If an execution
-command is interrupted by the -exec-interrupt command, the token
+command is interrupted by the @code{-exec-interrupt} command, the token
associated with the `*stopped' message is the one of the original
-execution command, not the one of the interrupt-command.
+execution command, not the one of the interrupt command.
@item
-@var{status-async-output} contains on-going status information about the progress
-of a slow operation. It can be discarded. All status output is prefixed by
-the prefix `+'.
+@var{status-async-output} contains on-going status information about the
+progress of a slow operation. It can be discarded. All status output is
+prefixed by the prefix @samp{+}.
@item
@var{exec-async-output} contains asynchronous state change on the target
-(stopped, started, disappeared). All async output is prefixed by
-the prefix `*'.
+(stopped, started, disappeared). All async output is prefixed by
+the prefix @samp{*}.
@item
-@var{notify-async-output} contains supplementary information that the client should
-handle (new breakpoint information). All notify output is prefixed by
-the prefix `='.
+@var{notify-async-output} contains supplementary information that the
+client should handle (new breakpoint information). All notify output is
+prefixed by the prefix @samp{=}.
@item
@var{console-stream-output} is output that should be displayed as is, in the
-console. It is the textual response to a CLI command. All the console
-output is prefixed by the prefix ``~''.
+console. It is the textual response to a CLI command. All the console
+output is prefixed by the prefix @samp{~}.
@item
@var{target-stream-output} is the output produced by the target program.
-All the target output is prefixed by the prefix ``@@''.
+All the target output is prefixed by the prefix @samp{@@}.
@item
@var{log-stream-output} is output text coming from @value{GDBN}'s
internals, for instance messages that should be displayed as part of an
-error log. All the log output is prefixed by the prefix ``&''.
+error log. All the log output is prefixed by the prefix @samp{&}.
@end itemize
From chastain@cygnus.com Mon Aug 21 13:16:00 2000
From: Michael Elizabeth Chastain <chastain@cygnus.com>
To: gdb-patches@sourceware.cygnus.com
Subject: [RFA] [PATCH] handle timeout in read_frame
Date: Mon, 21 Aug 2000 13:16:00 -0000
Message-id: <200008212018.NAA01965@train2.cygnus.com>
X-SW-Source: 2000-08/msg00281.html
Content-length: 2111
This patch fixes a timeout bug in remote.c.
If a timeout occurs while reading the packet checksum, read_frame
treats the timeout as an ordinary input character with a value of "-2".
gdb not only loses that frame: it throws an error out of fromhex.
This causes a lot of random testsuite failures with the message "Reply
contains invalid hex digit -2".
Testing: first, find a host, target, and testsuite that suffer from the
"invalid hex digit -2" problem. I used a Red Hat Linux 6.0 box for the
host, i386-pc-aout for the target and call-ar-st.exp for the testsuite.
Here's an excerpt from gdb.log before the patch:
Reply contains invalid hex digit -2
FAIL: gdb.base/call-ar-st.exp: (timeout) print print_array_rep(*list1, *list2, *list3)
After the patch, these errors go away.
Michael Elizabeth Chastain
<chastain@redhat.com>
"love without fear"
===
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.21
diff -c -3 -p -r1.21 remote.c
*** remote.c 2000/08/18 22:52:23 1.21
--- remote.c 2000/08/21 19:50:11
*************** read_frame (char *buf,
*** 3871,3882 ****
case '#':
{
unsigned char pktcsum;
buf[bc] = '\0';
! pktcsum = fromhex (readchar (remote_timeout)) << 4;
! pktcsum |= fromhex (readchar (remote_timeout));
if (csum == pktcsum)
return bc;
--- 3871,3895 ----
case '#':
{
unsigned char pktcsum;
+ int check_0 = 0;
+ int check_1 = 0;
buf[bc] = '\0';
! check_0 = readchar (remote_timeout);
! if (check_0 >= 0)
! check_1 = readchar (remote_timeout);
!
! if (check_0 == SERIAL_TIMEOUT || check_1 == SERIAL_TIMEOUT)
! {
! if (remote_debug)
! fputs_filtered ("Timeout in checksum, retrying\n", gdb_stdlog);
! return -1;
! }
! else if (check_0 < 0 || check_1 < 0)
! error ("Communication error in checksum");
+ pktcsum = (fromhex (check_0) << 4) | fromhex (check_1);
if (csum == pktcsum)
return bc;
From taylor@cygnus.com Mon Aug 21 14:32:00 2000
From: David Taylor <taylor@cygnus.com>
To: gdb-patches@sourceware.cygnus.com
Subject: gdbarch.sh -- sh vs bash
Date: Mon, 21 Aug 2000 14:32:00 -0000
Message-id: <200008212131.RAA29172@texas.cygnus.com>
X-SW-Source: 2000-08/msg00282.html
Content-length: 1102
gdbarch.sh used to have the line:
#!/usr/local/bin/bash -u
but it was recently changed to:
#!/bin/sh -u
Unfortunately, sh doesn't currently work for this script.
Using /bin/sh (on Solaris 7 anyway), does not produce any errors but
generates a gdbarch.h which is significantly different than that
produced by bash -- in particular, if you make no changes to the
script and regenerate the gdbarch.? files, the sh generated copy of
gdbarch.h (possibly gdbarch.c as well -- I didn't check) has code
like:
/* Number of bits in a float for the target machine. */
extern float_bit gdbarch_8 * sizeof (float) (struct gdbarch *gdbarch);
extern void set_gdbarch_8 * sizeof (float) (struct gdbarch *gdbarch, float_bit 8 * sizeof (float));
#if GDB_MULTI_ARCH
#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (int)
#define int (gdbarch_8 * sizeof (float) (current_gdbarch))
#endif
#endif
which results in most of gdb not compiling...
So, either bash needs to be used to regenerate the files or the
differences between bash and sh need to be investigated...
From kevinb@cygnus.com Mon Aug 21 15:08:00 2000
From: Kevin Buettner <kevinb@cygnus.com>
To: David Taylor <taylor@cygnus.com>, gdb-patches@sourceware.cygnus.com
Subject: Re: gdbarch.sh -- sh vs bash
Date: Mon, 21 Aug 2000 15:08:00 -0000
Message-id: <1000821220839.ZM27382@ocotillo.lan>
References: <200008212131.RAA29172@texas.cygnus.com> <taylor@cygnus.com>
X-SW-Source: 2000-08/msg00283.html
Content-length: 364
On Aug 21, 5:31pm, David Taylor wrote:
> So, either bash needs to be used to regenerate the files or the
> differences between bash and sh need to be investigated...
It should also be noted that versions of bash before version 2.X (for
some value of X) will not work either. Specifically, 1.14.7 (which is
the default on Red Hat 6.2 box) will not work.
Kevin
From brolley@redhat.com Tue Aug 22 13:26:00 2000
From: Dave Brolley <brolley@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: sim: rfa: disassembly in cgen-based trace
Date: Tue, 22 Aug 2000 13:26:00 -0000
Message-id: <39A2E246.782E40A9@redhat.com>
X-SW-Source: 2000-08/msg00284.html
Content-length: 616
Hi,
The attached patch fixes a problem with incorrectly displayed
disassembly in the trace output of cgen-based simulators.
Basically, the trace output was accessing fields which were not
ever written into the insn word. The patch ensures that, when an
insn fits into an integer, then the entire insn is written there,
not just the bits represented by base-insn-bitsize. Insns which
do not fit into an integer are handled by another mechanism.
OK to commit?
Dave
2000-08-22 Dave Brolley <brolley@redhat.com>
* cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
in insn_value if it will fit.
next reply other threads:[~2000-08-21 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-21 13:03 Dmitry S. Sivachenko [this message]
2000-08-23 3:49 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2000-07-23 9:33 Dmitry S. Sivachenko
2000-07-23 12:18 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200008212003.AAA28959@chg.ru \
--to=dima@chg.ru \
--cc=gdb-patches@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox