summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
authorroland <roland>2005-10-26 20:18:13 +0000
committerroland <roland>2005-10-26 20:18:13 +0000
commit6e74fbb93ded44150098b70ff129aee1f3c4c259 (patch)
treeb0aac8460d1dde771ede05f659585f985043ec43 /loc2c.c
parent52c8dd37544c24ab5fa7ec79040595d3f5f41454 (diff)
downloadsystemtap-steved-6e74fbb93ded44150098b70ff129aee1f3c4c259.tar.gz
systemtap-steved-6e74fbb93ded44150098b70ff129aee1f3c4c259.tar.xz
systemtap-steved-6e74fbb93ded44150098b70ff129aee1f3c4c259.zip
2005-10-26 Roland McGrath <roland@redhat.com>
* loc2c.c (max_fetch_size): Default to host pointer size, while still waiting for new libdw entrypoint.
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loc2c.c b/loc2c.c
index 10063eb2..64c572ff 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -1312,7 +1312,7 @@ max_fetch_size (struct location *loc, Dwarf_Die *die)
{
Dwarf_Die cu_mem;
uint8_t address_size;
-#define dwarf_diecu(d,m,a,n) (*m = *d, *a = 4, m) /* XXX */
+#define dwarf_diecu(d,m,a,n) (*m = *d, *a = sizeof (void *), m) /* XXX */
Dwarf_Die *cu = dwarf_diecu (die, &cu_mem, &address_size, NULL);
if (cu == NULL)
FAIL (loc, N_("cannot determine CU address size from %s: %s"),