@@ -121,7 +121,7 @@ bppy_set_enabled (PyObject *self, PyObject *newvalue, void *closure)
121121
122122 if (newvalue == NULL )
123123 {
124- PyErr_SetString (PyExc_TypeError ,
124+ PyErr_SetString (PyExc_TypeError ,
125125 _ ("Cannot delete `enabled' attribute." ));
126126
127127 return -1 ;
@@ -160,7 +160,7 @@ bppy_set_silent (PyObject *self, PyObject *newvalue, void *closure)
160160
161161 if (newvalue == NULL )
162162 {
163- PyErr_SetString (PyExc_TypeError ,
163+ PyErr_SetString (PyExc_TypeError ,
164164 _ ("Cannot delete `silent' attribute." ));
165165 return -1 ;
166166 }
@@ -191,7 +191,7 @@ bppy_set_thread (PyObject *self, PyObject *newvalue, void *closure)
191191
192192 if (newvalue == NULL )
193193 {
194- PyErr_SetString (PyExc_TypeError ,
194+ PyErr_SetString (PyExc_TypeError ,
195195 _ ("Cannot delete `thread' attribute." ));
196196 return -1 ;
197197 }
@@ -202,7 +202,7 @@ bppy_set_thread (PyObject *self, PyObject *newvalue, void *closure)
202202
203203 if (! valid_thread_id (id ))
204204 {
205- PyErr_SetString (PyExc_RuntimeError ,
205+ PyErr_SetString (PyExc_RuntimeError ,
206206 _ ("Invalid thread ID." ));
207207 return -1 ;
208208 }
@@ -234,7 +234,7 @@ bppy_set_task (PyObject *self, PyObject *newvalue, void *closure)
234234
235235 if (newvalue == NULL )
236236 {
237- PyErr_SetString (PyExc_TypeError ,
237+ PyErr_SetString (PyExc_TypeError ,
238238 _ ("Cannot delete `task' attribute." ));
239239 return -1 ;
240240 }
@@ -251,7 +251,7 @@ bppy_set_task (PyObject *self, PyObject *newvalue, void *closure)
251251
252252 if (! valid_id )
253253 {
254- PyErr_SetString (PyExc_RuntimeError ,
254+ PyErr_SetString (PyExc_RuntimeError ,
255255 _ ("Invalid task ID." ));
256256 return -1 ;
257257 }
@@ -341,7 +341,7 @@ bppy_set_hit_count (PyObject *self, PyObject *newvalue, void *closure)
341341
342342 if (newvalue == NULL )
343343 {
344- PyErr_SetString (PyExc_TypeError ,
344+ PyErr_SetString (PyExc_TypeError ,
345345 _ ("Cannot delete `hit_count' attribute." ));
346346 return -1 ;
347347 }
@@ -436,7 +436,7 @@ bppy_set_condition (PyObject *self, PyObject *newvalue, void *closure)
436436
437437 if (newvalue == NULL )
438438 {
439- PyErr_SetString (PyExc_TypeError ,
439+ PyErr_SetString (PyExc_TypeError ,
440440 _ ("Cannot delete `condition' attribute." ));
441441 return -1 ;
442442 }
@@ -644,7 +644,7 @@ bppy_init (PyObject *self, PyObject *args, PyObject *kwargs)
644644 bppy_pending_object = (gdbpy_breakpoint_object * ) self ;
645645 bppy_pending_object -> number = -1 ;
646646 bppy_pending_object -> bp = NULL ;
647-
647+
648648 TRY_CATCH (except , RETURN_MASK_ALL )
649649 {
650650 char * copy = xstrdup (spec );
@@ -805,7 +805,7 @@ gdbpy_breakpoint_has_py_cond (struct gdbpy_breakpoint_object *bp_obj)
805805 struct gdbarch * garch = bp_obj -> bp -> gdbarch ? bp_obj -> bp -> gdbarch :
806806 get_current_arch ();
807807 struct cleanup * cleanup = ensure_python_env (garch , current_language );
808-
808+
809809 if (py_bp != NULL )
810810 has_func = PyObject_HasAttrString (py_bp , stop_func );
811811
@@ -829,9 +829,9 @@ gdbpy_breakpoint_created (struct breakpoint *bp)
829829 if (bp -> number < 0 && bppy_pending_object == NULL )
830830 return ;
831831
832- if (bp -> type != bp_breakpoint
832+ if (bp -> type != bp_breakpoint
833833 && bp -> type != bp_watchpoint
834- && bp -> type != bp_hardware_watchpoint
834+ && bp -> type != bp_hardware_watchpoint
835835 && bp -> type != bp_read_watchpoint
836836 && bp -> type != bp_access_watchpoint )
837837 return ;
@@ -937,31 +937,31 @@ gdbpy_initialize_breakpoints (void)
937937 PyObject_GenericSetAttr to allow extra validation of the attribute
938938 being set. */
939939
940- static int
940+ static int
941941local_setattro (PyObject * self , PyObject * name , PyObject * v )
942942{
943- gdbpy_breakpoint_object * obj = (gdbpy_breakpoint_object * ) self ;
943+ gdbpy_breakpoint_object * obj = (gdbpy_breakpoint_object * ) self ;
944944 char * attr = python_string_to_host_string (name );
945-
945+
946946 if (attr == NULL )
947947 return -1 ;
948-
948+
949949 /* If the attribute trying to be set is the "stop" method,
950950 but we already have a condition set in the CLI, disallow this
951951 operation. */
952952 if (strcmp (attr , stop_func ) == 0 && obj -> bp -> cond_string )
953953 {
954954 xfree (attr );
955- PyErr_SetString (PyExc_RuntimeError ,
955+ PyErr_SetString (PyExc_RuntimeError ,
956956 _ ("Cannot set 'stop' method. There is an " \
957957 "existing GDB condition attached to the " \
958958 "breakpoint." ));
959959 return -1 ;
960960 }
961-
961+
962962 xfree (attr );
963-
964- return PyObject_GenericSetAttr ((PyObject * )self , name , v );
963+
964+ return PyObject_GenericSetAttr ((PyObject * )self , name , v );
965965}
966966
967967static PyGetSetDef breakpoint_object_getset [] = {
0 commit comments