[haiku-bugs] Re: [Haiku] #6599: fs_shell parse error during BuildHaikuImage

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Fri, 17 Sep 2010 17:51:04 -0000

#6599: fs_shell parse error during BuildHaikuImage
------------------------+---------------------------------------------------
  Reporter:  Disreali   |         Owner:  nobody        
      Type:  bug        |        Status:  new           
  Priority:  normal     |     Milestone:  R1            
 Component:  - General  |       Version:  R1/Development
Resolution:             |      Keywords:                
Blocked By:             |   Has a Patch:  0             
  Platform:  All        |      Blocking:                
------------------------+---------------------------------------------------

Comment (by bonefish):

 I just tried on an r38606 gcc4 Haiku and things work fine.

 Instead of binary searching the revision to blame I'd recommend to simply
 track the problem down. The last line of output stems from the
 `fs_shell_command` and apparently at this point the file name is still
 correct. So it either gets lost in the communication to the `bfs_shell` or
 in the `bfs_shell` itself. The control flow (all within
 `src/tools/fs_shell/`) is the following:
  1. `fs_shell_command` (`fs_shell_command_beos.cpp`) sends the whole
 command to the `bfs_shell`.
  1. It arrives in `FSShell::get_external_command()`
 (`external_commands_beos.cpp`).
  1. Which is called by `input_loop()` (`fssh.cpp`). The command line is
 parsed and the respective command function is invoked.
  1. In this case that is `command_cp()` in (`command_cp.cpp`), which does
 the actual copying.
 A bit of debug output along the path should allow to track the point of
 failure down quickly.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6599#comment:12>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: