This is the mail archive of the gdb@sources.redhat.com 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: New binutils directory src/include/cpu/ for .cpu and .opc files?


DJ Delorie writes:
 > > I'd like to propose a new directory:
 > > 
 > > 	src/include/cpu/
 > > 
 > > The directory would contain the CGEN .cpu and .opc input files used to 
 > > generate CGEN based binutils disassemblers, assemblers and (?) 
 > > relocations.  GDB could also use these files when generating CGEN based 
 > > simulators.
 > 
 > They aren't really include files, they're *source* files.  Shouldn't
 > they go in one of the source directories?
 > 
 > I really don't think we want to go down the slippery slope of using
 > include as a catch-all.  Perhaps the opcodes directory would be a
 > better choice?

I've always thought the .opc files should go in src/opcodes.

Similarily, I kinda think the opcodes file generators should
go in opcodes.  After all, they're rather closely tied with
the rest of opcodes.  They're also closely tied with cgen of course.
But application file generators should be able to go with the
application and not cgen.  Otherwise writing new generators for
new applications becomes problematic ....

And, fwiw, I don't like putting the .cpu files in src/include either.


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