This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RE: [RFA/PATCH]: H8/300 - Update the generated debug information
- From: "Shrinivas Atre" <ShrinivasA at kpit dot com>
- To: "Andrew Cagney" <ac131313 at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>,<gdb-patches at sources dot redhat dot com>
- Date: Wed, 26 Feb 2003 11:24:04 +0530
- Subject: 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