(command.CommandList
  children: [
    (C {<_Dbg_help_add>} {<handle>} 
      {
        (DQ <'**handle** *signal* *action*\n'> <'\n'> <'Specify how to handle *signal*.\n'> <'\n'> 
          <'*signal* is a signal name like SIGSEGV, but numeric signals like 11\n'> <'(which is usually equivalent on '> <Id.Lit_BadBackslash '\\'> <'*nix systems) is okay too.\n'> <'\n'> 
          <'*action* is one of '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <stop> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <', '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <nostop> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <', '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <print> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <', and\n'> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <noprint> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <'. '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <Stop> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <' indicates entering debugger if this signal\n'> <'happens. '> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <Print> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) 
          <' indicates printing a message if this signal is\n'> <'encountered. '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <Stack> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <' is like '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <print> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <' but except the entire call\n'> <'stack is printed. Prefacing these actions with '> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <no> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <' indicates not to\n'> 
          <'do the indicated action.'>
        )
      }
    )
    (command.ShFunction
      name: _Dbg_do_handle
      body: 
        (BraceGroup
          children: [
            (C {<typeset>} {<Id.Lit_VarLike 'sig='> ($ Id.VSub_Number '$1')})
            (C {<typeset>} {<Id.Lit_VarLike 'cmd='> ($ Id.VSub_Number '$2')})
            (C {<typeset>} {<-i>} {<signum>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Unary
                                  op_id: Id.BoolUnary_z
                                  child: {($ Id.VSub_DollarName '$sig')}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<_Dbg_errmsg>} {(DQ <'Missing signal name or signal number.'>)})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [151 163]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {($ Id.VSub_DollarName '$sig')}
                                  right: {($ Id.VSub_DollarName '$int_pat')}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:signame)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: (C {<_Dbg_signum2name>} {($ Id.VSub_DollarName '$sig')})
                              )
                            }
                          spids: [198]
                        )
                      ]
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DParen
                                      child: 
                                        (arith_expr.Binary
                                          op_id: Id.Arith_NEqual
                                          left: {($ Id.VSub_QMark '$?')}
                                          right: {<Id.Lit_Digits 0>}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<_Dbg_errmsg>} 
                              {(DQ <'Bad signal number: '> ($ Id.VSub_DollarName '$sig'))}
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<2>}
                            )
                          ]
                          spids: [206 221]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:signum)
                          op: assign_op.Equal
                          rhs: {<sig>}
                          spids: [240]
                        )
                      ]
                    )
                  ]
                  spids: [182 195]
                )
              ]
              else_action: [
                (command.Sentence
                  child: (C {<typeset>} {<signum>})
                  terminator: <Id.Op_Semi _>
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:signum)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<_Dbg_name2signum>} {($ Id.VSub_DollarName '$sig')})
                          )
                        }
                      spids: [253]
                    )
                  ]
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DParen
                                  child: 
                                    (arith_expr.Binary
                                      op_id: Id.Arith_NEqual
                                      left: {($ Id.VSub_QMark '$?')}
                                      right: {<Id.Lit_Digits 0>}
                                    )
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (C {<_Dbg_errmsg>} {(DQ <'Bad signal name: '> ($ Id.VSub_DollarName '$sig'))})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                          arg_word: {<3>}
                        )
                      ]
                      spids: [261 276]
                    )
                  ]
                )
              ]
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$cmd')}
              arms: [
                (case_arm
                  pat_list: [{<nop>} {<nopr>} {<nopri>} {<noprin>} {<noprint>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.IndexedName
                              name: _Dbg_sig_print
                              index: <Id.Lit_ArithVarLike signum>
                            )
                          op: assign_op.Equal
                          rhs: {(SQ <noprint>)}
                          spids: [327]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.IndexedName
                              name: _Dbg_sig_stop
                              index: <Id.Lit_ArithVarLike signum>
                            )
                          op: assign_op.Equal
                          rhs: {(SQ <stop>)}
                          spids: [341]
                        )
                      ]
                    )
                  ]
                  spids: [306 324 351 -1]
                )
                (case_arm
                  pat_list: [{<nosta>} {<nostac>} {<nostack>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.IndexedName
                              name: _Dbg_sig_show_stack
                              index: <Id.Lit_ArithVarLike signum>
                            )
                          op: assign_op.Equal
                          rhs: {(SQ <nostack>)}
                          spids: [368]
                        )
                      ]
                    )
                  ]
                  spids: [355 365 378 -1]
                )
                (case_arm
                  pat_list: [{<nosto>} {<nostop>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.IndexedName
                              name: _Dbg_sig_stop
                              index: <Id.Lit_ArithVarLike signum>
                            )
                          op: assign_op.Equal
                          rhs: {(SQ <nostop>)}
                          spids: [391]
                        )
                      ]
                    )
                  ]
                  spids: [382 388 401 -1]
                )
                (case_arm
                  pat_list: [{<p>} {<pr>} {<pri>} {<prin>} {<print>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.IndexedName
                              name: _Dbg_sig_print
                              index: <Id.Lit_ArithVarLike signum>
                            )
                          op: assign_op.Equal
                          rhs: {(SQ <print>)}
                          spids: [426]
                        )
                      ]
                    )
                  ]
                  spids: [405 423 436 -1]
                )
                (case_arm
                  pat_list: [{<sta>} {<stac>} {<stack>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.IndexedName
                              name: _Dbg_sig_show_stack
                              index: <Id.Lit_ArithVarLike signum>
                            )
                          op: assign_op.Equal
                          rhs: {(SQ <showstack>)}
                          spids: [453]
                        )
                      ]
                    )
                  ]
                  spids: [440 450 463 -1]
                )
                (case_arm
                  pat_list: [{<sto>} {<stop>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.IndexedName
                              name: _Dbg_sig_stop
                              index: <Id.Lit_ArithVarLike signum>
                            )
                          op: assign_op.Equal
                          rhs: {(SQ <stop>)}
                          spids: [476]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.IndexedName
                              name: _Dbg_sig_print
                              index: <Id.Lit_ArithVarLike signum>
                            )
                          op: assign_op.Equal
                          rhs: {(SQ <print>)}
                          spids: [490]
                        )
                      ]
                    )
                  ]
                  spids: [467 473 500 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DParen
                                      child: 
                                        (arith_expr.Unary
                                          op_id: Id.Arith_Bang
                                          child: <Id.Lit_ArithVarLike cmd>
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<_Dbg_errmsg>} 
                              {
                                (DQ 
                                  <
'Need to give a command: stop, nostop, stack, nostack, print, noprint'
                                  >
                                )
                              }
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<4>}
                            )
                          ]
                          spids: [508 520]
                        )
                      ]
                      else_action: [
                        (C {<_Dbg_errmsg>} 
                          {(DQ <'Invalid handler command '> ($ Id.VSub_DollarName '$cmd'))}
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                          arg_word: {<5>}
                        )
                      ]
                    )
                  ]
                  spids: [503 505 556 -1]
                )
              ]
            )
            (command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
        )
    )
  ]
)