This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix for Bug 13689: watch (cast) 0xf00bar is not caught as "Cannot watch constant value"


The enclosed one-line fix for bug 13689 simply adds UNOP_CAST as a
known unary operator to the function watchpoint_exp_is_constant. So
instead of being conservative and guessing that the expression can
change, the function continues its analysis. This is identical
handling to the other unary operators.

OK to check in?

Sterling

2012-02-17  Sterling Augustine  <saugustine@google.com>

	PR 13689:
	* breakpoint.c (watch_exp_is_constant): Add UNOP_CAST to switch.

Attachment: bug_13689.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]