2009-10-15 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Sun, 18 Oct 2009 16:10:42 +0000 (16:10 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sun, 18 Oct 2009 16:10:42 +0000 (16:10 +0000)
commit44389f9b9a5bb3f473fb244dbc570680f93b36e5
tree8ed5ff0facd641d6a3030b89e7e77758697360c1
parentc5ed243be1a6f9e44fdf02257c5b2ff8d5bca7d5
2009-10-15  Michael Snyder  <msnyder@vmware.com>

* record.c (struct record_reg_entry): Replace ptr with union
of ptr and buf.
(struct record_mem_entry): Ditto.
(record_reg_alloc): Don't alloc ptr if reg will fit into buf.
(record_mem_alloc): Ditto.
(record_reg_release): Don't free ptr if reg was stored in buf.
(record_mem_release): Ditto.
(record_get_loc): New function.  Return a pointer to where the
value (mem or reg) is to be stored.
(record_arch_list_add_reg): Call record_get_loc instead of using ptr.
(record_arch_list_add_mem): Ditto.
(record_wait): Ditto.
gdb/ChangeLog
gdb/record.c