Skip to content

Commit

Permalink
deploy: 539627b
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Dec 1, 2023
1 parent 9eb5432 commit b623612
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ch03-04-debugging-programs.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ <h2><a class="header" href="#attaching-to-the-debugger" id="attaching-to-the-deb
<pre><code class="language-text">riscv-none-elf-gdb -ex 'tar ext :3456'
</code></pre>
<p>On real hardware, you will first need to re-mux the serial port so that gdb is visible on serial. Then you can connect gdb to the target serial port.</p>
<p>For example, if you have a hardware Precursor device connected to a Raspberry Pi 3B+ with a debug HAT running Raspbian &quot;Buster&quot;, you would first run this command in <code>shellchat</code> on the hardware device itself:</p>
<pre><code class="language-text">console app
</code></pre>
<p>This switches the internal serial port mux in the Precursor to the GDB port.</p>
<p>Then, on the Raspberry pi command line, you would run this:</p>
<pre><code class="language-text">riscv-none-elf-gdb -ex 'tar ext /dev/ttyS0'
</code></pre>
<h2><a class="header" href="#debugging-a-process" id="debugging-a-process">Debugging a process</a></h2>
<p>Within the gdb server, you can switch which file you're debugging. For example, to debug the ticktimer, run:</p>
<pre><code class="language-text">(gdb) file target/riscv32imac-unknown-xous-elf/release/xous-ticktimer
Expand Down
7 changes: 7 additions & 0 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,13 @@ <h2><a class="header" href="#attaching-to-the-debugger" id="attaching-to-the-deb
<pre><code class="language-text">riscv-none-elf-gdb -ex 'tar ext :3456'
</code></pre>
<p>On real hardware, you will first need to re-mux the serial port so that gdb is visible on serial. Then you can connect gdb to the target serial port.</p>
<p>For example, if you have a hardware Precursor device connected to a Raspberry Pi 3B+ with a debug HAT running Raspbian &quot;Buster&quot;, you would first run this command in <code>shellchat</code> on the hardware device itself:</p>
<pre><code class="language-text">console app
</code></pre>
<p>This switches the internal serial port mux in the Precursor to the GDB port.</p>
<p>Then, on the Raspberry pi command line, you would run this:</p>
<pre><code class="language-text">riscv-none-elf-gdb -ex 'tar ext /dev/ttyS0'
</code></pre>
<h2><a class="header" href="#debugging-a-process" id="debugging-a-process">Debugging a process</a></h2>
<p>Within the gdb server, you can switch which file you're debugging. For example, to debug the ticktimer, run:</p>
<pre><code class="language-text">(gdb) file target/riscv32imac-unknown-xous-elf/release/xous-ticktimer
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit b623612

Please sign in to comment.