Changeset View
Changeset View
Standalone View
Standalone View
head/devel/gdb/files/kgdb/kgdb-main.c
Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | if (kernel == NULL) { | ||||
if (verbose) | if (verbose) | ||||
warnx("kernel image: %s", kernel); | warnx("kernel image: %s", kernel); | ||||
} | } | ||||
/* Set an alternate prompt. */ | /* Set an alternate prompt. */ | ||||
add_arg(&args, "-iex"); | add_arg(&args, "-iex"); | ||||
add_arg(&args, "set prompt (kgdb) "); | add_arg(&args, "set prompt (kgdb) "); | ||||
/* Change osabi to assume a FreeBSD kernel. */ | |||||
add_arg(&args, "-iex"); | |||||
add_arg(&args, "set osabi FreeBSD/kernel"); | |||||
/* Open the vmcore if requested. */ | /* Open the vmcore if requested. */ | ||||
if (vmcore != NULL) { | if (vmcore != NULL) { | ||||
add_arg(&args, "-ex"); | add_arg(&args, "-ex"); | ||||
if (asprintf(&s, "target vmcore %s", vmcore) < 0) | if (asprintf(&s, "target vmcore %s", vmcore) < 0) | ||||
err(1, "couldn't build command line"); | err(1, "couldn't build command line"); | ||||
add_arg(&args, s); | add_arg(&args, s); | ||||
} | } | ||||
Show All 18 Lines |