This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
MI "error" function not working ?
- From: Bob Rossi <bob at brasko dot net>
- To: GDB <gdb at sources dot redhat dot com>
- Date: Mon, 28 Feb 2005 11:03:46 -0500
- Subject: 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