diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2014-01-17 19:39:57 -0200 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2014-01-17 19:39:57 -0200 |
commit | c90a6fb765e9339905803cbfa6cb7adf0431434b (patch) | |
tree | 465ab11f127af3fcf7d21c61e1d7d8863756122f /gdb/breakpoint.c | |
parent | 749234e5402bddc054d77b4113ecd09eda7a872e (diff) | |
download | gdb-c90a6fb765e9339905803cbfa6cb7adf0431434b.zip gdb-c90a6fb765e9339905803cbfa6cb7adf0431434b.tar.gz gdb-c90a6fb765e9339905803cbfa6cb7adf0431434b.tar.bz2 |
Add "volatile" keyword to "struct gdb_exception" declaration
While doing something else, I found that those 2 places were incorrectly
declaring a "struct gdb_exception" without using the "volatile" keyword.
This commit fixes that.
2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
* breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
gdb_exception" declaration.
* remote.c (getpkt_or_notif_sane): Likewise.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 642ffdf..c8e7e88 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2396,7 +2396,7 @@ insert_bp_location (struct bp_location *bl, { enum errors bp_err = GDB_NO_ERROR; const char *bp_err_message = NULL; - struct gdb_exception e; + volatile struct gdb_exception e; if (!should_be_inserted (bl) || (bl->inserted && !bl->needs_update)) return 0; |