[commit] New function gdbarch_infi_fill

Andrew Cagney ac131313@redhat.com
Mon Nov 10 16:19:00 GMT 2003


> On Sun, Nov 09, 2003 at 06:50:54PM -0500, Andrew Cagney wrote:
> 
>> Hello,
>> 
>> The attached adds the new function gdbarch_info_fill.  This new function 
>> fills in un-initialized fields of the "info" structure using global 
>> "set" variables and the "gdbarch" parameter.
>> 
>> committed,
>> Andrew
> 
> 
> Yeah!  I've wanted this before.  Though now I can't remember why.

This all begs two questions.

Should gdbarch_info be filled in first?

Should the assertion:

	gdbarch_find_by_info (gdbarch_info (gdbarch)) == gdbarch

always hold?  At present architectures like the MIPS make this very hard 
  - keying off information found in the BFD and not the corresponding 
info struct.


> "Similar to".

Fixed.

Andrew

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20031110/2977a1b3/attachment.ksh>


More information about the Gdb-patches mailing list