
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2005-12-30 15:14 byrockyb, last changed2022-04-11 14:56 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| pdb-add-restart.diff | rockyb,2006-01-02 11:30 | Patch to add "run" or "restart" to pdb.py | ||
| Messages (8) | |||
|---|---|---|---|
| msg49240 -(view) | Author: Rocky Bernstein (rockyb) | Date: 2005-12-30 15:14 | |
The enclosed patch adds a restart command to pdb. (Theshort command name is "R" as it is in perldb). With anoptional argument, the program arguments are reassigned. | |||
| msg49241 -(view) | Author: Georg Brandl (georg.brandl)*![]() | Date: 2006-01-20 21:44 | |
Logged In: YES user_id=1188172Patch looks good from my POV. | |||
| msg49242 -(view) | Author: Ilya Sandler (isandler) | Date: 2006-02-02 04:40 | |
Logged In: YES user_id=971153The patch works for me. I think the feature is desirable. | |||
| msg49243 -(view) | Author: Ilya Sandler (isandler) | Date: 2006-02-02 04:51 | |
Logged In: YES user_id=971153one suggestion though: do we really need 'restart' alias?The main problem is that gdb uses "restart" for a verydifferent purpose (restarting a program from a knownstate)..And we probably shouldn't deviate from gdb's commandset unless we have to.Also I think we should not pollute the command space withouta real need...(a similar argument could be made agaist "ru"abbreviation as well, but it's of lesser importance) | |||
| msg49244 -(view) | Author: Rocky Bernstein (rockyb) | Date: 2006-06-08 08:06 | |
Logged In: YES user_id=158581Sorry for not responding earlier. As getting this was takinga bit of time moving forward, in the interrum I had beenmaking much faster progress by splitting this off into it'sown little project under the bash debugger project I have onsourceforge (http://bashdb.sourceforge.net/pydb). Being able to make public releases earlier and oftener hasofforded the oppertunity to move much further along muchquicker than via the patch method (where we still haven'tgotten past restarting the debugger).Now back to your comments/questions. In pydb, there are twokinds of "restart". "run" is like gdb's run. Debugger state(breakpoints, watchpoints, display expressions, debuggersettings for list size, etc.) are preserved. Same as in gdb.Gdb does not to my knowledge have a command called"restart". However I've taken your suggestion of not havinga "restart" be the same thing as "run". "restart" is are-exec of the debugger. No state is save. As a debuggerwriter, I personally find that one useful ;-)Having the R be an alias for "run" is helpful since it'sshort and matches what's used Perl where people use thedebugger more frequently. In fact there's a whole bookwritten on the Perl debugger. (And I also use 'R' in the GNUMake and bash debuggers.)As for "ru", well, since I've added command completion, Ifeel this issue is less important. | |||
| msg49245 -(view) | Author: Ilya Sandler (isandler) | Date: 2006-06-18 19:36 | |
Logged In: YES user_id=971153For the record:gdb does have a "restart" commandhttp://sources.redhat.com/gdb/current/onlinedocs/gdb_5.html(it's used to restart from a particular checkpoint) | |||
| msg49246 -(view) | Author: Rocky Bernstein (rockyb) | Date: 2006-06-18 20:46 | |
Logged In: YES user_id=158581Tried on both GNu/Linux and NetBSD:restartUndefined command: "restart". Try "help".(gdb) show versionGNU gdb 6.3Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General PublicLicense, and you arewelcome to change it and/or distribute copies of it undercertain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB. Type "showwarranty" for details.This GDB was configured as "i686-pc-linux-gnu".(gdb) info checkpointUndefined info command: "checkpoint". Try "help info". | |||
| msg49247 -(view) | Author: Georg Brandl (georg.brandl)*![]() | Date: 2007-03-13 21:09 | |
Committed and added docs inrev. 54360. | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:14 | admin | set | github: 42741 |
| 2005-12-30 15:14:29 | rockyb | create | |