Lines Matching refs:core

277 read_hdr (bfd *abfd, CoreHdr *core)  in read_hdr()  argument
287 if (bfd_bread (core, size, abfd) != size) in read_hdr()
291 if (CORE_NEW (*core)) in read_hdr()
292 size = sizeof (core->new_dump); in read_hdr()
294 size = sizeof (core->old); in read_hdr()
296 return bfd_bread ((char *) core + CORE_COMMONSZ, size, abfd) == size; in read_hdr()
323 CoreHdr core; in rs6000coff_core_p() local
336 if (!read_hdr (abfd, &core)) in rs6000coff_core_p()
344 if (CORE_NEW (core) && CNEW_IS_CORE_DUMPXX (core)) in rs6000coff_core_p()
351 if (CORE_NEW (core)) in rs6000coff_core_p()
353 c_flag = core.new_dump.c_flag; in rs6000coff_core_p()
354 c_stack = (file_ptr) core.new_dump.c_stack; in rs6000coff_core_p()
355 c_size = core.new_dump.c_size; in rs6000coff_core_p()
356 c_stackend = CNEW_STACKORG (core.new_dump) + c_size; in rs6000coff_core_p()
357 c_lsize = CNEW_LSIZE (core.new_dump); in rs6000coff_core_p()
358 c_loader = CNEW_LOADER (core.new_dump); in rs6000coff_core_p()
359 proc64 = CNEW_PROC64 (core.new_dump); in rs6000coff_core_p()
363 c_flag = core.old.c_flag; in rs6000coff_core_p()
364 c_stack = (file_ptr) (ptr_to_uint) core.old.c_stack; in rs6000coff_core_p()
365 c_size = core.old.c_size; in rs6000coff_core_p()
368 c_loader = (file_ptr) (ptr_to_uint) COLD_LOADER (core.old); in rs6000coff_core_p()
374 c_regsize = sizeof (CNEW_CONTEXT64 (core.new_dump)); in rs6000coff_core_p()
375 c_regptr = &CNEW_CONTEXT64 (core.new_dump); in rs6000coff_core_p()
377 else if (CORE_NEW (core)) in rs6000coff_core_p()
379 c_regsize = sizeof (CNEW_MSTSAVE (core.new_dump)); in rs6000coff_core_p()
380 c_regptr = &CNEW_MSTSAVE (core.new_dump); in rs6000coff_core_p()
384 c_regsize = sizeof (COLD_MSTSAVE (core.old)); in rs6000coff_core_p()
385 c_regptr = &COLD_MSTSAVE (core.old); in rs6000coff_core_p()
387 c_regoff = (char *) c_regptr - (char *) &core; in rs6000coff_core_p()
436 if (!CORE_NEW (core) && (c_loader < (file_ptr) sizeof core.old || in rs6000coff_core_p()
450 size = CORE_NEW (core) ? sizeof (core.new_dump) : sizeof (core.old); in rs6000coff_core_p()
456 memcpy (tmpptr, &core, size); in rs6000coff_core_p()
460 if (CORE_NEW (core)) in rs6000coff_core_p()
465 switch (CNEW_IMPL (core.new_dump)) in rs6000coff_core_p()
513 (bfd_size_type) core.old.c_u.u_dsize, in rs6000coff_core_p()
515 CDATA_ADDR (core.old.c_u.u_dsize), in rs6000coff_core_p()
536 if (CORE_NEW (core)) in rs6000coff_core_p()
538 c_datasize = CNEW_DATASIZE (core.new_dump); in rs6000coff_core_p()
539 c_data = (file_ptr) core.new_dump.c_data; in rs6000coff_core_p()
540 c_vmregions = core.new_dump.c_vmregions; in rs6000coff_core_p()
541 c_vmm = (file_ptr) core.new_dump.c_vmm; in rs6000coff_core_p()
545 c_datasize = core.old.c_datasize; in rs6000coff_core_p()
546 c_data = (file_ptr) (ptr_to_uint) core.old.c_data; in rs6000coff_core_p()
547 c_vmregions = core.old.c_vmregions; in rs6000coff_core_p()
548 c_vmm = (file_ptr) (ptr_to_uint) core.old.c_vmm; in rs6000coff_core_p()
616 size = CORE_NEW (core) ? sizeof (vminfo.new_dump) : sizeof (vminfo.old); in rs6000coff_core_p()
620 if (CORE_NEW (core)) in rs6000coff_core_p()
658 CoreHdr core; in rs6000coff_core_file_matches_executable_p() local
666 if (!read_hdr (core_bfd, &core)) in rs6000coff_core_file_matches_executable_p()
669 if (CORE_NEW (core)) in rs6000coff_core_file_matches_executable_p()
670 c_loader = CNEW_LOADER (core.new_dump); in rs6000coff_core_file_matches_executable_p()
672 c_loader = (file_ptr) (ptr_to_uint) COLD_LOADER (core.old); in rs6000coff_core_file_matches_executable_p()
674 if (CORE_NEW (core) && CNEW_PROC64 (core.new_dump)) in rs6000coff_core_file_matches_executable_p()
734 CoreHdr *core = core_hdr (abfd); in rs6000coff_core_file_failing_command() local
735 char *com = CORE_NEW (*core) ? in rs6000coff_core_file_failing_command()
736 CNEW_COMM (core->new_dump) : COLD_COMM (core->old); in rs6000coff_core_file_failing_command()
747 CoreHdr *core = core_hdr (abfd); in rs6000coff_core_file_failing_signal() local
748 return CORE_NEW (*core) ? core->new_dump.c_signo : core->old.c_signo; in rs6000coff_core_file_failing_signal()