[lldb-dev] July LLVM bay-area social is this Thursday!

2018-07-09 Thread George Burgess IV via lldb-dev
We'll be at Tied House as usual, starting on Thursday the 12th at 7pm!

If you can, help us plan and RSVP here:
https://www.meetup.com/LLVM-Bay-Area-Social/events/kncsjlyxkbhb/

See everyone there!
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Moderator needed for lldb-commits

2018-07-09 Thread Shafik Yaghmour via lldb-dev
Hello Tanya,

I am new to the team but I am also happy to help.

-Shafik

> On Jul 9, 2018, at 1:53 PM, Raphael Isemann via lldb-dev 
>  wrote:
> 
> Hi Tanya,
> 
> I'm also in!
> 
> - Raphael
> Am Mo., 9. Juli 2018 um 13:50 Uhr schrieb Jonas Devlieghere via
> lldb-dev :
>> 
>> Hi Tanya,
>> 
>> I'd be happy to take care of this!
>> 
>> Cheers,
>> Jonas
>> 
>>> On Jul 6, 2018, at 6:01 PM, Tanya Lattner via lldb-dev 
>>>  wrote:
>>> 
>>> LLDB Developers,
>>> 
>>> Moderators are needed for the lldb-commits mailing list. Is anyone 
>>> interested in helping out?
>>> 
>>> Thanks,
>>> Tanya
>>> ___
>>> lldb-dev mailing list
>>> lldb-dev@lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>> 
>> ___
>> lldb-dev mailing list
>> lldb-dev@lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

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


Re: [lldb-dev] Moderator needed for lldb-commits

2018-07-09 Thread Raphael Isemann via lldb-dev
Hi Tanya,

I'm also in!

- Raphael
Am Mo., 9. Juli 2018 um 13:50 Uhr schrieb Jonas Devlieghere via
lldb-dev :
>
> Hi Tanya,
>
> I'd be happy to take care of this!
>
> Cheers,
> Jonas
>
> > On Jul 6, 2018, at 6:01 PM, Tanya Lattner via lldb-dev 
> >  wrote:
> >
> > LLDB Developers,
> >
> > Moderators are needed for the lldb-commits mailing list. Is anyone 
> > interested in helping out?
> >
> > Thanks,
> > Tanya
> > ___
> > lldb-dev mailing list
> > lldb-dev@lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Moderator needed for lldb-commits

2018-07-09 Thread Jonas Devlieghere via lldb-dev
Hi Tanya, 

I'd be happy to take care of this!  

Cheers,
Jonas

> On Jul 6, 2018, at 6:01 PM, Tanya Lattner via lldb-dev 
>  wrote:
> 
> LLDB Developers,
> 
> Moderators are needed for the lldb-commits mailing list. Is anyone interested 
> in helping out?
> 
> Thanks,
> Tanya
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

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


Re: [lldb-dev] error: process launch failed: Lost debug server connection

2018-07-09 Thread Ted Woodward via lldb-dev
FYI - the color you picked for this makes it unreadable against a white 
background. I had to convert it to plain text to read it.

 

The error message “Lost debug server connection” occurs if the platform isn’t 
connected and it is not a host platform.

 

What do you get if you type “platform status” after “file Test”?

 

Is the remote-built executable available on your Mac? lldb will need it to be 
able to get symbols and debug info.

 

Ted

 

--

Qualcomm Innovation Center, Inc.

The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux 
Foundation Collaborative Project

 

From: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of NeckTwi 
via lldb-dev
Sent: Monday, July 09, 2018 1:27 PM
To: lldb-dev@lists.llvm.org
Subject: [lldb-dev] error: process launch failed: Lost debug server connection

 

I have started lldb-server on remote linux in the directory where my executable 
need to be debugged reside.

>From my Mac I started lldb, 

(lldb) platform select remote-linux

  Platform: remote-linux

 Connected: no

(lldb) platform connect connect://pi.local:9091

  Platform: remote-linux

OS Version: 4.9.78 (4.9.78-v7+)

Kernel: #1084 SMP Thu Jan 25 18:05:49 GMT 2018

  Hostname: pi

 Connected: yes

WorkingDir: /Users/necktwi/Workspace/RemoteDebugTest/build

(lldb) file Test

Current executable set to ’Test' (arm).

(lldb) run

error: process launch failed: Lost debug server connection

 

Why the process launch failing? The executable `Test` takes parameters `-s 
normal`. How to feed them in? Did the process failed because of not feeding its 
arguments?

 

https://lldb.llvm.org/remote.html 

  explains how to debug a cross-built local executable on remote platform. But 
I am trying to debug the executable which was built on the remote.

 

Thank you.

 

… neckTwi



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


[lldb-dev] error: process launch failed: Lost debug server connection

