1 1.19 andvar $NetBSD: TODO,v 1.19 2022/04/10 09:50:45 andvar Exp $ 2 1.1 jhawk 3 1.1 jhawk In rough order. 4 1.1 jhawk 5 1.1 jhawk Bugs to be fixed: 6 1.1 jhawk 7 1.3 jhawk done command history sometimes gets slightly confused 8 1.1 jhawk 9 1.1 jhawk 2. uvm_fault()s can loop infinitely (kern/10016) 10 1.1 jhawk 11 1.7 jmc done examine /m (hex + character dump) doesn't work. 12 1.1 jhawk 13 1.1 jhawk 4. "dot", "next", and "last" are not set properly and are usually 14 1.1 jhawk the same. 15 1.1 jhawk 16 1.18 mrg done The vax port supports decimal pids in "trace", etc. This should be 17 1.1 jhawk MI or not exist at all. 18 1.1 jhawk 19 1.16 jhawk 6. double-quote delimited strings don't work in "print", nor do 20 1.1 jhawk multiple arguments (like the manpage says) 21 1.1 jhawk 22 1.1 jhawk Features to be implemented: 23 1.1 jhawk 24 1.16 jhawk dead Have "ps" print pids with a 0t prefix to reduce radix 25 1.4 jhawk confusion. This is very ugly...needs thought. 26 1.1 jhawk 27 1.4 jhawk done "set" should display the old value as "write" does. 28 1.1 jhawk 29 1.18 mrg done Support 64-bit longs in "write". /L or /q? both? long versus quad? 30 1.1 jhawk 31 1.1 jhawk 4. Note only some radixes are supported. 32 1.1 jhawk 33 1.18 mrg done Allow a mechanism for DDB to not fail under X (on the i386). 34 1.10 simonb Probably just skip DDB in such cases. 35 1.1 jhawk 36 1.18 mrg done Enable DDB in GENERIC on all architectures not starved for 37 1.1 jhawk space. 38 1.1 jhawk 39 1.6 eeh done Numbers starting with [a-f] should work, but symbols 40 1.1 jhawk of the same name should have priority. 41 1.1 jhawk 42 1.1 jhawk 8. Implement the unimplemented C operators, especially bitwise-OR (|). 43 1.1 jhawk 44 1.1 jhawk 9. "cond" -- conditionally execute a specified command on a breakpoint. 45 1.1 jhawk from Mach. 46 1.1 jhawk 47 1.1 jhawk 10. macros ("macro", "dmacro", "show macro"). from Mach. 48 1.1 jhawk 49 1.19 andvar 11. !! command repetition (mostly unnecessary, just for consistency). 50 1.1 jhawk from Mach. 51 1.1 jhawk 52 1.1 jhawk 12. "continue" should honor _count as a number of breakpoints to ignore, 53 1.1 jhawk just as ",5:c" ignores 5 breakpoints in adb. 54 1.1 jhawk 55 1.1 jhawk 13. There should be a "step over" command (like :e in adb) that sets 56 1.1 jhawk a breakpoint at the next instruction if the current instruction 57 1.1 jhawk is a call (or jump?). 58 1.1 jhawk 59 1.1 jhawk 14. Specification of up to 4 ASCII chars as a 32-bit number 60 1.1 jhawk in an expression, like ' in adb: 61 1.1 jhawk 'cccc' ASCII value of up to 4 characters. 62 1.1 jhawk I'm not sure what character to use for this, if the single-quote 63 1.1 jhawk is used for ditto, and the double-quote for strings in "print". 64 1.1 jhawk 65 1.1 jhawk 15. Add crossreference of gdb/ddb commands to manpage. i.e. 66 1.1 jhawk ddb "next" ~= gdb "finish". 67 1.1 jhawk 68 1.1 jhawk 16. Correct "ditto" to be a single-quote? Or something else? 69 1.1 jhawk 70 1.1 jhawk 17. option? To not lose system time when in ddb [reset clock on exit?] 71 1.1 jhawk 72 1.18 mrg dead Consider an XSERVER_DDB option [is it worth it?] 73 1.1 jhawk 74 1.18 mrg done Eliminate vestigal DDB-specific kprintf() format specifiers 75 1.1 jhawk 76 1.1 jhawk 20. Figure out what's up with "ed_style" 77 1.1 jhawk 78 1.1 jhawk 21. Some sort of "immediate" step-in, step-over keybindings, like [ 79 1.1 jhawk and ] in kadb (but not in adb): 80 1.1 jhawk [ Like :e in adb(1), but requires only one keys- 81 1.1 jhawk troke and no RETURN character. 82 1.10 simonb 83 1.1 jhawk ] Like :s in adb(1), but requires only one keys- 84 1.1 jhawk troke and no RETURN character. 85 1.1 jhawk Does this make people queasy? 86 1.1 jhawk 87 1.1 jhawk 22. "search" should display useful output (by default? with /v?) 88 1.1 jhawk indicating success/failure rather than simply setting "dot". 89 1.1 jhawk Perhaps verbose by default unless called from a macro (ugh?). 90 1.1 jhawk 91 1.18 mrg done kern/9544, some symbolic representation of boot flags 92 1.1 jhawk suitable for documentation (esp. for RB_NOSYNC). 93 1.1 jhawk 94 1.18 mrg done Soren requests in-band symbol table storage for ddb. 95 1.1 jhawk "dbsym"? Needs investigation/thought. 96 1.1 jhawk 97 1.1 jhawk 25. Support multiple address spaces (e.g. io space). 98 1.1 jhawk Suggested by eeh in <Pine.NEB.4.21.0005250944210.25299-100000@ehorvath> 99 1.1 jhawk 100 1.18 mrg done Expand help to provide usage/synopsis per-command. 101 1.1 jhawk 102 1.1 jhawk 27. Ensure MD commands have consistent names and factor out 103 1.1 jhawk common code. 104 1.5 jhawk 105 1.18 mrg done Some way to track symbol table failures, since the message buffer 106 1.5 jhawk isn't available when we detect them. 107 1.8 jhawk 108 1.8 jhawk 29. Make "workXX" variables work. 109 1.9 jhawk 110 1.9 jhawk 30. Write ddb(9) to document how ports should implement the debugger, 111 1.9 jhawk and the canonical solution to some niggling annoying issues. 112 1.11 scw 113 1.11 scw 31. Add support for cpus where sizeof(register_t) is not necessarily 114 1.11 scw the same as sizeof(void *). This is the case on SH5 using the 115 1.12 wiz ILP32 ABI. On this CPU db_expr_t is, necessarily, 64-bits. 116 1.11 scw Unfortunately, in ILP32 mode, ddb will only display the low 32-bits 117 1.11 scw of any expression, including registers... 118 1.13 reinoud 119 1.15 reinoud done Add support for duplicating all ddb output to the message buffer for 120 1.13 reinoud those unlucky souls that don't have a serial console. 121 1.13 reinoud 122