aboutsummaryrefslogtreecommitdiff
path: root/value.c
AgeCommit message (Collapse)Author
2012-10-30New function value_in_inferiorPetr Machata
2012-10-30In value_reserve, first release any already-allocated memoryPetr Machata
2012-10-30Also free memory associated with value type, if ownedPetr Machata
This plugs a leak.
2012-10-29struct value should differentiate between inferior and private addressPetr Machata
2012-08-29Add interface value_pass_by_reference, use in x86_64 back endPetr Machata
2012-08-29Don't name type in in sizeof expression, name variablePetr Machata
2012-08-29Set value by hand in value_reservePetr Machata
Because value_set_word needs a type set, to resolve (potential) endian issues. But we don't need this when all we do is set something to zero.
2012-08-29Resolve more issues on big endian machinesPetr Machata
We need to cover the other direction as well. Note that the assert in value_set_word currently fires. That's because when we are passing structs by value, those structs may be larger than what fits in long. We may need to add a heuristic to fetch.c to support legacy back ends. When those asserts are removed, most test suite actually passes (6 failures related to ABI support, 2 failures in filtering test).
2012-08-29Resolve some big endian issues in value.cPetr Machata
2012-08-29Rename value_set_long to value_set_wordPetr Machata
For consistency with value_extract_word
2012-08-29Drop ARGTYPE_STRING, reimplement as lens over array of charsPetr Machata
2012-08-29Add backend.h for backend interfacesPetr Machata
2012-08-29Add value_string_to_charpPetr Machata
- I consider this a temporary solution before ARGTYPE_STRING is removed. Since we need to handle strings as array(char, zero)*, it's necessary to do this conversion by hand every once in a while. This code implements such transformation.
2012-08-29Add expr.c, expr.h, plug in properlyPetr Machata
- in callstack_pop, we don't free arch_ptr. That's because this doesn't get copied over the clone. It's a mere coincidence that fork() doesn't need to save register arguments, and this works. - added copyright notices to files that this touches. This is based on git blame. Only contributors of 10+ lines are added - test suite adjusted to not include "void" type as "don't show this int". Back ends in general need to know the exact type, so this never worked anyway.
2012-08-29Add type.c/.h, value.c/.h, value_dict.c/.hPetr Machata
- none of this is plugged in yet - expr.c/.h is not in yet, so we still express array length with len_spec integer. Some function are mocked out so the thing compiles