Skip to content

Commit

Permalink
feat debug: restore pretty printers for userver (do not update .gdbinit)
Browse files Browse the repository at this point in the history
Tests: протестировано CI
commit_hash:faadf35e838a59c879d1d92413fea9f4eaee9453
  • Loading branch information
UNEXPECTEDsemicolon committed Oct 23, 2024
1 parent e139f4d commit 085b9ca
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 306 deletions.
12 changes: 0 additions & 12 deletions .mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
"devtools/gdb/test/test.py":"devtools/gdb/test/test.py",
"devtools/gdb/test/test_tconts.py":"devtools/gdb/test/test_tconts.py",
"devtools/gdb/test/ya.make":"devtools/gdb/test/ya.make",
"devtools/gdb/userver_printers/Readme.md":"devtools/gdb/userver_printers/Readme.md",
"devtools/gdb/userver_printers/__init__.py":"devtools/gdb/userver_printers/__init__.py",
"devtools/gdb/userver_printers/formats/__init__.py":"devtools/gdb/userver_printers/formats/__init__.py",
"devtools/gdb/userver_printers/formats/json/__init__.py":"devtools/gdb/userver_printers/formats/json/__init__.py",
"devtools/gdb/userver_printers/formats/json/printers.py":"devtools/gdb/userver_printers/formats/json/printers.py",
"devtools/gdb/userver_printers/formats/yaml/__init__.py":"devtools/gdb/userver_printers/formats/yaml/__init__.py",
"devtools/gdb/ya.make":"devtools/gdb/ya.make",
"devtools/gdb/yabs_printers.py":"devtools/gdb/yabs_printers.py",
"devtools/gdb/yt_fibers_printer.py":"devtools/gdb/yt_fibers_printer.py",
Expand Down Expand Up @@ -100,12 +94,6 @@
"ynd/gdb/14/pretty_printers/test/test.py":"devtools/gdb/test/test.py",
"ynd/gdb/14/pretty_printers/test/test_tconts.py":"devtools/gdb/test/test_tconts.py",
"ynd/gdb/14/pretty_printers/test/ya.make":"devtools/gdb/test/ya.make",
"ynd/gdb/14/pretty_printers/userver_printers/Readme.md":"devtools/gdb/userver_printers/Readme.md",
"ynd/gdb/14/pretty_printers/userver_printers/__init__.py":"devtools/gdb/userver_printers/__init__.py",
"ynd/gdb/14/pretty_printers/userver_printers/formats/__init__.py":"devtools/gdb/userver_printers/formats/__init__.py",
"ynd/gdb/14/pretty_printers/userver_printers/formats/json/__init__.py":"devtools/gdb/userver_printers/formats/json/__init__.py",
"ynd/gdb/14/pretty_printers/userver_printers/formats/json/printers.py":"devtools/gdb/userver_printers/formats/json/printers.py",
"ynd/gdb/14/pretty_printers/userver_printers/formats/yaml/__init__.py":"devtools/gdb/userver_printers/formats/yaml/__init__.py",
"ynd/gdb/14/pretty_printers/ya.make":"devtools/gdb/ya.make",
"ynd/gdb/14/pretty_printers/yabs_printers.py":"devtools/gdb/yabs_printers.py",
"ynd/gdb/14/pretty_printers/yt_fibers_printer.py":"devtools/gdb/yt_fibers_printer.py",
Expand Down
5 changes: 1 addition & 4 deletions ynd/gdb/14/pretty_printers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
sys.dont_write_bytecode = True
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))


import libstdcpp_printers
import arcadia_printers
import libc_printers
Expand All @@ -18,8 +19,6 @@

import tcont_printer

import userver_printers

def register_printers():
libc_printers.register_printers()

Expand All @@ -39,8 +38,6 @@ def register_printers():

tcont_printer.register_commands()

userver_printers.register_printers()

print('[arc] Arcadia GDB pretty-printers enabled')

register_printers()
2 changes: 1 addition & 1 deletion ynd/gdb/14/pretty_printers/test/gdbtest/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ std::list<int> test_list_empty;
std::list<int> test_list{1, 2, 3};

formats::json::Value test_json = formats::json::FromString(
R"({"a":[1,{}],"b":[true,false],"c":{"internal":{"subkey":2}},"i":-1,"u":1,"i64":-18446744073709551614,"u64":18446744073709551614,"d":0.4})");
R"({"a":[1,{},[]],"b":[true,false],"c":{"internal":{"subkey":2}},"i":-1,"u":1,"i64":-18446744073709551614,"u64":18446744073709551614,"d":0.4})");
formats::json::Value test_json_empty;

// Variable which can't be statically initialized due to undetermined order
Expand Down
6 changes: 3 additions & 3 deletions ynd/gdb/14/pretty_printers/test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def data(field):
test_atomic_array='std::atomic = {load() = {__elems_ = {1, 2, 3}}}',
test_list_empty='empty std::__y1::list',
test_list='std::__y1::list = {[0] = 1, [1] = 2, [2] = 3}',
# test_json=r'formats::json::Value = {value = object of size 8 = {["a"] = array of size 2 = {1, object of size 0}, '
# r'["b"] = array of size 2 = {true, false}, ["c"] = object of size 1 = {["internal"] = object of size 1 = '
# r'{["subkey"] = 2}}, ["i"] = -1, ["u"] = 1, ["i64"] = -1.8446744073709552e+19, ["u64"] = 18446744073709551614, ["d"] = 0.40000000000000002}}',
# test_json=r'formats::json::Value = {value = {["a"] = {1, {}, []}, ["b"] = {true, false},'
# r' ["c"] = {["internal"] = {["subkey"] = 2}}, ["i"] = -1, ["u"] = 1, ["i64"] ='
# r' -1.8446744073709552e+19, ["u64"] = 18446744073709551614, ["d"] = 0.40000000000000002}}',
# test_json_empty=r'formats::json::Value = {value = null}',
)

Expand Down
1 change: 0 additions & 1 deletion ynd/gdb/14/pretty_printers/userver_printers/Readme.md

This file was deleted.

8 changes: 0 additions & 8 deletions ynd/gdb/14/pretty_printers/userver_printers/__init__.py

This file was deleted.

This file was deleted.

Empty file.
272 changes: 0 additions & 272 deletions ynd/gdb/14/pretty_printers/userver_printers/formats/json/printers.py

This file was deleted.

Empty file.

0 comments on commit 085b9ca

Please sign in to comment.