This is the mail archive of the gdb-patches@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: [RFA/PATCH]: H8/300 - Update the generated debug information


Hi Andrew,

Thank you for quick review and response.

>  
> > -  set_gdbarch_int_bit (gdbarch, 2 * TARGET_CHAR_BIT);
> > +  set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
> >    set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
> 
> Just FYI, while the above is apparently trivial, the required 
> change isn't.
> 
> GCC should be providing information (either via special 
> headers or via 
> other debug info or magic sections) that informs GDB of the selected 
> size of an int.  GDB can then adjust its configuration 
> accordingly.  See 
> other GDB architectures (MIPS, PPC, SH, ...) that do this.
> 

I will look into this and try to use mechanism used by other architectures.

Regards,
Shrinivas


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