title: How do I set a break point on the exact line number in a shared library?
body: <p>I have a source file shared_lib_test.c in which there's some code like below:</p>
  
  <pre><code>10 void test_function(void)
  11 {
  12    do_me();
  13    skip_me();
  14    return;
  15 }
  </code></pre>
  
  <p>I want to use the gdb to skip the line 13, how should I do this? This function belongs to a shared library not a binary.</p>
  
  <p>If this function belongs to a binary then I could use the following command to do it:</p>
  
  <pre><code>b shared_lib_test.c:13
  commands 1
  jump 14
  continue
  end
  </code></pre>
  
  <p>But as it belongs to shared library, I could not set a break point on the exact line number of the source file, I tried 'b test_function +2' but it seems illegal to gdb.</p>