aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-lang.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-06-11 18:05:57 +0000
committerPedro Alves <palves@redhat.com>2013-06-11 18:05:57 +0000
commit030031eed5425623865069a6083de8210c3769df (patch)
tree50240ae320eca7a767bc40d27886206bc8d68a59 /gdb/go-lang.c
parent5da6eb0a109d09cf64a82417e92bdf2f80bbda0e (diff)
downloadgdb-030031eed5425623865069a6083de8210c3769df.zip
gdb-030031eed5425623865069a6083de8210c3769df.tar.gz
gdb-030031eed5425623865069a6083de8210c3769df.tar.bz2
Lazily allocate 'struct regsets_info'::disabled_regsets.
There's no need for every arch to pre-allocate disabled_regsets. Chances are the array won't be used. (I have a hunch that with some more work we could dispense with initialize_regsets_info.) Tested on x86_64 Fedora 17 w/ -lmcheck. gdb/gdbserver/ 2013-06-11 Pedro Alves <palves@redhat.com> * linux-low.c (regset_disabled, disable_regset): New functions. (regsets_fetch_inferior_registers) (regsets_store_inferior_registers): Use them. (initialize_regsets_info); Don't allocate the disabled_regsets array here. * linux-low.h (struct regsets_info) <disabled_regsets>: Extend comment.
Diffstat (limited to 'gdb/go-lang.c')
0 files changed, 0 insertions, 0 deletions