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: [PATCH 1/4] catch syscall -- try 4 -- Architecture-independent part


Hi Daniel,

I forgot to ask one more thing. Here it goes.

On Tue, 2009-03-31 at 11:44 -0400, Daniel Jacobowitz wrote:
> > With this you mean that I should remove the methods from gdbarch?
> 
> Yes, that's what I mean.
> 
> The way I think about this is that every gdbarch routine is a way for
> some architecture to handle things differently.  If we can make every
> architecture work the same way, we should do that instead.

Right, I'm already removing the code from gdbarch, but I'm facing a
problem that I'm unable to solve. Basically, I have a method in gdbarch
called gdbarch_xml_syscall_filename, which returns the name of the XML
that is going to be used. I need this because the XML file is different
for each supported arch.

The thing is that if I remove this, I can't think in a good way to
retrieve this filename. Is it ok to keep this single method inside
gdbarch?

Thanks,

-- 
Sérgio Durigan Júnior
Linux on Power Toolchain - Software Engineer
Linux Technology Center - LTC
IBM Brazil


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