OLD | NEW |
1 /* DWARF 1 find nearest line (_bfd_dwarf1_find_nearest_line). | 1 /* DWARF 1 find nearest line (_bfd_dwarf1_find_nearest_line). |
2 Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008 | 2 Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008, 2009, 2010 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 Written by Gavin Romig-Koch of Cygnus Solutions (gavin@cygnus.com). | 5 Written by Gavin Romig-Koch of Cygnus Solutions (gavin@cygnus.com). |
6 | 6 |
7 This file is part of BFD. | 7 This file is part of BFD. |
8 | 8 |
9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
11 the Free Software Foundation; either version 3 of the License, or (at | 11 the Free Software Foundation; either version 3 of the License, or (at |
12 your option) any later version. | 12 your option) any later version. |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 xptr += 4; | 244 xptr += 4; |
245 break; | 245 break; |
246 case FORM_BLOCK2: | 246 case FORM_BLOCK2: |
247 xptr += 2 + bfd_get_16 (abfd, (bfd_byte *) xptr); | 247 xptr += 2 + bfd_get_16 (abfd, (bfd_byte *) xptr); |
248 break; | 248 break; |
249 case FORM_BLOCK4: | 249 case FORM_BLOCK4: |
250 xptr += 4 + bfd_get_32 (abfd, (bfd_byte *) xptr); | 250 xptr += 4 + bfd_get_32 (abfd, (bfd_byte *) xptr); |
251 break; | 251 break; |
252 case FORM_STRING: | 252 case FORM_STRING: |
253 if (attr == AT_name) | 253 if (attr == AT_name) |
254 » aDieInfo->name = (char *)xptr; | 254 » aDieInfo->name = (char *) xptr; |
255 » xptr += strlen (aDieInfo->name) + 1; | 255 » xptr += strlen ((char *) xptr) + 1; |
256 break; | 256 break; |
257 } | 257 } |
258 } | 258 } |
259 | 259 |
260 return TRUE; | 260 return TRUE; |
261 } | 261 } |
262 | 262 |
263 /* Parse a dwarf1 line number table for 'aUnit->stmt_list_offset' | 263 /* Parse a dwarf1 line number table for 'aUnit->stmt_list_offset' |
264 into 'aUnit->linenumber_table'. Return FALSE if an error | 264 into 'aUnit->linenumber_table'. Return FALSE if an error |
265 occurs; TRUE otherwise. */ | 265 occurs; TRUE otherwise. */ |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 } | 555 } |
556 | 556 |
557 if (aDieInfo.sibling != 0) | 557 if (aDieInfo.sibling != 0) |
558 stash->currentDie = stash->debug_section + aDieInfo.sibling; | 558 stash->currentDie = stash->debug_section + aDieInfo.sibling; |
559 else | 559 else |
560 stash->currentDie += aDieInfo.length; | 560 stash->currentDie += aDieInfo.length; |
561 } | 561 } |
562 | 562 |
563 return FALSE; | 563 return FALSE; |
564 } | 564 } |
OLD | NEW |