1 Aug 2011 03:27
Re: [PATCH v2 4/8] makedumpfile: Introduce routines to get type name from debuginfo.
Hi Mahesh,
A pointer size can been gotton by sizeof(void *), and pointer (virtual
address) can been defined as "unsigned long".
I think we can make this patch simple. How about the attached patch ?
Thanks
Ken'ichi Ohmichi
diff --git a/makedumpfile.c b/makedumpfile.c
index 3ad2bd5..6955f64 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
<at> <at> -34,7 +34,6 <at> <at> struct erase_info *erase_info = NULL;
unsigned long num_erase_info = 1; /* Node 0 is unused. */
char filename_stdout[] = FILENAME_STDOUT;
-long pointer_size;
char config_buf[BUFSIZE_FGETS];
/*
<at> <at> -2058,10 +2057,6 <at> <at> get_debug_info(void)
*/
while (dwarf_nextcu(dwarfd, off, &next_off, &header_size,
&abbrev_offset, &address_size, &offset_size) == 0) {
- if (dwarf_info.cmd == DWARF_INFO_GET_PTR_SIZE) {
- dwarf_info.struct_size = address_size;
- break;
- }
(Continue reading)
RSS Feed