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]

[commit] dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.


Hi.
Having the result type here be a CORE_ADDR is odd.

Committed.

2012-01-05  Doug Evans  <dje@google.com>

	* dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
	* dwarf2loc.h (dwarf2_per_cu_addr_size): Update.

Index: dwarf2loc.h
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2loc.h,v
retrieving revision 1.27
diff -u -p -r1.27 dwarf2loc.h
--- dwarf2loc.h	12 Oct 2011 22:04:11 -0000	1.27
+++ dwarf2loc.h	5 Jan 2012 21:49:47 -0000
@@ -40,7 +40,7 @@ extern int entry_values_debug;
 struct objfile *dwarf2_per_cu_objfile (struct dwarf2_per_cu_data *cu);
 
 /* Return the address size given in the compilation unit header for CU.  */
-CORE_ADDR dwarf2_per_cu_addr_size (struct dwarf2_per_cu_data *cu);
+int dwarf2_per_cu_addr_size (struct dwarf2_per_cu_data *cu);
 
 /* Return the DW_FORM_ref_addr size given in the compilation unit header for
    CU.  */
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.599
diff -u -p -r1.599 dwarf2read.c
--- dwarf2read.c	5 Jan 2012 20:17:50 -0000	1.599
+++ dwarf2read.c	5 Jan 2012 21:49:47 -0000
@@ -15720,7 +15720,7 @@ per_cu_header_read_in (struct comp_unit_
 
 /* Return the address size given in the compilation unit header for CU.  */
 
-CORE_ADDR
+int
 dwarf2_per_cu_addr_size (struct dwarf2_per_cu_data *per_cu)
 {
   struct comp_unit_head cu_header_local;


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