dwarf_loc.c (195747) | dwarf_loc.c (252430) |
---|---|
1/*- 2 * Copyright (c) 2007 John Birrell (jb@freebsd.org) 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2007 John Birrell (jb@freebsd.org) 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libdwarf/dwarf_loc.c 195747 2009-07-17 21:15:09Z np $ | 26 * $FreeBSD: head/lib/libdwarf/dwarf_loc.c 252430 2013-06-30 21:06:47Z kaiw $ |
27 */ 28 29#include <stdlib.h> 30#include "_libdwarf.h" 31 32static int64_t 33dwarf_decode_sleb128(uint8_t **dp) 34{ --- 6 unchanged lines hidden (view full) --- 41 do { 42 b = *src++; 43 44 ret |= ((b & 0x7f) << shift); 45 46 shift += 7; 47 } while ((b & 0x80) != 0); 48 | 27 */ 28 29#include <stdlib.h> 30#include "_libdwarf.h" 31 32static int64_t 33dwarf_decode_sleb128(uint8_t **dp) 34{ --- 6 unchanged lines hidden (view full) --- 41 do { 42 b = *src++; 43 44 ret |= ((b & 0x7f) << shift); 45 46 shift += 7; 47 } while ((b & 0x80) != 0); 48 |
49 if (shift < 32 && (b & 0x40) != 0) | 49 if (shift < 64 && (b & 0x40) != 0) |
50 ret |= (-1 << shift); 51 52 *dp = src; 53 54 return ret; 55} 56 57static uint64_t --- 556 unchanged lines hidden --- | 50 ret |= (-1 << shift); 51 52 *dp = src; 53 54 return ret; 55} 56 57static uint64_t --- 556 unchanged lines hidden --- |