Re: [RFA] let record_resume fail immediately on error

Joel Brobecker
2009-09-28T18:12:53Z

> With the fix error patch:
[...]
> (gdb) c
> Continuing.
> Process record doesn't support instruction rdtsc.
> Process record doesn't support instruction 0xf31 at address 0x8048352.
> main (argc=<value optimized out>, argv=<value optimized out>,
> envp=<value optimized out>) at 4.c:14
> 14 asm ("rdtsc");
> Process record: failed to record execution log.
> (gdb)
> Continuing.
> Process record doesn't support instruction rdtsc.
> Process record doesn't support instruction 0xf31 at address 0x8048352.
> main (argc=<value optimized out>, argv=<value optimized out>,
> envp=<value optimized out>) at 4.c:14
> 14 asm ("rdtsc");
> Process record: failed to record execution log.

I am going to defer to Michael who understands the issues much better
than I do; I am a little confused by what you are suggesting. On the
one hand, I understand that the problem you're trying to deal with
is the case when the inferior exits. Are you talking about normal
exiting as well as abnormal exiting like in your case? In any event,
what you show in your example looks like a bandaid that will only
handle a specific situation: In other words, it works around the issue
because you no longer let the inferior exit.

--
Joel