diff options
author | Doug Evans <dje@google.com> | 2010-08-18 19:13:33 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-08-18 19:13:33 +0000 |
commit | f3574227a8f3cf6696a452bce6e628a0b014f21f (patch) | |
tree | 092c1700f68814b1de54237a177232833a673ea4 /gdb/macroexp.c | |
parent | c92817ce8d63df3e3c7225d77723f1c4ae725f58 (diff) | |
download | gdb-f3574227a8f3cf6696a452bce6e628a0b014f21f.zip gdb-f3574227a8f3cf6696a452bce6e628a0b014f21f.tar.gz gdb-f3574227a8f3cf6696a452bce6e628a0b014f21f.tar.bz2 |
* gdb_assert.h (gdb_assert_not_reached): New macro.
(gdb_assert_fail): Fix typo in comment.
* avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
gdb_assert (0).
* darwin-nat.c (darwin_check_new_threads): Ditto.
* dwarf2read.c (dwarf2_get_section_info): Ditto.
(munmap_section_buffer): Ditto.
* m32c-tdep.c (make_types): Ditto.
(m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
* macroexp.c (get_character_constant): Ditto.
(get_string_literal): Ditto.
* mep-tdep.c (mep_pseudo_cr_size): Ditto.
(mep_pseudo_cr_index, mep_register_type): Ditto.
(mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
(mep_get_insn, mep_analyze_prologue): Ditto.
* objfiles.c (qsort_cmp): Ditto.
* prologue-value.c (pv_is_identical): Ditto.
* record.c (record_get_loc): Ditto.
* value.c (value_static_field): Ditto.
* xtensa-tdep.c (call0_track_op): Ditto.
Diffstat (limited to 'gdb/macroexp.c')
-rw-r--r-- | gdb/macroexp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/macroexp.c b/gdb/macroexp.c index 73e68d7..86689c3 100644 --- a/gdb/macroexp.c +++ b/gdb/macroexp.c @@ -334,7 +334,7 @@ get_character_constant (struct macro_buffer *tok, char *p, char *end) else if (*p == 'L' || *p == 'u' || *p == 'U') p += 2; else - gdb_assert (0); + gdb_assert_not_reached ("unexpected character constant"); body_start = p; for (;;) @@ -389,7 +389,7 @@ get_string_literal (struct macro_buffer *tok, char *p, char *end) else if (*p == 'L' || *p == 'u' || *p == 'U') p += 2; else - gdb_assert (0); + gdb_assert_not_reached ("unexpected string literal"); for (;;) { |