[lldb-dev] liblldb linking proposals

2016-11-01 Thread Pavel Labath via lldb-dev
This is just an FYI email.

I've made two proposals to address linking issues that have been
troubling us lately. If you are interested in that, please take a look
at  and
, and let me know what you think.

pl
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] [Bug 30863] New: "Step" doesn't stop with conditional breakpoint on the next line

2016-11-01 Thread via lldb-dev
https://llvm.org/bugs/show_bug.cgi?id=30863

Bug ID: 30863
   Summary: "Step" doesn't stop with conditional breakpoint on the
next line
   Product: lldb
   Version: 3.9
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: eldar.abusali...@jetbrains.com
CC: llvm-b...@lists.llvm.org
Classification: Unclassified

Extracted from https://youtrack.jetbrains.com/issue/CPP-7986 Conditional Break
Point

To see the issue, set a Conditional Break at each of the comments tagged `CB`
with the expressions to the right of the colon.

Note that the second CB is not going to be hit naturally since `i` never
changes to 2, this is correct. When the first breakpoint is hit, use `step` to
attempt to move to the next line. It should maintain the debug mode and wait
for more instructions on the next line, but instead it checks the CB and
notices that it is not true and continues until the break point on the return
statement.


```
#include 

int main() {
int i = 1;

printf("i: %d", i);  // CB: i == 1 // true
printf("i: %d", i);  // CB: i == 2 // false

return 0;
}
```

Debug session:

```
$ lldb hello
(lldb) target create "hello"
Current executable set to 'hello' (x86_64).
(lldb) br s -f main.c -l 6 -c 'i == 1'
Breakpoint 1: where = hello`main + 15 at main.c:6, address = 0x00400535
(lldb) br s -f main.c -l 7 -c 'i == 2'
Breakpoint 2: where = hello`main + 35 at main.c:7, address = 0x00400549
(lldb) r
Process 9877 launched: '/home/mint/ClionProjects/hello/cmake-build-debug/hello'
(x86_64)
Process 9877 stopped
* thread #1: tid = 9877, 0x00400535 hello`main + 15 at main.c:6, name =
'hello', stop reason = breakpoint 1.1
frame #0: 0x00400535 hello`main + 15 at main.c:6
   3   int main() {
   4   int i = 1;
   5   
-> 6   printf("i: %d", i);
   7   printf("i: %d", i);
   8   
   9   return 0;
(lldb) s
Process 9877 exited with status = 0 (0x) 
(lldb)  
```

Everything works fine in case the condition of the second breakpoint evaluates
to `true`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] [Bug 30789] Watchpoint::SetEnabled & therefore SBWatchpoint::SetEnabled don't actually disable a watchpoint

2016-11-01 Thread via lldb-dev
https://llvm.org/bugs/show_bug.cgi?id=30789

Jim Ingham  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Jim Ingham  ---
Resolved by 285742.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev