Commit Graph
100 Commits
Author SHA1 Message Date
Ryan Fleury 0b91cab00a linux_demon: PTRACE_EVENT_STOPs can sometimes be reported even if a thread has already hit a trap (e.g. a trap net or breakpoint trap). this would sometimes cause spurious SIGTRAPs after issuing a PTRACE_INTERRUPT - so we need to flag halted threads to not treat that as a 'real' trap. furthermore, even though that trap was hit, it does not guarantee that the debugger would next see a SIGTRAP. that would cause spurious SIGILLs, because we'd resume threads *after* the trap, despite not seeing the trap, so they'd just see a malformed instruction (the bytes subsequent the initial trap). so in those cases, we need to roll such threads back, so that they re-execute the trap, and so that we see a regular SIGTRAP, and handle the trap correctly. 2026-09-29 12:28:05 -06:00
Ryan Fleury 2933143b08 win32_demon: make conflicting trap net / user bp trap behavior identical to linux - always find info for *first* trap in list. second... dbg_engine: store trap net traps *first*, so that trap net behavior is preferred when trap nets conflict with user bp traps. 2026-09-28 10:10:16 -06:00
Ryan Fleury 4e7a6127d8 dbg_engine: process memory cache - always retry on memgen 'tearing', do not enforce size restriction. linux_demon: correctly relativize loaded module paths when needed per the loading process' working directory. raddbg: disasm view, do not skip too far back - can go into unmapped space. eval: file/folder filtering - hoist exact matches to the top. 2026-09-28 09:18:59 -06:00
Ryan Fleury e7a9c430f8 rdi_from_dwarf: fix incorrect argument slot used in breg<N> conversion 2026-09-28 08:38:30 -06:00
Ryan Fleury d66094161d rdi_from_dwarf: do not assume non-zero root tags in each unit 2026-09-28 08:31:05 -06:00
Ryan Fleury 2c226d8a4b selected-thread-only breakpoints; user setting for adding that by default; do this for 'run-to-line' operations 2026-09-25 14:28:54 -06:00
Ryan Fleury 315175e34d keep debug info status viz, just omit string if it matches the module (usual linux case) 2026-09-25 13:45:31 -06:00
Ryan Fleury ed10cd771a ci xfixes 2026-09-25 13:15:31 -06:00
Ryan Fleury eb845405e0 linux_window_manager: clipboard support 2026-09-25 13:10:08 -06:00
Ryan Fleury 0d93e80f84 linux notes 2026-09-25 11:19:24 -06:00
Ryan Fleury 0317f4c810 linux_demon: correct rebasing / phdr address parsing for both static/dynamic ELFs 2026-09-25 11:15:07 -06:00
Ryan Fleury bc7434f7ed linux_demon: do not fail when there is no dynamic loader present 2026-09-25 10:29:16 -06:00
Ryan Fleury 9fdcc88cab rdi_from_dwarf: correctly use unit_dir only when line table directories are relative; correctly use unit compilation unit name as first file in pre-dwarf-5 2026-09-24 11:37:24 -06:00
Ryan Fleury 31d10c3b4f rdi_from_dwarf: preserve unit dir in generated source file paths. do not assume relativity to binary, often incorrect 2026-09-24 11:24:42 -06:00
Ryan Fleury df1de0541a linux_demon: robustness to clone-then-stop, *or* stop-then-clone 2026-09-24 10:12:22 -06:00
Ryan Fleury ca0764c2e2 linux_demon: ptrace stop vs. clone notes - we cannot rely on the order! 2026-09-23 16:56:50 -06:00
Ryan Fleury cc82127537 eh_frame_unwind: correctly commit cfa_out - it is still unclear if we need this channel, since all we do right now is commit cfa to the sp. so presumably callers could just look at the parent's sp? but my understanding of this is not strong enough to know if that is 100% reliable, since my understanding is that the cfa is an abstract thing specifically because it may *not* be the sp. but not sure, need to look more into it later. 2026-09-23 11:53:59 -06:00
Ryan Fleury 99f35bb342 rdi_from_dwarf: cfa push opcodes 2026-09-23 11:28:24 -06:00
Ryan Fleury 0e134ade56 separate x64 exception enums from stuff that assumes x64 host + includes regs/data-tables/etc.; just include *that* in linux base 2026-09-22 03:44:36 -07:00
Ryan Fleury 6133e8f335 Revert "Revert "x64 does not belong in base - base is intended to be things we can assume everywhere, which explicitly disqualifies x64 by definition.""
This reverts commit f9950ef4e9.
2026-09-22 03:28:55 -07:00
Ryan Fleury 7bfa4578d1 fix radbin/torture builds 2026-09-21 09:54:19 -07:00
Ryan Fleury 9796328ffa only inc x64 into base by default on linux, where we actually apparently need it - ideally we do not just pull in all of x64 just for a few enum codes' 2026-09-21 09:43:28 -07:00
Ryan Fleury 4e4639c2a0 x64 does not belong in base - base is intended to be things we can assume everywhere, which explicitly disqualifies x64 by definition. 2026-09-21 09:14:11 -07:00
Ryan Fleury f2ea61ab83 fix dumb passthrough of raddbg.com in args in com shim 2026-09-21 09:04:32 -07:00
Ryan Fleury dc2a206487 win32 symbol server :sync request task count 2026-09-15 14:08:11 -07:00
Ryan Fleury 23507a826f content: fix inconsistent root -> node path 2026-09-15 08:35:23 -07:00
Ryan Fleury c762d1cd71 do not output nil file in breakpad output 2026-09-10 14:54:33 -07:00
Ryan Fleury c44e4a388e rdi_make: ensure terminator line records are sorted *before* records with actual line info, since these are always ending sequences - we always want a line record with an actual file/line info to come *after* terminators. fixes missing line info 2026-09-10 14:27:53 -07:00
Ryan Fleury b2c4dce4b0 fix duplicative RDI serialization in breakpad output 2026-09-10 09:39:13 -07:00
Ryan Fleury 7a5a649b89 fix incorrect dwarf file deduplication 2026-08-27 20:00:01 -06:00
Ryan Fleury c97907a7b9 fix overly aggressive tls module base vaddr lookup cache retry 2026-08-27 19:24:16 -06:00
Ryan Fleury 313a51ba21 setting for use-alternate-ui-font (on by default) 2026-08-27 15:55:39 -07:00
Ryan Fleury 04bd46dad6 revert ring push changes, can't be contiguous, duh... 2026-08-27 15:40:27 -07:00
Ryan Fleury 802de06f31 debug info loading status viz; fix bad event string in module load path 2026-08-27 15:20:53 -07:00
Ryan Fleury 0579e0f658 first pass at using symbol server to download correct module versions for dump debugging 2026-08-27 14:14:37 -07:00
Ryan Fleury 3bab86e6af checkpoint on sockets layer 2026-08-27 13:52:34 -07:00
Ryan Fleury 3e704eabb0 minidump thread names 2026-08-27 09:59:34 -07:00
Ryan Fleury 99ea44c4cc try relative paths correctly with crash dump modules 2026-08-26 17:52:33 -07:00
Ryan Fleury 9efcc6b22c drop file support for dmps 2026-08-26 17:31:58 -07:00
Ryan Fleury 8a7be007c1 checkpoint on minidump support 2026-08-26 17:24:43 -07:00
Ryan Fleury 64daed7030 keep o.g. debug info extension in rdi filenames 2026-08-26 15:28:35 -07:00
Ryan Fleury 653cc98662 do not assume presence of _MOTIF_WM_HINTS 2026-08-26 15:21:36 -07:00
Ryan Fleury c1309e2948 rdi_from_dwarf: readjust struct hashing, avoid following member ptrs for now 2026-08-26 14:56:24 -07:00
Ryan Fleury 58948fab3d draw run-to-line info 2026-08-26 12:05:38 -07:00
Ryan Fleury af2932f0ff run-to-line interaction in priority margin in code views 2026-08-26 11:41:44 -07:00
Ryan Fleury cacea99c22 correctly restore view states when popping off query stack - fixes browse in query views - cleanup / tweaks 2026-08-26 11:19:26 -07:00
Ryan Fleury eb97f797ef adjust window query state to be a stack rather than just a single selected query; simplify default panel layout, remove duplicative alternatives; fix bad scope idxs with unbalanced scope pts 2026-08-26 09:54:28 -07:00
Ryan Fleury 91e1b1fda2 adjust lister acceptance rule when picking paths for things that might not exist - do not always use the first item in such cases 2026-08-25 18:09:51 -07:00
Ryan Fleury dc917cc82c set initial path on browse press 2026-08-25 18:03:50 -07:00
Ryan Fleury 944bff5290 folder picking via same mechanism 2026-08-25 17:56:52 -07:00
Ryan Fleury fb06485b87 browse button cell extension for cfg file path evaluations - route to 'pick file' command, fast-path for using query uis to inserting a path textually 2026-08-25 17:31:33 -07:00
Ryan Fleury e28a543573 remove dead binary searching helper 2026-08-25 11:38:25 -07:00
Ryan Fleury 092a121484 project-tagged watch exprs 2026-08-25 11:20:43 -07:00
Ryan Fleury e6e1f7a426 okay bump back to 29 2026-08-21 15:31:25 -07:00
Ryan Fleury bf7e2f7655 oops - revert to 28, disable deletes in code view ctrls 2026-08-21 14:53:30 -07:00
Ryan Fleury a5f0f760ba bump to 29 2026-08-21 13:17:46 -07:00
Ryan Fleury 5946bb87e6 debugger changelog 2026-08-21 12:35:47 -07:00
Ryan Fleury 74624df829 p2r: correctly fall back to bytecode when regoff locations have offs of outside of [min_S16, max_S16] - in these cases, the offset is too big to fit inside of a packed 64-bit location encoding, so we need to fall back. before, we were only falling back incorrectly when the offset was outside of [0, max_U16], but this is not right. also, win32_wm: don't interpret '\n' (ctrl+J) 2026-08-21 12:08:23 -07:00
Ryan Fleury d75ea2d55e fix incorrect module lookup on asan events; fix bad string size assumption with const string eval 2026-08-21 11:35:41 -07:00
Ryan Fleury 03463abebc fix incorrect bad-project-file checkin 2026-08-21 11:05:53 -07:00
Ryan Fleury 5e6fb63535 better stop snapping behavior - prefer unwinding to the first source location in a call stack, if the user is in source mode & has no disasm tabs 2026-08-21 10:55:46 -07:00
Ryan Fleury c360008950 same for bash 2026-08-19 12:35:34 -06:00
Ryan Fleury 6619df49a7 on implicit debug builds -> inform user of 'release' argument 2026-08-19 12:30:10 -06:00
Ryan Fleury 8a5979a1a6 dbg_engine: instead of sending down relativized breakpoint paths, relativize when resolving breakpoints on ctrl thread per-module - this avoids preference for the selected module, which broke relative file breakpoints without a selected thread in the right module. 2026-08-19 11:42:50 -06:00
Ryan Fleury 73ba34f354 adjust path absolutification - never assume selected module, since this changes all the time! instead, provide dbgi path (and maybe eventually we want module path too), so that any paths found in debug info can be treated as relative from the debug info path. 2026-08-19 10:21:50 -06:00
Ryan Fleury 08d25fa39d linux_demon: fix incorrect arena buckets for probe parsing, fix zero process being incorrectly used (snap process to thread process, if wait_id does not refer to any process itself; text: fix treating R"'s as starting a herestring, if ending a non-herestring 2026-08-13 12:28:06 -07:00
Ryan Fleury 604a244473 rdi_from_dwarf: turn off aggressive type hash caching for now - need to solve cyclical graph hashing problem later when it is more pressing... also fix local-UDTs not being gathered/converted 2026-08-13 11:05:36 -07:00
Ryan Fleury 8372582608 rdi_from_dwarf: first pass at entry-point-independent deterministic type graph hashing 2026-08-12 15:48:49 -07:00
Ryan Fleury a47be13d70 linux_demon: do not assume nonzero threads 2026-08-12 10:01:40 -07:00
Ryan Fleury baef2f07bf fix torture 2026-08-12 09:48:54 -07:00
Ryan Fleury 94392b4975 linux_demon: checkpoint 2026-08-11 14:02:40 -07:00
Ryan Fleury 338a8226a1 linux_demon: fix incorrect shdr read 2026-08-11 11:08:04 -07:00
Ryan Fleury 1770d85308 linux_demon: more helper flattening / elimination 2026-08-11 11:01:58 -07:00
Ryan Fleury b8679b4a9a linux_demon: more helper flattening / elimination 2026-08-11 09:31:52 -07:00
Ryan Fleury 7cc61e75e4 fix use of old functions in spall profiling code 2026-08-11 08:24:55 -07:00
Ryan Fleury a016caea59 fix incorrect zero-rip unwind check 2026-08-11 08:22:57 -07:00
Ryan Fleury 41976ca1da do not use binary mode for generated files 2026-08-11 08:14:17 -07:00
Ryan Fleury 70c0888bc3 linux window manager: key state / modifiers polling 2026-08-10 15:21:39 -06:00
Ryan Fleury 8f8e14c348 linux_demon: intrinsic links for addr -> module table 2026-08-10 14:56:29 -06:00
Ryan Fleury 45aeca0bf9 linux_demon: intrinsic links in threads/processes for pid mapping 2026-08-10 14:40:43 -06:00
Ryan Fleury 6b30c395d7 linux_demon: eliminate active-trap layer; do pre-trap instruction memory read in one batch before doing write, robustly handles duplicates; eliminate deduplication inside linux demon (ultimately we want to deduplicate traps sent by the dbg engine, but we should just dedup at that layer, long before the set of traps ever reaches the demon backend) 2026-08-10 14:20:22 -06:00
Ryan Fleury 9f83e388d2 linux_demon: more reading, flattening, elimination of unnecessary helpers / layers 2026-08-10 11:56:42 -06:00
Ryan Fleury 980a9908d1 linux_demon: fix kill regressions from flattening 2026-08-09 20:27:00 -07:00
Ryan Fleury d622fdf4fd eliminate helpers for thread/process exits & process creation - just pull them out into single spot in the signal handling loop 2026-08-08 21:04:22 -07:00
Ryan Fleury 05de22df76 linux/demon: eliminate unneeded fields, h/c matching, reading etc. 2026-08-07 14:43:15 -06:00
Ryan Fleury 38e321df79 linux/demon: more flattening & extra layer elimination 2026-08-07 14:13:30 -06:00
Ryan Fleury 8c2efc5adf linux/demon flattening / clean-up checkpoint - eliminate redundant helpers, single-use functions, obsolete code 2026-08-07 13:23:42 -06:00
Ryan Fleury 7388b757d1 demon: eliminate redundant access scopes 2026-08-07 10:17:01 -06:00
Ryan Fleury 5ed398a8b9 fix windows build 2026-08-06 15:35:56 -07:00
Ryan Fleury 9c1b243472 remove dumb fudge factor 2026-08-06 15:18:42 -06:00
Ryan Fleury 50ecf0e68a linux/window_manager: window maximizing/minimizing/fullscreening 2026-08-06 15:13:28 -06:00
Ryan Fleury e423b31c80 adjustments 2026-08-06 14:33:16 -06:00
Ryan Fleury 13f9ddc18a set initial position of cursor trail correctly 2026-08-06 14:24:20 -06:00
Ryan Fleury eff0827607 hook up initial installation detection, in case program is manually installed externally 2026-08-06 14:14:51 -06:00
Ryan Fleury fd33f61a04 add symlink in local bin path for linux install 2026-08-06 14:01:19 -06:00
Ryan Fleury 867b64f7a2 split shell operation abstraction from graphical window manager abstraction - do basic integration of common linux utilities for implementing shell operations - also add 'sh_install_or_uninstall_self' for doing shell-specific operations related to installing or uninstalling an application. hook up to config state in raddbg 2026-08-06 12:53:05 -06:00
Ryan Fleury 32ef9095e0 apply global animations toggle to all cursor trails 2026-08-06 10:28:00 -06:00
Ryan Fleury 5b5573c098 merge tab + menu w/ open tab command, flatten source files listing into tab menu 2026-08-06 10:28:00 -06:00
Ryan Fleury 6a33efe182 command metadata adjustments 2026-08-05 15:47:46 -06:00
Ryan Fleury 9d655c0190 more adjustments 2026-08-05 15:39:43 -06:00