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] |
As mentioned previously, printing a host address using (long) does not work on x86_64-windows due to type size differences. This patch modifies gdbarch.sh to use host_address_to_string to convert the addresses into strings which can then be easily printed. 2009-01-07 Joel Brobecker <brobecker@adacore.com> * gdbarch.sh: Fix all the compilation errors on amd64-windows due to casting a pointer to a long when printing a function address. Instead, use host_address_to_string to convert our address to a string. * gdbarch.c: Regenerate. Tested on x86-linux and x86-windows. I included the gdbarch.c diff as well, to show the actual changes in that file. Any objections? I'd like to commit this files sometime in the next few days. Thanks, -- Joel
Attachment:
gdbarch.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |