public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug python/15351] New: GDB should provide a way to tell if the inferior comes from a core file @ 2013-04-09 15:26 spam_hole at shaw dot ca 2013-04-12 18:01 ` [Bug python/15351] " tromey at redhat dot com 2023-07-06 18:20 ` tromey at sourceware dot org 0 siblings, 2 replies; 3+ messages in thread From: spam_hole at shaw dot ca @ 2013-04-09 15:26 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15351 Bug #: 15351 Summary: GDB should provide a way to tell if the inferior comes from a core file Product: gdb Version: 7.4 Status: NEW Severity: normal Priority: P2 Component: python AssignedTo: unassigned@sourceware.org ReportedBy: spam_hole@shaw.ca Classification: Unclassified When examining a core file, certain operations are disabled, and others may behave differently. It would be nice to be able to query if the active inferior is a core file. Ideally, it would be an attribute of gdb.Inferior. (from http://stackoverflow.com/questions/15893058/gdb-scripting-execute-command-only-if-not-debugging-core-file/) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug python/15351] GDB should provide a way to tell if the inferior comes from a core file 2013-04-09 15:26 [Bug python/15351] New: GDB should provide a way to tell if the inferior comes from a core file spam_hole at shaw dot ca @ 2013-04-12 18:01 ` tromey at redhat dot com 2023-07-06 18:20 ` tromey at sourceware dot org 1 sibling, 0 replies; 3+ messages in thread From: tromey at redhat dot com @ 2013-04-12 18:01 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15351 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com --- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-04-12 18:01:33 UTC --- I wouldn't mind this, but it would be nice to resolve the differences in the situations where this is possible. If you know of any like this, please let us know. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug python/15351] GDB should provide a way to tell if the inferior comes from a core file 2013-04-09 15:26 [Bug python/15351] New: GDB should provide a way to tell if the inferior comes from a core file spam_hole at shaw dot ca 2013-04-12 18:01 ` [Bug python/15351] " tromey at redhat dot com @ 2023-07-06 18:20 ` tromey at sourceware dot org 1 sibling, 0 replies; 3+ messages in thread From: tromey at sourceware dot org @ 2023-07-06 18:20 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=15351 Tom Tromey <tromey at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |12.1 CC| |tromey at sourceware dot org Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Tom Tromey <tromey at sourceware dot org> --- This can be done now, by inspecting Inferior.connection: (gdb) python print(gdb.selected_inferior().connection.type) core This was in gdb 12. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-06 18:20 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-04-09 15:26 [Bug python/15351] New: GDB should provide a way to tell if the inferior comes from a core file spam_hole at shaw dot ca 2013-04-12 18:01 ` [Bug python/15351] " tromey at redhat dot com 2023-07-06 18:20 ` tromey at sourceware dot org
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).