Re: Something new for FUSE



Tu, Dave Yeo <dave.r.yeo@xxxxxxxxx> hai scritto questo in data Sun, 9
Nov 2008 02:17:43 UTC:

On 11/08/08 01:41 pm, Heiko Nitzsche wrote:
Now I'm stuck. I think I should try a disassembler, but what are the
options with gcc 4.3.2?

Try to compile and link with -Zomf, also enable debug info with -g.
Then you can start the program in IBM debugger (if you have it) and
step through the source code.

You only have to link with -Zomf, much simpler as compiling with -Zomf
will create the wrong static libs. Either run configure LDFLAGS=-Zomf or
make LDFLAGS=-Zomf. Also make sure that debugging is turned on in
configure or add -g to CFLAGS and LDFLAGS.
If you don't have an IBM debugger there is
http://hobbes.nmsu.edu/download/pub/os2/dev/util/sd386v50.zip
Note also that 4.3.2 might be missing some debug info, that's what all
those undefined stabs messages are about. You'd be better trying with
3.3.5, then when working try 4.3.2. 4.3.2 still has quite a few issues.

Didn't knew about these issues, I hope Paul will eventually fix them.
In the meantime I checked the Makefile: it didn't contain -g for
compiler/linker flags, but did correctly add -Zomf to LDFLAGS.

I'm about to try and make fuse with gcc 3.3.5 and see what happens
with sd386, because (for now) I have no time to install VisualAge,
correct the SOM DLLs with the correct ones (eCS) and install all VACPP
fixes.


An alternative would be using gdb. There was a PMGDB around somewhere
but I'm not sure if it still works. gdb is the GNU commandline debugger.
Can't remember if it comes with the GCC 3.3.5 package or if you need to
grab it from Hobbes (should be in the EMX packages).

gdb last worked correctly with gcc 2.8.1 so it is not an option. (unless
somebody wants to port a newer version)
Dave

I think this could be done once Paul gets rid of the problems in Gcc
4.3.2.

See ya,

--
Mentore Siesto
eComStation Developer Team
.



Relevant Pages

  • Re: How do I install this missing library?
    ... you really should be carefully following LSTC's installation ... libg2c is part of gcc. ... to tell a newcomer to compile. ... like the source code to GNU tar, and make sure you understand what's ...
    (comp.os.linux.misc)
  • Re: HPGCC Questions ladies and gentlemen!!!
    ... No matter how you slice it in order to compile a C program you need to know ... it took a few hours just to get gcc running in my computer ... of the students that used an ide in the c++ class I took a few years ago. ... so why not use a data inspector if it's available? ...
    (comp.sys.hp48)
  • Re: Aquarius prolog so fast?
    ... Mercury cannot do all this because Mercury cannot keep track of the fact ... you need this capability quite rarely, ... Why not the alternative GCC back-end, ... While Mercury can compile to the internal data structures of the gcc backend, ...
    (comp.lang.prolog)
  • Re: Just starting out in C
    ... was based on the ANSI standard as it was being developed. ... Some words about gcc: ... gcc provides some extensions to the language that aren't supported by ... For example, to compile the Hello, World program, use the command line ...
    (comp.lang.c)
  • Can you compile and run this benchmark on your 3.9 system?
    ... gcc 4.0 ?) ... So I'm asking readers if you would please try to compile and run this ... GNU gdb 6.3 ... Sun Enterprise 3500 Solaris 5.7 ...
    (comp.unix.bsd.openbsd.misc)