* regcache.c (new_register_cache): Return NULL if the register
authorPedro Alves <palves@redhat.com>
Mon, 8 Sep 2008 21:16:18 +0000 (21:16 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 8 Sep 2008 21:16:18 +0000 (21:16 +0000)
commit5822d809e73ed680e384213620a148b2e86c3b13
tree779cf95fe8f27667b9f74c8b15cc3db6b7490c44
parentde9f48f0c431c9dcbee390a7ba8aad1a4f45128c
* regcache.c (new_register_cache): Return NULL if the register
cache size isn't known yet.
(free_register_cache): Avoid dereferencing a NULL regcache.
gdb/gdbserver/ChangeLog
gdb/gdbserver/regcache.c