This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/344: AIX4.3.2.0 build problem c_impl



>Number:         344
>Category:       gdb
>Synopsis:       AIX4.3.2.0 build problem c_impl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 07 06:58:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     phil@mesmeric.demon.co.uk
>Release:        5.1
>Organization:
>Environment:
AIX 4.3.2.0 & gcc 2.95
>Description:
In file rs6000-core.c line 441

      switch (CNEW_IMPL (core.new))

new is (struct core_dumpx) 

On AIX 4.3.2 core_dumpx does not define c_impl
but on AIX5 it does. I don't know about 4.3.3

I don't know of a way to find the architecture
from the core on AIX 4.3.2 so I have set 

      arch = bfd_arch_powerpc;
      mach = bfd_mach_ppc;

diff
*** rs6000-core.c-orig  Thu Feb  7 11:16:05 2002
--- rs6000-core.c       Thu Feb  7 11:17:27 2002
***************
*** 437,443 ****
      {
        enum bfd_architecture arch;
        unsigned long mach;
! 
        switch (CNEW_IMPL (core.new))
        {
        case POWER_RS1:
--- 437,443 ----
      {
        enum bfd_architecture arch;
        unsigned long mach;
!       /* Problem on AIX4.3 core_dumpx does not define c_impl
        switch (CNEW_IMPL (core.new))
        {
        case POWER_RS1:
***************
*** 451,456 ****
--- 451,459 ----
          mach = bfd_mach_ppc;
          break;
        }
+       */
+       arch = bfd_arch_powerpc;
+       mach = bfd_mach_ppc;
        bfd_default_set_arch_mach (abfd, arch, mach);
      }

This got it working but could do with some test hear
for the 2 formats of struct core_dumpx










>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]