TODO 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. - Update the libunwind man page for the new/fixed cache-flushing behavior.
  2. Effectively, that unw_flush_cache() doesn't have to be called by
  3. applications except for extraordinary circumstances (e.g., if application
  4. implements its own runtime loader).
  5. - document split local-only/generic libraries and separate libunwind-ptrace.a
  6. convenience-library
  7. - document new "tdep" member in unw_proc_info_t structure
  8. - for DWARF 2, use a dummy CIE entry with an augmentation that
  9. provides the dyn-info-list-address
  10. === taken care of:
  11. Testing:
  12. + ensure that saving r4-r7 in a stacked register properly preserves
  13. the NaT bit, even in the face of register-rotation
  14. + ensure that IA64_INSN_MOVE_STACKED works correctly in the face of
  15. register rotation
  16. + on Linux, test access to f32-f127 in a signal handler (e.g., verify
  17. that fph partition gets initialized properly)
  18. + According to Nicholas S. Wourms <nwourms@netscape.net>, adding this to the
  19. Makefile.am:
  20. AUTOMAKE_OPTIONS = 1.6 subdir-objects
  21. ensures that object-files are build in separate subdirectories and that
  22. in turn makes it possible for source files in different directories to
  23. have the same filename, thus avoiding the need for those ugly -x86, -ia64,
  24. etc., postfixes.
  25. + Switch ia64 (and rest over) to using Debug() instead of debug()
  26. + implement non-local versions of dwarf_readXX()
  27. + consolidate mostly architecture-independent code such as
  28. unw_get_accessors() into shared files
  29. + caching is pretty fundamentally broken, what should happen is this:
  30. o On unw_init_local()/unw_init_remote(), libunwind should validate
  31. that the cached information is still valid and, if not, flush the
  32. cache on its own. Rationale: once unw_init_local() has been
  33. called, it is clear that the unwind info for the calling thread
  34. cannot change (otherwise the program would be buggy anyhow) and
  35. hence it is sufficient to validate the cache at this point.
  36. Similarly, once unw_init_remote() has been called, the target
  37. address space must have been stopped, because the unwinding would
  38. otherwise be unreliable anyhow.
  39. o glibc currently lacks a feature for dl_iterate_phdr() to support
  40. safe caching; I proposed on 12/16/2003 that glibc maintain two
  41. atomic counters which get inremented whenever something is added
  42. to/removed from the dl_iterate_phdr-list. Once we have such counters,
  43. we can use them in libunwind to implement an efficient version of a
  44. cache-validation routine.
  45. Once this has been fixed, update the libunwind man page accordingly.
  46. Effectively, what this means is that unw_flush_cache() doesn't have
  47. to be called by applications except for extraordinary circumstances
  48. (e.g., if application implements its own runtime loader).
  49. + man-page for unw_is_fpreg()
  50. + man-page for _U_dyn_cancel()
  51. + man-page for _U_dyn_register()
  52. + global data is not protected by a lock; causes problems if two threads
  53. call ia64_init() at almost the same time
  54. + cache the value of *cfm_loc; each rotate_FOO() call needs it!
  55. + implement the remote-lookup of the dynamic registration list
  56. + when doing sigreturn, must restore fp regs (and perhaps other regs) the same
  57. way as the (user-level) gate.S sigreturn path does!
  58. + unw_resume() must at least restore gp (r1)! consider restoring all
  59. scratch regs (but what's the performance impact on exception handling?);
  60. alternative: restore scratch regs that may be used during procedure
  61. call/return (e.g., r8-r11, f8-f11)
  62. + implement unw_resume() for the case where the current register frame is split
  63. across multiple backing stores
  64. + document restricions on using unw_resume():
  65. + implement remote cases of unw_resume()
  66. + test both with UNW_LOCAL_ONLY and without where this makes sense
  67. + allow region-length (insn_count) in unw_dyn_region_info_t to be negative
  68. to indicate counting from the end of the procedure (to make it possible
  69. for differently-sized procedures to share the same region list if they
  70. share the same prologue/epilogue).
  71. + it appears that it is currently not possible to read register UNW_IA64_TP;
  72. fix that => no, attempts to access r13 will result in access_reg() callbacks,
  73. as desired; for local-case, access to r13 will fail though (since
  74. getcontext() doesn't, and shouldn't, capture r13)
  75. + document the special nature of UNW_IA64_GP: read-only, but adjusted
  76. automatically if the IP is changed
  77. + use pthread-mutexes where necessary, atomic ops where possible
  78. + man-page for unw_init_local()
  79. + man-page for unw_init_remote()
  80. + man-page for unw_create_addr_space()
  81. + man-page for unw_destroy_addr_space()
  82. + man-page for unw_get_proc_info()
  83. + man-page for unw_get_proc_name()
  84. + man-page for unw_get_accessors()
  85. + man-page for unw_regname()
  86. + man-page for unw_flush_cache()
  87. + man-page for unw_set_caching_policy()
  88. + man-page for unw_getcontext()
  89. + man-page for unw_is_signal_frame()
  90. + man-page for unw_step()
  91. + man-page for unw_get_reg()
  92. + man-page for unw_set_reg()
  93. + man-page for unw_get_fpreg()
  94. + man-page for unw_set_fpreg()
  95. + test with Intel compiler