This is the mail archive of the gdb-patches@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: SPARC GDB Failure


> Long-term-wise, maybe the thing to do is have all allocs of
> gdbarch_tdep go through a function (gdbarch_tdep_alloc or some such).
> That would make it clear how one *should* alloc them.

Not sure if it is possible or not without having to pass the size
explicitly. This structure is opaque to most of the code in GDB,
and the size is usually only known inside the specific -tdep.c file.
We might be able to work around that by defining a macro instead of
having a function, but it's not clear whether it'd be a real
improvement or not over a call to XZALLOC...

-- 
Joel


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