| OLD | NEW |
| 1 /* Python interface to breakpoints | 1 /* Python interface to breakpoints |
| 2 | 2 |
| 3 Copyright (C) 2008-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2008-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of GDB. | 5 This file is part of GDB. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| 11 | 11 |
| 12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 GNU General Public License for more details. | 15 GNU General Public License for more details. |
| 16 | 16 |
| 17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
| 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 |
| 20 #include "defs.h" | 20 #include "defs.h" |
| 21 #include "value.h" | 21 #include "value.h" |
| 22 #include "exceptions.h" | 22 #include "exceptions.h" |
| 23 #include "python-internal.h" | 23 #include "python-internal.h" |
| 24 #include "python.h" |
| 24 #include "charset.h" | 25 #include "charset.h" |
| 25 #include "breakpoint.h" | 26 #include "breakpoint.h" |
| 26 #include "gdbcmd.h" | 27 #include "gdbcmd.h" |
| 27 #include "gdbthread.h" | 28 #include "gdbthread.h" |
| 28 #include "observer.h" | 29 #include "observer.h" |
| 29 #include "cli/cli-script.h" | 30 #include "cli/cli-script.h" |
| 30 #include "ada-lang.h" | 31 #include "ada-lang.h" |
| 31 #include "arch-utils.h" | 32 #include "arch-utils.h" |
| 32 #include "language.h" | 33 #include "language.h" |
| 33 | 34 |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 TRY_CATCH (except, RETURN_MASK_ALL) | 615 TRY_CATCH (except, RETURN_MASK_ALL) |
| 615 { | 616 { |
| 616 char *copy = xstrdup (spec); | 617 char *copy = xstrdup (spec); |
| 617 struct cleanup *cleanup = make_cleanup (xfree, copy); | 618 struct cleanup *cleanup = make_cleanup (xfree, copy); |
| 618 | 619 |
| 619 switch (type) | 620 switch (type) |
| 620 { | 621 { |
| 621 case bp_breakpoint: | 622 case bp_breakpoint: |
| 622 { | 623 { |
| 623 create_breakpoint (python_gdbarch, | 624 create_breakpoint (python_gdbarch, |
| 624 » » » copy, NULL, -1, | 625 » » » copy, NULL, -1, NULL, |
| 625 0, | 626 0, |
| 626 0, bp_breakpoint, | 627 0, bp_breakpoint, |
| 627 0, | 628 0, |
| 628 AUTO_BOOLEAN_TRUE, | 629 AUTO_BOOLEAN_TRUE, |
| 629 &bkpt_breakpoint_ops, | 630 &bkpt_breakpoint_ops, |
| 630 0, 1, internal_bp, 0); | 631 0, 1, internal_bp, 0); |
| 631 break; | 632 break; |
| 632 } | 633 } |
| 633 case bp_watchpoint: | 634 case bp_watchpoint: |
| 634 { | 635 { |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 0, /* tp_members */ | 1017 0, /* tp_members */ |
| 1017 breakpoint_object_getset, /* tp_getset */ | 1018 breakpoint_object_getset, /* tp_getset */ |
| 1018 0, /* tp_base */ | 1019 0, /* tp_base */ |
| 1019 0, /* tp_dict */ | 1020 0, /* tp_dict */ |
| 1020 0, /* tp_descr_get */ | 1021 0, /* tp_descr_get */ |
| 1021 0, /* tp_descr_set */ | 1022 0, /* tp_descr_set */ |
| 1022 0, /* tp_dictoffset */ | 1023 0, /* tp_dictoffset */ |
| 1023 bppy_init, /* tp_init */ | 1024 bppy_init, /* tp_init */ |
| 1024 0, /* tp_alloc */ | 1025 0, /* tp_alloc */ |
| 1025 }; | 1026 }; |
| OLD | NEW |