This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multi-arch and user-control of architecture flags



ac131313@cygnus.com said:
> Have a look at the ``(gdb) set mips'' command ;-)  Another group with
> the same problem are the ``info'' commands. 

Hmm, yep, that looks like what I want.

Note, however, there's something odd here...

  /* Add root prefix command for all "set mips"/"show mips" commands */
  add_prefix_cmd ("mips", no_class, set_mips_command,
                  "Various MIPS specific commands.",
                  &setmipscmdlist, "set mips ", 0, &setlist);

  add_prefix_cmd ("mips", no_class, show_mips_command,
                  "Various MIPS specific commands.",
                  &showmipscmdlist, "show mips ", 0, &showlist);

Then at the end of the file:

  /* Debug this files internals. */
  add_show_from_set (add_set_cmd ("mips", class_maintenance, var_zinteger,
                                  &mips_debug, "Set mips debugging.\n\
When non-zero, mips specific debugging is enabled.", &setdebuglist),
                     &showdebuglist);

One of these must shadow the other....

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]