This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] findvar.c: support LOC_BASEREG[_ARG] on Harvard archs



>> -	char *buf = (char*) alloca (MAX_REGISTER_RAW_SIZE);
>> +	value_ptr regval;


value_ptr is really ``struct value *'' so ...


>> +	regval = value_from_register (lookup_pointer_type (type),
>> +				      SYMBOL_BASEREG (var), frame);
>> +	if (regval == NULL)
>> +	  error ("Value of base register not available.");
>> +	addr = value_as_pointer (regval);


I suspect you need xfree() or the like.

	Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]