* Reload executable from disk
@ 2005-04-20 23:48 Shaun Jackman
2005-04-21 0:19 ` Bob Rossi
0 siblings, 1 reply; 3+ messages in thread
From: Shaun Jackman @ 2005-04-20 23:48 UTC (permalink / raw)
To: gdb
Is there an option to have gdb reload the executable specified with
'file' from disk if its time stamp has changed upon a 'load' command?
Thanks,
Shaun
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Reload executable from disk
2005-04-20 23:48 Reload executable from disk Shaun Jackman
@ 2005-04-21 0:19 ` Bob Rossi
2005-04-21 0:48 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Bob Rossi @ 2005-04-21 0:19 UTC (permalink / raw)
To: Shaun Jackman; +Cc: gdb
On Wed, Apr 20, 2005 at 04:48:16PM -0700, Shaun Jackman wrote:
> Is there an option to have gdb reload the executable specified with
> 'file' from disk if its time stamp has changed upon a 'load' command?
I could be wrong, but if you rerun a program that you recompiled, I think
GDB is smart enough to use the new program, not the old one.
Is this what you want to know?
Bob Rossi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Reload executable from disk
2005-04-21 0:19 ` Bob Rossi
@ 2005-04-21 0:48 ` Daniel Jacobowitz
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-04-21 0:48 UTC (permalink / raw)
To: Shaun Jackman, gdb
On Wed, Apr 20, 2005 at 08:18:45PM -0400, Bob Rossi wrote:
> On Wed, Apr 20, 2005 at 04:48:16PM -0700, Shaun Jackman wrote:
> > Is there an option to have gdb reload the executable specified with
> > 'file' from disk if its time stamp has changed upon a 'load' command?
>
> I could be wrong, but if you rerun a program that you recompiled, I think
> GDB is smart enough to use the new program, not the old one.
>
> Is this what you want to know?
We check this in a lot of places, but it's possible that "load" is not
one of them. Maybe it ought to be.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-21 0:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-20 23:48 Reload executable from disk Shaun Jackman
2005-04-21 0:19 ` Bob Rossi
2005-04-21 0:48 ` Daniel Jacobowitz
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).