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]

MI "error" function not working ?


Hi,

I noticed when writing '-inferior-tty-show' command that the check,
  if ( !mi_valid_noargs("mi_cmd_inferior_tty_show", argc, argv) )
    error (_("mi_cmd_inferior_tty_show: Usage: No args"));
was not working. The function "error" was being hit, but no error
message was being reported.

Is this a bug?  Can anyone else reproduce this?

You can use the existing -file-list-exec-source-file MI command to check to 
see if the "error" function is reporting the error. I debugged the problem 
and found that the line was being covered, but no output was being
displayed. Any ideas?

Thanks,
Bob Rossi


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