[ros-bugs] [Bug 4342] log2lines: Enhanced raddr2line replacement

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Fri Nov 27 15:04:41 CET 2009


http://www.reactos.org/bugzilla/show_bug.cgi?id=4342





--- Comment #25 from jansssens <jroeloffzen at hotmail.com>  2009-11-27 15:04:41 CET ---
Created an attachment (id=4431)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=4431)
Version 1.3

1. Ok. See below. It's now almost as requested.

2. This is by design. The info is cached in a file for subsequential 
   invocations. Use -f or -F to invalidate the cache.

3. Ok. See below. I hope in this form it is more usable now. 

4. Isn't that the relocation issue pointed out in 
   http://www.reactos.org/wiki/GDB ("Making GDB useful") ?
   The source is now probably here: ntoskrnl\mm\sysldr.c 
   in MiReloadBootLoadedDrivers()
   BTW I think this as a serious bug, hinders testing/debugging.

5. Also done some cleanup and log improvement (less clobber).

Changes:

Usage: log2lines -bcd:fFhl:mMrstTuUvz: {<exefile> <offset> {<offset>}}

Description:
  When <exefile> <offset> are given, log2lines works like raddr2line:
      - The <exefile> <offset> combination can be repeated
      - Also, <offset> can be repeated for each <exefile>
      - NOTE: some of the options below will have no effect in this form.

Options:
  -t   Translate twice. The address itself and for (address - 1)
       Show extra filename, func and linenumber between [..] if they differ
       So if only the linenumbers differ, then only show the extra
       linenumber.

  -T   As -t, but the original filename+func+linenumber gets replaced

Examples:
  Re-translate a debug log. Specify a 7z file, which wil be decompressed.
  Also check for (address) - (address - 1) differences:
       log2lines -U -t -d bootcd-38701-dbg.7z < bugxxxx.log
  This would generate loglines like:
       '<ntdll.dll:60f1 (dll/ntdll/ldr/utils.c:337[331] (LdrPEStartup))>'

  The following command line invocations are equivalent:
       log2lines msi.dll 2e35d msi.dll 2235 msiexec.exe 30a8 msiexec.exe 2e89
       log2lines msi.dll 2e35d 2235 msiexec.exe 30a8 2e89


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the Ros-bugs mailing list