Commit Graph

24 Commits

Author SHA1 Message Date
Daniel Duan
3dfc40898c [NFC] Remove Python 2 imports from __future__ (#42086)
The `__future__` we relied on is now,  where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html):

* absolute_import
* print_function
* unicode_literals
* division

These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
Grzegorz Miłoś
820d5f3df6 Syntactic changes to satisfy linter on symbolicate-linux-fatal 2018-11-21 17:44:14 +00:00
Grzegorz Miłoś
eb06d8e08f Update symbolicate-linux-fatal to bring in all 4.1 fixes/improvements 2018-11-20 12:43:08 +00:00
Graydon Hoare
ea2c1db5b0 Fix flake8 warning E722: use of bare except. 2018-11-05 21:01:33 -08:00
Bob Wilson
824bc82660 Reenable Runtime/linux-fatal-backtrace.swift test
This test broke when we switched to the swift-4.2-branch of Clang/LLVM.
It seems to be a problem with LLDB's CreateTargetWithFileAndArch() API
(rdar://problem/39960149). In the meantime, since this script does not
really need to specify the architecture, we can work around the problem
by using CreateTarget(). That's simpler anyway.

rdar://problem/38181372
2018-05-03 16:59:45 -07:00
Bob Wilson
9f932941b2 Make utils/symbolicate-linux-fatal executable. 2017-11-15 22:39:30 -08:00
Grzegorz Miłoś
6ec3fb98fd Fix symbolication tool to work on PIE and non-PIE stack-traces. 2017-08-09 13:23:59 +01:00
Grzegorz Miłoś
e5cc00b8aa Fixup symbolication script to handle PIE executables. 2017-08-01 23:57:51 +01:00
Grzegorz Miłoś
1e078fbdfa Improve symbolicate-linux-fatal to handle unparsable addresses. 2017-06-29 19:47:47 +01:00
Robert Widmann
49b31fe94c Merge pull request #7744 from gmilos/symbolicate-interactively
symbolicate-linux-fatal without too much buffering.
2017-06-16 15:51:04 -07:00
Grzegorz Miłoś
d0dea54bb2 Python lint fix for utils/symbolicate-linux-fatal. 2017-06-14 09:39:05 +01:00
Grzegorz Miłoś
4844a13d1a lint fixes for linux-symbolication-improvements. 2017-06-07 08:17:49 -07:00
Grzegorz Miłoś
156f5425e7 Improve symbolication of stacktraces on Linux.
* Finds lldb site-package relative to swift executable
* Caches lldb target for better performance
* Assumes stdin as the log source
2017-06-04 16:35:25 -07:00
Alex Blewitt
14f4a4ee8b Resolve missing references generated by ldd
When ldd returns a list of libraries, the binary reflects the name
that the library is known at at link time. However, it may be a
symlink to a different filename on the system, which can confuse
generated tools that capture the image name from a process map.
Handle both cases so that the logical name and the file name is handled.
2017-05-25 17:33:33 +01:00
Hugh Bellamy
ad4b338062 Fix python lint failures now not excluded as we provide custom exclusions
Looks like flake8 enables other rules when you add something to the
exclusion list. We added W291
2017-03-27 12:31:56 +07:00
Grzegorz Miłoś
7e25466113 symbolicate-linux-fatal without too much buffering.
Follows advise from python's man page:
'Note that there is internal  buffering  in  xread-lines(),  readlines() and file-object iterators ("for line in sys.stdin") which is not influenced by this option.  To work around this, you will want to use "sys.stdin.readline()" inside a "while 1:" loop.'
2017-02-24 16:02:58 +00:00
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
practicalswift
797b80765f [gardening] Use the correct base URL (https://swift.org) in references to the Swift website
Remove all references to the old non-TLS enabled base URL (http://swift.org)
2016-11-20 17:36:03 +01:00
practicalswift
b057000640 [gardening] Fix recently introduced typos 2016-09-22 17:16:13 +02:00
Grzegorz Miłoś
c852808ee3 Review comments. Round 6. 2016-09-08 17:13:41 +01:00
Grzegorz Miłoś
d10146592d Review comments. Round 5. Integration test for symbolicate-linux-fatal. 2016-09-08 15:01:25 +01:00
Grzegorz Miłoś
900674f703 Review comments. Round 4. 2016-09-07 12:14:48 +01:00
Grzegorz Miłoś
63b89da948 Review comments, round 2. 2016-09-07 12:14:48 +01:00
Grzegorz Miłoś
dc3369dffe Review comments. Mostly python improvements in symbolicate-linux-fatal(.py). 2016-09-07 12:14:48 +01:00