* [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture.
@ 2006-11-28 1:04 Nitin Gupta
2006-11-28 19:01 ` Jim Blandy
0 siblings, 1 reply; 6+ messages in thread
From: Nitin Gupta @ 2006-11-28 1:04 UTC (permalink / raw)
To: gdb
Pushing one of the old patches from Daniel into FSF.
2002-08-30 Daniel Jacobowitz <drow@mvista.com>
* corelow.c (get_core_register_section): Clarify warning.
Index: gdb-6.3.90_20051109/gdb/corelow.c
===================================================================
--- gdb-6.3.90_20051109.orig/gdb/corelow.c 2005-07-04
13:29:10.000000000 +0000
+++ gdb-6.3.90_20051109/gdb/corelow.c 2005-11-09 23:23:54.000000000 +0000
@@ -462,7 +462,10 @@
if (! section)
{
if (required)
+ {
warning (_("Couldn't find %s registers in core file."), human_name);
+ warning (_("Core file may be for a different architecture.\n"));
+ }
return;
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture.
2006-11-28 1:04 [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture Nitin Gupta
@ 2006-11-28 19:01 ` Jim Blandy
2006-11-28 19:51 ` Mark Kettenis
0 siblings, 1 reply; 6+ messages in thread
From: Jim Blandy @ 2006-11-28 19:01 UTC (permalink / raw)
To: Nitin Gupta; +Cc: gdb
Nitin Gupta <ngupta@mvista.com> writes:
> Pushing one of the old patches from Daniel into FSF.
>
> 2002-08-30 Daniel Jacobowitz <drow@mvista.com>
>
> * corelow.c (get_core_register_section): Clarify warning.
>
> Index: gdb-6.3.90_20051109/gdb/corelow.c
> ===================================================================
> --- gdb-6.3.90_20051109.orig/gdb/corelow.c 2005-07-04
> 13:29:10.000000000 +0000
> +++ gdb-6.3.90_20051109/gdb/corelow.c 2005-11-09 23:23:54.000000000 +0000
> @@ -462,7 +462,10 @@
> if (! section)
> {
> if (required)
> + {
> warning (_("Couldn't find %s registers in core file."), human_name);
> + warning (_("Core file may be for a different architecture.\n"));
> + }
> return;
> }
I don't object to this patch, but I wonder if there isn't a better
place to do the check, where we could issue a more informative
message.
Does this warning ever come about when the core file is *not* of a
different architecture? I'd assume not, since the caller indicated
that the section in question is required.
(Sorry if this patch has been discussed before --- I couldn't find the
thread in the archives.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture.
2006-11-28 19:01 ` Jim Blandy
@ 2006-11-28 19:51 ` Mark Kettenis
2006-11-28 19:58 ` Jim Blandy
0 siblings, 1 reply; 6+ messages in thread
From: Mark Kettenis @ 2006-11-28 19:51 UTC (permalink / raw)
To: Jim Blandy; +Cc: Nitin Gupta, gdb
>
> Nitin Gupta <ngupta@mvista.com> writes:
> > Pushing one of the old patches from Daniel into FSF.
> >
> > 2002-08-30 Daniel Jacobowitz <drow@mvista.com>
> >
> > * corelow.c (get_core_register_section): Clarify warning.
> >
> > Index: gdb-6.3.90_20051109/gdb/corelow.c
> > ===================================================================
> > --- gdb-6.3.90_20051109.orig/gdb/corelow.c 2005-07-04
> > 13:29:10.000000000 +0000
> > +++ gdb-6.3.90_20051109/gdb/corelow.c 2005-11-09 23:23:54.000000000
> > +0000
> > @@ -462,7 +462,10 @@
> > if (! section)
> > {
> > if (required)
> > + {
> > warning (_("Couldn't find %s registers in core file."),
> > human_name);
> > + warning (_("Core file may be for a different architecture.\n"));
> > + }
> > return;
> > }
>
> I don't object to this patch, but I wonder if there isn't a better
> place to do the check, where we could issue a more informative
> message.
>
> Does this warning ever come about when the core file is *not* of a
> different architecture? I'd assume not, since the caller indicated
> that the section in question is required.
>
> (Sorry if this patch has been discussed before --- I couldn't find the
> thread in the archives.)
I don't like the change. It's replacing a factual statement with a
specualtion.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture.
2006-11-28 19:51 ` Mark Kettenis
@ 2006-11-28 19:58 ` Jim Blandy
2006-11-29 0:04 ` Mark Kettenis
0 siblings, 1 reply; 6+ messages in thread
From: Jim Blandy @ 2006-11-28 19:58 UTC (permalink / raw)
To: Mark Kettenis; +Cc: Nitin Gupta, gdb
"Mark Kettenis" <mark.kettenis@xs4all.nl> writes:
> I don't like the change. It's replacing a factual statement with a
> specualtion.
It doesn't *replace* the factual statement. It *augments* it with a
speculation. :)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture.
2006-11-28 19:58 ` Jim Blandy
@ 2006-11-29 0:04 ` Mark Kettenis
2006-12-06 17:50 ` Nitin Gupta
0 siblings, 1 reply; 6+ messages in thread
From: Mark Kettenis @ 2006-11-29 0:04 UTC (permalink / raw)
To: Jim Blandy; +Cc: Mark Kettenis, Nitin Gupta, gdb
>
> "Mark Kettenis" <mark.kettenis@xs4all.nl> writes:
> > I don't like the change. It's replacing a factual statement with a
> > specualtion.
>
> It doesn't *replace* the factual statement. It *augments* it with a
> speculation. :)
Sorry, I misread the diff. Objection withdrawn.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture.
2006-11-29 0:04 ` Mark Kettenis
@ 2006-12-06 17:50 ` Nitin Gupta
0 siblings, 0 replies; 6+ messages in thread
From: Nitin Gupta @ 2006-12-06 17:50 UTC (permalink / raw)
To: Mark Kettenis; +Cc: Jim Blandy, gdb
Mark Kettenis wrote:
>> "Mark Kettenis" <mark.kettenis@xs4all.nl> writes:
>>
>>> I don't like the change. It's replacing a factual statement with a
>>> specualtion.
>>>
>> It doesn't *replace* the factual statement. It *augments* it with a
>> speculation. :)
>>
>
> Sorry, I misread the diff. Objection withdrawn.
>
>
>
>
Jim, could you please check it in, if there is no further issue?
Thanks,
Nitin
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-12-06 17:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-28 1:04 [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture Nitin Gupta
2006-11-28 19:01 ` Jim Blandy
2006-11-28 19:51 ` Mark Kettenis
2006-11-28 19:58 ` Jim Blandy
2006-11-29 0:04 ` Mark Kettenis
2006-12-06 17:50 ` Nitin Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox