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

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Wed Feb 10 00:52:03 CET 2010


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





--- Comment #45 from jansssens <jroeloffzen at hotmail.com>  2010-02-10 00:52:01 CET ---
Created an attachment (id=4688)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=4688)
Version 2.1

- Added Cli for escape commands. See description below.
- Because of this moved some initialization outside option parsing.
- Added a sanity check (+warning) in case a source file has too few lines.
- A little header cleanup
- Some other small help text adjustments

CLI escape commands:
  It is possible to change options and perform actions from the 'kdb:>' prompt
  By prepending the `(backquote) character to the option.
  Example: 'kdb:> `l new.log' changes the current logfile to 'new.log'.
  Flag options like 'b' are given a numeric value of 0 (off) or 1 (on).
  Options accepting a string as argument can be cleared by the value 'off'.
  Some ClI commands are read only or not (entirely) implemented.
  If no value is provided, the current one is printed.
  There are only a few extra ClI commands or with different behaviour:
  - `h : shows this helptext (without exiting)
  - `q : quits log2lines
  - `R regscan : the output is printed immediately (do a 'bt' first)
  - `R regclear : clears previous regscan matches
  - `s : the output is printed immediately
  - `s clear : clears all statistics.
  - `S : only <context> and <add> can be set.
  - `v <level> : sets the current debug loglevel

CLI Examples: (some are based on the option examples)
  Use '`R check' to show that action.c has been changed after the build:
       kdb:> `R check
       | L2L- -R is "check" (changed)
       kdb:> bt
       <msi.dll:35821 (dll/win32/msi/registry.c:781 (MSIREG_OpenUserDataKey))>
       | 0780      if (create)
       | 0781          rc = RegCreateKeyW(HKEY_LOCAL_MACHINE, keypath, key);
       <msi.dll:5262 (dll/win32/msi/action.c:2665 (ACTION_ProcessComponents))>
       | R--- Conflict : source(44191) > build(43850)
       | 2664              else
       | 2665                  rc = MSIREG_OpenUserDataKey(comp->ComponentId,
       kdb:>

  Generate source lines. Show 2 lines of context plus 1 additional line.
  The -Uu options are dependent on -S:
       kdb:> `S 2+1
       | L2L- -u Undo is 1 (changed)
       | L2L- -U Undo and reprocess is 1 (changed)
       | L2L- -S Sources option is 2+1,"C:\ROS\reactos\"
       | L2L- (Setting source tree not implemented)
       kdb:> bt
       <msi.dll:2e35d (dll/win32/msi/msiquery.c:189 (MSI_IterateRecords))>
       | 0188      {
       | 0189          r = MSI_ViewFetch( view, &rec );
       | ----
       | 0190          if( r != ERROR_SUCCESS )
       kdb:>

  Change logfile:
       kdb:> `l
       | L2L- -l logfile is  "" (unchanged)
       kdb:> `l new.log
       | L2L- -l logfile is "new.log" (changed)
       kdb:> `l off
       | L2L- -l logfile is "" (changed)
       kdb:>


-- 
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