This is the mail archive of the gdb-patches@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] |
Hello, I proposed the addition of a new maintenance command a few months ago: http://www.sourceware.org/ml/gdb-patches/2006-10/msg00204.html Only a couple of people answered, but both were positive. So I now more formally propose the inclusion of this patch. |While working to "auto-solib-add", I found that I was very frequently |in need to dumping the current target stack (I just need the names), |to see if the multi-thread layer has been pushed or not. So I |implemented a new "maintenance" command, hoping that others might |find it useful. | | (gdb) maintenance print target-stack | The current target stack is: | - multi-thread (multi-threaded child process.) | - child (Unix child process) | - exec (Local exec file) | - None (None) | |Opinions? Eventually, we might want to actually dump more |information if that's useful to others, but that's a start. | 2007-01-24 Joel Brobecker <brobecker@adacore.com> * target.c (maintenance_print_target_stack): New function. (initialize_targets): Add new "maintenance print target-stack" command. Tested on x86-linux just to make sure, no regression. I will of course provide documentation for this if the idea is accepted. OK to apply? Thanks, -- Joel
Attachment:
target.c.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |