| OLD | NEW |
| 1 /* Perform arithmetic and other operations on values, for GDB. | 1 /* Perform arithmetic and other operations on values, for GDB. |
| 2 | 2 |
| 3 Copyright (C) 1986, 1988-2005, 2007-2012 Free Software Foundation, | 3 Copyright (C) 1986, 1988-2005, 2007-2012 Free Software Foundation, |
| 4 Inc. | 4 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 { | 54 { |
| 55 LONGEST sz = -1; | 55 LONGEST sz = -1; |
| 56 struct type *ptr_target; | 56 struct type *ptr_target; |
| 57 | 57 |
| 58 gdb_assert (TYPE_CODE (ptr_type) == TYPE_CODE_PTR); | 58 gdb_assert (TYPE_CODE (ptr_type) == TYPE_CODE_PTR); |
| 59 ptr_target = check_typedef (TYPE_TARGET_TYPE (ptr_type)); | 59 ptr_target = check_typedef (TYPE_TARGET_TYPE (ptr_type)); |
| 60 | 60 |
| 61 sz = TYPE_LENGTH (ptr_target); | 61 sz = TYPE_LENGTH (ptr_target); |
| 62 if (sz == 0) | 62 if (sz == 0) |
| 63 { | 63 { |
error: old chunk mismatch |
None
| OLD | NEW |