diff options
author | Tom Tromey <tromey@adacore.com> | 2022-04-27 14:32:49 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-04-28 09:31:15 -0600 |
commit | 0d1703b8fb611f978577a70ad6aa308a12a53980 (patch) | |
tree | 1575fb753e121f86566507be66b72cd85efc013e /gdb/python/py-event.h | |
parent | c42dd30d73ec441ed9cab207597c7f5ce88ee231 (diff) | |
download | binutils-0d1703b8fb611f978577a70ad6aa308a12a53980.zip binutils-0d1703b8fb611f978577a70ad6aa308a12a53980.tar.gz binutils-0d1703b8fb611f978577a70ad6aa308a12a53980.tar.bz2 |
Remove "typedef enum ..."
I noticed a few spots in GDB that use "typedef enum". However, in C++
this isn't as useful, as the tag is automatically entered as a
typedef. This patch removes most uses of "typedef enum" -- the
exceptions being in some nat-* code I can't compile, and
glibc_thread_db.h, which I think is more or less a copy of some C code
from elsewhere.
Tested by rebuilding.
Diffstat (limited to 'gdb/python/py-event.h')
-rw-r--r-- | gdb/python/py-event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-event.h b/gdb/python/py-event.h index 56e53b7..831dd10 100644 --- a/gdb/python/py-event.h +++ b/gdb/python/py-event.h @@ -45,13 +45,13 @@ extern int emit_exited_event (const LONGEST *exit_code, struct inferior *inf); /* For inferior function call events, discriminate whether event is before or after the call. */ -typedef enum +enum inferior_call_kind { /* Before the call */ INFERIOR_CALL_PRE, /* after the call */ INFERIOR_CALL_POST, -} inferior_call_kind; +}; extern int emit_inferior_call_event (inferior_call_kind kind, ptid_t thread, CORE_ADDR addr); |