TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Improving GDB register model compatibility in LLDB

49 pointsby fcambusover 3 years ago

2 comments

userbinatorover 3 years ago
As someone who started in the DOS&#x2F;Windows world, both GDB and (especially) LLDB feel very awkward to use and those screenshots show a few good examples of why: in DEBUG&#x2F;WinDbg&#x2F;cdb the command to show the registers is simply &#x27;r&#x27;, and more than one register is shown on a line so you don&#x27;t have to scroll up and down to read them all. No &quot;0x&quot; prefixes adding noise everywhere since the default is hex, nor extraneous &#x27;*&#x27; needed when setting breakpoints. A disassemble (&#x27;u&#x27;) command that does what you expect instead of complaining (<a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;39016138&#x2F;how-to-force-gdb-to-disassemble-code-when-it-says-no-function-contains-program" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;39016138&#x2F;how-to-force-gd...</a>). LLDB is even more verbose and perplexing. I could go on and on, but all these little things add up to make debugging with them extremely irritating. There&#x27;s a classic quote about GDB being written to make you think twice about introducing bugs in your code, and I think whoever said that has a point...
评论 #28656834 未加载
评论 #28655881 未加载
评论 #28655394 未加载
jesover 3 years ago
How well supported is lldb (1) from within GNU Emacs on macOS?