From: "Bhushan Attarde" <Bhushan.Attarde@kpitcummins.com>
To: <gdb@sourceware.org>
Subject: error message : I'm sorry, Dave, I can't do that. Symbol format 'elf32-xc16x' unknown.
Date: Wed, 19 Sep 2007 14:23:00 -0000 [thread overview]
Message-ID: <7B5265FF85A78C4BB9DAD0EE699C476002A12897@sohm.kpit.com> (raw)
Hi,
I am facing problem while using gdb-6.7.50_20070918.
When I used command like:
$xc16x-elf-gdb app1.out
I get the following error message:
GNU gdb 6.7.50_20070918
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin --target=xc16x-elf"...
I'm sorry, Dave, I can't do that. Symbol format 'elf32-xc16x' unknown.
I traced and modified find_sym_fns()in symfile.c just for testing purpose as follows:
static struct sym_fns *
find_sym_fns (bfd *abfd)
{
struct sym_fns *sf;
enum bfd_flavour our_flavour = bfd_get_flavour (abfd);
enum bfd_flavour test_flavour; /* create one bfd_flavour instance for test purpose */
if (our_flavour == bfd_target_srec_flavour
|| our_flavour == bfd_target_ihex_flavour
|| our_flavour == bfd_target_tekhex_flavour)
return NULL; /* No symbols. */
for (sf = symtab_fns; sf != NULL; sf = sf->next)
{
test_flavour = sf->sym_flavour;
printf_unfiltered (_("test_flavour %d.. our flavour %d...\n"), test_flavour,our_flavour); /* print tested values */
//if (our_flavour == sf->sym_flavour)
//return sf;
}
error (_("I'm sorry, Dave, I can't do that. Symbol format `%s' unknown."),
bfd_get_target (abfd));
}
And got the following output :
test_flavour 3.. our flavour 5...
test_flavour 2.. our flavour 5...
test_flavour 1.. our flavour 5...
I'm sorry, Dave, I can't do that. Symbol format 'elf32-xc16x' unknown.
Here the loop is iterated only for 3 times. however in gdb-6.4 (after making the same changes in find_sym_fns()function in symfile.c I got different output as :
test_flavour 5.. our flavour 5...
test_flavour 4.. our flavour 5...
test_flavour 3.. our flavour 5...
test_flavour 2.. our flavour 5...
test_flavour 1.. our flavour 5...
in this case the loop iterated 5 times giving correct expected output.
I am not getting the reason why this is happening in case of
gdb 6.7.50_20070918.
What are the possible reasons to this problems?
And what changes or additions I need to do?
Any help appreciated.
Thanking you in advance.
Best Regards,
Bhushan Attarde
next reply other threads:[~2007-09-19 14:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-19 14:23 Bhushan Attarde [this message]
2007-09-19 14:28 ` Daniel Jacobowitz
2007-09-24 11:07 ` error message : I'm sorry, Dave, I can't do that. Symbolformat " Bhushan Attarde
2007-09-24 16:43 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7B5265FF85A78C4BB9DAD0EE699C476002A12897@sohm.kpit.com \
--to=bhushan.attarde@kpitcummins.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox