This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Show some tips when file cmd get bfd_error_file_ambiguously_recognized
About this patch. There are a lot of function call "bfd_check_format".
What about add a wrapper of "bfd_check_format_matches" to gdb. This
wrapper call "bfd_check_format_matches" and if it get
bfd_error_file_ambiguously_recognized, output the format and other
help message before it return.
Change the "bfd_check_format" to the wrapper.
Then when gdb get bfd_error_file_ambiguously_recognized, putput the
help message directly.
What do you think about it?
Thanks,
Hui
On Tue, Jan 19, 2010 at 16:08, Hui Zhu <teawater@gmail.com> wrote:
>>
>>> + ? ? ? ? ? fprintf_filtered (gdb_stderr, _("It matchs formats:"));
>>
>> "matches"
>>
>
> Fixed.
>
> Thanks,
> Hui
>
> 2010-01-19 ?Hui Zhu ?<teawater@gmail.com>
>
> ? ? ? ?* exec.c (exec_file_attach): Output some tips when
> ? ? ? ?bfd_get_error is bfd_error_file_ambiguously_recognized.
>