* Re: [PATCH} Minor bug fix in arch-utils.c
[not found] <000701c0cea9$7b18ed80$6401a8c0@cn986452a>
@ 2001-05-10 8:33 ` Andrew Cagney
2001-05-10 9:26 ` Fernando Nasser
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2001-05-10 8:33 UTC (permalink / raw)
To: John S Kallal, Adam Mirowski; +Cc: gdb-patches
> The following is a one line patch to
> end a segmentation fault when the
> command 'info architecture' is used
> on GDB running on a SUSE-7.0 Linux
> system.
>
>
> 2001-04-26 John S Kallal <jskallal@home.com>
>
> * arch-utils.c/info_architecture: Remove 2nd
> pointer list update to correctly follow
> linked list.
Yes, I've seen this patch twice now. While an obvious fix, I'm going to
check in the attached. The ``info architecture'' command can simply be
deleted.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH} Minor bug fix in arch-utils.c
2001-05-10 8:33 ` [PATCH} Minor bug fix in arch-utils.c Andrew Cagney
@ 2001-05-10 9:26 ` Fernando Nasser
2001-05-10 10:27 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Fernando Nasser @ 2001-05-10 9:26 UTC (permalink / raw)
To: Andrew Cagney; +Cc: John S Kallal, Adam Mirowski, gdb-patches
Andrew Cagney wrote:
>
> > The following is a one line patch to
> > end a segmentation fault when the
> > command 'info architecture' is used
> > on GDB running on a SUSE-7.0 Linux
> > system.
> >
> >
> > 2001-04-26 John S Kallal <jskallal@home.com>
> >
> > * arch-utils.c/info_architecture: Remove 2nd
> > pointer list update to correctly follow
> > linked list.
>
> Yes, I've seen this patch twice now. While an obvious fix, I'm going to
> check in the attached. The ``info architecture'' command can simply be
> deleted.
>
> Andrew
Ouch! Isn't it any useful? At least as a "maintenance" command?
Fernando
>
> ------------------------------------------------------------------------
> 2001-05-09 Andrew Cagney <ac131313@redhat.com>
>
> * arch-utils.c (initialize_current_architecture): Delete obsolete
> ``info architecture'' command.
>
> *** /home/scratch/GDB/src/gdb/arch-utils.c Tue May 8 11:58:38 2001
> --- arch-utils.c Wed May 9 16:17:00 2001
> ***************
> *** 586,625 ****
> show_architecture (NULL, from_tty);
> }
>
> - /* Called if the user enters ``info architecture'' without an argument. */
> -
> - static void
> - info_architecture (char *args, int from_tty)
> - {
> - printf_filtered ("Available architectures are:\n");
> - if (GDB_MULTI_ARCH)
> - {
> - const char **arches = gdbarch_printable_names ();
> - const char **arch;
> - for (arch = arches; *arch != NULL; arch++)
> - {
> - printf_filtered (" %s", *arch);
> - }
> - xfree (arches);
> - }
> - else
> - {
> - enum bfd_architecture a;
> - for (a = bfd_arch_obscure + 1; a < bfd_arch_last; a++)
> - {
> - const struct bfd_arch_info *ap;
> - for (ap = bfd_lookup_arch (a, 0);
> - ap != NULL;
> - ap = ap->next)
> - {
> - printf_filtered (" %s", ap->printable_name);
> - ap = ap->next;
> - }
> - }
> - }
> - printf_filtered ("\n");
> - }
> -
> /* Set the dynamic target-system-dependent parameters (architecture,
> byte-order) using information found in the BFD */
>
> --- 586,591 ----
> ***************
> *** 759,767 ****
> current setting. */
> add_cmd ("architecture", class_support, show_architecture,
> "Show the current target architecture", &showlist);
> - c = add_cmd ("architecture", class_support, info_architecture,
> - "List supported target architectures", &infolist);
> - deprecate_cmd (c, "set architecture");
> }
> }
>
> --- 725,730 ----
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH} Minor bug fix in arch-utils.c
2001-05-10 9:26 ` Fernando Nasser
@ 2001-05-10 10:27 ` Andrew Cagney
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2001-05-10 10:27 UTC (permalink / raw)
To: Fernando Nasser; +Cc: John S Kallal, Adam Mirowski, gdb-patches
> Yes, I've seen this patch twice now. While an obvious fix, I'm going to
>> check in the attached. The ``info architecture'' command can simply be
>> deleted.
>>
>> Andrew
>
>
> Ouch! Isn't it any useful? At least as a "maintenance" command?
A while back I fixed set/show architecture vis:
(gdb) show arch
archdebug architecture
(gdb) show architecture
The target architecture is set automatically (currently rs6000:6000)
(gdb) set architecture
Requires an argument. Valid arguments are rs6000:6000, rs6000:rs1, rs6000:rsc, rs6000:rs2, powerpc:common, powerpc:603, powerpc:EC603e, powerpc:604, powerpc:403, powerpc:601, powerpc:620, powerpc:630, powerpc:a35, powerpc:rs64ii, powerpc:rs64iii, powerpc:7400, powerpc:MPC8XX, auto.
(gdb) set architecture<TAB>
auto powerpc:620 powerpc:a35 rs6000:rs1
powerpc:403 powerpc:630 powerpc:common rs6000:rs2
powerpc:601 powerpc:7400 powerpc:rs64ii rs6000:rsc
powerpc:603 powerpc:EC603e powerpc:rs64iii
powerpc:604 powerpc:MPC8XX rs6000:6000
compare this to info architecture:
(gdb) info architecture
Warning: command 'info architecture' is deprecated.
Use 'set architecture'
Available architectures are:
rs6000:6000 rs6000:rs1 rs6000:rsc rs6000:rs2 powerpc:common powerpc:603 powerpc:EC603e powerpc:604 powerpc:403 powerpc:601 powerpc:620 powerpc:630 powerpc:a35 powerpc:rs64ii powerpc:rs64iii powerpc:7400 powerpc:MPC8XX
so it is redundant.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-05-10 10:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <000701c0cea9$7b18ed80$6401a8c0@cn986452a>
2001-05-10 8:33 ` [PATCH} Minor bug fix in arch-utils.c Andrew Cagney
2001-05-10 9:26 ` Fernando Nasser
2001-05-10 10:27 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox