[lldb-dev] [Bug 22315] New: Breakpoint does not hit when evaluating a function call expression

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 23 12:23:30 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22315

            Bug ID: 22315
           Summary: Breakpoint does not hit when evaluating a function
                    call expression
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: sivachandra at gmail.com
    Classification: Unclassified

Consider the following code:

  1  int
  2  f (int a, int b)
  3  { 
  4    return a + b;  // Break here
  5  } 
  6 
  7  int
  8  main ()
  9  {
 10    return f (0, 0);
 11  }

I see that the break point at the marked line is not hit when evaluating a call
to f from lldb command line:

(lldb) b simple.cc :4
Breakpoint 1: where = a.out`f(int, int) + 10 at simple.cc:4, address =
0x00000000004004f7

(lldb) r
Process 23889 launching
Process 23889 launched: '/usr/local/google/home/sivachandra/LAB/c++/a.out'
(x86_64)
Process 23889 stopped
* thread #1: tid = 23889, 0x00000000004004f7 a.out`f(a=0, b=0) + 10 at
simple.cc:4, name = 'a.out', stop reason = breakpoint 1.1
    frame #0: 0x00000000004004f7 a.out`f(a=0, b=0) + 10 at simple.cc:4
   1       int
   2       f (int a, int b)
   3       {
-> 4         return a + b;  // Break here
   5       }
   6       
   7       int

(lldb) p f(1, 2)
(int) $0 = 3

The function call returns without stopping at the breakpoint.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150123/8975de91/attachment.html>


More information about the lldb-dev mailing list