This is the mail archive of the gdb@sourceware.org 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]

Re: Does m68klinux-tdep.c handle uclinux too


On Thu, Dec 10, 2009 at 02:13:13PM +0300, Vladimir Prus wrote:
> > 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);
> >     }

I think I or someone else at CodeSourcery wrote that.  So it was
probably submitted from our internal tree.

> FWIW, below is a local patch that we have. Does it seem reasonable?

IMO this is OK.

It would also be OK to have just m68k-tdep.o and m68klinux-tdep.o.
GDB doesn't support m68k uclinux shared libraries.

-- 
Daniel Jacobowitz
CodeSourcery


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