cma icon indicating copy to clipboard operation
cma copied to clipboard

Not record a type of breakpoint but still keep it

Open teawater opened this issue 10 years ago • 0 comments

Wrong code: #try: #b = Break_alloc("malloc", "<malloc") #except BreakException: #record_malloc = False #else: #break_is_available = True #record_malloc = yes_no(lang.string("Do you want to record memory function malloc/calloc/realloc/free?"), True) #if record_malloc: #breaks[b.trigger] = b #try: #b = Break_calloc("calloc", "<calloc", memtype="malloc") #breaks[b.trigger] = b #except BreakException: #pass #try: #b = Break_realloc("realloc", "<realloc", memtype="malloc") #breaks[b.trigger] = b #except BreakException: #pass #try: #b = Break_release("free", "<free", memtype="malloc") #breaks[b.trigger] = b #except BreakException: #pass

    #try:
        #b = Break_alloc("operator new", r'<operator new\(', '<operator new(', 'new')
    #except BreakException:
        #record_new = False
    #else:
        #break_is_available = True
        #record_new = yes_no(lang.string("Do you want to record memory function new/delete?"), True)
    #if record_new:
        #breaks[b.trigger] = b
        #try:
            #b = Break_release("operator delete", r'<operator delete\(', '<operator delete(', 'new')
            #breaks[b.trigger] = b
        #except BreakException:
            #pass

teawater avatar Jul 30 '14 08:07 teawater