[Dwarf-Discuss] Read an .axf file on windows with LibDwarf

2016-05-16 Thread Ane
Hello,

I've seen a lot of webpages to have an idea of what the libdwarf library 
can do, but I can't find the way to compile it in windows. The reason to 
do this, is that I want to read and understand an .axf file in my C# 
program that I'm developing in Visual Studio 10 in Windows (I can use VS15 
too). I don't need to debug anything, I only want read an .axf file, so if 
there is a way to do this, please I want to know it, and how to do it.

Thank you,
Ane.

___
Dwarf-Discuss mailing list
Dwarf-Discuss@lists.dwarfstd.org
http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org


Re: [Dwarf-Discuss] Read an .axf file on windows with LibDwarf

2016-05-16 Thread Ane
DavidA  writes:

> 
> On 05/16/2016 12:43 AM, Ane wrote:
> > 've seen a lot of webpages to have an idea of what the libdwarf 
library 
> > can do, but I can't find the way to compile it in windows. The 
reason to 
> > do this, is that I want to read and understand an .axf file in my C# 
> > program that I'm developing in Visual Studio 10 in Windows (I can 
use VS15 
> > too). I don't need to debug anything, I only want read an .axf file, 
so if 
> > there is a way to do this, please I want to know it, and how to do 
it.
> 
> There is no simple way.  At least one organization has done so, but
> their code is not part of the distribution.
> 
> I do not know the details of what that organization did.
> I have no idea what a .axf file is.
> 
> struct Dwarf_Obj_Access_Methods_s (libdwarf.h)
> is probably involved.
> 
> Sorry, I have no further information.
> David Anderson
> 
> --
> From the attic came an unearthly howl. The whole scene had an eerie,
> surreal quality, like when you're on vacation in another city and
> "Jeopardy" comes on at 7:00 p.m. instead of 7:30. -- Roy Ashley
> 

An .AXF file is an ARM eXecutable File which has an ELF/DWARF structure. 
I've tried a few libraries (libdwarf, libelf, examples in VC for both of 
them, libelfin in c++) and none of them can I compile correctly in 
windows (it doesn't matter if there was in VS15 / VS10 / as a makefile 
project with MinGW or normal project / just MinGW in command window ... 
).

I've just finded another library in C# "ElfSharp" and it seems to be 
good for reading my .axf file, but I'm looking for decode the DWARF 
sections. If anyone could help me, I'm all ears.

Thanks for the info anyway.

Ane.

___
Dwarf-Discuss mailing list
Dwarf-Discuss@lists.dwarfstd.org
http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org


Re: [Dwarf-Discuss] Read an .axf file on windows with LibDwarf

2016-05-17 Thread Ane
Eric Christopher  writes:

> 
> 
> FWIW you can use cmake to compile LLVM for windows with a VS project 
output. It has a support library for reading dwarf sections, but you may 
need to do a little bit of work to make sure it can understand the 
object file reading it if it isn't just a plain ELF file.
> Feel free to follow up with me or the llvm-dev list if you have any 
problems.
> 
> Thanks!
> 
> -eric
> 
> 
> On Mon, May 16, 2016 at 11:47 PM Ane  wrote:
> 
> DavidA  ...> writes:
> >
> > On 05/16/2016 12:43 AM, Ane wrote:
> > > 've seen a lot of webpages to have an idea of what the libdwarf
> library
> > > can do, but I can't find the way to compile it in windows. The
> reason to
> > > do this, is that I want to read and understand an .axf file in my 
C#
> > > program that I'm developing in Visual Studio 10 in Windows (I can
> use VS15
> > > too). I don't need to debug anything, I only want read an .axf 
file,
> so if
> > > there is a way to do this, please I want to know it, and how to do
> it.
> >
> > There is no simple way.  At least one organization has done so, but
> > their code is not part of the distribution.
> >
> > I do not know the details of what that organization did.
> > I have no idea what a .axf file is.
> >
> > struct Dwarf_Obj_Access_Methods_s (libdwarf.h)
> > is probably involved.
> >
> > Sorry, I have no further information.
> > David Anderson
> >
> > --
> > From the attic came an unearthly howl. The whole scene had an eerie,
> > surreal quality, like when you're on vacation in another city and
> > "Jeopardy" comes on at 7:00 p.m. instead of 7:30. -- Roy Ashley
> >
> An .AXF file is an ARM eXecutable File which has an ELF/DWARF 
structure.
> I've tried a few libraries (libdwarf, libelf, examples in VC for both 
of
> them, libelfin in c++) and none of them can I compile correctly in
> windows (it doesn't matter if there was in VS15 / VS10 / as a makefile
> project with MinGW or normal project / just MinGW in command window 
...
> ).
> I've just finded another library in C# "ElfSharp" and it seems to be
> good for reading my .axf file, but I'm looking for decode the DWARF
> sections. If anyone could help me, I'm all ears.
> Thanks for the info anyway.
> Ane.
> ___
> Dwarf-Discuss mailing listDwarf-Discuss-
94Vl1yqA2cm9tDkVm8dgcB2eb7JE58TQ@public.gmane.orghttp://lists.dwarfstd.o
rg/listinfo.cgi/dwarf-discuss-dwarfstd.org
> 
> 
> 
> 
> ___
> Dwarf-Discuss mailing list
> Dwarf-Discuss@...
> http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org
> 

