public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug gdb/9764] Create multiple checkpoints with one command [not found] <bug-9764-4717@http.sourceware.org/bugzilla/> @ 2014-09-12 22:08 ` sergiodj at redhat dot com 0 siblings, 0 replies; 5+ messages in thread From: sergiodj at redhat dot com @ 2014-09-12 22:08 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=9764 Sergio Durigan Junior <sergiodj at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED CC| |sergiodj at redhat dot com Resolution|--- |OBSOLETE --- Comment #4 from Sergio Durigan Junior <sergiodj at redhat dot com> --- Closing as OBSOLETE due to inactivity. Feel free to reopen if it is still valid. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/9764] New: Create multiple checkpoints with one command @ 2009-01-19 23:08 uri at 4refs dot com 2009-01-19 23:36 ` [Bug gdb/9764] " pedro at codesourcery dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: uri at 4refs dot com @ 2009-01-19 23:08 UTC (permalink / raw) To: gdb-prs Given that I cannot create a checkpoint and keep it in place, I often create multiple checkpoints so that if I need to go back I still have lots of choices. This requires me to type "checkpoint" many times. The program that I debug is large (up to 128GB) so creating these can take some time, though not an enormous amount. Still, it would be nice if I could type: checkpoint 10 ... and 10 checkpoints are created, like other GDB commands. -- Summary: Create multiple checkpoints with one command Product: gdb Version: 6.8 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned at sourceware dot org ReportedBy: uri at 4refs dot com CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=9764 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/9764] Create multiple checkpoints with one command 2009-01-19 23:08 [Bug gdb/9764] New: " uri at 4refs dot com @ 2009-01-19 23:36 ` pedro at codesourcery dot com 2009-01-19 23:36 ` pedro at codesourcery dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pedro at codesourcery dot com @ 2009-01-19 23:36 UTC (permalink / raw) To: gdb-prs -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=9764 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/9764] Create multiple checkpoints with one command 2009-01-19 23:08 [Bug gdb/9764] New: " uri at 4refs dot com 2009-01-19 23:36 ` [Bug gdb/9764] " pedro at codesourcery dot com @ 2009-01-19 23:36 ` pedro at codesourcery dot com 2009-01-19 23:45 ` uri at 4refs dot com 2009-01-19 23:58 ` pedro at codesourcery dot com 3 siblings, 0 replies; 5+ messages in thread From: pedro at codesourcery dot com @ 2009-01-19 23:36 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From pedro at codesourcery dot com 2009-01-19 23:36 ------- Subject: Re: New: Create multiple checkpoints with one command On Monday 19 January 2009 23:08:50, uri at 4refs dot com wrote: > Given that I cannot create a checkpoint and keep it in place, I often create > multiple checkpoints so that if I need to go back I still have lots of choices. > This requires me to type "checkpoint" many times. The program that I debug is > large (up to 128GB) so creating these can take some time, though not an enormous > amount. Still, it would be nice if I could type: > > checkpoint 10 > > ... and 10 checkpoints are created, like other GDB commands. > You can make use of gdb's scripting support for this (see the ``Extending GDB'' section in the user manual). Add this to your .gdbinit file: define mycheckpoint set $i = $arg0 while $i > 0 checkpoint set $i = $i - 1 end end (or type it in gdb's shell, if you want) Then: (gdb) mycheckpoint 10 (gdb) info checkpoints 10 process 21361 at 0x406740, file gdb.c, line 26 9 process 21360 at 0x406740, file gdb.c, line 26 8 process 21359 at 0x406740, file gdb.c, line 26 7 process 21358 at 0x406740, file gdb.c, line 26 6 process 21357 at 0x406740, file gdb.c, line 26 5 process 21356 at 0x406740, file gdb.c, line 26 4 process 21355 at 0x406740, file gdb.c, line 26 3 process 21354 at 0x406740, file gdb.c, line 26 2 process 21353 at 0x406740, file gdb.c, line 26 1 process 21352 at 0x406740, file gdb.c, line 26 0 process 21346 (main process) at 0x0 Does this work for you? -- http://sourceware.org/bugzilla/show_bug.cgi?id=9764 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/9764] Create multiple checkpoints with one command 2009-01-19 23:08 [Bug gdb/9764] New: " uri at 4refs dot com 2009-01-19 23:36 ` [Bug gdb/9764] " pedro at codesourcery dot com 2009-01-19 23:36 ` pedro at codesourcery dot com @ 2009-01-19 23:45 ` uri at 4refs dot com 2009-01-19 23:58 ` pedro at codesourcery dot com 3 siblings, 0 replies; 5+ messages in thread From: uri at 4refs dot com @ 2009-01-19 23:45 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From uri at 4refs dot com 2009-01-19 23:45 ------- Thanks for the workaround. I tested it and it does work. However, I think it is a useful feature that I imagine is near trivial to implement. Otherwise, I'm going to have to pass this file around to all of my coworkers. -- http://sourceware.org/bugzilla/show_bug.cgi?id=9764 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/9764] Create multiple checkpoints with one command 2009-01-19 23:08 [Bug gdb/9764] New: " uri at 4refs dot com ` (2 preceding siblings ...) 2009-01-19 23:45 ` uri at 4refs dot com @ 2009-01-19 23:58 ` pedro at codesourcery dot com 3 siblings, 0 replies; 5+ messages in thread From: pedro at codesourcery dot com @ 2009-01-19 23:58 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From pedro at codesourcery dot com 2009-01-19 23:58 ------- Subject: Re: Create multiple checkpoints with one command On Monday 19 January 2009 23:45:51, uri at 4refs dot com wrote: > > ------- Additional Comments From uri at 4refs dot com 2009-01-19 23:45 ------- > Thanks for the workaround. I tested it and it does work. > > However, I think it is a useful feature that I imagine is near trivial to > implement. Otherwise, I'm going to have to pass this file around to all of my > coworkers. The whole point here is that we avoid adding feature bloat to the core, when the feature is already easily available. That's the whole idea behind a scriptable interface. Do you think the script has any disadvantage other than that? Doesn't seem much worse than passing around new versions of gdb to your coworkers to me. -- http://sourceware.org/bugzilla/show_bug.cgi?id=9764 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-09-12 22:08 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-9764-4717@http.sourceware.org/bugzilla/> 2014-09-12 22:08 ` [Bug gdb/9764] Create multiple checkpoints with one command sergiodj at redhat dot com 2009-01-19 23:08 [Bug gdb/9764] New: " uri at 4refs dot com 2009-01-19 23:36 ` [Bug gdb/9764] " pedro at codesourcery dot com 2009-01-19 23:36 ` pedro at codesourcery dot com 2009-01-19 23:45 ` uri at 4refs dot com 2009-01-19 23:58 ` pedro at codesourcery dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).