Difference between revisions of "Template:GDB$"

[quality revision] [quality revision]
(Created page with "<noinclude> ==Usage== The GDB$ template is used '''to prefix a command that must be executed on GDB, with a GDB-specific prompt'''. Usage: <nowiki>{{</now...")
 
(Merge articles)
 

1 Usage[edit]

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.

Usage:  {{GDB$}}

2 Basic examples[edit]

You type You get
continue info break command executed on GDB
{{GDB$}} continue

continue

3 Code[edit]

(gdb)

show listsize<br>
Number of source lines gdb will list by default is 10.

show listsize
Number of source lines gdb will list by default is 10.

3 More examples[edit]

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

 this is a so long command executed on GDB that a horizontal scrolling bar is needed

Template used within another public message box template

{{Info |
Message before the command
 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.
Message after the command
}}

Info white.png Information

Message before the command

 show listsize
Number of source lines gdb will list by default is 10.

Message after the command

Template used within another protected message box template

{{InternalInfo |
Message before the command
 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.
Message after the command
}}

4 Maintenance[edit]

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]

<noinclude>

==Usage==
The [[Template:GDB$|GDB$]] template is used '''to prefix a command that must be executed on GDB, with a GDB-specific prompt'''.

<br>

Thanks to the <code>gdb-prompt</code> class defined in [[MediaWiki:Common.css]], a double (or triple) click to select the command doesn't select the prompt.
Usage:  <nowiki>{{</nowiki>GDB$}}

==Basic examples==
{| class="st-table"
! You type !! You get
|-
| <code>continueinfo break</code> command executed on GDB<pre style="white-space: pre-wrap;">

{{GDB$}} continue</pre>

|
{{GDB$}} continue
|}

==Code==</noinclude>'''(gdb)'''show listsize<br>

Number of source lines gdb will list by default is 10.</pre>

|
{{GDB$}} show listsize<br>

Number of source lines gdb will list by default is 10.
|}

==More examples==
{| class="st-table"
! You type !! You get
|-
| 2  commands executed on GDB and preformatted text block (space at the beginning of each line)<pre style="white-space: pre-wrap;">

 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.
 {{GDB$}} continue</pre>

|
 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.
 {{GDB$}} continue
|-
| Command executed on GDB and preformatted text block (space at the beginning of each line)<pre style="white-space: pre-wrap;">

 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.</pre>

|
 {{GDB$}} 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)<pre style="white-space: pre-wrap;">

 {{GDB$}} this is a so long command executed on GDB that a horizontal scrolling bar is needed</pre>

| style="max-width:30em;" |
 {{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<pre style="white-space: pre-wrap;">

{{Info |
Message before the command
 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.
Message after the command
}}</pre>

|
{{Info |
Message before the command
 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.
Message after the command
}}
|-
| Template used within another protected message box template<pre style="white-space: pre-wrap;">

{{InternalInfo |
Message before the command
 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.
Message after the command
}}</pre>

|
{{InternalInfo |
Message before the command
 {{GDB$}} show listsize
 Number of source lines gdb will list by default is 10.
Message after the command
}}
|}

==Maintenance==
This template is a template common to all ST wikis. <br>

Modifications must be done into the [[stwikimodel:Template:GDB$|WikiModel]]. They must be reviewed by all ST wikis maintainers.<br>

When approved, the template can be pushed/merged towards all ST wikis.

==Code==</noinclude><span class{{=}}"gdb-prompt"></span>
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
The [[Template:GDB$|GDB$]] template is used '''to prefix a command that must be executed on GDB, with a GDB-specific prompt'''.
+
The [[Template:GDB$|GDB$]] template is used '''to prefix a command that must be executed on GDB, with a GDB-specific prompt'''.<br>
  +
Thanks to the <code>gdb-prompt</code> class defined in [[MediaWiki:Common.css]], a double (or triple) click to select the command doesn't select the prompt.
   
 
  Usage:  <nowiki>{{</nowiki>GDB$}}
 
  Usage:  <nowiki>{{</nowiki>GDB$}}
Line 9: Line 10:
 
! You type !! You get
 
! You type !! You get
 
|-
 
|-
| <code>continue</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$}} continue
+
{{GDB$}} show listsize<br>
  +
Number of source lines gdb will list by default is 10.
 
</pre>
 
</pre>
 
|
 
|
{{GDB$}} continue
+
{{GDB$}} show listsize<br>
  +
Number of source lines gdb will list by default is 10.
 
|}
 
|}
  +
  +
==More examples==
  +
{| class="st-table"
  +
! You type !! You get
  +
|-
  +
| 2  commands executed on GDB and preformatted text block (space at the beginning of each line)
  +
<pre style="white-space: pre-wrap;">
  +
{{GDB$}} show listsize
  +
Number of source lines gdb will list by default is 10.
  +
{{GDB$}} continue
  +
</pre>
  +
|
  +
{{GDB$}} show listsize
  +
Number of source lines gdb will list by default is 10.
  +
{{GDB$}} continue
  +
|-
  +
| Command executed on GDB and preformatted text block (space at the beginning of each line)
  +
<pre style="white-space: pre-wrap;">
  +
{{GDB$}} show listsize
  +
Number of source lines gdb will list by default is 10.
  +
</pre>
  +
|
  +
{{GDB$}} 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)
  +
<pre style="white-space: pre-wrap;">
  +
{{GDB$}} this is a so long command executed on GDB that a horizontal scrolling bar is needed
  +
</pre>
  +
| style="max-width:30em;" |
  +
{{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
  +
<pre style="white-space: pre-wrap;">
  +
{{Info |
  +
Message before the command
  +
{{GDB$}} show listsize
  +
Number of source lines gdb will list by default is 10.
  +
Message after the command
  +
}}
  +
</pre>
  +
|
  +
{{Info |
  +
Message before the command
  +
{{GDB$}} show listsize
  +
Number of source lines gdb will list by default is 10.
  +
Message after the command
  +
}}
  +
|-
  +
| Template used within another protected message box template
  +
<pre style="white-space: pre-wrap;">
  +
{{InternalInfo |
  +
Message before the command
  +
{{GDB$}} show listsize
  +
Number of source lines gdb will list by default is 10.
  +
Message after the command
  +
}}
  +
</pre>
  +
|
  +
{{InternalInfo |
  +
Message before the command
  +
{{GDB$}} show listsize
  +
Number of source lines gdb will list by default is 10.
  +
Message after the command
  +
}}
  +
|}
  +
  +
==Maintenance==
  +
This template is a template common to all ST wikis. <br>
  +
Modifications must be done into the [[stwikimodel:Template:GDB$|WikiModel]]. They must be reviewed by all ST wikis maintainers.<br>
  +
When approved, the template can be pushed/merged towards all ST wikis.
   
 
==Code==
 
==Code==
</noinclude>'''(gdb)'''
+
</noinclude><span class{{=}}"gdb-prompt"></span>