Home
last modified time | relevance | path

Searched refs:corefile (Results 1 – 16 of 16) sorted by relevance

/original-bsd/old/dbx/
H A Dcoredump.c59 corefile, in coredump_getkerinfo()
63 get(corefile, masterpcbb); in coredump_getkerinfo()
97 fread(up, ctob(UPAGES), 1, corefile);
140 fclose(corefile);
184 vreadfromfile(corefile, a, buff, nbytes);
186 readfromfile(corefile, a, buff, nbytes);
196 private vreadfromfile (corefile, v, buff, nbytes) in vreadfromfile() argument
197 File corefile; in vreadfromfile()
210 readfromfile(corefile, vmap(a), buff, nbytes);
212 readfromfile(corefile, vmap(a), buff, remainder);
[all …]
H A Dmain.c77 public File corefile; /* File id of core dump */ variable
319 corefile = nil;
376 corefile = fopen(*argv, "r");
377 if (corefile == nil)
412 if (coredump and corefile == nil) { in openfiles()
415 corefile = fopen(corename, "r"); in openfiles()
416 if (corefile == nil) { in openfiles()
421 corefile = fopen(corename, "r"); in openfiles()
422 if (corefile == nil) { in openfiles()
H A Dtahoe.c937 fseek(corefile, masterpcbb & ~0xc0000000, 0); in getpcb()
938 get(corefile, pcb); in getpcb()
1046 fseek(corefile, addr, 0);
1047 if (fread(&pte, sizeof (pte), 1, corefile) != 1)
H A Dvax.c1169 fseek(corefile, masterpcbb & ~0x80000000, 0); in getpcb()
1170 get(corefile, pcb); in getpcb()
1279 fseek(corefile, r, 0);
1280 n = fread(&pte, sizeof(pte), 1, corefile);
H A Diris.c1602 fseek(corefile, masterpcbb & ~0x80000000, 0); in getpcb()
1603 get(corefile, pcb); in getpcb()
1707 fseek(corefile, r, 0);
1708 n = fread(&pte, sizeof(pte), 1, corefile);
H A Dsun.c1602 fseek(corefile, masterpcbb & ~0x80000000, 0); in getpcb()
1603 get(corefile, pcb); in getpcb()
1707 fseek(corefile, r, 0);
1708 n = fread(&pte, sizeof(pte), 1, corefile);
H A Dprocess.c183 fclose(corefile);
/original-bsd/usr.bin/gcore/
H A Dgcore.c70 char *corefile, errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN + 1]; local
73 corefile = NULL;
77 corefile = optarg;
116 if (corefile == NULL) {
118 corefile = fname;
120 fd = open(corefile, O_RDWR|O_CREAT|O_TRUNC, DEFFILEMODE);
122 err(1, "%s: %s\n", corefile, strerror(errno));
/original-bsd/old/adb/common_source/
H A Dmain.c66 corefile.name = "core";
85 corefile.name = argv[2];
169 fname = corefile.name;
H A Dsetup.c123 if ((datmap.ufd = corefile.fd = getfile(2)) < 0) in setcore()
129 if (read(corefile.fd, (char *)&u, ctob(UPAGES)) != ctob(UPAGES) || in setcore()
131 adbprintf("not core file = %s\n", corefile.name); in setcore()
H A Dprint.c199 m->ufd == corefile.fd ? corefile.name : symfile.name);
H A Daccess.c114 if (lseek(corefile.fd, off, L_SET) == -1)
116 return (read(corefile.fd, addr, len));
H A Ddefs.h46 } symfile, corefile; variable
H A Dcommand.c241 smap->ufd = corefile.fd;
H A Dpcs.c470 (void) close(corefile.fd); in bpwait()
/original-bsd/contrib/gdb-4.7.LBL/gdb/
H A Dmain.c524 do_core_arg(corefile, batch) in do_core_arg() argument
525 char *corefile; in do_core_arg()
533 if (corefile[0] == '@')
535 remote_open(corefile, 0);
536 else if (stat(corefile, &stb) == 0) {
547 kernel_core_open(corefile, !batch);
549 remote_open(corefile, !batch);
552 kernel_core_open(corefile, !batch);
556 } else if (isdigit(corefile[0]))
557 attach_command(corefile, !batch);
[all …]