title: GDB loading a different file when debuggin raspberry pi PICO?
body: <p>I'm trying to debug a Raspberry Pi Pico project using openOCD + Picoprobe. I go through the steps that appear to be correct to do all this from my Linux PC (the Get started with Pico and C++ guide is for the Raspberry Pi, but there are tutorials online for PC), but when trying to set breakpoints in gdb, it appears to be looking at a different file.<br />
  My steps are the following:<br />
  In a console, navigate to the openOCD folder and run:<br />
  <code>sudo src/openocd -s tcl/ -f tcl/interface/picoprobe.cfg -f tcl/target/rp2040.cfg</code><br />
  I get only info messages, no errors, until it waits for the gdb to connect</p>
  <pre><code>Info : starting gdb server for rp2040.core0 on 3333
  Info : Listening on port 3333 for gdb connections  
  </code></pre>
  <p>Then, in a different console, I navigate to what I want to debug, in this case the blink.c example. I stand inside the build folder with my .elf file and run</p>
  <pre><code>sudo gdb-multiarch blink.elf
  
      (gdb) target extended-remote localhost:3333
      (gdb) monitor reset init
      (gdb) break 15
  </code></pre>
  <p>where 15 is a relevant debuggable line. But the thing is, the breakpoints are said to be set in a different file:</p>
  <pre><code>Breakpoint 1 at 0x20000178: file ../../../../../../libgcc/config/arm/lib1funcs.S, line 1461
  </code></pre>
  <p>and then on, all breakpoints are also set there. Here's an example trying to set 3 different breakpoints:</p>
  <pre><code>(gdb) b 15
  Breakpoint 1 at 0x20000178: file ../../../../../../libgcc/config/arm/lib1funcs.S, line 1461.
  (gdb) b 16
  Note: breakpoint 1 also set at pc 0x20000178.
  Breakpoint 2 at 0x20000178: file ../../../../../../libgcc/config/arm/lib1funcs.S, line 1461.
  (gdb) b 17
  Note: breakpoints 1 and 2 also set at pc 0x20000178.
  Breakpoint 3 at 0x20000178: file ../../../../../../libgcc/config/arm/lib1funcs.S, line 1461.
  </code></pre>
  <p>So that. I am totally lost on what's happening here. Could anyone point me to why this is happening, or what that file does?</p>