Move savestring to common/common-utils.c, make gdbserver use it.
authorPedro Alves <palves@redhat.com>
Thu, 14 Feb 2013 17:11:41 +0000 (17:11 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 14 Feb 2013 17:11:41 +0000 (17:11 +0000)
commitbaea0daecf9393f9f21bce1b2575133ae9264a1c
tree7a33ac227575c8adf2ab645799140dcf9da32449
parent57c3b6ede58a103b97baa10bef7d9d9031d2269b
Move savestring to common/common-utils.c, make gdbserver use it.

This makes gdbserver share gdb's savestring, instead of baking its own.

Tested on x86_64 Fedora 17.

gdb/
2013-02-14  Pedro Alves  <palves@redhat.com>

* utils.c (savestring): Don't #undef it.  Move function to
common/common-utils.c.
* common/common-utils.c: Include gdb_string.h.
(savestring): Move here from utils.c.
* common/common-utils.h (savestring): Declare.

gdb/gdbserver/
2013-02-14  Pedro Alves  <palves@redhat.com>

* tracepoint.c (save_string): Delete.
(add_tracepoint_action): Use savestring instead of save_string.
gdb/ChangeLog
gdb/common/common-utils.c
gdb/common/common-utils.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c
gdb/utils.c