Does m68klinux-tdep.c handle uclinux too

Vladimir Prus vladimir@codesourcery.com
Thu Dec 10 09:52:00 GMT 2009


Hi,

looking at m68klinux-tdep.c, I see this:

  if (target_is_uclinux == -1)
    {
      /* Determine whether we are running on a uClinux or normal GNU/Linux
         target so we can use the correct sigcontext layouts.  */
      CORE_ADDR dummy;

      target_is_uclinux
        = (target_auxv_search (&current_target, AT_NULL, &dummy) > 0
	   && target_auxv_search (&current_target, AT_PAGESZ, &dummy) == 0);
    }

However, looking at configure.tgt, I see:

m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
fido-*-elf*)
	# Target: Motorola m68k embedded (e.g. bug monitors)
	gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
	;;


So, it seems that m68klinux-tdep.c is not even compiled for uclinux target.
Then, is something here that needs fixing?

- Volodya



More information about the Gdb mailing list