]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ax.h
Introduce ax_raw_byte and use it
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 27 Oct 2015 13:33:29 +0000 (09:33 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 27 Oct 2015 13:33:29 +0000 (09:33 -0400)
commit70b8286a9749deb6639c2fd5b39c7e4a26195738
treeb309a136d583646c6017b54e7c4d926c1d854303
parenta480de357b17b1b2057b8375284079ccafae39db
Introduce ax_raw_byte and use it

This patch was taken directly from Pedro's branch.

ax_simple is used to append an agent expression operator to an agent
expression string.  Therefore, it takes an enum agent_op as input.
There is an instance where it's called to append a raw byte, unrelated
to the enum.  It makes the build fail in C++ mode.

This patch introduces ax_raw_byte for that purpose and uses it.

gdb/ChangeLog:

* ax.h (ax_raw_byte): New declaration.
* ax-general.c (ax_raw_byte): New function.
(ax_simple): Use ax_raw_byte.
* ax-gdb.c (gen_printf): Likewise.
gdb/ChangeLog
gdb/ax-gdb.c
gdb/ax-general.c
gdb/ax.h