| OLD | NEW |
| 1 /* Find a variable's value in memory, for GDB, the GNU debugger. | 1 /* Find a variable's value in memory, for GDB, the GNU debugger. |
| 2 | 2 |
| 3 Copyright (C) 1986-2001, 2003-2005, 2007-2012 Free Software | 3 Copyright (C) 1986-2001, 2003-2005, 2007-2012 Free Software |
| 4 Foundation, Inc. | 4 Foundation, Inc. |
| 5 | 5 |
| 6 This file is part of GDB. | 6 This file is part of GDB. |
| 7 | 7 |
| 8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
| 9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
| 10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "inferior.h" | 27 #include "inferior.h" |
| 28 #include "target.h" | 28 #include "target.h" |
| 29 #include "gdb_string.h" | 29 #include "gdb_string.h" |
| 30 #include "gdb_assert.h" | 30 #include "gdb_assert.h" |
| 31 #include "floatformat.h" | 31 #include "floatformat.h" |
| 32 #include "symfile.h" /* for overlay functions */ | 32 #include "symfile.h" /* for overlay functions */ |
| 33 #include "regcache.h" | 33 #include "regcache.h" |
| 34 #include "user-regs.h" | 34 #include "user-regs.h" |
| 35 #include "block.h" | 35 #include "block.h" |
| 36 #include "objfiles.h" | 36 #include "objfiles.h" |
| 37 #include "language.h" |
| 37 | 38 |
| 38 /* Basic byte-swapping routines. All 'extract' functions return a | 39 /* Basic byte-swapping routines. All 'extract' functions return a |
| 39 host-format integer from a target-format integer at ADDR which is | 40 host-format integer from a target-format integer at ADDR which is |
| 40 LEN bytes long. */ | 41 LEN bytes long. */ |
| 41 | 42 |
| 42 #if TARGET_CHAR_BIT != 8 || HOST_CHAR_BIT != 8 | 43 #if TARGET_CHAR_BIT != 8 || HOST_CHAR_BIT != 8 |
| 43 /* 8 bit characters are a pretty safe assumption these days, so we | 44 /* 8 bit characters are a pretty safe assumption these days, so we |
| 44 assume it throughout all these swapping routines. If we had to deal with | 45 assume it throughout all these swapping routines. If we had to deal with |
| 45 9 bit characters, we would need to make len be in bits and would have | 46 9 bit characters, we would need to make len be in bits and would have |
| 46 to re-write these routines... */ | 47 to re-write these routines... */ |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 case LOC_LABEL: | 396 case LOC_LABEL: |
| 396 /* Getting the address of a label can be done independently of the block, | 397 /* Getting the address of a label can be done independently of the block, |
| 397 even if some *uses* of that address wouldn't work so well without | 398 even if some *uses* of that address wouldn't work so well without |
| 398 the right frame. */ | 399 the right frame. */ |
| 399 | 400 |
| 400 case LOC_BLOCK: | 401 case LOC_BLOCK: |
| 401 case LOC_CONST_BYTES: | 402 case LOC_CONST_BYTES: |
| 402 case LOC_UNRESOLVED: | 403 case LOC_UNRESOLVED: |
| 403 case LOC_OPTIMIZED_OUT: | 404 case LOC_OPTIMIZED_OUT: |
| 404 return 0; | 405 return 0; |
error: old chunk mismatch |
None
| OLD | NEW |