Mono.Debugger.Backend.Bfd.GetSectionByName C# (CSharp) Method

GetSectionByName() private method

private GetSectionByName ( string name, bool throw_exc ) : Section
name string
throw_exc bool
return Section
        Section GetSectionByName(string name, bool throw_exc)
        {
            IntPtr section = bfd_get_section_by_name (bfd, name);
            if (section == IntPtr.Zero) {
                if (throw_exc)
                    throw new SymbolTableException (
                        "Can't get bfd section {0}", name);
                else
                    return null;
            }

            return new Section (this, section);
        }