Remove the omit_gdb_pretty_printer_section attribute
Disabling loading of pretty printers in the debugger itself is more reliable. Before this commit the .gdb_debug_scripts section couldn't be included in dylibs or rlibs as otherwise there is no way to disable the section anymore without recompiling the entire standard library.
This commit is contained in:
@@ -374,11 +374,3 @@ impl<S: Stage> CombineAttributeParser<S> for TargetFeatureParser {
|
|||||||
features
|
features
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) struct OmitGdbPrettyPrinterSectionParser;
|
|
||||||
|
|
||||||
impl<S: Stage> NoArgsAttributeParser<S> for OmitGdbPrettyPrinterSectionParser {
|
|
||||||
const PATH: &[Symbol] = &[sym::omit_gdb_pretty_printer_section];
|
|
||||||
const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error;
|
|
||||||
const CREATE: fn(Span) -> AttributeKind = |_| AttributeKind::OmitGdbPrettyPrinterSection;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -17,9 +17,8 @@ use crate::attributes::allow_unstable::{
|
|||||||
AllowConstFnUnstableParser, AllowInternalUnstableParser, UnstableFeatureBoundParser,
|
AllowConstFnUnstableParser, AllowInternalUnstableParser, UnstableFeatureBoundParser,
|
||||||
};
|
};
|
||||||
use crate::attributes::codegen_attrs::{
|
use crate::attributes::codegen_attrs::{
|
||||||
ColdParser, CoverageParser, ExportNameParser, NakedParser, NoMangleParser,
|
ColdParser, CoverageParser, ExportNameParser, NakedParser, NoMangleParser, OptimizeParser,
|
||||||
OmitGdbPrettyPrinterSectionParser, OptimizeParser, TargetFeatureParser, TrackCallerParser,
|
TargetFeatureParser, TrackCallerParser, UsedParser,
|
||||||
UsedParser,
|
|
||||||
};
|
};
|
||||||
use crate::attributes::confusables::ConfusablesParser;
|
use crate::attributes::confusables::ConfusablesParser;
|
||||||
use crate::attributes::deprecation::DeprecationParser;
|
use crate::attributes::deprecation::DeprecationParser;
|
||||||
@@ -187,7 +186,6 @@ attribute_parsers!(
|
|||||||
Single<WithoutArgs<NoImplicitPreludeParser>>,
|
Single<WithoutArgs<NoImplicitPreludeParser>>,
|
||||||
Single<WithoutArgs<NoMangleParser>>,
|
Single<WithoutArgs<NoMangleParser>>,
|
||||||
Single<WithoutArgs<NonExhaustiveParser>>,
|
Single<WithoutArgs<NonExhaustiveParser>>,
|
||||||
Single<WithoutArgs<OmitGdbPrettyPrinterSectionParser>>,
|
|
||||||
Single<WithoutArgs<ParenSugarParser>>,
|
Single<WithoutArgs<ParenSugarParser>>,
|
||||||
Single<WithoutArgs<PassByValueParser>>,
|
Single<WithoutArgs<PassByValueParser>>,
|
||||||
Single<WithoutArgs<PointeeParser>>,
|
Single<WithoutArgs<PointeeParser>>,
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
use rustc_codegen_ssa::base::collect_debugger_visualizers_transitive;
|
use rustc_codegen_ssa::base::collect_debugger_visualizers_transitive;
|
||||||
use rustc_codegen_ssa::traits::*;
|
use rustc_codegen_ssa::traits::*;
|
||||||
use rustc_hir::attrs::AttributeKind;
|
|
||||||
use rustc_hir::def_id::LOCAL_CRATE;
|
use rustc_hir::def_id::LOCAL_CRATE;
|
||||||
use rustc_hir::find_attr;
|
|
||||||
use rustc_middle::bug;
|
use rustc_middle::bug;
|
||||||
use rustc_middle::middle::debugger_visualizer::DebuggerVisualizerType;
|
use rustc_middle::middle::debugger_visualizer::DebuggerVisualizerType;
|
||||||
use rustc_session::config::{CrateType, DebugInfo};
|
use rustc_session::config::{CrateType, DebugInfo};
|
||||||
@@ -86,9 +84,6 @@ pub(crate) fn get_or_insert_gdb_debug_scripts_section_global<'ll>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn needs_gdb_debug_scripts_section(cx: &CodegenCx<'_, '_>) -> bool {
|
pub(crate) fn needs_gdb_debug_scripts_section(cx: &CodegenCx<'_, '_>) -> bool {
|
||||||
let omit_gdb_pretty_printer_section =
|
|
||||||
find_attr!(cx.tcx.hir_krate_attrs(), AttributeKind::OmitGdbPrettyPrinterSection);
|
|
||||||
|
|
||||||
// To ensure the section `__rustc_debug_gdb_scripts_section__` will not create
|
// To ensure the section `__rustc_debug_gdb_scripts_section__` will not create
|
||||||
// ODR violations at link time, this section will not be emitted for rlibs since
|
// ODR violations at link time, this section will not be emitted for rlibs since
|
||||||
// each rlib could produce a different set of visualizers that would be embedded
|
// each rlib could produce a different set of visualizers that would be embedded
|
||||||
@@ -117,8 +112,7 @@ pub(crate) fn needs_gdb_debug_scripts_section(cx: &CodegenCx<'_, '_>) -> bool {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
!omit_gdb_pretty_printer_section
|
cx.sess().opts.debuginfo != DebugInfo::None
|
||||||
&& cx.sess().opts.debuginfo != DebugInfo::None
|
|
||||||
&& cx.sess().target.emit_debug_gdb_scripts
|
&& cx.sess().target.emit_debug_gdb_scripts
|
||||||
&& embed_visualizers
|
&& embed_visualizers
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1257,11 +1257,6 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
|||||||
TEST, rustc_dummy, Normal, template!(Word /* doesn't matter*/),
|
TEST, rustc_dummy, Normal, template!(Word /* doesn't matter*/),
|
||||||
DuplicatesOk, EncodeCrossCrate::No
|
DuplicatesOk, EncodeCrossCrate::No
|
||||||
),
|
),
|
||||||
gated!(
|
|
||||||
omit_gdb_pretty_printer_section, Normal, template!(Word),
|
|
||||||
WarnFollowing, EncodeCrossCrate::No,
|
|
||||||
"the `#[omit_gdb_pretty_printer_section]` attribute is just used for the Rust test suite",
|
|
||||||
),
|
|
||||||
rustc_attr!(
|
rustc_attr!(
|
||||||
TEST, pattern_complexity_limit, CrateLevel, template!(NameValueStr: "N"),
|
TEST, pattern_complexity_limit, CrateLevel, template!(NameValueStr: "N"),
|
||||||
ErrorFollowing, EncodeCrossCrate::No,
|
ErrorFollowing, EncodeCrossCrate::No,
|
||||||
|
|||||||
@@ -199,6 +199,8 @@ declare_features! (
|
|||||||
/// Renamed to `dyn_compatible_for_dispatch`.
|
/// Renamed to `dyn_compatible_for_dispatch`.
|
||||||
(removed, object_safe_for_dispatch, "1.83.0", Some(43561),
|
(removed, object_safe_for_dispatch, "1.83.0", Some(43561),
|
||||||
Some("renamed to `dyn_compatible_for_dispatch`"), 131511),
|
Some("renamed to `dyn_compatible_for_dispatch`"), 131511),
|
||||||
|
/// Allows using `#[omit_gdb_pretty_printer_section]`.
|
||||||
|
(removed, omit_gdb_pretty_printer_section, "CURRENT_RUSTC_VERSION", None, None, 144738),
|
||||||
/// Allows using `#[on_unimplemented(..)]` on traits.
|
/// Allows using `#[on_unimplemented(..)]` on traits.
|
||||||
/// (Moved to `rustc_attrs`.)
|
/// (Moved to `rustc_attrs`.)
|
||||||
(removed, on_unimplemented, "1.40.0", None, None, 65794),
|
(removed, on_unimplemented, "1.40.0", None, None, 65794),
|
||||||
|
|||||||
@@ -225,8 +225,6 @@ declare_features! (
|
|||||||
(unstable, multiple_supertrait_upcastable, "1.69.0", None),
|
(unstable, multiple_supertrait_upcastable, "1.69.0", None),
|
||||||
/// Allow negative trait bounds. This is an internal-only feature for testing the trait solver!
|
/// Allow negative trait bounds. This is an internal-only feature for testing the trait solver!
|
||||||
(internal, negative_bounds, "1.71.0", None),
|
(internal, negative_bounds, "1.71.0", None),
|
||||||
/// Allows using `#[omit_gdb_pretty_printer_section]`.
|
|
||||||
(internal, omit_gdb_pretty_printer_section, "1.5.0", None),
|
|
||||||
/// Set the maximum pattern complexity allowed (not limited by default).
|
/// Set the maximum pattern complexity allowed (not limited by default).
|
||||||
(internal, pattern_complexity_limit, "1.78.0", None),
|
(internal, pattern_complexity_limit, "1.78.0", None),
|
||||||
/// Allows using pattern types.
|
/// Allows using pattern types.
|
||||||
|
|||||||
@@ -391,9 +391,6 @@ pub enum AttributeKind {
|
|||||||
/// Represents `#[non_exhaustive]`
|
/// Represents `#[non_exhaustive]`
|
||||||
NonExhaustive(Span),
|
NonExhaustive(Span),
|
||||||
|
|
||||||
/// Represents `#[omit_gdb_pretty_printer_section]`
|
|
||||||
OmitGdbPrettyPrinterSection,
|
|
||||||
|
|
||||||
/// Represents `#[optimize(size|speed)]`
|
/// Represents `#[optimize(size|speed)]`
|
||||||
Optimize(OptimizeAttr, Span),
|
Optimize(OptimizeAttr, Span),
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ impl AttributeKind {
|
|||||||
NoImplicitPrelude(..) => No,
|
NoImplicitPrelude(..) => No,
|
||||||
NoMangle(..) => Yes, // Needed for rustdoc
|
NoMangle(..) => Yes, // Needed for rustdoc
|
||||||
NonExhaustive(..) => Yes, // Needed for rustdoc
|
NonExhaustive(..) => Yes, // Needed for rustdoc
|
||||||
OmitGdbPrettyPrinterSection => No,
|
|
||||||
Optimize(..) => No,
|
Optimize(..) => No,
|
||||||
ParenSugar(..) => No,
|
ParenSugar(..) => No,
|
||||||
PassByValue(..) => Yes,
|
PassByValue(..) => Yes,
|
||||||
|
|||||||
@@ -289,8 +289,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||||||
| AttributeKind::MacroTransparency(_)
|
| AttributeKind::MacroTransparency(_)
|
||||||
| AttributeKind::Pointee(..)
|
| AttributeKind::Pointee(..)
|
||||||
| AttributeKind::Dummy
|
| AttributeKind::Dummy
|
||||||
| AttributeKind::RustcBuiltinMacro { .. }
|
| AttributeKind::RustcBuiltinMacro { .. },
|
||||||
| AttributeKind::OmitGdbPrettyPrinterSection,
|
|
||||||
) => { /* do nothing */ }
|
) => { /* do nothing */ }
|
||||||
Attribute::Parsed(AttributeKind::AsPtr(attr_span)) => {
|
Attribute::Parsed(AttributeKind::AsPtr(attr_span)) => {
|
||||||
self.check_applied_to_fn_or_method(hir_id, *attr_span, span, target)
|
self.check_applied_to_fn_or_method(hir_id, *attr_span, span, target)
|
||||||
|
|||||||
@@ -298,6 +298,7 @@ See [Pretty-printer](compiletest.md#pretty-printer-tests).
|
|||||||
- [`should-ice`](compiletest.md#incremental-tests) — incremental cfail should
|
- [`should-ice`](compiletest.md#incremental-tests) — incremental cfail should
|
||||||
ICE
|
ICE
|
||||||
- [`reference`] — an annotation linking to a rule in the reference
|
- [`reference`] — an annotation linking to a rule in the reference
|
||||||
|
- `disable-gdb-pretty-printers` — disable gdb pretty printers for debuginfo tests
|
||||||
|
|
||||||
[`reference`]: https://github.com/rust-lang/reference/blob/master/docs/authoring.md#test-rule-annotations
|
[`reference`]: https://github.com/rust-lang/reference/blob/master/docs/authoring.md#test-rule-annotations
|
||||||
|
|
||||||
|
|||||||
@@ -203,6 +203,8 @@ pub struct TestProps {
|
|||||||
pub add_core_stubs: bool,
|
pub add_core_stubs: bool,
|
||||||
/// Whether line annotatins are required for the given error kind.
|
/// Whether line annotatins are required for the given error kind.
|
||||||
pub dont_require_annotations: HashSet<ErrorKind>,
|
pub dont_require_annotations: HashSet<ErrorKind>,
|
||||||
|
/// Whether pretty printers should be disabled in gdb.
|
||||||
|
pub disable_gdb_pretty_printers: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
mod directives {
|
mod directives {
|
||||||
@@ -251,6 +253,7 @@ mod directives {
|
|||||||
pub const ADD_CORE_STUBS: &'static str = "add-core-stubs";
|
pub const ADD_CORE_STUBS: &'static str = "add-core-stubs";
|
||||||
// This isn't a real directive, just one that is probably mistyped often
|
// This isn't a real directive, just one that is probably mistyped often
|
||||||
pub const INCORRECT_COMPILER_FLAGS: &'static str = "compiler-flags";
|
pub const INCORRECT_COMPILER_FLAGS: &'static str = "compiler-flags";
|
||||||
|
pub const DISABLE_GDB_PRETTY_PRINTERS: &'static str = "disable-gdb-pretty-printers";
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TestProps {
|
impl TestProps {
|
||||||
@@ -306,6 +309,7 @@ impl TestProps {
|
|||||||
has_enzyme: false,
|
has_enzyme: false,
|
||||||
add_core_stubs: false,
|
add_core_stubs: false,
|
||||||
dont_require_annotations: Default::default(),
|
dont_require_annotations: Default::default(),
|
||||||
|
disable_gdb_pretty_printers: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -654,6 +658,12 @@ impl TestProps {
|
|||||||
self.dont_require_annotations
|
self.dont_require_annotations
|
||||||
.insert(ErrorKind::expect_from_user_str(err_kind.trim()));
|
.insert(ErrorKind::expect_from_user_str(err_kind.trim()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config.set_name_directive(
|
||||||
|
ln,
|
||||||
|
DISABLE_GDB_PRETTY_PRINTERS,
|
||||||
|
&mut self.disable_gdb_pretty_printers,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ pub(crate) const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
|
|||||||
"check-stdout",
|
"check-stdout",
|
||||||
"check-test-line-numbers-match",
|
"check-test-line-numbers-match",
|
||||||
"compile-flags",
|
"compile-flags",
|
||||||
|
"disable-gdb-pretty-printers",
|
||||||
"doc-flags",
|
"doc-flags",
|
||||||
"dont-check-compiler-stderr",
|
"dont-check-compiler-stderr",
|
||||||
"dont-check-compiler-stdout",
|
"dont-check-compiler-stdout",
|
||||||
|
|||||||
@@ -259,7 +259,9 @@ impl TestCx<'_> {
|
|||||||
Some(version) => {
|
Some(version) => {
|
||||||
println!("NOTE: compiletest thinks it is using GDB version {}", version);
|
println!("NOTE: compiletest thinks it is using GDB version {}", version);
|
||||||
|
|
||||||
if version > extract_gdb_version("7.4").unwrap() {
|
if !self.props.disable_gdb_pretty_printers
|
||||||
|
&& version > extract_gdb_version("7.4").unwrap()
|
||||||
|
{
|
||||||
// Add the directory containing the pretty printers to
|
// Add the directory containing the pretty printers to
|
||||||
// GDB's script auto loading safe path
|
// GDB's script auto loading safe path
|
||||||
script_str.push_str(&format!(
|
script_str.push_str(&format!(
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
@@ -68,8 +69,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
trait TraitWithAssocType {
|
trait TraitWithAssocType {
|
||||||
type Type;
|
type Type;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
//@ no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
// gdb-command:whatis basic_types_globals_metadata::B
|
// gdb-command:whatis basic_types_globals_metadata::B
|
||||||
@@ -35,8 +36,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(f16)]
|
#![feature(f16)]
|
||||||
|
|
||||||
// N.B. These are `mut` only so they don't constant fold away.
|
// N.B. These are `mut` only so they don't constant fold away.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//@ revisions: lto no-lto
|
//@ revisions: lto no-lto
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
//@ [lto] compile-flags:-C lto
|
//@ [lto] compile-flags:-C lto
|
||||||
//@ [lto] no-prefer-dynamic
|
//@ [lto] no-prefer-dynamic
|
||||||
@@ -39,8 +40,6 @@
|
|||||||
// gdb-command:continue
|
// gdb-command:continue
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(f16)]
|
#![feature(f16)]
|
||||||
|
|
||||||
// N.B. These are `mut` only so they don't constant fold away.
|
// N.B. These are `mut` only so they don't constant fold away.
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
// gdb-command:whatis unit
|
// gdb-command:whatis unit
|
||||||
@@ -53,8 +54,6 @@
|
|||||||
// gdb-command:continue
|
// gdb-command:continue
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(f16)]
|
#![feature(f16)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
// its numerical value.
|
// its numerical value.
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
|
|
||||||
@@ -74,8 +75,6 @@
|
|||||||
// gdb-check:$30 = 9.25
|
// gdb-check:$30 = 9.25
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(f16)]
|
#![feature(f16)]
|
||||||
|
|
||||||
static mut B: bool = false;
|
static mut B: bool = false;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
// its numerical value.
|
// its numerical value.
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -112,8 +113,6 @@
|
|||||||
// cdb-check:s : [...] [Type: ref$<str$>]
|
// cdb-check:s : [...] [Type: ref$<str$>]
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(f16)]
|
#![feature(f16)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -96,8 +97,6 @@
|
|||||||
// lldb-check:[...] 3.5
|
// lldb-check:[...] 3.5
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(f16)]
|
#![feature(f16)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -28,8 +29,6 @@
|
|||||||
// lldb-check:[...] TheC
|
// lldb-check:[...] TheC
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
enum ABC { TheA, TheB, TheC }
|
enum ABC { TheA, TheB, TheC }
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -28,8 +29,6 @@
|
|||||||
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = { value = { 0 = 4820353753753434 } }
|
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = { value = { 0 = 4820353753753434 } }
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
// The first element is to ensure proper alignment, irrespective of the machines word size. Since
|
// The first element is to ensure proper alignment, irrespective of the machines word size. Since
|
||||||
// the size of the discriminant value is machine dependent, this has be taken into account when
|
// the size of the discriminant value is machine dependent, this has be taken into account when
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -52,8 +53,6 @@
|
|||||||
// lldb-check:[...] 26.5
|
// lldb-check:[...] 26.5
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct SomeStruct {
|
struct SomeStruct {
|
||||||
x: isize,
|
x: isize,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -29,8 +30,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let stack_val: (i16, f32) = (-14, -19f32);
|
let stack_val: (i16, f32) = (-14, -19f32);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -100,8 +101,6 @@
|
|||||||
// lldb-check:[...] 3.5
|
// lldb-check:[...] 3.5
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(f16)]
|
#![feature(f16)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -19,8 +20,6 @@
|
|||||||
// lldb-check:[...] { 0 = 2 1 = 3.5 }
|
// lldb-check:[...] { 0 = 2 1 = 3.5 }
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let a = Box::new(1);
|
let a = Box::new(1);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -22,8 +23,6 @@
|
|||||||
// lldb-check:[...] { x = 77 y = 777 z = 7777 w = 77777 }
|
// lldb-check:[...] { x = 77 y = 777 z = 7777 w = 77777 }
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct StructWithSomePadding {
|
struct StructWithSomePadding {
|
||||||
x: i16,
|
x: i16,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
//@ min-gdb-version: 13.0
|
//@ min-gdb-version: 13.0
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
//@ ignore-windows-gnu: #128973
|
//@ ignore-windows-gnu: #128973
|
||||||
//@ ignore-aarch64-unknown-linux-gnu (gdb tries to read from 0x0; FIXME: #128973)
|
//@ ignore-aarch64-unknown-linux-gnu (gdb tries to read from 0x0; FIXME: #128973)
|
||||||
//@ ignore-powerpc64: #128973 on both -gnu and -musl
|
//@ ignore-powerpc64: #128973 on both -gnu and -musl
|
||||||
@@ -62,9 +63,6 @@
|
|||||||
// lldb-check:[...] Case1 { x: 0, y: 8970181431921507452 }
|
// lldb-check:[...] Case1 { x: 0, y: 8970181431921507452 }
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
struct Struct {
|
struct Struct {
|
||||||
a: isize,
|
a: isize,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -33,9 +34,6 @@
|
|||||||
// lldb-check:[...] { 0 = 4444.5 1 = 5555 2 = 6666 3 = 7777.5 }
|
// lldb-check:[...] { 0 = 4444.5 1 = 5555 2 = 6666 3 = 7777.5 }
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
trait Trait {
|
trait Trait {
|
||||||
fn method(self) -> Self;
|
fn method(self) -> Self;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -51,8 +52,6 @@
|
|||||||
// lldb-check:[...] { 0 = { a = OneHundred b = Vienna } 1 = 9 }
|
// lldb-check:[...] { 0 = { a = OneHundred b = Vienna } 1 = 9 }
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::AnEnum::{OneHundred, OneThousand, OneMillion};
|
use self::AnEnum::{OneHundred, OneThousand, OneMillion};
|
||||||
use self::AnotherEnum::{MountainView, Toronto, Vienna};
|
use self::AnotherEnum::{MountainView, Toronto, Vienna};
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//@ ignore-aarch64
|
//@ ignore-aarch64
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -88,8 +89,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::AutoDiscriminant::{One, Two, Three};
|
use self::AutoDiscriminant::{One, Two, Three};
|
||||||
use self::ManualDiscriminant::{OneHundred, OneThousand, OneMillion};
|
use self::ManualDiscriminant::{OneHundred, OneThousand, OneMillion};
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -33,9 +34,6 @@
|
|||||||
// lldb-check:[...] 110
|
// lldb-check:[...] 110
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn some_generic_fun<T1, T2>(a: T1, b: T2) -> (T2, T1) {
|
fn some_generic_fun<T1, T2>(a: T1, b: T2) -> (T2, T1) {
|
||||||
|
|
||||||
let closure = |x, y| {
|
let closure = |x, y| {
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
#![allow(dead_code, unused_variables)]
|
#![allow(dead_code, unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
// This test makes sure that the compiler doesn't crash when trying to assign
|
// This test makes sure that the compiler doesn't crash when trying to assign
|
||||||
// debug locations to const-expressions.
|
// debug locations to const-expressions.
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
#![allow(dead_code, unused_variables)]
|
#![allow(dead_code, unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
// This test makes sure that the compiler doesn't crash when trying to assign
|
// This test makes sure that the compiler doesn't crash when trying to assign
|
||||||
// debug locations to 'constant' patterns in match expressions.
|
// debug locations to 'constant' patterns in match expressions.
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -44,8 +45,7 @@
|
|||||||
// lldb-command:v c
|
// lldb-command:v c
|
||||||
// lldb-check:(int) c = 6
|
// lldb-check:(int) c = 6
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section, coroutines, coroutine_trait, stmt_expr_attributes)]
|
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use std::ops::Coroutine;
|
use std::ops::Coroutine;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
// ensure that LLDB won't crash at least (like #57822).
|
// ensure that LLDB won't crash at least (like #57822).
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -53,8 +54,7 @@
|
|||||||
// cdb-check: b : Returned [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
// cdb-check: b : Returned [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section, coroutines, coroutine_trait, stmt_expr_attributes)]
|
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use std::ops::Coroutine;
|
use std::ops::Coroutine;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
//@ aux-build:cross_crate_spans.rs
|
//@ aux-build:cross_crate_spans.rs
|
||||||
extern crate cross_crate_spans;
|
extern crate cross_crate_spans;
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
// gdb-command:break cross_crate_spans.rs:14
|
// gdb-command:break cross_crate_spans.rs:12
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
|
|
||||||
// gdb-command:print result
|
// gdb-command:print result
|
||||||
@@ -32,7 +30,7 @@ extern crate cross_crate_spans;
|
|||||||
|
|
||||||
// === LLDB TESTS ==================================================================================
|
// === LLDB TESTS ==================================================================================
|
||||||
|
|
||||||
// lldb-command:b cross_crate_spans.rs:14
|
// lldb-command:b cross_crate_spans.rs:12
|
||||||
// lldb-command:run
|
// lldb-command:run
|
||||||
|
|
||||||
// lldb-command:v result
|
// lldb-command:v result
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -299,8 +300,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::Univariant::Unit;
|
use self::Univariant::Unit;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -141,8 +142,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct Struct {
|
struct Struct {
|
||||||
x: i16,
|
x: i16,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -232,8 +233,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::Univariant::Unit;
|
use self::Univariant::Unit;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
//@ compile-flags:-g -Z thinlto
|
//@ compile-flags:-g -Z thinlto
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -16,8 +17,6 @@
|
|||||||
// lldb-check:(enum_thinlto::ABC) *abc = { value = { x = 0 y = 8970181431921507452 } $discr$ = 0 }
|
// lldb-check:(enum_thinlto::ABC) *abc = { value = { x = 0 y = 8970181431921507452 } $discr$ = 0 }
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
// The first element is to ensure proper alignment, irrespective of the machines word size. Since
|
// The first element is to ensure proper alignment, irrespective of the machines word size. Since
|
||||||
// the size of the discriminant value is machine dependent, this has be taken into account when
|
// the size of the discriminant value is machine dependent, this has be taken into account when
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -38,8 +39,6 @@
|
|||||||
// lldb-check:[...] { x = { [0] = 22 [1] = 23 } y = { [0] = 24 [1] = 25 } }
|
// lldb-check:[...] { x = { [0] = 22 [1] = 23 } y = { [0] = 24 [1] = 25 } }
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct NoPadding1 {
|
struct NoPadding1 {
|
||||||
x: [u32; 3],
|
x: [u32; 3],
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
@@ -32,9 +33,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn fn_with_c_abi(s: *const u8, len: i32) -> i32 {
|
pub unsafe extern "C" fn fn_with_c_abi(s: *const u8, len: i32) -> i32 {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
//@ compile-flags:-g -Zmir-enable-passes=-SingleUseConsts
|
//@ compile-flags:-g -Zmir-enable-passes=-SingleUseConsts
|
||||||
// SingleUseConsts shouldn't need to be disabled, see #128945
|
// SingleUseConsts shouldn't need to be disabled, see #128945
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -214,8 +215,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn immediate_args(a: isize, b: bool, c: f64) {
|
fn immediate_args(a: isize, b: bool, c: f64) {
|
||||||
zzz(); // #break
|
zzz(); // #break
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -32,10 +33,6 @@
|
|||||||
// lldb-check:[...] 3000
|
// lldb-check:[...] 3000
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
fun(111102, true);
|
fun(111102, true);
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
//@ min-gdb-version: 10.1
|
//@ min-gdb-version: 10.1
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -78,8 +79,6 @@
|
|||||||
// cdb-check:[...] a!function_names::const_generic_fn_bool<false> (void)
|
// cdb-check:[...] a!function_names::const_generic_fn_bool<false> (void)
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(adt_const_params, coroutines, coroutine_trait, stmt_expr_attributes)]
|
#![feature(adt_const_params, coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||||
#![allow(incomplete_features)]
|
#![allow(incomplete_features)]
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
//@ ignore-gdb
|
//@ ignore-gdb
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// lldb-command:breakpoint set --name immediate_args
|
// lldb-command:breakpoint set --name immediate_args
|
||||||
// lldb-command:breakpoint set --name non_immediate_args
|
// lldb-command:breakpoint set --name non_immediate_args
|
||||||
@@ -116,8 +117,6 @@
|
|||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn immediate_args(a: isize, b: bool, c: f64) {
|
fn immediate_args(a: isize, b: bool, c: f64) {
|
||||||
()
|
()
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
//@ min-gdb-version: 11.2
|
//@ min-gdb-version: 11.2
|
||||||
//@ compile-flags: -g
|
//@ compile-flags: -g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -11,8 +12,6 @@
|
|||||||
// gdb-check:$1 = 97 'a'
|
// gdb-check:$1 = 97 'a'
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let ch: char = 'a';
|
let ch: char = 'a';
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//@ ignore-lldb: FIXME(#27089)
|
//@ ignore-lldb: FIXME(#27089)
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
@@ -57,8 +58,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
// This test case makes sure that we get correct type descriptions for the enum
|
// This test case makes sure that we get correct type descriptions for the enum
|
||||||
// discriminant of different instantiations of the same generic enum type where,
|
// discriminant of different instantiations of the same generic enum type where,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -44,9 +45,6 @@
|
|||||||
// lldb-check:[...] { a = 6 b = 7.5 }
|
// lldb-check:[...] { a = 6 b = 7.5 }
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
struct Struct {
|
struct Struct {
|
||||||
a: isize,
|
a: isize,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -57,10 +58,6 @@
|
|||||||
// lldb-check:[...] 2.5
|
// lldb-check:[...] 2.5
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn outer<TA: Clone>(a: TA) {
|
fn outer<TA: Clone>(a: TA) {
|
||||||
inner(a.clone(), 1);
|
inner(a.clone(), 1);
|
||||||
inner(a.clone(), 2.5f64);
|
inner(a.clone(), 2.5f64);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -99,9 +100,6 @@
|
|||||||
// lldb-check:[...] -10.5
|
// lldb-check:[...] -10.5
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
struct Struct<T> {
|
struct Struct<T> {
|
||||||
x: T
|
x: T
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
|
|
||||||
@@ -19,9 +20,6 @@
|
|||||||
// gdb-command:continue
|
// gdb-command:continue
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct Struct {
|
struct Struct {
|
||||||
x: isize
|
x: isize
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// gdb-command:set print union on
|
// gdb-command:set print union on
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
@@ -16,9 +17,6 @@
|
|||||||
// gdb-check:$4 = generic_struct_style_enum::Univariant<i32>::TheOnlyCase{a: -1}
|
// gdb-check:$4 = generic_struct_style_enum::Univariant<i32>::TheOnlyCase{a: -1}
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::Regular::{Case1, Case2, Case3};
|
use self::Regular::{Case1, Case2, Case3};
|
||||||
use self::Univariant::TheOnlyCase;
|
use self::Univariant::TheOnlyCase;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -49,9 +50,6 @@
|
|||||||
// cdb-check:[...]value [Type: generic_struct::AGenericStruct<i32,f64>]
|
// cdb-check:[...]value [Type: generic_struct::AGenericStruct<i32,f64>]
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct AGenericStruct<TKey, TValue> {
|
struct AGenericStruct<TKey, TValue> {
|
||||||
key: TKey,
|
key: TKey,
|
||||||
value: TValue
|
value: TValue
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -30,8 +31,6 @@
|
|||||||
|
|
||||||
// lldb-command:v univariant
|
// lldb-command:v univariant
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::Regular::{Case1, Case2, Case3};
|
use self::Regular::{Case1, Case2, Case3};
|
||||||
use self::Univariant::TheOnlyCase;
|
use self::Univariant::TheOnlyCase;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
// ^ test temporarily disabled as it fails under gdb 15
|
// ^ test temporarily disabled as it fails under gdb 15
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
// gdb-command:print string1.length
|
// gdb-command:print string1.length
|
||||||
// gdb-check:$1 = 48
|
// gdb-check:$1 = 48
|
||||||
@@ -26,8 +27,6 @@
|
|||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
// This test case makes sure that debug info does not ICE when include_str is
|
// This test case makes sure that debug info does not ICE when include_str is
|
||||||
// used multiple times (see issue #11322).
|
// used multiple times (see issue #11322).
|
||||||
|
|||||||
@@ -2,14 +2,13 @@
|
|||||||
//@ ignore-aarch64
|
//@ ignore-aarch64
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
// gdb-command:next
|
// gdb-command:next
|
||||||
// gdb-check:[...]23[...]let s = Some(5).unwrap(); // #break
|
// gdb-check:[...]22[...]let s = Some(5).unwrap(); // #break
|
||||||
// gdb-command:continue
|
// gdb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
// IF YOU MODIFY THIS FILE, BE CAREFUL TO ADAPT THE LINE NUMBERS IN THE DEBUGGER COMMANDS
|
// IF YOU MODIFY THIS FILE, BE CAREFUL TO ADAPT THE LINE NUMBERS IN THE DEBUGGER COMMANDS
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
//@ ignore-gdb
|
//@ ignore-gdb
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === LLDB TESTS ==================================================================================
|
// === LLDB TESTS ==================================================================================
|
||||||
// lldb-command:run
|
// lldb-command:run
|
||||||
@@ -16,8 +17,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct ZeroSizedStruct;
|
struct ZeroSizedStruct;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -24,8 +25,7 @@
|
|||||||
// lldb-command:v b
|
// lldb-command:v b
|
||||||
// lldb-check:(issue_57822::main::{coroutine_env#3}) b = { value = { a = { value = { y = 2 } $discr$ = '\x02' } } $discr$ = '\x02' }
|
// lldb-check:(issue_57822::main::{coroutine_env#3}) b = { value = { a = { value = { y = 2 } $discr$ = '\x02' } } $discr$ = '\x02' }
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section, coroutines, coroutine_trait, stmt_expr_attributes)]
|
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use std::ops::Coroutine;
|
use std::ops::Coroutine;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -73,9 +74,6 @@
|
|||||||
// lldb-check:[...] 1000000
|
// lldb-check:[...] 1000000
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
let range = [1, 2, 3];
|
let range = [1, 2, 3];
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -121,9 +122,6 @@
|
|||||||
// lldb-check:[...] -1
|
// lldb-check:[...] -1
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
let x = 999;
|
let x = 999;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -113,9 +114,6 @@
|
|||||||
// lldb-check:[...] 232
|
// lldb-check:[...] 232
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct Struct {
|
struct Struct {
|
||||||
x: isize,
|
x: isize,
|
||||||
y: isize
|
y: isize
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -57,9 +58,6 @@
|
|||||||
// lldb-check:[...] false
|
// lldb-check:[...] false
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
let x = false;
|
let x = false;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -119,9 +120,6 @@
|
|||||||
// lldb-check:[...] 2
|
// lldb-check:[...] 2
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
let mut x = 0;
|
let mut x = 0;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -58,9 +59,6 @@
|
|||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
let x = false;
|
let x = false;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -119,9 +120,6 @@
|
|||||||
// lldb-check:[...] 2
|
// lldb-check:[...] 2
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
let mut x = 0;
|
let mut x = 0;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -97,9 +98,6 @@
|
|||||||
// lldb-check:[...] 400
|
// lldb-check:[...] 400
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
macro_rules! trivial {
|
macro_rules! trivial {
|
||||||
($e1:expr) => ($e1)
|
($e1:expr) => ($e1)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -336,8 +337,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(unused_assignments)]
|
#![allow(unused_assignments)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
static mut MUT_INT: isize = 0;
|
static mut MUT_INT: isize = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//@ ignore-lldb
|
//@ ignore-lldb
|
||||||
|
|
||||||
//@ compile-flags:-C debuginfo=1
|
//@ compile-flags:-C debuginfo=1
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// Make sure functions have proper names
|
// Make sure functions have proper names
|
||||||
// gdb-command:info functions
|
// gdb-command:info functions
|
||||||
@@ -18,8 +19,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct Struct {
|
struct Struct {
|
||||||
a: i64,
|
a: i64,
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
//@ min-gdb-version: 13.0
|
//@ min-gdb-version: 13.0
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
//@ ignore-windows-gnu: #128973
|
//@ ignore-windows-gnu: #128973
|
||||||
|
|
||||||
@@ -104,9 +105,6 @@
|
|||||||
// lldb-check:[...] -10
|
// lldb-check:[...] -10
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
enum Enum {
|
enum Enum {
|
||||||
Variant1 { x: u16, y: u16 },
|
Variant1 { x: u16, y: u16 },
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -99,9 +100,6 @@
|
|||||||
// lldb-check:[...] -10
|
// lldb-check:[...] -10
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
struct Struct<T> {
|
struct Struct<T> {
|
||||||
x: T
|
x: T
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -99,9 +100,6 @@
|
|||||||
// lldb-check:[...] -10
|
// lldb-check:[...] -10
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
struct Struct {
|
struct Struct {
|
||||||
x: isize
|
x: isize
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -99,9 +100,6 @@
|
|||||||
// lldb-check:[...] -10
|
// lldb-check:[...] -10
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
struct Struct {
|
struct Struct {
|
||||||
x: isize
|
x: isize
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -99,9 +100,6 @@
|
|||||||
// lldb-check:[...] -10
|
// lldb-check:[...] -10
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
struct TupleStruct(isize, f64);
|
struct TupleStruct(isize, f64);
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
// compiled with multiple codegen units. (see #39160)
|
// compiled with multiple codegen units. (see #39160)
|
||||||
|
|
||||||
//@ compile-flags:-g -Ccodegen-units=2
|
//@ compile-flags:-g -Ccodegen-units=2
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===============================================================
|
// === GDB TESTS ===============================================================
|
||||||
|
|
||||||
@@ -29,9 +30,6 @@
|
|||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
mod a {
|
mod a {
|
||||||
pub fn foo(xxx: u32) {
|
pub fn foo(xxx: u32) {
|
||||||
super::_zzz(); // #break
|
super::_zzz(); // #break
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -32,8 +33,6 @@
|
|||||||
// lldb-check:[...] 30303
|
// lldb-check:[...] 30303
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn function_one() {
|
fn function_one() {
|
||||||
let abc = 10101;
|
let abc = 10101;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -32,8 +33,6 @@
|
|||||||
// lldb-check:[...] 30303
|
// lldb-check:[...] 30303
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn function_one() {
|
fn function_one() {
|
||||||
let a = 10101;
|
let a = 10101;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -81,9 +82,6 @@
|
|||||||
// lldb-check:[...] 20
|
// lldb-check:[...] 20
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x = false;
|
let x = false;
|
||||||
let y = true;
|
let y = true;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
//@ min-gdb-version: 13.0
|
//@ min-gdb-version: 13.0
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -69,9 +70,6 @@
|
|||||||
// lldb-check:[...] Nope
|
// lldb-check:[...] Nope
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
// If a struct has exactly two variants, one of them is empty, and the other one
|
// If a struct has exactly two variants, one of them is empty, and the other one
|
||||||
// contains a non-nullable pointer, then this value is used as the discriminator.
|
// contains a non-nullable pointer, then this value is used as the discriminator.
|
||||||
// The test cases in this file make sure that something readable is generated for
|
// The test cases in this file make sure that something readable is generated for
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -60,8 +61,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[repr(packed)]
|
#[repr(packed)]
|
||||||
struct Packed {
|
struct Packed {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -46,8 +47,6 @@
|
|||||||
// lldb-check:[...] 40
|
// lldb-check:[...] 40
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[repr(packed)]
|
#[repr(packed)]
|
||||||
struct Packed {
|
struct Packed {
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
//@ ignore-lldb
|
//@ ignore-lldb
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
|
|
||||||
// Test whether compiling a recursive enum definition crashes debug info generation. The test case
|
// Test whether compiling a recursive enum definition crashes debug info generation. The test case
|
||||||
// is taken from issue #11083 and #135093.
|
// is taken from issue #11083 and #135093.
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
pub struct Window<'a> {
|
pub struct Window<'a> {
|
||||||
callbacks: WindowCallbacks<'a>
|
callbacks: WindowCallbacks<'a>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//@ ignore-lldb
|
//@ ignore-lldb
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
|
|
||||||
@@ -58,8 +59,6 @@
|
|||||||
// gdb-command:continue
|
// gdb-command:continue
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::Opt::{Empty, Val};
|
use self::Opt::{Empty, Val};
|
||||||
use std::boxed::Box as B;
|
use std::boxed::Box as B;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
// and leaves codegen to create a ladder of allocations so as `*a == b`.
|
// and leaves codegen to create a ladder of allocations so as `*a == b`.
|
||||||
//
|
//
|
||||||
//@ compile-flags:-g -Zmir-enable-passes=+ReferencePropagation,-ConstDebugInfo
|
//@ compile-flags:-g -Zmir-enable-passes=+ReferencePropagation,-ConstDebugInfo
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -106,8 +107,6 @@
|
|||||||
// lldb-check:[...] 3.5
|
// lldb-check:[...] 3.5
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(f16)]
|
#![feature(f16)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -99,9 +100,6 @@
|
|||||||
// lldb-check:[...] -10
|
// lldb-check:[...] -10
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
struct Struct {
|
struct Struct {
|
||||||
x: isize
|
x: isize
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -99,9 +100,6 @@
|
|||||||
// lldb-check:[...] -10.5
|
// lldb-check:[...] -10.5
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
struct Struct {
|
struct Struct {
|
||||||
x: isize
|
x: isize
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -46,9 +47,6 @@
|
|||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn a_function(x: bool, y: bool) {
|
fn a_function(x: bool, y: bool) {
|
||||||
zzz(); // #break
|
zzz(); // #break
|
||||||
sentinel();
|
sentinel();
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -68,9 +69,6 @@
|
|||||||
// lldb-check:[...] 20
|
// lldb-check:[...] 20
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x = false;
|
let x = false;
|
||||||
let y = true;
|
let y = true;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
//@ ignore-s390x
|
//@ ignore-s390x
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
|
|
||||||
// gdb-command:print vi8x16
|
// gdb-command:print vi8x16
|
||||||
@@ -35,8 +36,6 @@
|
|||||||
// gdb-command:continue
|
// gdb-command:continue
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
#![feature(repr_simd)]
|
#![feature(repr_simd)]
|
||||||
|
|
||||||
#[repr(simd)]
|
#[repr(simd)]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -66,9 +67,6 @@
|
|||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x = false;
|
let x = false;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags: -g -Zmir-enable-passes=-CheckAlignment
|
//@ compile-flags: -g -Zmir-enable-passes=-CheckAlignment
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -84,8 +85,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct NoPadding16 {
|
struct NoPadding16 {
|
||||||
x: u16,
|
x: u16,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -121,8 +122,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
static mut NO_PADDING_8: (i8, u8) = (-50, 50);
|
static mut NO_PADDING_8: (i8, u8) = (-50, 50);
|
||||||
static mut NO_PADDING_16: (i16, i16, u16) = (-1, 2, 3);
|
static mut NO_PADDING_16: (i16, i16, u16) = (-1, 2, 3);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -41,9 +42,6 @@
|
|||||||
// lldb-check:[...] 5
|
// lldb-check:[...] 5
|
||||||
// lldb-command:continue
|
// lldb-command:continue
|
||||||
|
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct Struct {
|
struct Struct {
|
||||||
x: isize
|
x: isize
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
// gdb-command:run
|
// gdb-command:run
|
||||||
@@ -40,8 +41,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
pub struct Foo<'a> {
|
pub struct Foo<'a> {
|
||||||
inner: &'a str,
|
inner: &'a str,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
|
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -30,8 +31,6 @@
|
|||||||
// lldb-check:[...] TheOnlyCase(Struct { x: 123, y: 456, z: 789 })
|
// lldb-check:[...] TheOnlyCase(Struct { x: 123, y: 456, z: 789 })
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::Regular::{Case1, Case2};
|
use self::Regular::{Case1, Case2};
|
||||||
use self::Univariant::TheOnlyCase;
|
use self::Univariant::TheOnlyCase;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -43,8 +44,6 @@
|
|||||||
// lldb-check:[...] { x = { x = 25 } y = { x = { x = 26 y = 27 } y = { x = 28 y = 29 } z = { x = 30 y = 31 } } z = { x = { x = { x = 32 } } } }
|
// lldb-check:[...] { x = { x = 25 } y = { x = { x = 26 y = 27 } y = { x = 28 y = 29 } z = { x = 30 y = 31 } } z = { x = { x = { x = 32 } } } }
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct Simple {
|
struct Simple {
|
||||||
x: i32
|
x: i32
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
//@ ignore-gdb
|
//@ ignore-gdb
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// Check that structs get placed in the correct namespace
|
// Check that structs get placed in the correct namespace
|
||||||
|
|
||||||
@@ -16,8 +17,6 @@
|
|||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
struct Struct1 {
|
struct Struct1 {
|
||||||
a: u32,
|
a: u32,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
//@ min-lldb-version: 1800
|
//@ min-lldb-version: 1800
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
//@ disable-gdb-pretty-printers
|
||||||
|
|
||||||
// === GDB TESTS ===================================================================================
|
// === GDB TESTS ===================================================================================
|
||||||
|
|
||||||
@@ -36,8 +37,6 @@
|
|||||||
// lldb-check:(struct_style_enum::Univariant) univariant = { value = { a = -1 } }
|
// lldb-check:(struct_style_enum::Univariant) univariant = { value = { a = -1 } }
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
#![feature(omit_gdb_pretty_printer_section)]
|
|
||||||
#![omit_gdb_pretty_printer_section]
|
|
||||||
|
|
||||||
use self::Regular::{Case1, Case2, Case3};
|
use self::Regular::{Case1, Case2, Case3};
|
||||||
use self::Univariant::TheOnlyCase;
|
use self::Univariant::TheOnlyCase;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user