[lldb-dev] [Bug 46397] Wrong backtrace infromation at Og

2020-06-19 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=46397

Luca Massarelli  changed:

   What|Removed |Added

Product|libraries   |lldb
 CC||ditali...@apple.com,
   ||jan.kratoch...@redhat.com
Version|trunk   |unspecified
   Assignee|unassignedb...@nondot.org   |lldb-dev@lists.llvm.org
  Component|DebugInfo   |All Bugs

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


[lldb-dev] [Bug 46398] New: Wrong backtrace infromation at Og

2020-06-19 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=46398

Bug ID: 46398
   Summary: Wrong backtrace infromation at Og
   Product: lldb
   Version: unspecified
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: massare...@diag.uniroma1.it
CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org

At line 10 backtrace information is wrong.

$ cat a.c
int k = 0, a;
int *b = &a;
int c = 2;
short d = 2;
void e() { --d; }
int *f() {
  if (a)
e();
  else
return b;
}
int main() {
  f();
  f();
}

$ cat -n a.c
 1  int k = 0, a;
 2  int *b = &a;
 3  int c = 2;
 4  short d = 2;
 5  void e() { --d; }
 6  int *f() {
 7if (a)
 8  e();
 9else
10  return b;
11  }
12  int main() {
13f();
14f();
15  }

$  clang -v
clang version 11.0.0 (https://github.com/llvm/llvm-project.git
c143db3b1032042193c152790bcefe34365e6d6c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

$ lldb -v
lldb version 11.0.0
  clang revision c143db3b1032042193c152790bcefe34365e6d6c
  llvm revision c143db3b1032042193c152790bcefe34365e6d6c

$ gdb -v
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git

$ clang -Og -g -o out a.c

$ lldb out 
(lldb) target create "out"
Current executable set to 'out' (x86_64).
(lldb) b main
Breakpoint 1: where = out`main + 1 at a.c:13:3, address = 0x004004b1
(lldb) r
Process 123 launched: 'out' (x86_64)
Process 123 stopped
* thread #1, name = 'out', stop reason = breakpoint 1.1
frame #0: 0x004004b1 out`main at a.c:13:3
   10   return b;
   11   }
   12   int main() {
-> 13 f();
   14 f();
   15   }
(lldb) n
Process 123 stopped
* thread #1, name = 'out', stop reason = step over
frame #0: 0x004004b6 out`main at a.c:14:3
   11   }
   12   int main() {
   13 f();
-> 14 f();
   15   }
(lldb) s
Process 123 stopped
* thread #1, name = 'out', stop reason = step in
frame #0: 0x00400491 out`f at a.c:7:7
   4short d = 2;
   5void e() { --d; }
   6int *f() {
-> 7  if (a)
   8e();
   9  else
   10   return b;
(lldb) bt
* thread #1, name = 'out', stop reason = step in
  * frame #0: 0x00400491 out`f at a.c:7:7
frame #1: 0x004004bb out`main at a.c:14:3
frame #2: 0x77a05b97 libc.so.6`__libc_start_main + 231
frame #3: 0x004003ba out`_start + 42
(lldb) s
Process 123 stopped
* thread #1, name = 'out', stop reason = step in
frame #0: 0x004004a1 out`f at a.c:10:12
   7  if (a)
   8e();
   9  else
-> 10   return b;
   11   }
   12   int main() {
   13 f();
(lldb) bt
* thread #1, name = 'out', stop reason = step in
  * frame #0: 0x004004a1 out`f at a.c:10:12
frame #1: 0x00601040 out`k + 4
frame #2: 0x004004bb out`main at a.c:14:3
frame #3: 0x77a05b97 libc.so.6`__libc_start_main + 231
frame #4: 0x004003ba out`_start + 42
(lldb) exit


$ gdb out
(gdb) b main
Breakpoint 1 at 0x4004b1: file a.c, line 13.
(gdb) r
Starting program: out 
Breakpoint 1, main () at a.c:13
13f();
(gdb) s
f () at a.c:7
7 if (a)
(gdb) s
10  return b;
(gdb) s
11  }
(gdb) s
main () at a.c:14
14f();
(gdb) s
f () at a.c:7
7 if (a)
(gdb) bt
#0  f () at a.c:7
#1  0x004004bb in main () at a.c:14
(gdb) s
10  return b;
(gdb) bt
#0  f () at a.c:10
#1  0x004004bb in main () at a.c:14
(gdb)

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


Re: [lldb-dev] [llvm-dev] buildbot slave able to run on python3

2020-06-19 Thread Adrian McCarthy via lldb-dev
Thanks, Galina, for working on the BuildBot update.  This update should
make it possible for us to stop referring to build machines as "slaves," a
terminology change that's overdue.

Let us know if there's anything I or others in the community can do to help
this along.

On Wed, Jun 17, 2020 at 12:55 PM Galina Kistanova via llvm-dev <
llvm-...@lists.llvm.org> wrote:

> Hello Jan,
>
> Yes. The buildbot migration to buildbot-2.x is a work in progress.
>
> Thanks
>
> Galina
>
> On Wed, Jun 17, 2020 at 12:51 AM Jan Kratochvil 
> wrote:
>
>> Hi Galina,
>>
>> there was:
>> [llvm-dev] Buildbot cleaning for zorg upgrade
>>
>> https://lists.llvm.org/pipermail/llvm-dev/2020-February/139503.html
>> "Zorg upgrade to a recent version of buildbot is coming."
>>
>> Do I understand it correctly there is a plan we could start using
>> buildbot-2.x
>> which is protocol-incompatible with the current buildbot-0.8.5 in use?
>>
>> buildbot-0.8.5 supports only python-2 (not python-3). Fedora 32 and
>> higher no
>> longer support python-2. I am stuck how to support recent Fedoras for
>> buildbot.
>>
>> buildbot-0.9.0 started to support python-3 but I guess buildbot-0.9.0 is
>> no
>> longer protocol-compatible with LLVM buildbot master. I have tried 0.9.0
>> but
>> it does not run on Fedora 32 (due to incompatible python-3 libraries) so
>> I would need to use some even newer buildbot version which I assume to be
>> definitely protocol-incompatible.
>>
>>
>> Jan
>>
>> ___
> LLVM Developers mailing list
> llvm-...@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev