This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug cli/15104] New: deprecated_cmd_warning does not work forprefixed commands


http://sourceware.org/bugzilla/show_bug.cgi?id=15104

             Bug #: 15104
           Summary: deprecated_cmd_warning does not work for prefixed
                    commands
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: cli
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
    Classification: Unclassified


When one calls deprecate_cmd for a command with prefix (=which was added to a
different list than &cmdlist) it never triggers.

deprecated_cmd_warning gets called only with the last part of the command, such
as for deprecated "target record" *text is just " record".

Moreover cmd_list_element->prefix is never set as GDB currently calls
add_prefix_cmd before adding its children but it was meant to be called
afterwards - only add_prefix_cmd sets the PREFIX field of children.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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