From: Richard Earnshaw <rearnsha@arm.com>
To: gdb-patches@sources.redhat.com
Cc: Richard.Earnshaw@arm.com
Subject: [RFC] fix ARI whinge about remote-rdi.c usage of true/false
Date: Tue, 07 May 2002 05:42:00 -0000 [thread overview]
Message-ID: <200205071241.NAA18595@cam-mail2.cambridge.arm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 488 bytes --]
The ARI script is currently whingeing incorrectly that remote-rdi.c is
using 'true' and 'false', presumably because it cannot detect that the use
is inside a multi-line string. The following patch will clear this up, but
it relies on ANSI-style string concatenation.
Are there any issues with doing it this way? In particular would this be
compatible with any future i18n work?
R.
* remote-rdi.c (_initialize_remote_rdi): Use ANSI-style string
concatenation for help messages.
[-- Attachment #2: gdb-rdi-tf.patch --]
[-- Type: text/x-patch , Size: 3426 bytes --]
Index: remote-rdi.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-rdi.c,v
retrieving revision 1.22
diff -p -r1.22 remote-rdi.c
*** remote-rdi.c 7 Mar 2002 15:29:53 -0000 1.22
--- remote-rdi.c 7 May 2002 12:36:50 -0000
*************** _initialize_remote_rdi (void)
*** 1023,1061 ****
c = add_cmd ("rdilogfile", class_maintenance,
rdilogfile_command,
! "Set filename for ADP packet log.\n\
! This file is used to log Angel Debugger Protocol packets.\n\
! With a single argument, sets the logfile name to that value.\n\
! Without an argument, shows the current logfile name.\n\
! See also: rdilogenable\n",
! &maintenancelist);
set_cmd_completer (c, filename_completer);
add_cmd ("rdilogenable", class_maintenance,
rdilogenable_command,
! "Set enable logging of ADP packets.\n\
! This will log ADP packets exchanged between gdb and the\n\
! rdi target device.\n\
! An argument of 1,t,true,y,yes will enable.\n\
! An argument of 0,f,false,n,no will disabled.\n\
! Withough an argument, it will display current state.\n",
&maintenancelist);
add_show_from_set
! (add_set_boolean_cmd ("rdiromatzero", no_class, &rom_at_zero,
! "Set target has ROM at addr 0.\n\
! A true value disables vector catching, false enables vector catching.\n\
! This is evaluated at the time the 'target rdi' command is executed\n",
! &setlist),
&showlist);
add_show_from_set
! (add_set_boolean_cmd ("rdiheartbeat", no_class, &rdi_heartbeat,
! "Set enable for ADP heartbeat packets.\n\
! I don't know why you would want this. If you enable them,\n\
! it will confuse ARM and EPI JTAG interface boxes as well\n\
! as the Angel Monitor.\n",
! &setlist),
&showlist);
}
--- 1023,1063 ----
c = add_cmd ("rdilogfile", class_maintenance,
rdilogfile_command,
! "Set filename for ADP packet log.\n"
! "This file is used to log Angel Debugger Protocol packets.\n"
! "With a single argument, sets the logfile name to that value.\n"
! "Without an argument, shows the current logfile name.\n"
! "See also: rdilogenable\n",
! &maintenancelist);
set_cmd_completer (c, filename_completer);
add_cmd ("rdilogenable", class_maintenance,
rdilogenable_command,
! "Set enable logging of ADP packets.\n"
! "This will log ADP packets exchanged between gdb and the\n"
! "rdi target device.\n"
! "An argument of 1, t, true, y or yes will enable.\n"
! "An argument of 0, f, false, n or no will disabled.\n"
! "Withough an argument, it will display current state.\n",
&maintenancelist);
add_show_from_set
! (add_set_boolean_cmd
! ("rdiromatzero", no_class, &rom_at_zero,
! "Set target has ROM at addr 0.\n"
! "A true value disables vector catching, false enables vector catching.\n"
! "This is evaluated at the time the 'target rdi' command is executed\n",
! &setlist),
&showlist);
add_show_from_set
! (add_set_boolean_cmd
! ("rdiheartbeat", no_class, &rdi_heartbeat,
! "Set enable for ADP heartbeat packets.\n"
! "I don't know why you would want this. If you enable them,\n"
! "it will confuse ARM and EPI JTAG interface boxes as well\n"
! "as the Angel Monitor.\n",
! &setlist),
&showlist);
}
next reply other threads:[~2002-05-07 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-07 5:42 Richard Earnshaw [this message]
2002-05-07 7:54 ` Daniel Jacobowitz
2002-05-07 8:57 ` Andrew Cagney
2002-05-07 9:02 ` Richard Earnshaw
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=200205071241.NAA18595@cam-mail2.cambridge.arm.com \
--to=rearnsha@arm.com \
--cc=Richard.Earnshaw@arm.com \
--cc=gdb-patches@sources.redhat.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