public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [commit] dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
@ 2012-01-05 21:54 Doug Evans
  0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2012-01-05 21:54 UTC (permalink / raw)
  To: gdb-patches

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-05 21:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-05 21:54 [commit] dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).