Repository navigation
configure: keep relative paths in debug info - #22409
Conversation
Revert to the state prior to e507acbe and allow debugging from project root dir with `gdb src/bitcoind`.
|
Thanks @ajtowns for the idea and consultation |
|
Concept ACK |
4f19a84 to
01d049e
Compare
01d049e to
6205f85
Compare
|
Concept ACK |
1 similar comment
|
Concept ACK |
|
@practicalswift @MarcoFalke @ajtowns Interested in doing a full review? |
|
Concept ACK |
|
Concept ACK |
6205f85 to
0bc666b
Compare
|
Fixed grammar, thanks @Zero-1729 |
|
The commit id you reference in the commit message is wrong. |
|
I tested this in Clion and it didn't change anything for me: Before and After the same error: Reverting commit e507acb was a working workaround. Maybe #21885 (comment) also works. |
I guess I'll still have to apply one of the workarounds you mention in the doc? |
|
I referenced merge commit as it has PR number for the expanded context, can change to the other commit once I get to my laptop.
Yes, unfortunately CLion uses absolute paths to set breakpoints, so you need one of the workarounds. Alternatively, you can use new "Relaxed breakpoints" feature starting from 2021.2 that uses file name only matching. This PR makes it again possible to debug from the project root dir with |
|
Tested ACK 0bc666b
* thread #13, name = 'b-httpworker.2', stop reason = step over
frame #0: 0x0000000100c87baf bitcoind`LegacyScriptPubKeyMan::IsMine(this=0x000000010cbdb1e0, script=0x0000000110190988) const at scriptpubkeyman.cpp:226:1
Target 0: (bitcoind) stopped.Using this PR: * thread #11, name = 'b-httpworker.0', stop reason = breakpoint 1.6
frame #0: 0x0000000100cfca46 bitcoind`CWallet::IsMine(this=0x000000010490e310, txout=0x00000001090052c0) const at wallet.cpp:1299:5
1296
1297 isminetype CWallet::IsMine(const CTxOut& txout) const
1298 {
-> 1299 AssertLockHeld(cs_wallet);
1300 return IsMine(txout.scriptPubKey);
1301 }
1302
Target 0: (bitcoind) stopped.(note lack of any line numbers in master) |
|
Going to merge this now, as it's an improvement for debugging (the current issue has tripped up a few people), without losing the behaviour from #20353. |
0bc666b doc: add info for debugging with relative paths (S3RK) a8b515c configure: keep relative paths in debug info (S3RK) Pull request description: This is a follow-up for bitcoin#20353 that fixes bitcoin#21885 It also adds a small section to assist debugging without absolute paths in debug info. ACKs for top commit: kallewoof: Tested ACK 0bc666b Zero-1729: Light crACK 0bc666b Tree-SHA512: d4b75183c3d3a0f59fe786841fb230581de87f6fe04cf7224e4b89c520d45513ba729d4ad8c0e62dd1dbaaa7a25741f04d036bc047f92842e76c9cc31ea47fb2
0bc666b doc: add info for debugging with relative paths (S3RK) a8b515c configure: keep relative paths in debug info (S3RK) Pull request description: This is a follow-up for bitcoin#20353 that fixes bitcoin#21885 It also adds a small section to assist debugging without absolute paths in debug info. ACKs for top commit: kallewoof: Tested ACK 0bc666b Zero-1729: Light crACK 0bc666b Tree-SHA512: d4b75183c3d3a0f59fe786841fb230581de87f6fe04cf7224e4b89c520d45513ba729d4ad8c0e62dd1dbaaa7a25741f04d036bc047f92842e76c9cc31ea47fb2

This is a follow-up for #20353 that fixes #21885
It also adds a small section to assist debugging without absolute paths in debug info.