Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not record a type of breakpoint but still keep it #5

Open
teawater opened this issue Jul 30, 2014 · 0 comments
Open

Not record a type of breakpoint but still keep it #5

teawater opened this issue Jul 30, 2014 · 0 comments
Labels

Comments

@teawater
Copy link
Owner

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 teawater added the bug label Jul 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant