@debugmcp/codelldb-linux-arm64 0.0.0-stage → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +28 -0
- package/README.md +21 -2
- package/adapter/codelldb +0 -0
- package/adapter/scripts/codelldb/__init__.py +7 -0
- package/adapter/scripts/codelldb/api.py +125 -0
- package/adapter/scripts/codelldb/commands/__init__.py +7 -0
- package/adapter/scripts/codelldb/commands/debug_info.py +63 -0
- package/adapter/scripts/codelldb/commands/nofail.py +8 -0
- package/adapter/scripts/codelldb/event.py +19 -0
- package/adapter/scripts/codelldb/interface.py +423 -0
- package/adapter/scripts/codelldb/value.py +364 -0
- package/adapter/scripts/codelldb/webview.py +57 -0
- package/adapter/scripts/console.py +23 -0
- package/adapter/scripts/debugger.py +1 -0
- package/lang_support/__init__.py +23 -0
- package/lang_support/rust.py +87 -0
- package/lldb/bin/lldb +0 -0
- package/lldb/bin/lldb-argdumper +0 -0
- package/lldb/bin/lldb-server +0 -0
- package/lldb/lib/liblldb.so +4 -0
- package/lldb/lib/libpython312.so +0 -0
- package/lldb/lib/lldb-python/lldb/__init__.py +19655 -0
- package/lldb/lib/lldb-python/lldb/embedded_interpreter.py +97 -0
- package/lldb/lib/lldb-python/lldb/formatters/Logger.py +133 -0
- package/lldb/lib/lldb-python/lldb/formatters/__init__.py +11 -0
- package/lldb/lib/lldb-python/lldb/formatters/attrib_fromdict.py +41 -0
- package/lldb/lib/lldb-python/lldb/formatters/cache.py +35 -0
- package/lldb/lib/lldb-python/lldb/formatters/cpp/__init__.py +11 -0
- package/lldb/lib/lldb-python/lldb/formatters/cpp/gnu_libstdcpp.py +939 -0
- package/lldb/lib/lldb-python/lldb/formatters/cpp/libcxx.py +987 -0
- package/lldb/lib/lldb-python/lldb/formatters/metrics.py +119 -0
- package/lldb/lib/lldb-python/lldb/formatters/synth.py +59 -0
- package/lldb/lib/lldb-python/lldb/lldb-argdumper +0 -0
- package/lldb/lib/lldb-python/lldb/native/__init__.py +11 -0
- package/lldb/lib/lldb-python/lldb/plugins/__init__.py +11 -0
- package/lldb/lib/lldb-python/lldb/plugins/operating_system.py +103 -0
- package/lldb/lib/lldb-python/lldb/plugins/parsed_cmd.py +463 -0
- package/lldb/lib/lldb-python/lldb/plugins/scripted_frame_provider.py +188 -0
- package/lldb/lib/lldb-python/lldb/plugins/scripted_platform.py +96 -0
- package/lldb/lib/lldb-python/lldb/plugins/scripted_process.py +1475 -0
- package/lldb/lib/lldb-python/lldb/plugins/scripted_thread_plan.py +70 -0
- package/lldb/lib/lldb-python/lldb/utils/__init__.py +11 -0
- package/lldb/lib/lldb-python/lldb/utils/in_call_stack.py +24 -0
- package/lldb/lib/lldb-python/lldb/utils/symbolication.py +810 -0
- package/lldb/lib/python3.12/__future__.py +147 -0
- package/lldb/lib/python3.12/__hello__.py +16 -0
- package/lldb/lib/python3.12/__phello__/__init__.py +7 -0
- package/lldb/lib/python3.12/__phello__/spam.py +7 -0
- package/lldb/lib/python3.12/_aix_support.py +108 -0
- package/lldb/lib/python3.12/_collections_abc.py +1173 -0
- package/lldb/lib/python3.12/_compat_pickle.py +252 -0
- package/lldb/lib/python3.12/_compression.py +162 -0
- package/lldb/lib/python3.12/_markupbase.py +396 -0
- package/lldb/lib/python3.12/_osx_support.py +579 -0
- package/lldb/lib/python3.12/_py_abc.py +147 -0
- package/lldb/lib/python3.12/_pydatetime.py +2645 -0
- package/lldb/lib/python3.12/_pydecimal.py +6339 -0
- package/lldb/lib/python3.12/_pyio.py +2698 -0
- package/lldb/lib/python3.12/_pylong.py +329 -0
- package/lldb/lib/python3.12/_sitebuiltins.py +103 -0
- package/lldb/lib/python3.12/_strptime.py +565 -0
- package/lldb/lib/python3.12/_sysconfigdata__linux_aarch64-linux-gnu.py +1230 -0
- package/lldb/lib/python3.12/_threading_local.py +242 -0
- package/lldb/lib/python3.12/_weakrefset.py +205 -0
- package/lldb/lib/python3.12/abc.py +188 -0
- package/lldb/lib/python3.12/aifc.py +984 -0
- package/lldb/lib/python3.12/antigravity.py +17 -0
- package/lldb/lib/python3.12/argparse.py +2672 -0
- package/lldb/lib/python3.12/ast.py +1835 -0
- package/lldb/lib/python3.12/asyncio/__init__.py +47 -0
- package/lldb/lib/python3.12/asyncio/__main__.py +126 -0
- package/lldb/lib/python3.12/asyncio/base_events.py +2011 -0
- package/lldb/lib/python3.12/asyncio/base_futures.py +67 -0
- package/lldb/lib/python3.12/asyncio/base_subprocess.py +285 -0
- package/lldb/lib/python3.12/asyncio/base_tasks.py +94 -0
- package/lldb/lib/python3.12/asyncio/constants.py +41 -0
- package/lldb/lib/python3.12/asyncio/coroutines.py +109 -0
- package/lldb/lib/python3.12/asyncio/events.py +868 -0
- package/lldb/lib/python3.12/asyncio/exceptions.py +62 -0
- package/lldb/lib/python3.12/asyncio/format_helpers.py +76 -0
- package/lldb/lib/python3.12/asyncio/futures.py +432 -0
- package/lldb/lib/python3.12/asyncio/locks.py +586 -0
- package/lldb/lib/python3.12/asyncio/log.py +7 -0
- package/lldb/lib/python3.12/asyncio/mixins.py +21 -0
- package/lldb/lib/python3.12/asyncio/proactor_events.py +897 -0
- package/lldb/lib/python3.12/asyncio/protocols.py +216 -0
- package/lldb/lib/python3.12/asyncio/queues.py +244 -0
- package/lldb/lib/python3.12/asyncio/runners.py +215 -0
- package/lldb/lib/python3.12/asyncio/selector_events.py +1321 -0
- package/lldb/lib/python3.12/asyncio/sslproto.py +926 -0
- package/lldb/lib/python3.12/asyncio/staggered.py +138 -0
- package/lldb/lib/python3.12/asyncio/streams.py +770 -0
- package/lldb/lib/python3.12/asyncio/subprocess.py +229 -0
- package/lldb/lib/python3.12/asyncio/taskgroups.py +240 -0
- package/lldb/lib/python3.12/asyncio/tasks.py +1065 -0
- package/lldb/lib/python3.12/asyncio/threads.py +25 -0
- package/lldb/lib/python3.12/asyncio/timeouts.py +168 -0
- package/lldb/lib/python3.12/asyncio/transports.py +335 -0
- package/lldb/lib/python3.12/asyncio/trsock.py +98 -0
- package/lldb/lib/python3.12/asyncio/unix_events.py +1500 -0
- package/lldb/lib/python3.12/asyncio/windows_events.py +901 -0
- package/lldb/lib/python3.12/asyncio/windows_utils.py +173 -0
- package/lldb/lib/python3.12/base64.py +586 -0
- package/lldb/lib/python3.12/bdb.py +899 -0
- package/lldb/lib/python3.12/bisect.py +118 -0
- package/lldb/lib/python3.12/bz2.py +344 -0
- package/lldb/lib/python3.12/cProfile.py +195 -0
- package/lldb/lib/python3.12/calendar.py +798 -0
- package/lldb/lib/python3.12/cgi.py +1013 -0
- package/lldb/lib/python3.12/cgitb.py +332 -0
- package/lldb/lib/python3.12/chunk.py +173 -0
- package/lldb/lib/python3.12/cmd.py +401 -0
- package/lldb/lib/python3.12/code.py +324 -0
- package/lldb/lib/python3.12/codecs.py +1129 -0
- package/lldb/lib/python3.12/codeop.py +161 -0
- package/lldb/lib/python3.12/collections/__init__.py +1592 -0
- package/lldb/lib/python3.12/collections/abc.py +3 -0
- package/lldb/lib/python3.12/colorsys.py +166 -0
- package/lldb/lib/python3.12/compileall.py +469 -0
- package/lldb/lib/python3.12/concurrent/__init__.py +1 -0
- package/lldb/lib/python3.12/concurrent/futures/__init__.py +54 -0
- package/lldb/lib/python3.12/concurrent/futures/_base.py +654 -0
- package/lldb/lib/python3.12/concurrent/futures/process.py +884 -0
- package/lldb/lib/python3.12/concurrent/futures/thread.py +239 -0
- package/lldb/lib/python3.12/configparser.py +1333 -0
- package/lldb/lib/python3.12/contextlib.py +800 -0
- package/lldb/lib/python3.12/contextvars.py +4 -0
- package/lldb/lib/python3.12/copy.py +292 -0
- package/lldb/lib/python3.12/copyreg.py +217 -0
- package/lldb/lib/python3.12/crypt.py +124 -0
- package/lldb/lib/python3.12/csv.py +451 -0
- package/lldb/lib/python3.12/ctypes/__init__.py +582 -0
- package/lldb/lib/python3.12/ctypes/_aix.py +327 -0
- package/lldb/lib/python3.12/ctypes/_endian.py +78 -0
- package/lldb/lib/python3.12/ctypes/macholib/__init__.py +9 -0
- package/lldb/lib/python3.12/ctypes/macholib/dyld.py +165 -0
- package/lldb/lib/python3.12/ctypes/macholib/dylib.py +42 -0
- package/lldb/lib/python3.12/ctypes/macholib/framework.py +42 -0
- package/lldb/lib/python3.12/ctypes/util.py +379 -0
- package/lldb/lib/python3.12/ctypes/wintypes.py +202 -0
- package/lldb/lib/python3.12/dataclasses.py +1588 -0
- package/lldb/lib/python3.12/datetime.py +9 -0
- package/lldb/lib/python3.12/dbm/__init__.py +190 -0
- package/lldb/lib/python3.12/dbm/dumb.py +317 -0
- package/lldb/lib/python3.12/dbm/gnu.py +3 -0
- package/lldb/lib/python3.12/dbm/ndbm.py +3 -0
- package/lldb/lib/python3.12/decimal.py +108 -0
- package/lldb/lib/python3.12/difflib.py +2056 -0
- package/lldb/lib/python3.12/dis.py +805 -0
- package/lldb/lib/python3.12/doctest.py +2845 -0
- package/lldb/lib/python3.12/email/__init__.py +61 -0
- package/lldb/lib/python3.12/email/_encoded_words.py +233 -0
- package/lldb/lib/python3.12/email/_header_value_parser.py +3078 -0
- package/lldb/lib/python3.12/email/_parseaddr.py +557 -0
- package/lldb/lib/python3.12/email/_policybase.py +382 -0
- package/lldb/lib/python3.12/email/base64mime.py +115 -0
- package/lldb/lib/python3.12/email/charset.py +398 -0
- package/lldb/lib/python3.12/email/contentmanager.py +251 -0
- package/lldb/lib/python3.12/email/encoders.py +65 -0
- package/lldb/lib/python3.12/email/errors.py +117 -0
- package/lldb/lib/python3.12/email/feedparser.py +534 -0
- package/lldb/lib/python3.12/email/generator.py +520 -0
- package/lldb/lib/python3.12/email/header.py +573 -0
- package/lldb/lib/python3.12/email/headerregistry.py +604 -0
- package/lldb/lib/python3.12/email/iterators.py +68 -0
- package/lldb/lib/python3.12/email/message.py +1205 -0
- package/lldb/lib/python3.12/email/mime/__init__.py +0 -0
- package/lldb/lib/python3.12/email/mime/application.py +37 -0
- package/lldb/lib/python3.12/email/mime/audio.py +100 -0
- package/lldb/lib/python3.12/email/mime/base.py +29 -0
- package/lldb/lib/python3.12/email/mime/image.py +152 -0
- package/lldb/lib/python3.12/email/mime/message.py +33 -0
- package/lldb/lib/python3.12/email/mime/multipart.py +47 -0
- package/lldb/lib/python3.12/email/mime/nonmultipart.py +21 -0
- package/lldb/lib/python3.12/email/mime/text.py +40 -0
- package/lldb/lib/python3.12/email/parser.py +127 -0
- package/lldb/lib/python3.12/email/policy.py +232 -0
- package/lldb/lib/python3.12/email/quoprimime.py +300 -0
- package/lldb/lib/python3.12/email/utils.py +486 -0
- package/lldb/lib/python3.12/encodings/__init__.py +174 -0
- package/lldb/lib/python3.12/encodings/aliases.py +551 -0
- package/lldb/lib/python3.12/encodings/ascii.py +50 -0
- package/lldb/lib/python3.12/encodings/base64_codec.py +55 -0
- package/lldb/lib/python3.12/encodings/big5.py +39 -0
- package/lldb/lib/python3.12/encodings/big5hkscs.py +39 -0
- package/lldb/lib/python3.12/encodings/bz2_codec.py +78 -0
- package/lldb/lib/python3.12/encodings/charmap.py +69 -0
- package/lldb/lib/python3.12/encodings/cp037.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1006.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1026.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1125.py +698 -0
- package/lldb/lib/python3.12/encodings/cp1140.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1250.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1251.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1252.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1253.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1254.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1255.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1256.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1257.py +307 -0
- package/lldb/lib/python3.12/encodings/cp1258.py +307 -0
- package/lldb/lib/python3.12/encodings/cp273.py +307 -0
- package/lldb/lib/python3.12/encodings/cp424.py +307 -0
- package/lldb/lib/python3.12/encodings/cp437.py +698 -0
- package/lldb/lib/python3.12/encodings/cp500.py +307 -0
- package/lldb/lib/python3.12/encodings/cp720.py +309 -0
- package/lldb/lib/python3.12/encodings/cp737.py +698 -0
- package/lldb/lib/python3.12/encodings/cp775.py +697 -0
- package/lldb/lib/python3.12/encodings/cp850.py +698 -0
- package/lldb/lib/python3.12/encodings/cp852.py +698 -0
- package/lldb/lib/python3.12/encodings/cp855.py +698 -0
- package/lldb/lib/python3.12/encodings/cp856.py +307 -0
- package/lldb/lib/python3.12/encodings/cp857.py +694 -0
- package/lldb/lib/python3.12/encodings/cp858.py +698 -0
- package/lldb/lib/python3.12/encodings/cp860.py +698 -0
- package/lldb/lib/python3.12/encodings/cp861.py +698 -0
- package/lldb/lib/python3.12/encodings/cp862.py +698 -0
- package/lldb/lib/python3.12/encodings/cp863.py +698 -0
- package/lldb/lib/python3.12/encodings/cp864.py +690 -0
- package/lldb/lib/python3.12/encodings/cp865.py +698 -0
- package/lldb/lib/python3.12/encodings/cp866.py +698 -0
- package/lldb/lib/python3.12/encodings/cp869.py +689 -0
- package/lldb/lib/python3.12/encodings/cp874.py +307 -0
- package/lldb/lib/python3.12/encodings/cp875.py +307 -0
- package/lldb/lib/python3.12/encodings/cp932.py +39 -0
- package/lldb/lib/python3.12/encodings/cp949.py +39 -0
- package/lldb/lib/python3.12/encodings/cp950.py +39 -0
- package/lldb/lib/python3.12/encodings/euc_jis_2004.py +39 -0
- package/lldb/lib/python3.12/encodings/euc_jisx0213.py +39 -0
- package/lldb/lib/python3.12/encodings/euc_jp.py +39 -0
- package/lldb/lib/python3.12/encodings/euc_kr.py +39 -0
- package/lldb/lib/python3.12/encodings/gb18030.py +39 -0
- package/lldb/lib/python3.12/encodings/gb2312.py +39 -0
- package/lldb/lib/python3.12/encodings/gbk.py +39 -0
- package/lldb/lib/python3.12/encodings/hex_codec.py +55 -0
- package/lldb/lib/python3.12/encodings/hp_roman8.py +314 -0
- package/lldb/lib/python3.12/encodings/hz.py +39 -0
- package/lldb/lib/python3.12/encodings/idna.py +317 -0
- package/lldb/lib/python3.12/encodings/iso2022_jp.py +39 -0
- package/lldb/lib/python3.12/encodings/iso2022_jp_1.py +39 -0
- package/lldb/lib/python3.12/encodings/iso2022_jp_2.py +39 -0
- package/lldb/lib/python3.12/encodings/iso2022_jp_2004.py +39 -0
- package/lldb/lib/python3.12/encodings/iso2022_jp_3.py +39 -0
- package/lldb/lib/python3.12/encodings/iso2022_jp_ext.py +39 -0
- package/lldb/lib/python3.12/encodings/iso2022_kr.py +39 -0
- package/lldb/lib/python3.12/encodings/iso8859_1.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_10.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_11.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_13.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_14.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_15.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_16.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_2.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_3.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_4.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_5.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_6.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_7.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_8.py +307 -0
- package/lldb/lib/python3.12/encodings/iso8859_9.py +307 -0
- package/lldb/lib/python3.12/encodings/johab.py +39 -0
- package/lldb/lib/python3.12/encodings/koi8_r.py +307 -0
- package/lldb/lib/python3.12/encodings/koi8_t.py +308 -0
- package/lldb/lib/python3.12/encodings/koi8_u.py +307 -0
- package/lldb/lib/python3.12/encodings/kz1048.py +307 -0
- package/lldb/lib/python3.12/encodings/latin_1.py +50 -0
- package/lldb/lib/python3.12/encodings/mac_arabic.py +698 -0
- package/lldb/lib/python3.12/encodings/mac_croatian.py +307 -0
- package/lldb/lib/python3.12/encodings/mac_cyrillic.py +307 -0
- package/lldb/lib/python3.12/encodings/mac_farsi.py +307 -0
- package/lldb/lib/python3.12/encodings/mac_greek.py +307 -0
- package/lldb/lib/python3.12/encodings/mac_iceland.py +307 -0
- package/lldb/lib/python3.12/encodings/mac_latin2.py +312 -0
- package/lldb/lib/python3.12/encodings/mac_roman.py +307 -0
- package/lldb/lib/python3.12/encodings/mac_romanian.py +307 -0
- package/lldb/lib/python3.12/encodings/mac_turkish.py +307 -0
- package/lldb/lib/python3.12/encodings/mbcs.py +47 -0
- package/lldb/lib/python3.12/encodings/oem.py +41 -0
- package/lldb/lib/python3.12/encodings/palmos.py +308 -0
- package/lldb/lib/python3.12/encodings/ptcp154.py +312 -0
- package/lldb/lib/python3.12/encodings/punycode.py +237 -0
- package/lldb/lib/python3.12/encodings/quopri_codec.py +56 -0
- package/lldb/lib/python3.12/encodings/raw_unicode_escape.py +46 -0
- package/lldb/lib/python3.12/encodings/rot_13.py +113 -0
- package/lldb/lib/python3.12/encodings/shift_jis.py +39 -0
- package/lldb/lib/python3.12/encodings/shift_jis_2004.py +39 -0
- package/lldb/lib/python3.12/encodings/shift_jisx0213.py +39 -0
- package/lldb/lib/python3.12/encodings/tis_620.py +307 -0
- package/lldb/lib/python3.12/encodings/undefined.py +49 -0
- package/lldb/lib/python3.12/encodings/unicode_escape.py +46 -0
- package/lldb/lib/python3.12/encodings/utf_16.py +155 -0
- package/lldb/lib/python3.12/encodings/utf_16_be.py +42 -0
- package/lldb/lib/python3.12/encodings/utf_16_le.py +42 -0
- package/lldb/lib/python3.12/encodings/utf_32.py +150 -0
- package/lldb/lib/python3.12/encodings/utf_32_be.py +37 -0
- package/lldb/lib/python3.12/encodings/utf_32_le.py +37 -0
- package/lldb/lib/python3.12/encodings/utf_7.py +38 -0
- package/lldb/lib/python3.12/encodings/utf_8.py +42 -0
- package/lldb/lib/python3.12/encodings/utf_8_sig.py +130 -0
- package/lldb/lib/python3.12/encodings/uu_codec.py +103 -0
- package/lldb/lib/python3.12/encodings/zlib_codec.py +77 -0
- package/lldb/lib/python3.12/ensurepip/__init__.py +291 -0
- package/lldb/lib/python3.12/ensurepip/__main__.py +5 -0
- package/lldb/lib/python3.12/ensurepip/_uninstall.py +31 -0
- package/lldb/lib/python3.12/enum.py +2109 -0
- package/lldb/lib/python3.12/filecmp.py +315 -0
- package/lldb/lib/python3.12/fileinput.py +442 -0
- package/lldb/lib/python3.12/fnmatch.py +185 -0
- package/lldb/lib/python3.12/fractions.py +990 -0
- package/lldb/lib/python3.12/ftplib.py +966 -0
- package/lldb/lib/python3.12/functools.py +1004 -0
- package/lldb/lib/python3.12/genericpath.py +167 -0
- package/lldb/lib/python3.12/getopt.py +215 -0
- package/lldb/lib/python3.12/getpass.py +185 -0
- package/lldb/lib/python3.12/gettext.py +646 -0
- package/lldb/lib/python3.12/glob.py +252 -0
- package/lldb/lib/python3.12/graphlib.py +250 -0
- package/lldb/lib/python3.12/gzip.py +694 -0
- package/lldb/lib/python3.12/hashlib.py +253 -0
- package/lldb/lib/python3.12/heapq.py +603 -0
- package/lldb/lib/python3.12/hmac.py +219 -0
- package/lldb/lib/python3.12/html/__init__.py +132 -0
- package/lldb/lib/python3.12/html/entities.py +2513 -0
- package/lldb/lib/python3.12/html/parser.py +456 -0
- package/lldb/lib/python3.12/http/__init__.py +200 -0
- package/lldb/lib/python3.12/http/client.py +1548 -0
- package/lldb/lib/python3.12/http/cookiejar.py +2121 -0
- package/lldb/lib/python3.12/http/cookies.py +594 -0
- package/lldb/lib/python3.12/http/server.py +1320 -0
- package/lldb/lib/python3.12/imaplib.py +1632 -0
- package/lldb/lib/python3.12/imghdr.py +180 -0
- package/lldb/lib/python3.12/importlib/__init__.py +138 -0
- package/lldb/lib/python3.12/importlib/_abc.py +39 -0
- package/lldb/lib/python3.12/importlib/_bootstrap.py +1551 -0
- package/lldb/lib/python3.12/importlib/_bootstrap_external.py +1745 -0
- package/lldb/lib/python3.12/importlib/abc.py +239 -0
- package/lldb/lib/python3.12/importlib/machinery.py +20 -0
- package/lldb/lib/python3.12/importlib/metadata/__init__.py +966 -0
- package/lldb/lib/python3.12/importlib/metadata/_adapters.py +89 -0
- package/lldb/lib/python3.12/importlib/metadata/_collections.py +30 -0
- package/lldb/lib/python3.12/importlib/metadata/_functools.py +104 -0
- package/lldb/lib/python3.12/importlib/metadata/_itertools.py +73 -0
- package/lldb/lib/python3.12/importlib/metadata/_meta.py +63 -0
- package/lldb/lib/python3.12/importlib/metadata/_text.py +99 -0
- package/lldb/lib/python3.12/importlib/readers.py +12 -0
- package/lldb/lib/python3.12/importlib/resources/__init__.py +36 -0
- package/lldb/lib/python3.12/importlib/resources/_adapters.py +168 -0
- package/lldb/lib/python3.12/importlib/resources/_common.py +207 -0
- package/lldb/lib/python3.12/importlib/resources/_itertools.py +38 -0
- package/lldb/lib/python3.12/importlib/resources/_legacy.py +120 -0
- package/lldb/lib/python3.12/importlib/resources/abc.py +173 -0
- package/lldb/lib/python3.12/importlib/resources/readers.py +146 -0
- package/lldb/lib/python3.12/importlib/resources/simple.py +106 -0
- package/lldb/lib/python3.12/importlib/simple.py +14 -0
- package/lldb/lib/python3.12/importlib/util.py +270 -0
- package/lldb/lib/python3.12/inspect.py +3426 -0
- package/lldb/lib/python3.12/io.py +99 -0
- package/lldb/lib/python3.12/ipaddress.py +2380 -0
- package/lldb/lib/python3.12/json/__init__.py +359 -0
- package/lldb/lib/python3.12/json/decoder.py +356 -0
- package/lldb/lib/python3.12/json/encoder.py +443 -0
- package/lldb/lib/python3.12/json/scanner.py +73 -0
- package/lldb/lib/python3.12/json/tool.py +85 -0
- package/lldb/lib/python3.12/keyword.py +64 -0
- package/lldb/lib/python3.12/linecache.py +182 -0
- package/lldb/lib/python3.12/locale.py +1779 -0
- package/lldb/lib/python3.12/logging/__init__.py +2345 -0
- package/lldb/lib/python3.12/logging/config.py +1078 -0
- package/lldb/lib/python3.12/logging/handlers.py +1608 -0
- package/lldb/lib/python3.12/lzma.py +356 -0
- package/lldb/lib/python3.12/mailbox.py +2153 -0
- package/lldb/lib/python3.12/mailcap.py +302 -0
- package/lldb/lib/python3.12/mimetypes.py +653 -0
- package/lldb/lib/python3.12/modulefinder.py +666 -0
- package/lldb/lib/python3.12/multiprocessing/__init__.py +37 -0
- package/lldb/lib/python3.12/multiprocessing/connection.py +1178 -0
- package/lldb/lib/python3.12/multiprocessing/context.py +377 -0
- package/lldb/lib/python3.12/multiprocessing/dummy/__init__.py +126 -0
- package/lldb/lib/python3.12/multiprocessing/dummy/connection.py +75 -0
- package/lldb/lib/python3.12/multiprocessing/forkserver.py +348 -0
- package/lldb/lib/python3.12/multiprocessing/heap.py +337 -0
- package/lldb/lib/python3.12/multiprocessing/managers.py +1380 -0
- package/lldb/lib/python3.12/multiprocessing/pool.py +957 -0
- package/lldb/lib/python3.12/multiprocessing/popen_fork.py +83 -0
- package/lldb/lib/python3.12/multiprocessing/popen_forkserver.py +74 -0
- package/lldb/lib/python3.12/multiprocessing/popen_spawn_posix.py +72 -0
- package/lldb/lib/python3.12/multiprocessing/popen_spawn_win32.py +145 -0
- package/lldb/lib/python3.12/multiprocessing/process.py +439 -0
- package/lldb/lib/python3.12/multiprocessing/queues.py +401 -0
- package/lldb/lib/python3.12/multiprocessing/reduction.py +281 -0
- package/lldb/lib/python3.12/multiprocessing/resource_sharer.py +154 -0
- package/lldb/lib/python3.12/multiprocessing/resource_tracker.py +269 -0
- package/lldb/lib/python3.12/multiprocessing/shared_memory.py +534 -0
- package/lldb/lib/python3.12/multiprocessing/sharedctypes.py +240 -0
- package/lldb/lib/python3.12/multiprocessing/spawn.py +307 -0
- package/lldb/lib/python3.12/multiprocessing/synchronize.py +404 -0
- package/lldb/lib/python3.12/multiprocessing/util.py +494 -0
- package/lldb/lib/python3.12/netrc.py +192 -0
- package/lldb/lib/python3.12/nntplib.py +1093 -0
- package/lldb/lib/python3.12/ntpath.py +889 -0
- package/lldb/lib/python3.12/nturl2path.py +81 -0
- package/lldb/lib/python3.12/numbers.py +418 -0
- package/lldb/lib/python3.12/opcode.py +493 -0
- package/lldb/lib/python3.12/operator.py +467 -0
- package/lldb/lib/python3.12/optparse.py +1681 -0
- package/lldb/lib/python3.12/os.py +1159 -0
- package/lldb/lib/python3.12/pathlib.py +1435 -0
- package/lldb/lib/python3.12/pdb.py +1987 -0
- package/lldb/lib/python3.12/pickle.py +1865 -0
- package/lldb/lib/python3.12/pickletools.py +2901 -0
- package/lldb/lib/python3.12/pipes.py +250 -0
- package/lldb/lib/python3.12/pkgutil.py +529 -0
- package/lldb/lib/python3.12/platform.py +1358 -0
- package/lldb/lib/python3.12/plistlib.py +911 -0
- package/lldb/lib/python3.12/poplib.py +467 -0
- package/lldb/lib/python3.12/posixpath.py +573 -0
- package/lldb/lib/python3.12/pprint.py +658 -0
- package/lldb/lib/python3.12/profile.py +615 -0
- package/lldb/lib/python3.12/pstats.py +778 -0
- package/lldb/lib/python3.12/pty.py +211 -0
- package/lldb/lib/python3.12/py_compile.py +212 -0
- package/lldb/lib/python3.12/pyclbr.py +314 -0
- package/lldb/lib/python3.12/pydoc.py +2941 -0
- package/lldb/lib/python3.12/pydoc_data/__init__.py +0 -0
- package/lldb/lib/python3.12/pydoc_data/topics.py +16777 -0
- package/lldb/lib/python3.12/queue.py +326 -0
- package/lldb/lib/python3.12/quopri.py +237 -0
- package/lldb/lib/python3.12/random.py +996 -0
- package/lldb/lib/python3.12/re/__init__.py +385 -0
- package/lldb/lib/python3.12/re/_casefix.py +106 -0
- package/lldb/lib/python3.12/re/_compiler.py +765 -0
- package/lldb/lib/python3.12/re/_constants.py +220 -0
- package/lldb/lib/python3.12/re/_parser.py +1080 -0
- package/lldb/lib/python3.12/reprlib.py +193 -0
- package/lldb/lib/python3.12/rlcompleter.py +219 -0
- package/lldb/lib/python3.12/runpy.py +319 -0
- package/lldb/lib/python3.12/sched.py +167 -0
- package/lldb/lib/python3.12/secrets.py +71 -0
- package/lldb/lib/python3.12/selectors.py +623 -0
- package/lldb/lib/python3.12/shelve.py +243 -0
- package/lldb/lib/python3.12/shlex.py +345 -0
- package/lldb/lib/python3.12/shutil.py +1566 -0
- package/lldb/lib/python3.12/signal.py +94 -0
- package/lldb/lib/python3.12/site-packages/pip/__init__.py +13 -0
- package/lldb/lib/python3.12/site-packages/pip/__main__.py +24 -0
- package/lldb/lib/python3.12/site-packages/pip/__pip-runner__.py +50 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/__init__.py +18 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/build_env.py +314 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cache.py +290 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/__init__.py +4 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py +176 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/base_command.py +234 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.py +1074 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/command_context.py +27 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/index_command.py +172 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/main.py +80 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py +134 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/parser.py +294 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/progress_bars.py +94 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/req_command.py +329 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/spinners.py +159 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/cli/status_codes.py +6 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/__init__.py +132 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/cache.py +225 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/check.py +52 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/completion.py +130 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/configuration.py +280 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/debug.py +201 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/download.py +146 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/freeze.py +108 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/hash.py +59 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/help.py +41 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/index.py +139 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/inspect.py +92 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/install.py +777 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/list.py +375 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/search.py +172 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/show.py +217 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/uninstall.py +114 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/commands/wheel.py +182 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/configuration.py +383 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/distributions/__init__.py +21 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/distributions/base.py +53 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/distributions/installed.py +29 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py +158 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/distributions/wheel.py +42 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/exceptions.py +777 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/index/__init__.py +2 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/index/collector.py +494 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/index/package_finder.py +1021 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/index/sources.py +285 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/locations/__init__.py +456 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/locations/_distutils.py +172 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/locations/_sysconfig.py +214 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/locations/base.py +81 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/main.py +12 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/metadata/__init__.py +128 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/metadata/_json.py +84 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/metadata/base.py +688 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__init__.py +6 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_compat.py +55 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py +228 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_envs.py +189 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/metadata/pkg_resources.py +301 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/__init__.py +2 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/candidate.py +25 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/direct_url.py +224 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/format_control.py +78 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/index.py +28 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/installation_report.py +56 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/link.py +590 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/scheme.py +25 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/search_scope.py +127 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/selection_prefs.py +53 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/target_python.py +121 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/models/wheel.py +93 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/network/__init__.py +2 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/network/auth.py +562 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/network/cache.py +106 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/network/download.py +187 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/network/lazy_wheel.py +210 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/network/session.py +522 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/network/utils.py +96 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/network/xmlrpc.py +62 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/build/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/build/build_tracker.py +138 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/build/metadata.py +39 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_editable.py +41 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_legacy.py +74 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/build/wheel.py +37 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_editable.py +46 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_legacy.py +102 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/check.py +149 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/freeze.py +258 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/install/__init__.py +2 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/install/editable_legacy.py +47 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py +735 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/operations/prepare.py +732 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/pyproject.py +179 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/req/__init__.py +90 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/req/constructors.py +560 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/req/req_file.py +551 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/req/req_install.py +918 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/req/req_set.py +82 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/req/req_uninstall.py +633 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/base.py +20 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/legacy/resolver.py +597 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/base.py +139 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py +569 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py +816 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +174 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/provider.py +258 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/reporter.py +80 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/requirements.py +245 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py +317 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/self_outdated_check.py +248 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/_jaraco_text.py +109 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/_log.py +38 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/appdirs.py +52 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/compat.py +79 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/compatibility_tags.py +165 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/datetime.py +11 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/deprecation.py +124 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/egg_link.py +80 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/encoding.py +36 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/entrypoints.py +84 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/filesystem.py +153 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/filetypes.py +27 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/glibc.py +91 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/hashes.py +147 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/logging.py +347 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/misc.py +780 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/packaging.py +57 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/setuptools_build.py +146 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/subprocess.py +245 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/temp_dir.py +296 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/unpacking.py +337 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/urls.py +55 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/virtualenv.py +104 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/utils/wheel.py +134 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/vcs/__init__.py +15 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/vcs/bazaar.py +112 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/vcs/git.py +527 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/vcs/mercurial.py +163 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/vcs/subversion.py +324 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/vcs/versioncontrol.py +688 -0
- package/lldb/lib/python3.12/site-packages/pip/_internal/wheel_builder.py +354 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/__init__.py +116 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__init__.py +28 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/_cmd.py +70 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/adapter.py +161 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/cache.py +74 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +8 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +182 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +48 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/controller.py +499 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/filewrapper.py +119 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/heuristics.py +154 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/serialize.py +146 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/cachecontrol/wrapper.py +43 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/certifi/__init__.py +4 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/certifi/__main__.py +12 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/certifi/cacert.pem +4814 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/certifi/core.py +114 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/__init__.py +33 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/compat.py +1138 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/database.py +1359 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/index.py +508 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/locators.py +1303 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/manifest.py +384 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/markers.py +167 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/metadata.py +1068 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/resources.py +358 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/scripts.py +466 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/t32.exe +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/t64-arm.exe +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/t64.exe +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/util.py +2025 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/version.py +751 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/w32.exe +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/w64-arm.exe +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/w64.exe +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distlib/wheel.py +1099 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distro/__init__.py +54 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distro/__main__.py +4 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/distro/distro.py +1403 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/idna/__init__.py +44 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/idna/codec.py +118 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/idna/compat.py +13 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/idna/core.py +395 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/idna/idnadata.py +4245 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/idna/intranges.py +54 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/idna/package_data.py +2 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/idna/uts46data.py +8598 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/msgpack/__init__.py +55 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/msgpack/ext.py +168 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/msgpack/fallback.py +951 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/__init__.py +15 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/_elffile.py +110 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/_manylinux.py +262 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/_musllinux.py +85 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/_parser.py +354 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/_structures.py +61 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/_tokenizer.py +194 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/markers.py +325 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/metadata.py +804 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/requirements.py +91 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/specifiers.py +1009 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/tags.py +568 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/utils.py +174 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/packaging/version.py +563 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pkg_resources/__init__.py +3325 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/platformdirs/__init__.py +627 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/platformdirs/__main__.py +55 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/platformdirs/android.py +222 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/platformdirs/api.py +292 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/platformdirs/macos.py +130 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/platformdirs/unix.py +275 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/platformdirs/version.py +16 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/platformdirs/windows.py +272 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/__init__.py +82 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/__main__.py +17 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/cmdline.py +668 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/console.py +70 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/filter.py +71 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/filters/__init__.py +940 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatter.py +124 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__init__.py +158 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/_mapping.py +23 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/bbcode.py +108 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/groff.py +170 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/html.py +990 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/img.py +684 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/irc.py +154 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/latex.py +521 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/other.py +161 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py +83 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/rtf.py +146 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/svg.py +188 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/terminal.py +127 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/terminal256.py +338 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/lexer.py +961 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__init__.py +363 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/_mapping.py +580 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/python.py +1198 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/modeline.py +43 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/plugin.py +88 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/regexopt.py +91 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/scanner.py +104 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/sphinxext.py +239 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/style.py +203 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/styles/__init__.py +61 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/styles/_mapping.py +53 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/token.py +214 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/unistring.py +153 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pygments/util.py +330 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__init__.py +23 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_compat.py +8 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_impl.py +330 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +18 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +353 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/__init__.py +179 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/__version__.py +14 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/_internal_utils.py +50 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/adapters.py +719 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/api.py +157 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/auth.py +314 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/certs.py +24 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/compat.py +78 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/cookies.py +561 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/exceptions.py +151 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/help.py +127 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/hooks.py +33 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/models.py +1037 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/packages.py +25 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/sessions.py +831 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/status_codes.py +128 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/structures.py +99 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/requests/utils.py +1096 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/resolvelib/__init__.py +26 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +6 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/resolvelib/providers.py +133 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/resolvelib/reporters.py +43 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py +547 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/resolvelib/structs.py +170 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/__init__.py +177 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/__main__.py +273 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_cell_widths.py +454 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_codes.py +3610 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_export_format.py +76 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_extension.py +10 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_fileno.py +24 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_inspect.py +270 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_log_render.py +94 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_loop.py +43 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_null_file.py +69 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_palettes.py +309 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_pick.py +17 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_ratio.py +159 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_spinners.py +482 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_stack.py +16 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_timer.py +19 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_win32_console.py +662 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_windows.py +71 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_windows_renderer.py +56 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/_wrap.py +93 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/abc.py +33 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/align.py +311 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/ansi.py +240 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/bar.py +93 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/box.py +480 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/cells.py +167 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/color.py +621 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/color_triplet.py +38 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/columns.py +187 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/console.py +2633 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/constrain.py +37 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/containers.py +167 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/control.py +225 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/default_styles.py +190 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/diagnose.py +37 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/emoji.py +96 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/errors.py +34 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/file_proxy.py +57 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/filesize.py +89 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/highlighter.py +232 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/json.py +139 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/jupyter.py +101 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/layout.py +442 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/live.py +375 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/live_render.py +112 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/logging.py +289 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/markup.py +251 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/measure.py +151 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/padding.py +141 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/pager.py +34 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/palette.py +100 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/panel.py +312 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/pretty.py +995 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/progress.py +1699 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/progress_bar.py +223 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/prompt.py +375 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/protocol.py +42 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/region.py +10 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/repr.py +149 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/rule.py +130 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/scope.py +86 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/screen.py +54 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/segment.py +738 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/spinner.py +137 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/status.py +131 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/style.py +796 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/styled.py +42 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/syntax.py +958 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/table.py +1000 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/terminal_theme.py +153 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/text.py +1357 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/theme.py +115 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/themes.py +5 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/traceback.py +753 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/rich/tree.py +249 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/__init__.py +608 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/_asyncio.py +94 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/_utils.py +76 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/after.py +51 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/before.py +46 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/before_sleep.py +71 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/nap.py +43 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/retry.py +272 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/stop.py +103 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/tornadoweb.py +59 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tenacity/wait.py +228 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tomli/__init__.py +11 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tomli/_parser.py +691 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tomli/_re.py +107 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/tomli/_types.py +10 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/truststore/__init__.py +13 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/truststore/_api.py +313 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/truststore/_macos.py +499 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/truststore/_openssl.py +66 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/truststore/_ssl_constants.py +31 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/truststore/_windows.py +564 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/typing_extensions.py +3332 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/__init__.py +102 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/_collections.py +355 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/_version.py +2 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/connection.py +572 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/connectionpool.py +1137 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +518 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +920 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/fields.py +274 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +155 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/six.py +1076 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/poolmanager.py +540 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/request.py +191 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py +879 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/connection.py +149 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/request.py +137 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/retry.py +620 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssl_.py +495 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +159 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/timeout.py +271 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/url.py +435 -0
- package/lldb/lib/python3.12/site-packages/pip/_vendor/urllib3/util/wait.py +152 -0
- package/lldb/lib/python3.12/site.py +692 -0
- package/lldb/lib/python3.12/smtplib.py +1109 -0
- package/lldb/lib/python3.12/sndhdr.py +271 -0
- package/lldb/lib/python3.12/socket.py +981 -0
- package/lldb/lib/python3.12/socketserver.py +858 -0
- package/lldb/lib/python3.12/sre_compile.py +7 -0
- package/lldb/lib/python3.12/sre_constants.py +7 -0
- package/lldb/lib/python3.12/sre_parse.py +7 -0
- package/lldb/lib/python3.12/ssl.py +1476 -0
- package/lldb/lib/python3.12/stat.py +195 -0
- package/lldb/lib/python3.12/statistics.py +1454 -0
- package/lldb/lib/python3.12/string.py +309 -0
- package/lldb/lib/python3.12/stringprep.py +272 -0
- package/lldb/lib/python3.12/struct.py +15 -0
- package/lldb/lib/python3.12/subprocess.py +2216 -0
- package/lldb/lib/python3.12/sunau.py +533 -0
- package/lldb/lib/python3.12/symtable.py +362 -0
- package/lldb/lib/python3.12/sysconfig.py +876 -0
- package/lldb/lib/python3.12/tabnanny.py +340 -0
- package/lldb/lib/python3.12/tarfile.py +2933 -0
- package/lldb/lib/python3.12/telnetlib.py +680 -0
- package/lldb/lib/python3.12/tempfile.py +952 -0
- package/lldb/lib/python3.12/textwrap.py +491 -0
- package/lldb/lib/python3.12/this.py +28 -0
- package/lldb/lib/python3.12/threading.py +1708 -0
- package/lldb/lib/python3.12/timeit.py +381 -0
- package/lldb/lib/python3.12/token.py +142 -0
- package/lldb/lib/python3.12/tokenize.py +586 -0
- package/lldb/lib/python3.12/tomllib/__init__.py +10 -0
- package/lldb/lib/python3.12/tomllib/_parser.py +691 -0
- package/lldb/lib/python3.12/tomllib/_re.py +107 -0
- package/lldb/lib/python3.12/tomllib/_types.py +10 -0
- package/lldb/lib/python3.12/trace.py +748 -0
- package/lldb/lib/python3.12/traceback.py +1187 -0
- package/lldb/lib/python3.12/tracemalloc.py +560 -0
- package/lldb/lib/python3.12/tty.py +73 -0
- package/lldb/lib/python3.12/turtle.py +4207 -0
- package/lldb/lib/python3.12/types.py +333 -0
- package/lldb/lib/python3.12/typing.py +3489 -0
- package/lldb/lib/python3.12/unittest/__init__.py +85 -0
- package/lldb/lib/python3.12/unittest/__main__.py +18 -0
- package/lldb/lib/python3.12/unittest/_log.py +86 -0
- package/lldb/lib/python3.12/unittest/async_case.py +142 -0
- package/lldb/lib/python3.12/unittest/case.py +1456 -0
- package/lldb/lib/python3.12/unittest/loader.py +497 -0
- package/lldb/lib/python3.12/unittest/main.py +291 -0
- package/lldb/lib/python3.12/unittest/mock.py +3045 -0
- package/lldb/lib/python3.12/unittest/result.py +256 -0
- package/lldb/lib/python3.12/unittest/runner.py +292 -0
- package/lldb/lib/python3.12/unittest/signals.py +71 -0
- package/lldb/lib/python3.12/unittest/suite.py +379 -0
- package/lldb/lib/python3.12/unittest/util.py +170 -0
- package/lldb/lib/python3.12/urllib/__init__.py +0 -0
- package/lldb/lib/python3.12/urllib/error.py +74 -0
- package/lldb/lib/python3.12/urllib/parse.py +1246 -0
- package/lldb/lib/python3.12/urllib/request.py +2796 -0
- package/lldb/lib/python3.12/urllib/response.py +84 -0
- package/lldb/lib/python3.12/urllib/robotparser.py +273 -0
- package/lldb/lib/python3.12/uu.py +216 -0
- package/lldb/lib/python3.12/uuid.py +793 -0
- package/lldb/lib/python3.12/warnings.py +598 -0
- package/lldb/lib/python3.12/wave.py +653 -0
- package/lldb/lib/python3.12/weakref.py +674 -0
- package/lldb/lib/python3.12/webbrowser.py +689 -0
- package/lldb/lib/python3.12/wsgiref/__init__.py +25 -0
- package/lldb/lib/python3.12/wsgiref/handlers.py +573 -0
- package/lldb/lib/python3.12/wsgiref/headers.py +184 -0
- package/lldb/lib/python3.12/wsgiref/simple_server.py +165 -0
- package/lldb/lib/python3.12/wsgiref/types.py +54 -0
- package/lldb/lib/python3.12/wsgiref/util.py +159 -0
- package/lldb/lib/python3.12/wsgiref/validate.py +438 -0
- package/lldb/lib/python3.12/xdrlib.py +242 -0
- package/lldb/lib/python3.12/xml/__init__.py +20 -0
- package/lldb/lib/python3.12/xml/dom/NodeFilter.py +27 -0
- package/lldb/lib/python3.12/xml/dom/__init__.py +140 -0
- package/lldb/lib/python3.12/xml/dom/domreg.py +99 -0
- package/lldb/lib/python3.12/xml/dom/expatbuilder.py +962 -0
- package/lldb/lib/python3.12/xml/dom/minicompat.py +109 -0
- package/lldb/lib/python3.12/xml/dom/minidom.py +2013 -0
- package/lldb/lib/python3.12/xml/dom/pulldom.py +336 -0
- package/lldb/lib/python3.12/xml/dom/xmlbuilder.py +387 -0
- package/lldb/lib/python3.12/xml/etree/ElementInclude.py +186 -0
- package/lldb/lib/python3.12/xml/etree/ElementPath.py +423 -0
- package/lldb/lib/python3.12/xml/etree/ElementTree.py +2085 -0
- package/lldb/lib/python3.12/xml/etree/__init__.py +33 -0
- package/lldb/lib/python3.12/xml/etree/cElementTree.py +3 -0
- package/lldb/lib/python3.12/xml/parsers/__init__.py +8 -0
- package/lldb/lib/python3.12/xml/parsers/expat.py +8 -0
- package/lldb/lib/python3.12/xml/sax/__init__.py +94 -0
- package/lldb/lib/python3.12/xml/sax/_exceptions.py +127 -0
- package/lldb/lib/python3.12/xml/sax/expatreader.py +454 -0
- package/lldb/lib/python3.12/xml/sax/handler.py +387 -0
- package/lldb/lib/python3.12/xml/sax/saxutils.py +369 -0
- package/lldb/lib/python3.12/xml/sax/xmlreader.py +378 -0
- package/lldb/lib/python3.12/xmlrpc/__init__.py +1 -0
- package/lldb/lib/python3.12/xmlrpc/client.py +1529 -0
- package/lldb/lib/python3.12/xmlrpc/server.py +1002 -0
- package/lldb/lib/python3.12/zipapp.py +206 -0
- package/lldb/lib/python3.12/zipfile/__init__.py +2314 -0
- package/lldb/lib/python3.12/zipfile/__main__.py +4 -0
- package/lldb/lib/python3.12/zipfile/_path/__init__.py +412 -0
- package/lldb/lib/python3.12/zipfile/_path/glob.py +53 -0
- package/lldb/lib/python3.12/zipimport.py +712 -0
- package/lldb/lib/python3.12/zoneinfo/__init__.py +31 -0
- package/lldb/lib/python3.12/zoneinfo/_common.py +164 -0
- package/lldb/lib/python3.12/zoneinfo/_tzpath.py +181 -0
- package/lldb/lib/python3.12/zoneinfo/_zoneinfo.py +772 -0
- package/package.json +28 -4
- package/version.json +4 -0
|
@@ -0,0 +1,987 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from sys import stderr
|
|
3
|
+
import sys
|
|
4
|
+
import lldb
|
|
5
|
+
import lldb.formatters.Logger
|
|
6
|
+
|
|
7
|
+
# libcxx STL formatters for LLDB
|
|
8
|
+
# These formatters are based upon the implementation of libc++ that
|
|
9
|
+
# ships with current releases of OS X - They will not work for other implementations
|
|
10
|
+
# of the standard C++ library - and they are bound to use the
|
|
11
|
+
# libc++-specific namespace
|
|
12
|
+
|
|
13
|
+
# the std::string summary is just an example for your convenience
|
|
14
|
+
# the actual summary that LLDB uses is C++ code inside the debugger's own core
|
|
15
|
+
|
|
16
|
+
# this could probably be made more efficient but since it only reads a handful of bytes at a time
|
|
17
|
+
# we probably don't need to worry too much about this for the time being
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def make_string(F, L):
|
|
21
|
+
strval = ""
|
|
22
|
+
G = F.GetData().uint8
|
|
23
|
+
for X in range(L):
|
|
24
|
+
V = G[X]
|
|
25
|
+
if V == 0:
|
|
26
|
+
break
|
|
27
|
+
strval = strval + chr(V % 256)
|
|
28
|
+
return '"' + strval + '"'
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# if we ever care about big-endian, these two functions might need to change
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def is_short_string(value):
|
|
35
|
+
return True if (value & 1) == 0 else False
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def extract_short_size(value):
|
|
39
|
+
return (value >> 1) % 256
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# some of the members of libc++ std::string are anonymous or have internal names that convey
|
|
43
|
+
# no external significance - we access them by index since this saves a name lookup that would add
|
|
44
|
+
# no information for readers of the code, but when possible try to use
|
|
45
|
+
# meaningful variable names
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def stdstring_SummaryProvider(valobj, dict):
|
|
49
|
+
logger = lldb.formatters.Logger.Logger()
|
|
50
|
+
r = valobj.GetChildAtIndex(0)
|
|
51
|
+
B = r.GetChildAtIndex(0)
|
|
52
|
+
first = B.GetChildAtIndex(0)
|
|
53
|
+
D = first.GetChildAtIndex(0)
|
|
54
|
+
l = D.GetChildAtIndex(0)
|
|
55
|
+
s = D.GetChildAtIndex(1)
|
|
56
|
+
D20 = s.GetChildAtIndex(0)
|
|
57
|
+
size_mode = D20.GetChildAtIndex(0).GetValueAsUnsigned(0)
|
|
58
|
+
if is_short_string(size_mode):
|
|
59
|
+
size = extract_short_size(size_mode)
|
|
60
|
+
return make_string(s.GetChildAtIndex(1), size)
|
|
61
|
+
else:
|
|
62
|
+
data_ptr = l.GetChildAtIndex(2)
|
|
63
|
+
size_vo = l.GetChildAtIndex(1)
|
|
64
|
+
# the NULL terminator must be accounted for
|
|
65
|
+
size = size_vo.GetValueAsUnsigned(0) + 1
|
|
66
|
+
if size <= 1 or size is None: # should never be the case
|
|
67
|
+
return '""'
|
|
68
|
+
try:
|
|
69
|
+
data = data_ptr.GetPointeeData(0, size)
|
|
70
|
+
except:
|
|
71
|
+
return '""'
|
|
72
|
+
error = lldb.SBError()
|
|
73
|
+
strval = data.GetString(error, 0)
|
|
74
|
+
if error.Fail():
|
|
75
|
+
return "<error:" + error.GetCString() + ">"
|
|
76
|
+
else:
|
|
77
|
+
return '"' + strval + '"'
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def get_buffer_end(buffer, begin):
|
|
81
|
+
"""
|
|
82
|
+
Returns a pointer to where the next element would be pushed.
|
|
83
|
+
|
|
84
|
+
For libc++'s stable ABI and unstable < LLVM 22, returns `__end_`.
|
|
85
|
+
For libc++'s unstable ABI, returns `__begin_ + __size_`.
|
|
86
|
+
"""
|
|
87
|
+
map_end = buffer.GetChildMemberWithName("__end_")
|
|
88
|
+
if map_end.IsValid():
|
|
89
|
+
return map_end.GetValueAsUnsigned(0)
|
|
90
|
+
map_size = buffer.GetChildMemberWithName("__size_").GetValueAsUnsigned(0)
|
|
91
|
+
return begin + map_size
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def get_buffer_endcap(parent, buffer, begin, has_compressed_pair_layout, is_size_based):
|
|
95
|
+
"""
|
|
96
|
+
Returns a pointer to the end of the buffer.
|
|
97
|
+
|
|
98
|
+
For libc++'s stable ABI and unstable < LLVM 22, returns:
|
|
99
|
+
* `__end_cap_`, if `__compressed_pair` is being used
|
|
100
|
+
* `__cap_`, otherwise
|
|
101
|
+
For libc++'s unstable ABI, returns `__begin_ + __cap_`.
|
|
102
|
+
"""
|
|
103
|
+
if has_compressed_pair_layout:
|
|
104
|
+
map_endcap = parent._get_value_of_compressed_pair(
|
|
105
|
+
buffer.GetChildMemberWithName("__end_cap_")
|
|
106
|
+
)
|
|
107
|
+
elif buffer.GetType().GetNumberOfDirectBaseClasses() == 1:
|
|
108
|
+
# LLVM 22's __split_buffer is derived from a base class that describes its layout. When the
|
|
109
|
+
# compressed pair ABI is required, we also use an anonymous struct. Per [#158131], LLDB
|
|
110
|
+
# is unable to access members of an anonymous struct to a base class, through the derived
|
|
111
|
+
# class. This means that in order to access the compressed pair's pointer, we need to first
|
|
112
|
+
# get to its base class.
|
|
113
|
+
#
|
|
114
|
+
# [#158131]: https://github.com/llvm/llvm-project/issues/158131
|
|
115
|
+
buffer = buffer.GetChildAtIndex(0)
|
|
116
|
+
if is_size_based:
|
|
117
|
+
map_endcap = buffer.GetChildMemberWithName("__cap_")
|
|
118
|
+
else:
|
|
119
|
+
map_endcap = buffer.GetChildMemberWithName("__back_cap_")
|
|
120
|
+
map_endcap = map_endcap.GetValueAsUnsigned(0)
|
|
121
|
+
else:
|
|
122
|
+
map_endcap = buffer.GetChildMemberWithName("__cap_")
|
|
123
|
+
if not map_endcap.IsValid():
|
|
124
|
+
map_endcap = buffer.GetChildMemberWithName("__end_cap_")
|
|
125
|
+
map_endcap = map_endcap.GetValueAsUnsigned(0)
|
|
126
|
+
|
|
127
|
+
if is_size_based:
|
|
128
|
+
return begin + map_endcap
|
|
129
|
+
|
|
130
|
+
return map_endcap
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
class stdvector_SynthProvider:
|
|
134
|
+
def __init__(self, valobj, dict):
|
|
135
|
+
logger = lldb.formatters.Logger.Logger()
|
|
136
|
+
self.valobj = valobj
|
|
137
|
+
|
|
138
|
+
def num_children(self):
|
|
139
|
+
logger = lldb.formatters.Logger.Logger()
|
|
140
|
+
try:
|
|
141
|
+
start_val = self.start.GetValueAsUnsigned(0)
|
|
142
|
+
finish_val = self.finish.GetValueAsUnsigned(0)
|
|
143
|
+
# Before a vector has been constructed, it will contain bad values
|
|
144
|
+
# so we really need to be careful about the length we return since
|
|
145
|
+
# uninitialized data can cause us to return a huge number. We need
|
|
146
|
+
# to also check for any of the start, finish or end of storage values
|
|
147
|
+
# being zero (NULL). If any are, then this vector has not been
|
|
148
|
+
# initialized yet and we should return zero
|
|
149
|
+
|
|
150
|
+
# Make sure nothing is NULL
|
|
151
|
+
if start_val == 0 or finish_val == 0:
|
|
152
|
+
return 0
|
|
153
|
+
# Make sure start is less than finish
|
|
154
|
+
if start_val >= finish_val:
|
|
155
|
+
return 0
|
|
156
|
+
|
|
157
|
+
num_children = finish_val - start_val
|
|
158
|
+
if (num_children % self.data_size) != 0:
|
|
159
|
+
return 0
|
|
160
|
+
else:
|
|
161
|
+
num_children = num_children / self.data_size
|
|
162
|
+
return num_children
|
|
163
|
+
except:
|
|
164
|
+
return 0
|
|
165
|
+
|
|
166
|
+
def get_child_index(self, name):
|
|
167
|
+
logger = lldb.formatters.Logger.Logger()
|
|
168
|
+
try:
|
|
169
|
+
return int(name.lstrip("[").rstrip("]"))
|
|
170
|
+
except:
|
|
171
|
+
return -1
|
|
172
|
+
|
|
173
|
+
def get_child_at_index(self, index):
|
|
174
|
+
logger = lldb.formatters.Logger.Logger()
|
|
175
|
+
logger >> "Retrieving child " + str(index)
|
|
176
|
+
if index < 0:
|
|
177
|
+
return None
|
|
178
|
+
if index >= self.num_children():
|
|
179
|
+
return None
|
|
180
|
+
try:
|
|
181
|
+
offset = index * self.data_size
|
|
182
|
+
return self.start.CreateChildAtOffset(
|
|
183
|
+
"[" + str(index) + "]", offset, self.data_type
|
|
184
|
+
)
|
|
185
|
+
except:
|
|
186
|
+
return None
|
|
187
|
+
|
|
188
|
+
def update(self):
|
|
189
|
+
logger = lldb.formatters.Logger.Logger()
|
|
190
|
+
try:
|
|
191
|
+
self.start = self.valobj.GetChildMemberWithName("__begin_")
|
|
192
|
+
self.finish = self.valobj.GetChildMemberWithName("__end_")
|
|
193
|
+
# the purpose of this field is unclear, but it is the only field whose type is clearly T* for a vector<T>
|
|
194
|
+
# if this ends up not being correct, we can use the APIs to get at
|
|
195
|
+
# template arguments
|
|
196
|
+
data_type_finder = self.valobj.GetChildMemberWithName(
|
|
197
|
+
"__end_cap_"
|
|
198
|
+
).GetChildMemberWithName("__first_")
|
|
199
|
+
self.data_type = data_type_finder.GetType().GetPointeeType()
|
|
200
|
+
self.data_size = self.data_type.GetByteSize()
|
|
201
|
+
except:
|
|
202
|
+
pass
|
|
203
|
+
|
|
204
|
+
def has_children(self):
|
|
205
|
+
return True
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
# Just an example: the actual summary is produced by a summary string:
|
|
209
|
+
# size=${svar%#}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
def stdvector_SummaryProvider(valobj, dict):
|
|
213
|
+
prov = stdvector_SynthProvider(valobj, None)
|
|
214
|
+
return "size=" + str(prov.num_children())
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
class stdlist_entry:
|
|
218
|
+
def __init__(self, entry):
|
|
219
|
+
logger = lldb.formatters.Logger.Logger()
|
|
220
|
+
self.entry = entry
|
|
221
|
+
|
|
222
|
+
def _next_impl(self):
|
|
223
|
+
logger = lldb.formatters.Logger.Logger()
|
|
224
|
+
return stdlist_entry(self.entry.GetChildMemberWithName("__next_"))
|
|
225
|
+
|
|
226
|
+
def _prev_impl(self):
|
|
227
|
+
logger = lldb.formatters.Logger.Logger()
|
|
228
|
+
return stdlist_entry(self.entry.GetChildMemberWithName("__prev_"))
|
|
229
|
+
|
|
230
|
+
def _value_impl(self):
|
|
231
|
+
logger = lldb.formatters.Logger.Logger()
|
|
232
|
+
return self.entry.GetValueAsUnsigned(0)
|
|
233
|
+
|
|
234
|
+
def _isnull_impl(self):
|
|
235
|
+
logger = lldb.formatters.Logger.Logger()
|
|
236
|
+
return self._value_impl() == 0
|
|
237
|
+
|
|
238
|
+
def _sbvalue_impl(self):
|
|
239
|
+
logger = lldb.formatters.Logger.Logger()
|
|
240
|
+
return self.entry
|
|
241
|
+
|
|
242
|
+
next = property(_next_impl, None)
|
|
243
|
+
value = property(_value_impl, None)
|
|
244
|
+
is_null = property(_isnull_impl, None)
|
|
245
|
+
sbvalue = property(_sbvalue_impl, None)
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
class stdlist_iterator:
|
|
249
|
+
def increment_node(self, node):
|
|
250
|
+
logger = lldb.formatters.Logger.Logger()
|
|
251
|
+
if node.is_null:
|
|
252
|
+
return None
|
|
253
|
+
return node.next
|
|
254
|
+
|
|
255
|
+
def __init__(self, node):
|
|
256
|
+
logger = lldb.formatters.Logger.Logger()
|
|
257
|
+
# we convert the SBValue to an internal node object on entry
|
|
258
|
+
self.node = stdlist_entry(node)
|
|
259
|
+
|
|
260
|
+
def value(self):
|
|
261
|
+
logger = lldb.formatters.Logger.Logger()
|
|
262
|
+
return self.node.sbvalue # and return the SBValue back on exit
|
|
263
|
+
|
|
264
|
+
def next(self):
|
|
265
|
+
logger = lldb.formatters.Logger.Logger()
|
|
266
|
+
node = self.increment_node(self.node)
|
|
267
|
+
if node is not None and node.sbvalue.IsValid() and not (node.is_null):
|
|
268
|
+
self.node = node
|
|
269
|
+
return self.value()
|
|
270
|
+
else:
|
|
271
|
+
return None
|
|
272
|
+
|
|
273
|
+
def advance(self, N):
|
|
274
|
+
logger = lldb.formatters.Logger.Logger()
|
|
275
|
+
if N < 0:
|
|
276
|
+
return None
|
|
277
|
+
if N == 0:
|
|
278
|
+
return self.value()
|
|
279
|
+
if N == 1:
|
|
280
|
+
return self.next()
|
|
281
|
+
while N > 0:
|
|
282
|
+
self.next()
|
|
283
|
+
N = N - 1
|
|
284
|
+
return self.value()
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
class stdlist_SynthProvider:
|
|
288
|
+
def __init__(self, valobj, dict):
|
|
289
|
+
logger = lldb.formatters.Logger.Logger()
|
|
290
|
+
self.valobj = valobj
|
|
291
|
+
self.count = None
|
|
292
|
+
|
|
293
|
+
def next_node(self, node):
|
|
294
|
+
logger = lldb.formatters.Logger.Logger()
|
|
295
|
+
return node.GetChildMemberWithName("__next_")
|
|
296
|
+
|
|
297
|
+
def value(self, node):
|
|
298
|
+
logger = lldb.formatters.Logger.Logger()
|
|
299
|
+
return node.GetValueAsUnsigned()
|
|
300
|
+
|
|
301
|
+
# Floyd's cycle-finding algorithm
|
|
302
|
+
# try to detect if this list has a loop
|
|
303
|
+
def has_loop(self):
|
|
304
|
+
global _list_uses_loop_detector
|
|
305
|
+
logger = lldb.formatters.Logger.Logger()
|
|
306
|
+
if not _list_uses_loop_detector:
|
|
307
|
+
logger >> "Asked not to use loop detection"
|
|
308
|
+
return False
|
|
309
|
+
slow = stdlist_entry(self.head)
|
|
310
|
+
fast1 = stdlist_entry(self.head)
|
|
311
|
+
fast2 = stdlist_entry(self.head)
|
|
312
|
+
while slow.next.value != self.node_address:
|
|
313
|
+
slow_value = slow.value
|
|
314
|
+
fast1 = fast2.next
|
|
315
|
+
fast2 = fast1.next
|
|
316
|
+
if fast1.value == slow_value or fast2.value == slow_value:
|
|
317
|
+
return True
|
|
318
|
+
slow = slow.next
|
|
319
|
+
return False
|
|
320
|
+
|
|
321
|
+
def num_children(self):
|
|
322
|
+
global _list_capping_size
|
|
323
|
+
logger = lldb.formatters.Logger.Logger()
|
|
324
|
+
if self.count is None:
|
|
325
|
+
self.count = self.num_children_impl()
|
|
326
|
+
if self.count > _list_capping_size:
|
|
327
|
+
self.count = _list_capping_size
|
|
328
|
+
return self.count
|
|
329
|
+
|
|
330
|
+
def num_children_impl(self):
|
|
331
|
+
global _list_capping_size
|
|
332
|
+
logger = lldb.formatters.Logger.Logger()
|
|
333
|
+
try:
|
|
334
|
+
next_val = self.head.GetValueAsUnsigned(0)
|
|
335
|
+
prev_val = self.tail.GetValueAsUnsigned(0)
|
|
336
|
+
# After a std::list has been initialized, both next and prev will
|
|
337
|
+
# be non-NULL
|
|
338
|
+
if next_val == 0 or prev_val == 0:
|
|
339
|
+
return 0
|
|
340
|
+
if next_val == self.node_address:
|
|
341
|
+
return 0
|
|
342
|
+
if next_val == prev_val:
|
|
343
|
+
return 1
|
|
344
|
+
if self.has_loop():
|
|
345
|
+
return 0
|
|
346
|
+
size = 2
|
|
347
|
+
current = stdlist_entry(self.head)
|
|
348
|
+
while current.next.value != self.node_address:
|
|
349
|
+
size = size + 1
|
|
350
|
+
current = current.next
|
|
351
|
+
if size > _list_capping_size:
|
|
352
|
+
return _list_capping_size
|
|
353
|
+
return size - 1
|
|
354
|
+
except:
|
|
355
|
+
return 0
|
|
356
|
+
|
|
357
|
+
def get_child_index(self, name):
|
|
358
|
+
logger = lldb.formatters.Logger.Logger()
|
|
359
|
+
try:
|
|
360
|
+
return int(name.lstrip("[").rstrip("]"))
|
|
361
|
+
except:
|
|
362
|
+
return -1
|
|
363
|
+
|
|
364
|
+
def get_child_at_index(self, index):
|
|
365
|
+
logger = lldb.formatters.Logger.Logger()
|
|
366
|
+
logger >> "Fetching child " + str(index)
|
|
367
|
+
if index < 0:
|
|
368
|
+
return None
|
|
369
|
+
if index >= self.num_children():
|
|
370
|
+
return None
|
|
371
|
+
try:
|
|
372
|
+
current = stdlist_iterator(self.head)
|
|
373
|
+
current = current.advance(index)
|
|
374
|
+
# we do not return __value_ because then all our children would be named __value_
|
|
375
|
+
# we need to make a copy of __value__ with the right name -
|
|
376
|
+
# unfortunate
|
|
377
|
+
obj = current.GetChildMemberWithName("__value_")
|
|
378
|
+
obj_data = obj.GetData()
|
|
379
|
+
return self.valobj.CreateValueFromData(
|
|
380
|
+
"[" + str(index) + "]", obj_data, self.data_type
|
|
381
|
+
)
|
|
382
|
+
except:
|
|
383
|
+
return None
|
|
384
|
+
|
|
385
|
+
def extract_type(self):
|
|
386
|
+
logger = lldb.formatters.Logger.Logger()
|
|
387
|
+
list_type = self.valobj.GetType().GetUnqualifiedType()
|
|
388
|
+
if list_type.IsReferenceType():
|
|
389
|
+
list_type = list_type.GetDereferencedType()
|
|
390
|
+
if list_type.GetNumberOfTemplateArguments() > 0:
|
|
391
|
+
data_type = list_type.GetTemplateArgumentType(0)
|
|
392
|
+
else:
|
|
393
|
+
data_type = None
|
|
394
|
+
return data_type
|
|
395
|
+
|
|
396
|
+
def update(self):
|
|
397
|
+
logger = lldb.formatters.Logger.Logger()
|
|
398
|
+
self.count = None
|
|
399
|
+
try:
|
|
400
|
+
impl = self.valobj.GetChildMemberWithName("__end_")
|
|
401
|
+
self.node_address = self.valobj.AddressOf().GetValueAsUnsigned(0)
|
|
402
|
+
self.head = impl.GetChildMemberWithName("__next_")
|
|
403
|
+
self.tail = impl.GetChildMemberWithName("__prev_")
|
|
404
|
+
self.data_type = self.extract_type()
|
|
405
|
+
self.data_size = self.data_type.GetByteSize()
|
|
406
|
+
except:
|
|
407
|
+
pass
|
|
408
|
+
|
|
409
|
+
def has_children(self):
|
|
410
|
+
return True
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
# Just an example: the actual summary is produced by a summary string:
|
|
414
|
+
# size=${svar%#}
|
|
415
|
+
def stdlist_SummaryProvider(valobj, dict):
|
|
416
|
+
prov = stdlist_SynthProvider(valobj, None)
|
|
417
|
+
return "size=" + str(prov.num_children())
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
# a tree node - this class makes the syntax in the actual iterator nicer
|
|
421
|
+
# to read and maintain
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
class stdmap_iterator_node:
|
|
425
|
+
def _left_impl(self):
|
|
426
|
+
logger = lldb.formatters.Logger.Logger()
|
|
427
|
+
return stdmap_iterator_node(self.node.GetChildMemberWithName("__left_"))
|
|
428
|
+
|
|
429
|
+
def _right_impl(self):
|
|
430
|
+
logger = lldb.formatters.Logger.Logger()
|
|
431
|
+
return stdmap_iterator_node(self.node.GetChildMemberWithName("__right_"))
|
|
432
|
+
|
|
433
|
+
def _parent_impl(self):
|
|
434
|
+
logger = lldb.formatters.Logger.Logger()
|
|
435
|
+
return stdmap_iterator_node(self.node.GetChildMemberWithName("__parent_"))
|
|
436
|
+
|
|
437
|
+
def _value_impl(self):
|
|
438
|
+
logger = lldb.formatters.Logger.Logger()
|
|
439
|
+
return self.node.GetValueAsUnsigned(0)
|
|
440
|
+
|
|
441
|
+
def _sbvalue_impl(self):
|
|
442
|
+
logger = lldb.formatters.Logger.Logger()
|
|
443
|
+
return self.node
|
|
444
|
+
|
|
445
|
+
def _null_impl(self):
|
|
446
|
+
logger = lldb.formatters.Logger.Logger()
|
|
447
|
+
return self.value == 0
|
|
448
|
+
|
|
449
|
+
def __init__(self, node):
|
|
450
|
+
logger = lldb.formatters.Logger.Logger()
|
|
451
|
+
self.node = node
|
|
452
|
+
|
|
453
|
+
left = property(_left_impl, None)
|
|
454
|
+
right = property(_right_impl, None)
|
|
455
|
+
parent = property(_parent_impl, None)
|
|
456
|
+
value = property(_value_impl, None)
|
|
457
|
+
is_null = property(_null_impl, None)
|
|
458
|
+
sbvalue = property(_sbvalue_impl, None)
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
# a Python implementation of the tree iterator used by libc++
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
class stdmap_iterator:
|
|
465
|
+
def tree_min(self, x):
|
|
466
|
+
logger = lldb.formatters.Logger.Logger()
|
|
467
|
+
steps = 0
|
|
468
|
+
if x.is_null:
|
|
469
|
+
return None
|
|
470
|
+
while not x.left.is_null:
|
|
471
|
+
x = x.left
|
|
472
|
+
steps += 1
|
|
473
|
+
if steps > self.max_count:
|
|
474
|
+
logger >> "Returning None - we overflowed"
|
|
475
|
+
return None
|
|
476
|
+
return x
|
|
477
|
+
|
|
478
|
+
def tree_max(self, x):
|
|
479
|
+
logger = lldb.formatters.Logger.Logger()
|
|
480
|
+
if x.is_null:
|
|
481
|
+
return None
|
|
482
|
+
while not x.right.is_null:
|
|
483
|
+
x = x.right
|
|
484
|
+
return x
|
|
485
|
+
|
|
486
|
+
def tree_is_left_child(self, x):
|
|
487
|
+
logger = lldb.formatters.Logger.Logger()
|
|
488
|
+
if x.is_null:
|
|
489
|
+
return None
|
|
490
|
+
return True if x.value == x.parent.left.value else False
|
|
491
|
+
|
|
492
|
+
def increment_node(self, node):
|
|
493
|
+
logger = lldb.formatters.Logger.Logger()
|
|
494
|
+
if node.is_null:
|
|
495
|
+
return None
|
|
496
|
+
if not node.right.is_null:
|
|
497
|
+
return self.tree_min(node.right)
|
|
498
|
+
steps = 0
|
|
499
|
+
while not self.tree_is_left_child(node):
|
|
500
|
+
steps += 1
|
|
501
|
+
if steps > self.max_count:
|
|
502
|
+
logger >> "Returning None - we overflowed"
|
|
503
|
+
return None
|
|
504
|
+
node = node.parent
|
|
505
|
+
return node.parent
|
|
506
|
+
|
|
507
|
+
def __init__(self, node, max_count=0):
|
|
508
|
+
logger = lldb.formatters.Logger.Logger()
|
|
509
|
+
# we convert the SBValue to an internal node object on entry
|
|
510
|
+
self.node = stdmap_iterator_node(node)
|
|
511
|
+
self.max_count = max_count
|
|
512
|
+
|
|
513
|
+
def value(self):
|
|
514
|
+
logger = lldb.formatters.Logger.Logger()
|
|
515
|
+
return self.node.sbvalue # and return the SBValue back on exit
|
|
516
|
+
|
|
517
|
+
def next(self):
|
|
518
|
+
logger = lldb.formatters.Logger.Logger()
|
|
519
|
+
node = self.increment_node(self.node)
|
|
520
|
+
if node is not None and node.sbvalue.IsValid() and not (node.is_null):
|
|
521
|
+
self.node = node
|
|
522
|
+
return self.value()
|
|
523
|
+
else:
|
|
524
|
+
return None
|
|
525
|
+
|
|
526
|
+
def advance(self, N):
|
|
527
|
+
logger = lldb.formatters.Logger.Logger()
|
|
528
|
+
if N < 0:
|
|
529
|
+
return None
|
|
530
|
+
if N == 0:
|
|
531
|
+
return self.value()
|
|
532
|
+
if N == 1:
|
|
533
|
+
return self.next()
|
|
534
|
+
while N > 0:
|
|
535
|
+
if self.next() is None:
|
|
536
|
+
return None
|
|
537
|
+
N = N - 1
|
|
538
|
+
return self.value()
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
class stdmap_SynthProvider:
|
|
542
|
+
def __init__(self, valobj, dict):
|
|
543
|
+
logger = lldb.formatters.Logger.Logger()
|
|
544
|
+
self.valobj = valobj
|
|
545
|
+
self.pointer_size = self.valobj.GetProcess().GetAddressByteSize()
|
|
546
|
+
self.count = None
|
|
547
|
+
|
|
548
|
+
def update(self):
|
|
549
|
+
logger = lldb.formatters.Logger.Logger()
|
|
550
|
+
self.count = None
|
|
551
|
+
try:
|
|
552
|
+
# we will set this to True if we find out that discovering a node in the map takes more steps than the overall size of the RB tree
|
|
553
|
+
# if this gets set to True, then we will merrily return None for
|
|
554
|
+
# any child from that moment on
|
|
555
|
+
self.garbage = False
|
|
556
|
+
self.tree = self.valobj.GetChildMemberWithName("__tree_")
|
|
557
|
+
self.root_node = self.tree.GetChildMemberWithName("__begin_node_")
|
|
558
|
+
# this data is either lazily-calculated, or cannot be inferred at this moment
|
|
559
|
+
# we still need to mark it as None, meaning "please set me ASAP"
|
|
560
|
+
self.data_type = None
|
|
561
|
+
self.data_size = None
|
|
562
|
+
self.skip_size = None
|
|
563
|
+
except:
|
|
564
|
+
pass
|
|
565
|
+
|
|
566
|
+
def num_children(self):
|
|
567
|
+
global _map_capping_size
|
|
568
|
+
logger = lldb.formatters.Logger.Logger()
|
|
569
|
+
if self.count is None:
|
|
570
|
+
self.count = self.num_children_impl()
|
|
571
|
+
if self.count > _map_capping_size:
|
|
572
|
+
self.count = _map_capping_size
|
|
573
|
+
return self.count
|
|
574
|
+
|
|
575
|
+
def num_children_impl(self):
|
|
576
|
+
logger = lldb.formatters.Logger.Logger()
|
|
577
|
+
try:
|
|
578
|
+
return (
|
|
579
|
+
self.valobj.GetChildMemberWithName("__tree_")
|
|
580
|
+
.GetChildMemberWithName("__pair3_")
|
|
581
|
+
.GetChildMemberWithName("__first_")
|
|
582
|
+
.GetValueAsUnsigned()
|
|
583
|
+
)
|
|
584
|
+
except:
|
|
585
|
+
return 0
|
|
586
|
+
|
|
587
|
+
def has_children(self):
|
|
588
|
+
return True
|
|
589
|
+
|
|
590
|
+
def get_data_type(self):
|
|
591
|
+
logger = lldb.formatters.Logger.Logger()
|
|
592
|
+
if self.data_type is None or self.data_size is None:
|
|
593
|
+
if self.num_children() == 0:
|
|
594
|
+
return False
|
|
595
|
+
deref = self.root_node.Dereference()
|
|
596
|
+
if not (deref.IsValid()):
|
|
597
|
+
return False
|
|
598
|
+
value = deref.GetChildMemberWithName("__value_")
|
|
599
|
+
if not (value.IsValid()):
|
|
600
|
+
return False
|
|
601
|
+
self.data_type = value.GetType()
|
|
602
|
+
self.data_size = self.data_type.GetByteSize()
|
|
603
|
+
self.skip_size = None
|
|
604
|
+
return True
|
|
605
|
+
else:
|
|
606
|
+
return True
|
|
607
|
+
|
|
608
|
+
def get_value_offset(self, node):
|
|
609
|
+
logger = lldb.formatters.Logger.Logger()
|
|
610
|
+
if self.skip_size is None:
|
|
611
|
+
node_type = node.GetType()
|
|
612
|
+
fields_count = node_type.GetNumberOfFields()
|
|
613
|
+
for i in range(fields_count):
|
|
614
|
+
field = node_type.GetFieldAtIndex(i)
|
|
615
|
+
if field.GetName() == "__value_":
|
|
616
|
+
self.skip_size = field.GetOffsetInBytes()
|
|
617
|
+
break
|
|
618
|
+
return self.skip_size is not None
|
|
619
|
+
|
|
620
|
+
def get_child_index(self, name):
|
|
621
|
+
logger = lldb.formatters.Logger.Logger()
|
|
622
|
+
try:
|
|
623
|
+
return int(name.lstrip("[").rstrip("]"))
|
|
624
|
+
except:
|
|
625
|
+
return -1
|
|
626
|
+
|
|
627
|
+
def get_child_at_index(self, index):
|
|
628
|
+
logger = lldb.formatters.Logger.Logger()
|
|
629
|
+
logger >> "Retrieving child " + str(index)
|
|
630
|
+
if index < 0:
|
|
631
|
+
return None
|
|
632
|
+
if index >= self.num_children():
|
|
633
|
+
return None
|
|
634
|
+
if self.garbage:
|
|
635
|
+
logger >> "Returning None since this tree is garbage"
|
|
636
|
+
return None
|
|
637
|
+
try:
|
|
638
|
+
iterator = stdmap_iterator(self.root_node, max_count=self.num_children())
|
|
639
|
+
# the debug info for libc++ std::map is such that __begin_node_ has a very nice and useful type
|
|
640
|
+
# out of which we can grab the information we need - every other node has a less informative
|
|
641
|
+
# type which omits all value information and only contains housekeeping information for the RB tree
|
|
642
|
+
# hence, we need to know if we are at a node != 0, so that we can
|
|
643
|
+
# still get at the data
|
|
644
|
+
need_to_skip = index > 0
|
|
645
|
+
current = iterator.advance(index)
|
|
646
|
+
if current is None:
|
|
647
|
+
logger >> "Tree is garbage - returning None"
|
|
648
|
+
self.garbage = True
|
|
649
|
+
return None
|
|
650
|
+
if self.get_data_type():
|
|
651
|
+
if not (need_to_skip):
|
|
652
|
+
current = current.Dereference()
|
|
653
|
+
obj = current.GetChildMemberWithName("__value_")
|
|
654
|
+
obj_data = obj.GetData()
|
|
655
|
+
# make sure we have a valid offset for the next items
|
|
656
|
+
self.get_value_offset(current)
|
|
657
|
+
# we do not return __value_ because then we would end up with a child named
|
|
658
|
+
# __value_ instead of [0]
|
|
659
|
+
return self.valobj.CreateValueFromData(
|
|
660
|
+
"[" + str(index) + "]", obj_data, self.data_type
|
|
661
|
+
)
|
|
662
|
+
else:
|
|
663
|
+
# FIXME we need to have accessed item 0 before accessing
|
|
664
|
+
# any other item!
|
|
665
|
+
if self.skip_size is None:
|
|
666
|
+
(
|
|
667
|
+
logger
|
|
668
|
+
>> "You asked for item > 0 before asking for item == 0, I will fetch 0 now then retry"
|
|
669
|
+
)
|
|
670
|
+
if self.get_child_at_index(0):
|
|
671
|
+
return self.get_child_at_index(index)
|
|
672
|
+
else:
|
|
673
|
+
(
|
|
674
|
+
logger
|
|
675
|
+
>> "item == 0 could not be found. sorry, nothing can be done here."
|
|
676
|
+
)
|
|
677
|
+
return None
|
|
678
|
+
return current.CreateChildAtOffset(
|
|
679
|
+
"[" + str(index) + "]", self.skip_size, self.data_type
|
|
680
|
+
)
|
|
681
|
+
else:
|
|
682
|
+
(
|
|
683
|
+
logger
|
|
684
|
+
>> "Unable to infer data-type - returning None (should mark tree as garbage here?)"
|
|
685
|
+
)
|
|
686
|
+
return None
|
|
687
|
+
except Exception as err:
|
|
688
|
+
logger >> "Hit an exception: " + str(err)
|
|
689
|
+
return None
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
# Just an example: the actual summary is produced by a summary string:
|
|
693
|
+
# size=${svar%#}
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
def stdmap_SummaryProvider(valobj, dict):
|
|
697
|
+
prov = stdmap_SynthProvider(valobj, None)
|
|
698
|
+
return "size=" + str(prov.num_children())
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
class stddeque_SynthProvider:
|
|
702
|
+
def __init__(self, valobj, d):
|
|
703
|
+
logger = lldb.formatters.Logger.Logger()
|
|
704
|
+
logger.write("init")
|
|
705
|
+
self.valobj = valobj
|
|
706
|
+
self.pointer_size = self.valobj.GetProcess().GetAddressByteSize()
|
|
707
|
+
self.count = None
|
|
708
|
+
try:
|
|
709
|
+
self.find_block_size()
|
|
710
|
+
except:
|
|
711
|
+
self.block_size = -1
|
|
712
|
+
self.element_size = -1
|
|
713
|
+
logger.write(
|
|
714
|
+
"block_size=%d, element_size=%d" % (self.block_size, self.element_size)
|
|
715
|
+
)
|
|
716
|
+
|
|
717
|
+
def find_block_size(self):
|
|
718
|
+
# in order to use the deque we must have the block size, or else
|
|
719
|
+
# it's impossible to know what memory addresses are valid
|
|
720
|
+
obj_type = self.valobj.GetType()
|
|
721
|
+
if obj_type.IsReferenceType():
|
|
722
|
+
obj_type = obj_type.GetDereferencedType()
|
|
723
|
+
elif obj_type.IsPointerType():
|
|
724
|
+
obj_type = obj_type.GetPointeeType()
|
|
725
|
+
self.element_type = obj_type.GetTemplateArgumentType(0)
|
|
726
|
+
self.element_size = self.element_type.GetByteSize()
|
|
727
|
+
# The code says this, but there must be a better way:
|
|
728
|
+
# template <class _Tp, class _Allocator>
|
|
729
|
+
# class __deque_base {
|
|
730
|
+
# static const difference_type __block_size = sizeof(value_type) < 256 ? 4096 / sizeof(value_type) : 16;
|
|
731
|
+
# }
|
|
732
|
+
if self.element_size < 256:
|
|
733
|
+
self.block_size = 4096 // self.element_size
|
|
734
|
+
else:
|
|
735
|
+
self.block_size = 16
|
|
736
|
+
|
|
737
|
+
def num_children(self):
|
|
738
|
+
logger = lldb.formatters.Logger.Logger()
|
|
739
|
+
if self.count is None:
|
|
740
|
+
return 0
|
|
741
|
+
return self.count
|
|
742
|
+
|
|
743
|
+
def has_children(self):
|
|
744
|
+
return True
|
|
745
|
+
|
|
746
|
+
def get_child_index(self, name):
|
|
747
|
+
logger = lldb.formatters.Logger.Logger()
|
|
748
|
+
try:
|
|
749
|
+
return int(name.lstrip("[").rstrip("]"))
|
|
750
|
+
except:
|
|
751
|
+
return -1
|
|
752
|
+
|
|
753
|
+
@staticmethod
|
|
754
|
+
def _subscript(ptr: lldb.SBValue, idx: int, name: str) -> lldb.SBValue:
|
|
755
|
+
"""Access a pointer value as if it was an array. Returns ptr[idx]."""
|
|
756
|
+
deref_t = ptr.GetType().GetPointeeType()
|
|
757
|
+
offset = idx * deref_t.GetByteSize()
|
|
758
|
+
return ptr.CreateChildAtOffset(name, offset, deref_t)
|
|
759
|
+
|
|
760
|
+
def get_child_at_index(self, index):
|
|
761
|
+
logger = lldb.formatters.Logger.Logger()
|
|
762
|
+
logger.write("Fetching child " + str(index))
|
|
763
|
+
if index < 0 or self.count is None:
|
|
764
|
+
return None
|
|
765
|
+
if index >= self.num_children():
|
|
766
|
+
return None
|
|
767
|
+
try:
|
|
768
|
+
i, j = divmod(self.start + index, self.block_size)
|
|
769
|
+
val = stddeque_SynthProvider._subscript(self.map_begin, i, "")
|
|
770
|
+
return stddeque_SynthProvider._subscript(val, j, f"[{index}]")
|
|
771
|
+
except:
|
|
772
|
+
return None
|
|
773
|
+
|
|
774
|
+
def _get_value_of_compressed_pair(self, pair):
|
|
775
|
+
value = pair.GetChildMemberWithName("__value_")
|
|
776
|
+
if not value.IsValid():
|
|
777
|
+
# pre-r300140 member name
|
|
778
|
+
value = pair.GetChildMemberWithName("__first_")
|
|
779
|
+
return value.GetValueAsUnsigned(0)
|
|
780
|
+
|
|
781
|
+
def update(self):
|
|
782
|
+
logger = lldb.formatters.Logger.Logger()
|
|
783
|
+
try:
|
|
784
|
+
has_compressed_pair_layout = True
|
|
785
|
+
alloc_valobj = self.valobj.GetChildMemberWithName("__alloc_")
|
|
786
|
+
size_valobj = self.valobj.GetChildMemberWithName("__size_")
|
|
787
|
+
if alloc_valobj.IsValid() and size_valobj.IsValid():
|
|
788
|
+
has_compressed_pair_layout = False
|
|
789
|
+
|
|
790
|
+
# A deque is effectively a two-dim array, with fixed width.
|
|
791
|
+
# 'map' contains pointers to the rows of this array. The
|
|
792
|
+
# full memory area allocated by the deque is delimited
|
|
793
|
+
# by 'first' and 'end_cap'. However, only a subset of this
|
|
794
|
+
# memory contains valid data since a deque may have some slack
|
|
795
|
+
# at the front and back in order to have O(1) insertion at
|
|
796
|
+
# both ends. The rows in active use are delimited by
|
|
797
|
+
# 'begin' and 'end'.
|
|
798
|
+
#
|
|
799
|
+
# To find the elements that are actually constructed, the 'start'
|
|
800
|
+
# variable tells which element in this NxM array is the 0th
|
|
801
|
+
# one, and the 'size' element gives the number of elements
|
|
802
|
+
# in the deque.
|
|
803
|
+
if has_compressed_pair_layout:
|
|
804
|
+
count = self._get_value_of_compressed_pair(
|
|
805
|
+
self.valobj.GetChildMemberWithName("__size_")
|
|
806
|
+
)
|
|
807
|
+
else:
|
|
808
|
+
count = size_valobj.GetValueAsUnsigned(0)
|
|
809
|
+
|
|
810
|
+
# give up now if we cant access memory reliably
|
|
811
|
+
if self.block_size < 0:
|
|
812
|
+
logger.write("block_size < 0")
|
|
813
|
+
return
|
|
814
|
+
start = self.valobj.GetChildMemberWithName("__start_").GetValueAsUnsigned(0)
|
|
815
|
+
|
|
816
|
+
map_ = self.valobj.GetChildMemberWithName("__map_")
|
|
817
|
+
is_size_based = map_.GetChildMemberWithName("__size_").IsValid()
|
|
818
|
+
first = map_.GetChildMemberWithName("__first_")
|
|
819
|
+
# LLVM 22 renames __map_.__begin_ to __map_.__front_cap_
|
|
820
|
+
if not first:
|
|
821
|
+
first = map_.GetChildMemberWithName("__front_cap_")
|
|
822
|
+
map_first = first.GetValueAsUnsigned(0)
|
|
823
|
+
self.map_begin = map_.GetChildMemberWithName("__begin_")
|
|
824
|
+
map_begin = self.map_begin.GetValueAsUnsigned(0)
|
|
825
|
+
map_end = get_buffer_end(map_, map_begin)
|
|
826
|
+
map_endcap = get_buffer_endcap(
|
|
827
|
+
self, map_, map_begin, has_compressed_pair_layout, is_size_based
|
|
828
|
+
)
|
|
829
|
+
|
|
830
|
+
# check consistency
|
|
831
|
+
if not map_first <= map_begin <= map_end <= map_endcap:
|
|
832
|
+
logger.write("map pointers are not monotonic")
|
|
833
|
+
return
|
|
834
|
+
total_rows, junk = divmod(map_endcap - map_first, self.pointer_size)
|
|
835
|
+
if junk:
|
|
836
|
+
logger.write("endcap-first doesnt align correctly")
|
|
837
|
+
return
|
|
838
|
+
active_rows, junk = divmod(map_end - map_begin, self.pointer_size)
|
|
839
|
+
if junk:
|
|
840
|
+
logger.write("end-begin doesnt align correctly")
|
|
841
|
+
return
|
|
842
|
+
start_row, junk = divmod(map_begin - map_first, self.pointer_size)
|
|
843
|
+
if junk:
|
|
844
|
+
logger.write("begin-first doesnt align correctly")
|
|
845
|
+
return
|
|
846
|
+
|
|
847
|
+
logger.write(
|
|
848
|
+
"update success: count=%r, start=%r, first=%r" % (count, start, first)
|
|
849
|
+
)
|
|
850
|
+
# if consistent, save all we really need:
|
|
851
|
+
self.count = count
|
|
852
|
+
self.start = start
|
|
853
|
+
self.first = first
|
|
854
|
+
except:
|
|
855
|
+
self.count = None
|
|
856
|
+
self.start = None
|
|
857
|
+
self.map_first = None
|
|
858
|
+
self.map_begin = None
|
|
859
|
+
return False
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
class stdsharedptr_SynthProvider:
|
|
863
|
+
def __init__(self, valobj, d):
|
|
864
|
+
logger = lldb.formatters.Logger.Logger()
|
|
865
|
+
logger.write("init")
|
|
866
|
+
self.valobj = valobj
|
|
867
|
+
# self.element_ptr_type = self.valobj.GetType().GetTemplateArgumentType(0).GetPointerType()
|
|
868
|
+
self.ptr = None
|
|
869
|
+
self.cntrl = None
|
|
870
|
+
process = valobj.GetProcess()
|
|
871
|
+
self.endianness = process.GetByteOrder()
|
|
872
|
+
self.pointer_size = process.GetAddressByteSize()
|
|
873
|
+
self.count_type = valobj.GetType().GetBasicType(lldb.eBasicTypeUnsignedLong)
|
|
874
|
+
|
|
875
|
+
def num_children(self):
|
|
876
|
+
return 1
|
|
877
|
+
|
|
878
|
+
def has_children(self):
|
|
879
|
+
return True
|
|
880
|
+
|
|
881
|
+
def get_child_index(self, name):
|
|
882
|
+
if name == "__ptr_":
|
|
883
|
+
return 0
|
|
884
|
+
if name == "count":
|
|
885
|
+
return 1
|
|
886
|
+
if name == "weak_count":
|
|
887
|
+
return 2
|
|
888
|
+
return -1
|
|
889
|
+
|
|
890
|
+
def get_child_at_index(self, index):
|
|
891
|
+
if index == 0:
|
|
892
|
+
return self.ptr
|
|
893
|
+
if index == 1:
|
|
894
|
+
if self.cntrl is None:
|
|
895
|
+
count = 0
|
|
896
|
+
else:
|
|
897
|
+
count = (
|
|
898
|
+
1
|
|
899
|
+
+ self.cntrl.GetChildMemberWithName(
|
|
900
|
+
"__shared_owners_"
|
|
901
|
+
).GetValueAsSigned()
|
|
902
|
+
)
|
|
903
|
+
return self.valobj.CreateValueFromData(
|
|
904
|
+
"count",
|
|
905
|
+
lldb.SBData.CreateDataFromUInt64Array(
|
|
906
|
+
self.endianness, self.pointer_size, [count]
|
|
907
|
+
),
|
|
908
|
+
self.count_type,
|
|
909
|
+
)
|
|
910
|
+
if index == 2:
|
|
911
|
+
if self.cntrl is None:
|
|
912
|
+
count = 0
|
|
913
|
+
else:
|
|
914
|
+
count = (
|
|
915
|
+
1
|
|
916
|
+
+ self.cntrl.GetChildMemberWithName(
|
|
917
|
+
"__shared_weak_owners_"
|
|
918
|
+
).GetValueAsSigned()
|
|
919
|
+
)
|
|
920
|
+
return self.valobj.CreateValueFromData(
|
|
921
|
+
"weak_count",
|
|
922
|
+
lldb.SBData.CreateDataFromUInt64Array(
|
|
923
|
+
self.endianness, self.pointer_size, [count]
|
|
924
|
+
),
|
|
925
|
+
self.count_type,
|
|
926
|
+
)
|
|
927
|
+
return None
|
|
928
|
+
|
|
929
|
+
def update(self):
|
|
930
|
+
logger = lldb.formatters.Logger.Logger()
|
|
931
|
+
self.ptr = self.valobj.GetChildMemberWithName(
|
|
932
|
+
"__ptr_"
|
|
933
|
+
) # .Cast(self.element_ptr_type)
|
|
934
|
+
cntrl = self.valobj.GetChildMemberWithName("__cntrl_")
|
|
935
|
+
if cntrl.GetValueAsUnsigned(0):
|
|
936
|
+
self.cntrl = cntrl.Dereference()
|
|
937
|
+
else:
|
|
938
|
+
self.cntrl = None
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
# we can use two different categories for old and new formatters - type names are different enough that we should make no confusion
|
|
942
|
+
# talking with libc++ developer: "std::__1::class_name is set in stone
|
|
943
|
+
# until we decide to change the ABI. That shouldn't happen within a 5 year
|
|
944
|
+
# time frame"
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
def __lldb_init_module(debugger, dict):
|
|
948
|
+
debugger.HandleCommand(
|
|
949
|
+
'type summary add -F libcxx.stdstring_SummaryProvider "std::__1::string" -w libcxx'
|
|
950
|
+
)
|
|
951
|
+
debugger.HandleCommand(
|
|
952
|
+
'type summary add -F libcxx.stdstring_SummaryProvider "std::__1::basic_string<char, class std::__1::char_traits<char>, class std::__1::allocator<char> >" -w libcxx'
|
|
953
|
+
)
|
|
954
|
+
debugger.HandleCommand(
|
|
955
|
+
'type synthetic add -l libcxx.stdvector_SynthProvider -x "^(std::__1::)vector<.+>$" -w libcxx'
|
|
956
|
+
)
|
|
957
|
+
debugger.HandleCommand(
|
|
958
|
+
'type summary add -F libcxx.stdvector_SummaryProvider -e -x "^(std::__1::)vector<.+>$" -w libcxx'
|
|
959
|
+
)
|
|
960
|
+
debugger.HandleCommand(
|
|
961
|
+
'type synthetic add -l libcxx.stdlist_SynthProvider -x "^(std::__1::)list<.+>$" -w libcxx'
|
|
962
|
+
)
|
|
963
|
+
debugger.HandleCommand(
|
|
964
|
+
'type summary add -F libcxx.stdlist_SummaryProvider -e -x "^(std::__1::)list<.+>$" -w libcxx'
|
|
965
|
+
)
|
|
966
|
+
debugger.HandleCommand(
|
|
967
|
+
'type synthetic add -l libcxx.stdmap_SynthProvider -x "^(std::__1::)map<.+> >$" -w libcxx'
|
|
968
|
+
)
|
|
969
|
+
debugger.HandleCommand(
|
|
970
|
+
'type summary add -F libcxx.stdmap_SummaryProvider -e -x "^(std::__1::)map<.+> >$" -w libcxx'
|
|
971
|
+
)
|
|
972
|
+
debugger.HandleCommand("type category enable libcxx")
|
|
973
|
+
debugger.HandleCommand(
|
|
974
|
+
'type synthetic add -l libcxx.stddeque_SynthProvider -x "^(std::__1::)deque<.+>$" -w libcxx'
|
|
975
|
+
)
|
|
976
|
+
debugger.HandleCommand(
|
|
977
|
+
'type synthetic add -l libcxx.stdsharedptr_SynthProvider -x "^(std::__1::)shared_ptr<.+>$" -w libcxx'
|
|
978
|
+
)
|
|
979
|
+
# turns out the structs look the same, so weak_ptr can be handled the same!
|
|
980
|
+
debugger.HandleCommand(
|
|
981
|
+
'type synthetic add -l libcxx.stdsharedptr_SynthProvider -x "^(std::__1::)weak_ptr<.+>$" -w libcxx'
|
|
982
|
+
)
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
_map_capping_size = 255
|
|
986
|
+
_list_capping_size = 255
|
|
987
|
+
_list_uses_loop_detector = True
|