2018-07-09 Thread NeckTwi via lldb-dev
I have started lldb-server on remote linux in the directory where my executable 
need to be debugged reside.
>From my Mac I started lldb, 
(lldb) platform select remote-linux
  Platform: remote-linux
 Connected: no
(lldb) platform connect connect://pi.local:9091
  Platform: remote-linux
OS Version: 4.9.78 (4.9.78-v7+)
Kernel: #1084 SMP Thu Jan 25 18:05:49 GMT 2018
  Hostname: pi
 Connected: yes
WorkingDir: /Users/necktwi/Workspace/RemoteDebugTest/build
(lldb) file Test
Current executable set to ’Test' (arm).
(lldb) run
error: process launch failed: Lost debug server connection

Why the process launch failing? The executable `Test` takes parameters `-s 
normal`. How to feed them in? Did the process failed because of not feeding its 
arguments?

https://u7535577.ct.sendgrid.net/wf/click?upn=S8VPHvg5-2FzxqlLfWXPq42joHRevhhtk-2F7AY-2BEiccsimjZUugcpCB66JpJVXGiuJP_WMme76WnOQDuJvvro7-2FTNuvmvuA2PaJWS0FeALMc2HfRwekG2ZIQ8RWNZqpS5pNm5v2Zz1wFFtnx6Ph3zF8iNSWWfX8y6rvHWddW8KrUL5AvBvSkqFsqlTN7GfMpLpfTH2Q3AxmF5s7MXNNfTlnqJoXzZNk6HlZgS1M2PO-2FSPNseN-2FY4InW-2FbXqxIeMksd1zoZxZsWErX67sHW3bH3-2B-2F4PmRDmbZyH8tDMB1b-2FtwY9U-3D
 

 explains how to debug a cross-built local executable on remote platform. But I 
am trying to debug the executable which was built on the remote.

Thank you.

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


[lldb-dev] Linux: lldb tests are failed

2018-07-09 Thread k.baladurin via lldb-dev

Hello!

Some lldb tests, for example test_hello_watchlocation_gmodules, are 
failed due to UnicodeDecodeError:


Config=x86_64-/home/jenkins/workspace/CS_for_Tizen/custom_test/llvm-x64/bin/clang-5.0
==
ERROR: test_hello_watchlocation_gmodules 
(TestWatchLocation.HelloWatchLocationTestCase)
   Test watching a location with '-s size' option.
--
Traceback (most recent call last):
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/lldbtest.py",
 line 1752, in gmodules_test_method
return attrvalue(self)
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/decorators.py",
 line 110, in wrapper
func(*args, **kwargs)
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/decorators.py",
 line 110, in wrapper
func(*args, **kwargs)
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/decorators.py",
 line 110, in wrapper
func(*args, **kwargs)
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/decorators.py",
 line 110, in wrapper
func(*args, **kwargs)
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/decorators.py",
 line 110, in wrapper
func(*args, **kwargs)
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py",
 line 102, in test_hello_watchlocation
self.runCmd("process continue")
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/lldbtest.py",
 line 2070, in runCmd
print(self.res.GetError(), file=sbuf)
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/test/lldbtest.py",
 line 293, in __exit__
print(self.getvalue(), file=self.session)
  File 
"/home/jenkins/workspace/CS_for_Tizen/custom_test/lldb/packages/Python/lldbsuite/support/encoded_file.py",
 line 34, in impl
s = s.decode(encoding)
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfb in position 257: 
invalid start byte

This error occurs when we try to decode following string:

runCmd: process continue
output: Process 579 resuming
Process 579 stopped
* thread #2, name = 'test_hello_watc', stop reason = watchpoint 1
    frame #0: 0x0040150f 
test_hello_watchlocation_gmodules`do_bad_thing_with_location(char_ptr="\x01$\xad�, 
new_val='\x01') at main.cpp:40

   37          unsigned what = new_val;
   38          printf("new value written to location(%p) = %u\n", 
char_ptr, what);

   39          *char_ptr = new_val;
-> 40      }
   41
   42      uint32_t
   43      access_pool (bool flag = false)

Should we ignore such errors?

With the following patch tests are passed:

diff --git a/lldb/packages/Python/lldbsuite/support/encoded_file.py 
b/lldb/packages/Python/lldbsuite/support/encoded_file.py

index 2c2fef3..6412e76 100644
--- a/lldb/packages/Python/lldbsuite/support/encoded_file.py
+++ b/lldb/packages/Python/lldbsuite/support/encoded_file.py
@@ -31,7 +31,7 @@ def _encoded_write(old_write, encoding):
 # If we were asked to write a `str` (in Py2) or a `bytes` (in 
Py3) decode it

 # as unicode before attempting to write.
 if isinstance(s, six.binary_type):
-    s = s.decode(encoding)
+    s = s.decode(encoding, 'ignore')
 return old_write(s)
 return impl

Thank you!

BR,
Konstantin Baladurin

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