• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisión558e5469679897ee57ad6706074f55ff4952cf43 (tree)
Tiempo2015-05-13 22:55:09
AutorJan Kratochvil <jan.kratochvil@redh...>
CommiterJan Kratochvil

Log Message

dummy_frame_dtor_ftype vs. call_function_by_hand_dummy_dtor_ftype cleanup

Both dummy_frame_dtor_ftype and call_function_by_hand_dummy_dtor_ftype
represent the same type, there was some mistake/duplication during check-in.

gdb/ChangeLog
2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>

* dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
* dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
* infcall.c (call_function_by_hand_dummy): Use proper typedef for
dummy_dtor parameter.
* infcall.h: Include dummy-frame.h.
(call_function_by_hand_dummy_dtor_ftype): Remove.
(call_function_by_hand_dummy): Use proper typedef for dummy_dtor
parameter.

Cambiar Resumen

Diferencia incremental

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,14 @@
1+2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2+
3+ * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
4+ * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5+ * infcall.c (call_function_by_hand_dummy): Use proper typedef for
6+ dummy_dtor parameter.
7+ * infcall.h: Include dummy-frame.h.
8+ (call_function_by_hand_dummy_dtor_ftype): Remove.
9+ (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
10+ parameter.
11+
112 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
213
314 PR gdb/17820
--- a/gdb/dummy-frame.c
+++ b/gdb/dummy-frame.c
@@ -64,7 +64,7 @@ struct dummy_frame
6464
6565 /* If non-NULL, a destructor that is run when this dummy frame is
6666 popped. */
67- void (*dtor) (void *data);
67+ dummy_frame_dtor_ftype *dtor;
6868
6969 /* Arbitrary data that is passed to DTOR. */
7070 void *dtor_data;
--- a/gdb/dummy-frame.h
+++ b/gdb/dummy-frame.h
@@ -54,10 +54,12 @@ extern void dummy_frame_discard (struct frame_id dummy_id, ptid_t ptid);
5454
5555 extern const struct frame_unwind dummy_frame_unwind;
5656
57+/* Destructor for dummy_frame. DATA is supplied by registrant. */
58+typedef void (dummy_frame_dtor_ftype) (void *data);
59+
5760 /* Call DTOR with DTOR_DATA when DUMMY_ID frame of thread PTID gets discarded.
5861 Dummy frame with DUMMY_ID must exist. There must be no other call of
5962 register_dummy_frame_dtor for that dummy frame. */
60-typedef void (dummy_frame_dtor_ftype) (void *data);
6163 extern void register_dummy_frame_dtor (struct frame_id dummy_id, ptid_t ptid,
6264 dummy_frame_dtor_ftype *dtor,
6365 void *dtor_data);
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -490,7 +490,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
490490 struct value *
491491 call_function_by_hand_dummy (struct value *function,
492492 int nargs, struct value **args,
493- call_function_by_hand_dummy_dtor_ftype *dummy_dtor,
493+ dummy_frame_dtor_ftype *dummy_dtor,
494494 void *dummy_dtor_data)
495495 {
496496 CORE_ADDR sp;
--- a/gdb/infcall.h
+++ b/gdb/infcall.h
@@ -20,6 +20,8 @@
2020 #ifndef INFCALL_H
2121 #define INFCALL_H
2222
23+#include "dummy-frame.h"
24+
2325 struct value;
2426 struct type;
2527
@@ -42,11 +44,10 @@ extern struct value *call_function_by_hand (struct value *function, int nargs,
4244 register_dummy_frame_dtor with DUMMY_DTOR and DUMMY_DTOR_DATA for the
4345 created inferior call dummy frame. */
4446
45-typedef void (call_function_by_hand_dummy_dtor_ftype) (void *data);
4647 extern struct value *
4748 call_function_by_hand_dummy (struct value *function, int nargs,
4849 struct value **args,
49- call_function_by_hand_dummy_dtor_ftype *dummy_dtor,
50+ dummy_frame_dtor_ftype *dummy_dtor,
5051 void *dummy_dtor_data);
5152
5253 #endif