aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-01-05 21:53:14 +0000
committerDoug Evans <dje@google.com>2012-01-05 21:53:14 +0000
commit98714339e5761864a7c715583543a578c3f49dab (patch)
treef9042f7b3adef44b838e7bce54ad2d3711eb1251 /gdb
parent6b07635ff9401b259aa74a888d3d480acc9ace1f (diff)
downloadgdb-98714339e5761864a7c715583543a578c3f49dab.zip
gdb-98714339e5761864a7c715583543a578c3f49dab.tar.gz
gdb-98714339e5761864a7c715583543a578c3f49dab.tar.bz2
* dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
* dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/dwarf2loc.h2
-rw-r--r--gdb/dwarf2read.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d1d3f0f..7d49788 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
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.
+
* dwarf2read.c (comp_unit_header): Delete, unused.
2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h
index da05c98..a7f835f 100644
--- a/gdb/dwarf2loc.h
+++ b/gdb/dwarf2loc.h
@@ -39,7 +39,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. */
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index c5c3991..6f72bb9 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -15720,7 +15720,7 @@ per_cu_header_read_in (struct comp_unit_head *cu_headerp,
/* 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;