Follow-up Comment #2, bug #34302 (project avrdude):

The patch needs also an avr_dup_opcode() function to duplicate the 
op-array (OPCODE * op[AVR_OP_MAX]; /* opcodes */) in AVRPART and AVRMEM
structures.

If you just copy the array without to duplicate the entries you get a problem
when someone defines an op code for the new part different than its parent.


BTW: An avr_part_free function would be nice in case anyone uses libavrdude
and reads (several) times a config file and wants later  to free all the stuff
that was created at reading the config file.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?34302>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to