Registered User (Merge articles) |
Registered User (Merge articles) |
||
Line 5: | Line 5: | ||
Usage: <nowiki>{{</nowiki>GDB$}} | Usage: <nowiki>{{</nowiki>GDB$}} | ||
{{Important | Do not insert any space between "<nowiki>{{GDB$}}</nowiki>" and the command.}} | |||
==Basic examples== | ==Basic examples== | ||
Line 12: | Line 14: | ||
| <code>info break</code> command executed on GDB | | <code>info break</code> command executed on GDB | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{GDB$}} show listsize<br> | {{GDB$}}show listsize<br> | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
</pre> | </pre> | ||
| | | | ||
{{GDB$}} show listsize<br> | {{GDB$}}show listsize<br> | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
|} | |} | ||
Line 26: | Line 28: | ||
| 2 commands executed on GDB and preformatted text block (space at the beginning of each line) | | 2 commands executed on GDB and preformatted text block (space at the beginning of each line) | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{GDB$}} show listsize | {{GDB$}}show listsize | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
{{GDB$}} continue | {{GDB$}}continue | ||
</pre> | </pre> | ||
| | | | ||
{{GDB$}} show listsize | {{GDB$}}show listsize | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
{{GDB$}} continue | {{GDB$}}continue | ||
|- | |- | ||
| Command executed on GDB and preformatted text block (space at the beginning of each line) | | Command executed on GDB and preformatted text block (space at the beginning of each line) | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{GDB$}} show listsize | {{GDB$}}show listsize | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
</pre> | </pre> | ||
| | | | ||
{{GDB$}} show listsize | {{GDB$}}show listsize | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
|- | |- | ||
| Long command executed on GDB and preformatted text block (space at the beginning of each line) | | Long command executed on GDB and preformatted text block (space at the beginning of each line) | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{GDB$}} this is a so long command executed on GDB that a horizontal scrolling bar is needed | {{GDB$}}this is a so long command executed on GDB that a horizontal scrolling bar is needed | ||
</pre> | </pre> | ||
| style="max-width:30em;" | | | style="max-width:30em;" | | ||
{{GDB$}} this is a so long command executed on GDB that a horizontal scrolling bar is needed | {{GDB$}}this is a so long command executed on GDB that a horizontal scrolling bar is needed | ||
|- | |- | ||
| Template used within another public message box template | | Template used within another public message box template | ||
Line 55: | Line 57: | ||
{{Info | | {{Info | | ||
Message before the command | Message before the command | ||
{{GDB$}} show listsize | {{GDB$}}show listsize | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
Message after the command | Message after the command | ||
Line 63: | Line 65: | ||
{{Info | | {{Info | | ||
Message before the command | Message before the command | ||
{{GDB$}} show listsize | {{GDB$}}show listsize | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
Message after the command | Message after the command | ||
Line 72: | Line 74: | ||
{{InternalInfo | | {{InternalInfo | | ||
Message before the command | Message before the command | ||
{{GDB$}} show listsize | {{GDB$}}show listsize | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
Message after the command | Message after the command | ||
Line 80: | Line 82: | ||
{{InternalInfo | | {{InternalInfo | | ||
Message before the command | Message before the command | ||
{{GDB$}} show listsize | {{GDB$}}show listsize | ||
Number of source lines gdb will list by default is 10. | Number of source lines gdb will list by default is 10. | ||
Message after the command | Message after the command |
Latest revision as of 17:58, 16 March 2023
1. Usage[edit source]
The GDB$ template is used to prefix a command that must be executed on GDB, with a GDB-specific prompt.
Thanks to the gdb-prompt
class defined in MediaWiki:Common.css, a double (or triple) click to select the command doesn't select the prompt.
GDB$}}Usage: {{
2. Basic examples[edit source]
You type | You get |
---|---|
info break command executed on GDB
GDB$}}show listsize<br> Number of source lines gdb will list by default is 10.{{ |
show listsize |
3. More examples[edit source]
You type | You get | ||
---|---|---|---|
2 commands executed on GDB and preformatted text block (space at the beginning of each line)
GDB$}}show listsize Number of source lines gdb will list by default is 10. {{GDB$}}continue{{ |
show listsize
Number of source lines gdb will list by default is 10.
continue
| ||
Command executed on GDB and preformatted text block (space at the beginning of each line)
GDB$}}show listsize Number of source lines gdb will list by default is 10.{{ |
show listsize
Number of source lines gdb will list by default is 10.
| ||
Long command executed on GDB and preformatted text block (space at the beginning of each line)
GDB$}}this is a so long command executed on GDB that a horizontal scrolling bar is needed{{ |
GDB that a horizontal scrolling bar is neededthis is a so long command executed on | ||
Template used within another public message box template
GDB$}}show listsize Number of source lines gdb will list by default is 10. Message after the command }}{{Info | Message before the command {{ |
| ||
Template used within another protected message box template
GDB$}}show listsize Number of source lines gdb will list by default is 10. Message after the command }}{{InternalInfo | Message before the command {{ |
4. Maintenance[edit source]
This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.
5. Code[edit source]