]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Change the as_*_interp functions to use dynamic_cast
authorTom Tromey <tom@tromey.com>
Mon, 30 Apr 2018 05:12:05 +0000 (23:12 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 25 May 2018 18:41:00 +0000 (12:41 -0600)
commit716b8bc52eef6044f1ff361e3e2eeb9307849034
treebe8a74abc1f0764e7c94ae19b607a3ed224f8785
parent753ff9bd837e2ba183e3ff789847a81221561392
Change the as_*_interp functions to use dynamic_cast

This changes the various as_*_interp functions to be implemented using
dynamic_cast.  I believe this is a small improvement, because it is
more typesafe -- the C++ runtime does the type-checking for us.

ChangeLog
2018-05-25  Tom Tromey  <tom@tromey.com>

* tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
* mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
* cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
gdb/ChangeLog
gdb/cli/cli-interp.c
gdb/mi/mi-interp.c
gdb/tui/tui-interp.c