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: [10/19] record_line


> Date: Fri, 5 Jun 2009 23:18:16 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
> 
> the record_line routine calls gdbarch_addr_bits_remove on the PC it is
> passed.  As there is no appropriate objfile at hand in this routine,
> the following patch moves this operation up into the callers of record_line,
> which will use the objfile architecture of the file they are processing.

Maybe I'm missing something, but isn't this rather inelegant?  We are
moving some detail that is private to record_line into its callers,
just because record_line doesn't know the architecture nor the objfile
to get the architecture from?  Why not simply pass the architecture or
the objfile to record_line instead?


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