Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Moving to GDB_MULTI_ARCH_PARTIAL
@ 2002-02-06  9:21 Richard Earnshaw
  2002-02-07 19:45 ` Andrew Cagney
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Earnshaw @ 2002-02-06  9:21 UTC (permalink / raw)
  To: gdb; +Cc: Richard.Earnshaw

I'm trying to get the ARM target building now at multi-arch partial.  It 
seems that the auto-generated definitions at this level are to an extent 
inconsistent.

For example, gdbarch_validate() requires that PUSH_ARGUMENTS is fully 
implemented as a multi-arch call, but the code in gdbarch.h does not fault 
a partial definition of this.

That is, in gdbarch.h we have 

#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (PUSH_ARGUMENTS)
#error "Non multi-arch definition of PUSH_ARGUMENTS"
#endif
#if GDB_MULTI_ARCH
#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (PUSH_ARGUMENTS)
#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) 
(gdbarch_pus
h_arguments (current_gdbarch, nargs, args, sp, struct_return, struct_addr))
#endif
#endif

but then in gdbarch_validate,

  if ((GDB_MULTI_ARCH >= 1)
      && (gdbarch->push_arguments == 0))
    fprintf_unfiltered (log, "\n\tpush_arguments");


Surely these two should be brought into line (one tests with ">" and the 
other with ">=").

R.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-02-08 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-06  9:21 Moving to GDB_MULTI_ARCH_PARTIAL Richard Earnshaw
2002-02-07 19:45 ` Andrew Cagney
2002-02-07 23:08   ` Andrew Cagney
2002-02-08  1:38     ` Richard Earnshaw
2002-02-08  7:19       ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox