# Path: fiddle_extra/pymacs_request.py
# class Emacs():
#     def __init__(self):
#     def cleanup(self):
#     def receive(self):
#     def send(self, text):
# def ask_emacs(text, printer="prin1", execbuffer=""):
# def ask_emacs_in_buffer(cmd, bufname):


import os
import csv
import sys
import re
import glob
import numpy
import tables
import pytable_utils
import run_cmd
import StringIO
import pickle
import hashlib
import subprocess
import substages_parser
import db_info
import testsuite_utils as utils
import addr_space
import logging
from memory_tree import intervaltree
from collections import Iterable
from config import Main
from fiddle_extra import pymacs_request
    functionname = tables.StringCol(255, pos=2)


class SubstageEntry(tables.IsDescription):
    substagenum = tables.UInt8Col(pos=1)
    functionname = tables.StringCol(255)
    name = tables.StringCol(255)
    stack = tables.StringCol(255)
    comments = tables.StringCol(255)
    substage_type = tables.EnumCol(substage_types,
                                   BOOKKEEPING, base='uint8')


class SubstageWriteIntervals(tables.IsDescription):
    substagenum = tables.UInt8Col()
    minaddr = tables.UInt64Col()
    minaddrlo = tables.UInt32Col()
    minaddrhi = tables.UInt32Col()
    maxaddr = tables.UInt64Col()
    maxaddrlo = tables.UInt32Col()
    maxaddrhi = tables.UInt32Col()


class SubstagesInfo():
    CUMULATIVE = "cumulative"
    SUBSTAGEONLY = "substageonly"
    interval_types = [CUMULATIVE, SUBSTAGEONLY]
    mmap_info_table_name = "mmap_info"
    mmap_addr_table_name = "mmap_addr"
    info_table_name = "info"

# Path: fiddle_extra/pymacs_request.py
# class Emacs():
#     def __init__(self):
#     def cleanup(self):
#     def receive(self):
#     def send(self, text):
# def ask_emacs(text, printer="prin1", execbuffer=""):
# def ask_emacs_in_buffer(cmd, bufname):


# Path: fiddle/substage.py
import os
import csv
import sys
import re
import glob
import numpy
import tables
import pytable_utils
import run_cmd
import StringIO
import pickle
import hashlib
import subprocess
import substages_parser
import db_info
import testsuite_utils as utils
import addr_space
import logging
from memory_tree import intervaltree
from collections import Iterable
from config import Main
from fiddle_extra import pymacs_request

    functionname = tables.StringCol(255, pos=2)


class SubstageEntry(tables.IsDescription):
    substagenum = tables.UInt8Col(pos=1)
    functionname = tables.StringCol(255)
    name = tables.StringCol(255)
    stack = tables.StringCol(255)
    comments = tables.StringCol(255)
    substage_type = tables.EnumCol(substage_types,
                                   BOOKKEEPING, base='uint8')


class SubstageWriteIntervals(tables.IsDescription):
    substagenum = tables.UInt8Col()
    minaddr = tables.UInt64Col()
    minaddrlo = tables.UInt32Col()
    minaddrhi = tables.UInt32Col()
    maxaddr = tables.UInt64Col()
    maxaddrlo = tables.UInt32Col()
    maxaddrhi = tables.UInt32Col()


class SubstagesInfo():
    CUMULATIVE = "cumulative"
    SUBSTAGEONLY = "substageonly"
    interval_types = [CUMULATIVE, SUBSTAGEONLY]
    mmap_info_table_name = "mmap_info"
    mmap_addr_table_name = "mmap_addr"
    info_table_name = "info"

    region_policy_table_name = "region_policy"