Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32205. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste |
janb84
left a comment
There was a problem hiding this comment.
ACK 3a77f13
Before:
Process 52169 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
frame #0: 0x000000010021547c bitcoind`AddLocal(addr=0x000000012600fe00, nScore=1) at net.cpp:307:30
After changes per instruction:
Process 52277 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 3.1
frame #0: 0x00000001007f2d58 bitcoind`addnode() at net.cpp:307:23
304
305 static RPCHelpMan addnode()
306 {
-> 307 return RPCHelpMan{"addnode",
308 "\nAttempts to add or remove a node from the addnode list.\n"
309 "Or try a connection to a node once.\n"
310 "Nodes added using addnode (or -connect) are protected from DoS disconnection and are not required to be\n"
mabu44
left a comment
There was a problem hiding this comment.
For me it works out of the box, without any lldbinit file. I am on Debian 12 with ccache installed.
cmake -B build_debug -DCMAKE_BUILD_TYPE=Debug
cmake --build build_debug -j 4 -t bitcoind
lldb-16 build_debug/bin/bitcoindb ProcessInitCommandsr -regtestOutput:
Process 91637 launched: '/home/brown/bitcoin/build_debug/bin/bitcoind' (x86_64)
Process 91637 stopped
* thread #1, name = 'bitcoind', stop reason = breakpoint 1.1
frame #0: 0x000055555558751f bitcoind`ProcessInitCommands(args=0x0000555556a77b80) at bitcoind.cpp:138:29
135 static bool ProcessInitCommands(ArgsManager& args)
136 {
137 // Process help and version before taking care about datadir
-> 138 if (HelpRequested(args) || args.GetBoolArg("-version", false)) {
139 std::string strUsage = CLIENT_NAME " daemon version " + FormatFullVersion() + "\n";
140
141 if (args.GetBoolArg("-version", false)) {|
@pinheadmz re #34081 (comment) I also see the same output for |
|
Closing, the approach in #34081 is way better |
Closes #31204
To reproduce:
-DCMAKE_BUILD_TYPE=Debuglldb buld/bin/bitcoind(lldb) b ProcessMessage(lldb) r -regtestOutput will probably look like this:
To fix (following the doc in this PR)
Create or append to
~/.lldbinitin your $HOME directory, using absolute paths. (My example)Improved output: