This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cond breakpoint at end of regexp functions in gdb


Hi,
I want to achieve a 'logical' conditional breakpoint
at 'finish' of all functions matching a regular
expression. As this is not directly possible in gdb, I
tried doing the following but without success:

1) rbreak
2) manually set command-list for bkpoints (How do I
automate this?), having 'finish'
3) hook-stop which has 
if (!condition)
  cont

However hook_stop messes up with the break at the
beginning of the function. hookpost_stop does not seem
to be there or not working.

My condition is to check for the return value of the
functions - check for %eax

Thanks,
S


 
____________________________________________________________________________________
Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]