diff options
author | Pedro Alves <palves@redhat.com> | 2014-10-22 12:26:06 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-02-27 17:40:35 +0000 |
commit | 64166036b3de842d3e62e9471a2813b55643e3f3 (patch) | |
tree | 62f1c16e2e39a2079f4c6f3639b297f85087bb02 /gdb/breakpoint.h | |
parent | 8a526fa69afd8ea7d2e303f80c03f9eb46211390 (diff) | |
download | binutils-gdb-64166036b3de842d3e62e9471a2813b55643e3f3.tar.gz |
breakpoint.h: move enum ‘print_stop_action’
Building GDB in C++, we get:
src/gdb/breakpoint.h:529:8: error: use of enum ‘print_stop_action’ without previous declaration
We can't forward declare enums in C++.
gdb/ChangeLog:
2015-02-27 Pedro Alves <palves@redhat.com>
* breakpoint.h (enum print_stop_action): Move further up in the
file.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 100d4f2fbbf..ad91102e020 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -471,6 +471,26 @@ struct bp_location struct symtab *symtab; }; +/* The possible return values for print_bpstat, print_it_normal, + print_it_done, print_it_noop. */ +enum print_stop_action +{ + /* We printed nothing or we need to do some more analysis. */ + PRINT_UNKNOWN = -1, + + /* We printed something, and we *do* desire that something to be + followed by a location. */ + PRINT_SRC_AND_LOC, + + /* We printed something, and we do *not* desire that something to be + followed by a location. */ + PRINT_SRC_ONLY, + + /* We already printed all we needed to print, don't print anything + else. */ + PRINT_NOTHING +}; + /* This structure is a collection of function pointers that, if available, will be called instead of the performing the default action for this bptype. */ @@ -966,26 +986,6 @@ struct bpstat_what int is_longjmp; }; -/* The possible return values for print_bpstat, print_it_normal, - print_it_done, print_it_noop. */ -enum print_stop_action - { - /* We printed nothing or we need to do some more analysis. */ - PRINT_UNKNOWN = -1, - - /* We printed something, and we *do* desire that something to be - followed by a location. */ - PRINT_SRC_AND_LOC, - - /* We printed something, and we do *not* desire that something to - be followed by a location. */ - PRINT_SRC_ONLY, - - /* We already printed all we needed to print, don't print anything - else. */ - PRINT_NOTHING - }; - /* Tell what to do about this bpstat. */ struct bpstat_what bpstat_what (bpstat); |