I think I haven't explained myself very well. I want to do everything in 
Windows 7, and as far as I understood about LLVM, is for Unix Systems. I 
don't need the compiler to go faster, I need just compiling the source 
code, or at least, find some code which has no dependency of Unix 
libraries. Maybe I didn't understand your idea of doing it, so if it is 
so, please could you explain it to me again? Did you mean this about 
LLVM http://llvm.org/docs/GettingStartedVS.html ?

Rigth now I'm looking for DWARF info in this library 
http://elfsharp.hellsgate.pl/examples.shtml , and I just read a section 
content but all of them are bytes and I need to read them as a dwarf 
info (and I'm thinking how to decode that part). If I haven't explained 
it better, please let me know.

Thanks for the help,
Ane.
___
Dwarf-Discuss mailing list
Dwarf-Discuss@lists.dwarfstd.org
http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org


Re: [Dwarf-Discuss] Read an .axf file on windows with LibDwarf

2016-05-18 Thread Ane
Tom Seddon  writes:

> 
> 
> You could try MSYS2 or cygwin for building autotools stuff on
> Windows. I don't know how easy it would be to interact with 
libdwarf
> from .NET directly - possibly not very. But at a pinch maybe you
> could use dwarfdump, capture its output using the Process class, 
and
> extract the data of interest from C#.
> I've previously had success doing this sort of thing using MSYS2's
> predecessor, MSYS. (I used it to build a set of GNU binutils that
> supported PowerPC as well as x86.) But I believe MSYS2 and cygwin
> work slightly differently from MSYS, and it's possible that could
> make a difference.
> Regards,--Tom Seddon
> On 16/05/2016 08:43, Ane wrote:
> 
> 
>   Hello,
> 
> I've seen a lot of webpages to have an idea of what the libdwarf 
library 
> can do, but I can't find the way to compile it in windows. The reason 
to 
> do this, is that I want to read and understand an .axf file in my C# 
> program that I'm developing in Visual Studio 10 in Windows (I can use 
VS15 
> too). I don't need to debug anything, I only want read an .axf file, 
so if 
> there is a way to do this, please I want to know it, and how to do it.
> 
> Thank you,
> Ane.
> 
> ___
> Dwarf-Discuss mailing list
> Dwarf-Discuss@lists.dwarfstd.org
> http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org


I've read on webpages that some people could compile libdwarf with 
visual studio, but I couldn't find how they do it. I've tried almost 
everything, also I tried to compile the library on visual studio with 
mingw's make but it doesn't compile correctly.
I think my last option is to read the .axf file through readelf 
(binutils) as an .exe and get the output to handle it on the C# program. 
I would like not to need more programs to do this, because the C# 
program can be developed on multiple computers. 

Otherwise, if someone knows how to get what in the following webpage is 
asked:

http://stackoverflow.com/questions/24143326/extract-detailed-symbol-
information-struct-members-from-elf-file-compiled-with

Thanks for the help,
Ane.

___
Dwarf-Discuss mailing list
Dwarf-Discuss@lists.dwarfstd.org
http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org