title: how do i continue on breakpoint in gdb automatically
body: <p>I'm debugging my linux kernel module. It causes deadlock and i'm trying to figure out how. I'm using <code>vmware</code> + <code>gdb</code>. The idea is to hook the function and log backtrace into the file. I'm trying the following:</p>
  
  <pre><code>(gdb) br _raw_spin_lock
  Breakpoint 5 at 0xffffffff815eb700: file kernel/spinlock.c, line 136.
  (gdb) commands 5
  Type commands for breakpoint(s) 5, one per line.
  End with a line saying just "end".
  &gt;silent
  &gt;bt
  &gt;continue
  &gt;end
  </code></pre>
  
  <p>but <code>continue</code> doesn't work here. If i replace <code>bt</code> with <code>echo 1</code> it works. Is there way to log information every time the function is called?</p>
  
  <p>Thank you.</p>