summaryrefslogtreecommitdiff
path: root/data/gdb/catch.diff
blob: 4bc867bbf12773c6cf148f137f3901b2aef72887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
diff -ru gdb-961/src/gdb/macosx/macosx-nat-excthread.c gdb-961+iPhone/src/gdb/macosx/macosx-nat-excthread.c
--- gdb-961/src/gdb/macosx/macosx-nat-excthread.c	2008-05-12 02:05:04.000000000 +0000
+++ gdb-961+iPhone/src/gdb/macosx/macosx-nat-excthread.c	2008-07-04 11:01:25.000000000 +0000
@@ -240,11 +240,17 @@
 #else
   catch_exception_raise_state
 #endif
-  (mach_port_t port,
-   exception_type_t exception_type, mach_exception_data_t exception_data,
-   mach_msg_type_number_t data_count, thread_state_flavor_t * state_flavor,
-   thread_state_t in_state, mach_msg_type_number_t in_state_count,
-   thread_state_t out_state, mach_msg_type_number_t out_state_count)
+(
+	mach_port_t exception_port,
+	exception_type_t exception,
+	const exception_data_t code,
+	mach_msg_type_number_t codeCnt,
+	int *flavor,
+	const thread_state_t old_state,
+	mach_msg_type_number_t old_stateCnt,
+	thread_state_t new_state,
+	mach_msg_type_number_t *new_stateCnt
+)
 {
   return KERN_FAILURE;
 }
@@ -255,17 +261,25 @@
 #else
   catch_exception_raise_state_identity
 #endif
-  (mach_port_t port, mach_port_t thread_port, mach_port_t task_port,
-   exception_type_t exception_type, mach_exception_data_t exception_data,
-   mach_msg_type_number_t data_count, thread_state_flavor_t * state_flavor,
-   thread_state_t in_state, mach_msg_type_number_t in_state_count,
-   thread_state_t out_state, mach_msg_type_number_t out_state_count)
+(
+	mach_port_t exception_port,
+	mach_port_t thread,
+	mach_port_t task,
+	exception_type_t exception,
+	exception_data_t code,
+	mach_msg_type_number_t codeCnt,
+	int *flavor,
+	thread_state_t old_state,
+	mach_msg_type_number_t old_stateCnt,
+	thread_state_t new_state,
+	mach_msg_type_number_t *new_stateCnt
+)
 {
   kern_return_t kret;
 
-  kret = mach_port_deallocate (mach_task_self (), task_port);
+  kret = mach_port_deallocate (mach_task_self (), task);
   MACH_CHECK_ERROR (kret);
-  kret = mach_port_deallocate (mach_task_self (), thread_port);
+  kret = mach_port_deallocate (mach_task_self (), thread);
   MACH_CHECK_ERROR (kret);
 
   return KERN_FAILURE;