(command.CommandList
  children: [
    (C {<_Dbg_help_add>} {<backtrace>} 
      {
        (DQ <'**backtrace** [*n*]\n'> <'\n'> 
          <'Print a backtrace of calling functions and sourced files.\n'> <'\n'> <'files. If *n* is given, list only *n* calls.\n'> <'\n'> <'Examples:\n'> <'---------\n'> <'\n'> 
          <'   backtrace    # Print a full stack trace\n'> <'   backtrace 2  # Print only the top two entries\n'>
        )
      } {<1>} {<_Dbg_complete_backtrace>}
    )
    (command.ShFunction
      name: _Dbg_complete_backtrace
      body: 
        (BraceGroup
          children: [
            (C {<typeset>} {<-i>} {<Id.Lit_VarLike 'start='> <0>})
            (command.Sentence
              child: (C {<typeset>} {<-i>} {<end>})
              terminator: <Id.Op_Semi _>
            )
            (command.DParen
              child: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: <Id.Lit_ArithVarLike end>
                  right: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Minus
                      left: <Id.Lit_ArithVarLike _Dbg_stack_size>
                      right: {<Id.Lit_Digits 1>}
                    )
                )
            )
            (C {<_Dbg_complete_num_range>} {($ Id.VSub_DollarName '$start')} 
              {($ Id.VSub_DollarName '$end')}
            )
          ]
        )
    )
    (command.ShFunction
      name: _Dbg_do_backtrace
      body: 
        (BraceGroup
          children: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<_Dbg_not_running>})
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<3>}
                )
              ]
            )
            (C {<typeset>} {<-i>} 
              {<Id.Lit_VarLike 'count='> 
                (braced_var_sub
                  token: <Id.VSub_Number 1>
                  suffix_op: 
                    (suffix_op.Unary
                      tok: <Id.VTest_ColonHyphen ':-'>
                      arg_word: {($ Id.VSub_DollarName '$_Dbg_stack_size')}
                    )
                )
              }
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C 
                  {
                    (command_sub
                      left_token: <Id.Left_DollarParen '$('>
                      child: (C {<_Dbg_is_int>} {($ Id.VSub_DollarName '$count')})
                    )
                  }
                )
                (BraceGroup
                  children: [
                    (C {<_Dbg_errmsg>} 
                      {(DQ <'Bad integer COUNT parameter: '> ($ Id.VSub_DollarName '$count'))}
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                )
              ]
            )
            (C {<typeset>} {<-i>} 
              {<Id.Lit_VarLike 'frame_start='> 
                (braced_var_sub
                  token: <Id.VSub_Number 2>
                  suffix_op: (suffix_op.Unary tok:<Id.VTest_ColonHyphen ':-'> arg_word:{<0>})
                )
              }
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C 
                  {
                    (command_sub
                      left_token: <Id.Left_DollarParen '$('>
                      child: (C {<_Dbg_is_int>} {($ Id.VSub_DollarName '$frame_start')})
                    )
                  }
                )
                (BraceGroup
                  children: [
                    (C {<_Dbg_errmsg>} 
                      {(DQ <'Bad integer parameter: '> ($ Id.VSub_DollarName '$ignore_count'))}
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                )
              ]
            )
            (C {<typeset>} {<-i>} {<Id.Lit_VarLike 'i='> <frame_start>})
            (C {<typeset>} {<-li>} {<adjusted_pos>})
            (C {<typeset>} {<filename>})
            (C {<typeset>} {<-i>} {<adjusted_pos>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DParen
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_DEqual
                                  left: <Id.Lit_ArithVarLike frame_start>
                                  right: {<Id.Lit_Digits 0>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.Sentence
                      child: 
                        (command.DParen
                          child: 
                            (arith_expr.UnaryAssign
                              op_id: Id.Node_PostDMinus
                              child: <Id.Lit_ArithVarLike count>
                            )
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:adjusted_pos)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: (C {<_Dbg_frame_adjusted_pos>} {<0>})
                              )
                            }
                          spids: [348]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:filename)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<_Dbg_file_canonic>} 
                                    {
                                      (DQ 
                                        (braced_var_sub
                                          token: <Id.VSub_Name BASH_SOURCE>
                                          bracket_op: 
                                            (bracket_op.ArrayIndex
                                              expr: {($ Id.VSub_DollarName '$adjusted_pos')}
                                            )
                                        )
                                      )
                                    }
                                  )
                              )
                            }
                          spids: [356]
                        )
                      ]
                    )
                    (C {<_Dbg_frame_print>} 
                      {
                        (command_sub
                          left_token: <Id.Left_DollarParen '$('>
                          child: (C {<_Dbg_frame_prefix>} {<0>})
                        )
                      } {(SQ <0>)} {(SQ )} {(DQ ($ Id.VSub_DollarName '$filename'))} 
                      {(DQ ($ Id.VSub_DollarName '$_Dbg_frame_last_lineno'))} {(SQ )}
                    )
                  ]
                  spids: [321 336]
                )
              ]
            )
            (C {<typeset>} {<-i>} {<skip_fns>})
            (command.DParen
              child: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: <Id.Lit_ArithVarLike skip_fns>
                  right: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Plus
                      left: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Minus
                          left: 
                            {
                              (braced_var_sub
                                token: <Id.VSub_Name FUNCNAME>
                                prefix_op: (Id.VSub_Pound)
                                bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                              )
                            }
                          right: <Id.Lit_ArithVarLike _Dbg_stack_size>
                        )
                      right: {<Id.Lit_Digits 1>}
                    )
                )
            )
            (C {<_Dbg_frame_set_fn_param>} {($ Id.VSub_DollarName '$skip_fns')})
            (command.ForExpr
              init: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: <Id.Lit_ArithVarLike i>
                  right: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Plus
                      left: <Id.Lit_ArithVarLike frame_start>
                      right: {<Id.Lit_Digits 1>}
                    )
                )
              cond: 
                (arith_expr.Binary
                  op_id: Id.Arith_DAmp
                  left: 
                    (arith_expr.Binary
                      op_id: Id.Arith_LessEqual
                      left: <Id.Lit_ArithVarLike i>
                      right: <Id.Lit_ArithVarLike _Dbg_stack_size>
                    )
                  right: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Great
                      left: <Id.Lit_ArithVarLike count>
                      right: {<Id.Lit_Digits 0>}
                    )
                )
              update: (arith_expr.UnaryAssign op_id:Id.Node_PostDPlus child:<Id.Lit_ArithVarLike i>)
              body: 
                (command.DoGroup
                  children: [
                    (C {<typeset>} {<-i>} 
                      {<Id.Lit_VarLike 'arg_count='> 
                        (braced_var_sub
                          token: <Id.VSub_Name BASH_ARGC>
                          bracket_op: 
                            (bracket_op.ArrayIndex
                              expr: {($ Id.VSub_DollarName '$_Dbg_next_argc')}
                            )
                        )
                      }
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:adjusted_pos)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: (C {<_Dbg_frame_adjusted_pos>} {($ Id.VSub_DollarName '$i')})
                              )
                            }
                          spids: [524]
                        )
                      ]
                    )
                    (C {<_Dbg_msg_nocr>} 
                      {
                        (command_sub
                          left_token: <Id.Left_DollarParen '$('>
                          child: (C {<_Dbg_frame_prefix>} {($ Id.VSub_DollarName '$i')})
                        ) ($ Id.VSub_DollarName '$i')
                      } 
                      {
                        (braced_var_sub
                          token: <Id.VSub_Name FUNCNAME>
                          bracket_op: 
                            (bracket_op.ArrayIndex
                              expr: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_Minus
                                  left: {($ Id.VSub_DollarName '$adjusted_pos')}
                                  right: {<Id.Lit_Digits 1>}
                                )
                            )
                        )
                      }
                    )
                    (C {<typeset>} {<Id.Lit_VarLike 'parms='> (SQ )})
                    (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.Lit_Digits 0>}
                                          right: 
                                            {
                                              (braced_var_sub
                                                token: <Id.VSub_Name BASH_ARGC>
                                                prefix_op: (Id.VSub_Pound)
                                                bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                                              )
                                            }
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<_Dbg_frame_fn_param_str>})
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobDEqual
                                                  left: 
                                                    {
                                                      (braced_var_sub
                                                        token: <Id.VSub_Name FUNCNAME>
                                                        bracket_op: 
                                                          (bracket_op.ArrayIndex
                                                            expr: 
                                                              (arith_expr.Binary
                                                                op_id: Id.Arith_Minus
                                                                left: 
                                                                  {
                                                                    ($ Id.VSub_DollarName 
'$adjusted_pos'
                                                                    )
                                                                  }
                                                                right: {<Id.Lit_Digits 1>}
                                                              )
                                                          )
                                                      )
                                                    }
                                                  right: {(DQ <source>)}
                                                )
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: (sh_lhs_expr.Name name:_Dbg_parm_str)
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (word_part.EscapedLiteral
                                                token: <Id.Lit_EscapedChar '\\"'>
                                              ) 
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (C {<_Dbg_file_canonic>} 
                                                    {
                                                      (DQ 
                                                        (braced_var_sub
                                                          token: <Id.VSub_Name BASH_ARGV>
                                                          bracket_op: 
                                                            (bracket_op.ArrayIndex
                                                              expr: 
                                                                (arith_expr.Binary
                                                                  op_id: Id.Arith_Minus
                                                                  left: 
                                                                    {
                                                                      ($ Id.VSub_DollarName 
'$_Dbg_next_argv'
                                                                      )
                                                                    }
                                                                  right: {<Id.Lit_Digits 1>}
                                                                )
                                                            )
                                                        )
                                                      )
                                                    }
                                                  )
                                              ) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>)
                                            }
                                          spids: [617]
                                        )
                                      ]
                                    )
                                  ]
                                  spids: [591 614]
                                )
                              ]
                            )
                          ]
                          spids: [564 585]
                        )
                      ]
                    )
                    (C {<typeset>} {<-l>} {<lineno>})
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DParen
                                      child: 
                                        (arith_expr.Binary
                                          op_id: Id.Arith_DEqual
                                          left: <Id.Lit_ArithVarLike adjusted_pos>
                                          right: 
                                            {
                                              (braced_var_sub
                                                token: <Id.VSub_Name BASH_SOURCE>
                                                prefix_op: (Id.VSub_Pound)
                                                bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                                              )
                                            }
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:lineno)
                                  op: assign_op.Equal
                                  rhs: {<0>}
                                  spids: [674]
                                )
                              ]
                            )
                            (command.DParen
                              child: 
                                (arith_expr.UnaryAssign
                                  op_id: Id.Node_PostDMinus
                                  child: <Id.Lit_ArithVarLike adjusted_pos>
                                )
                            )
                          ]
                          spids: [650 671]
                        )
                      ]
                      else_action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:lineno)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (braced_var_sub
                                    token: <Id.VSub_Name BASH_LINENO>
                                    bracket_op: 
                                      (bracket_op.ArrayIndex
                                        expr: 
                                          (arith_expr.Binary
                                            op_id: Id.Arith_Minus
                                            left: {($ Id.VSub_DollarName '$adjusted_pos')}
                                            right: {<Id.Lit_Digits 1>}
                                          )
                                      )
                                  )
                                }
                              spids: [688]
                            )
                          ]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:filename)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<_Dbg_file_canonic>} 
                                    {
                                      (DQ 
                                        (braced_var_sub
                                          token: <Id.VSub_Name BASH_SOURCE>
                                          bracket_op: 
                                            (bracket_op.ArrayIndex
                                              expr: {($ Id.VSub_DollarName '$adjusted_pos')}
                                            )
                                        )
                                      )
                                    }
                                  )
                              )
                            }
                          spids: [702]
                        )
                      ]
                    )
                    (C {<_Dbg_msg>} 
                      {
                        (DQ <'('> ($ Id.VSub_DollarName '$_Dbg_parm_str') <') called from file '> 
                          (word_part.EscapedLiteral
                            token: <Id.Lit_EscapedChar '\\`'>
                          ) ($ Id.VSub_DollarName '$filename') <'\''>
                        )
                      } {(DQ <'at line '> ($ Id.VSub_DollarName '$lineno'))}
                    )
                    (command.DParen
                      child: 
                        (arith_expr.UnaryAssign
                          op_id: Id.Node_PostDMinus
                          child: <Id.Lit_ArithVarLike count>
                        )
                    )
                  ]
                )
            )
            (command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
        )
    )
    (C {<_Dbg_alias_add>} {<bt>} {<backtrace>})
    (C {<_Dbg_alias_add>} {<T>} {<backtrace>})
    (C {<_Dbg_alias_add>} {<where>} {<backtrace>})
  ]
)