[PATCH] Change handling of '!' operator in stap probes

Tom Tromey tom@tromey.com
Wed Jan 20 18:40:39 GMT 2021


Sergio> gdb/ChangeLog:
Sergio> 2021-01-03  Sergio Durigan Junior  <sergiodj@sergiodj.net>
Sergio> 	    Tom Tromey <tom@tromey.com>

Sergio> 	* stap-probe.c (stap_parse_single_operand): Handle '!'
Sergio> 	operator.
Sergio> 	(stap_parse_argument_conditionally): Likewise.
Sergio> 	Skip spaces after processing open-parenthesis sub-expression.
Sergio> 	(stap_parse_argument_1): Skip spaces after call to
Sergio> 	stap_parse_argument_conditionally.
Sergio> 	Handle case when right-side expression is a parenthesized
Sergio> 	sub-expression.
Sergio> 	Skip spaces after call to stap_parse_argument_1.

Sergio> gdb/testsuite/ChangeLog:
Sergio> 2021-01-03  Sergio Durigan Junior  <sergiodj@sergiodj.net>

Sergio> 	* gdb.arch/amd64-stap-expressions.S: New file.
Sergio> 	* gdb.arch/amd64-stap-expressions.exp: New file.

Looks good.  Thank you for doing this.

Tom


More information about the Gdb-patches mailing list