process.cc (12448:b299e560f1d8) process.cc (13028:9a09c342891e)
1/*
2 * Copyright (c) 2003-2004 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 361 unchanged lines hidden (view full) ---

370 (uint8_t*)&sentry_NULL, sentry_size);
371
372 // Write the file name
373 initVirtMem.writeString(file_name_base, filename.c_str());
374
375 // Copy the aux stuff
376 for (int x = 0; x < auxv.size(); x++) {
377 initVirtMem.writeBlob(auxv_array_base + x * 2 * intSize,
1/*
2 * Copyright (c) 2003-2004 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 361 unchanged lines hidden (view full) ---

370 (uint8_t*)&sentry_NULL, sentry_size);
371
372 // Write the file name
373 initVirtMem.writeString(file_name_base, filename.c_str());
374
375 // Copy the aux stuff
376 for (int x = 0; x < auxv.size(); x++) {
377 initVirtMem.writeBlob(auxv_array_base + x * 2 * intSize,
378 (uint8_t*)&(auxv[x].a_type), intSize);
378 (uint8_t*)&(auxv[x].getAuxType()), intSize);
379 initVirtMem.writeBlob(auxv_array_base + (x * 2 + 1) * intSize,
379 initVirtMem.writeBlob(auxv_array_base + (x * 2 + 1) * intSize,
380 (uint8_t*)&(auxv[x].a_val), intSize);
380 (uint8_t*)&(auxv[x].getAuxVal()), intSize);
381 }
382
383 // Write out the terminating zeroed auxilliary vector
384 const IntType zero = 0;
385 initVirtMem.writeBlob(auxv_array_base + intSize * 2 * auxv.size(),
386 (uint8_t*)&zero, intSize);
387 initVirtMem.writeBlob(auxv_array_base + intSize * (2 * auxv.size() + 1),
388 (uint8_t*)&zero, intSize);

--- 175 unchanged lines hidden ---
381 }
382
383 // Write out the terminating zeroed auxilliary vector
384 const IntType zero = 0;
385 initVirtMem.writeBlob(auxv_array_base + intSize * 2 * auxv.size(),
386 (uint8_t*)&zero, intSize);
387 initVirtMem.writeBlob(auxv_array_base + intSize * (2 * auxv.size() + 1),
388 (uint8_t*)&zero, intSize);

--- 175 unchanged lines hidden ---