gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error installing gdb 7.1 on AIX 6.1


From: pcazallas
Subject: Re: Error installing gdb 7.1 on AIX 6.1
Date: Thu, 28 Oct 2010 00:24:52 -0700 (PDT)

These are the steps I had to do get GDB 7.1 running on IBM AIX 6.1:
-------------------------------------------------------------------

I could do it, but I made some changes around the standard installation
process... 
So, if it's possible, I'd like you, if possible, to tell me if I made it in
the correct way or will encounter much 
more problems in the future because of these changes.


Step 1:
------------------------------------------------------------------------------------------------------
sh /[DIR_PACKAGE]/configure --prefix=[DIR_INSTALL] --disable-option-checking
--disable-libada --disable-libssp --disable-build-with-cxx
--disable-ppl-version-check  --disable-cloog-version-check --disable-objc-gc
--enable-serial-configure --disable-maintainer-mode
--disable-stage1-checking --disable-werror --disable-sim

Step 2:
------------------------------------------------------------------------------------------------------
- Edit Makefile:
        - Modifying 'CC' environment variable:
        before: CC = cc -qlanglvl=extc89
        after:          CC = cc
        - Modifying 'CFLAGS' environment variable:
        before: CFLAGS = -g
        after:          CFLAGS = -g -qlanglvl=extc89
                
Step 3:
------------------------------------------------------------------------------------------------------
- Patch 'aix-thread.c' file (under /gdb dir)
        ** line 352: 
        ==========> Cast unsigned int* gprs32 variable to (int *) gprs32
        before:   if (!ptrace32 (PTT_READ_GPRS, tid, gprs32, 0, NULL))
        after:       if (!ptrace32 (PTT_READ_GPRS, tid, (int *) gprs32, 0, 
NULL))
                
        ** line 651: 
        ==========> Comment out 'getthrds' function declaration
        before:         extern int getthrds (pid_t, struct thrdsinfo64 *, int, 
pthdb_tid_t
*, int);        
        after:  /* extern int getthrds (pid_t, struct thrdsinfo64 *, int,
pthdb_tid_t *, int); */

Step 4:
------------------------------------------------------------------------------------------------------
                  
- Patch 'symtab.c' file (under /gdb dir)
        ** line 2155: 
        This is to avoid high flood in the debugger due to warnings (I don't 
know
if I did well with this.. O_o)
        ==========> Comment out 'warning' call
        before:     warning (_("(Internal error: pc %s in read in psymtab, but 
not
in symtab.)\n"), paddress (get_objfile_arch (ps->objfile), pc));
        after:       /* warning (_("(Internal error: pc %s in read in psymtab, 
but
not in symtab.)\n"), paddress (get_objfile_arch (ps->objfile), pc)); */
                        
Step 5: (^_^)
------------------------------------------------------------------------------------------------------
- make && make install


Thanks and regards,
Pablo Cazallas.

-- 
View this message in context: 
http://old.nabble.com/Error-installing-gdb-7.1-on-AIX-6.1-tp30065956p30074050.html
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]