gdb: Split print_symbol_info into two parts
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 24 Sep 2019 22:22:05 +0000 (23:22 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 27 Nov 2019 12:01:48 +0000 (12:01 +0000)
commit5f512a7dd0df1205630e9edfaa84f2e9a8fb8771
treecedd04985fcb599854b25e0f5dc7b2cc4147b7c2
parent470c0b1c9a1d69e3c4f9281600399b1dadd40614
gdb: Split print_symbol_info into two parts

Split the function print_symbol_info into two parts, the new worker
core returns a string, which print_symbol_info then prints.  This will
be useful in a later commit when some new MI commands will be added
which will use the worker core to fill some MI output fields.

There should be no user visible changes after this commit.

gdb/ChangeLog:

* symtab.c (symbol_to_info_string): New function, most content
moved from print_symbol_info, but updated to return a std::string.
(print_symbol_info): Update to use symbol_to_info_string and print
returned string.
* symtab.h (symbol_to_info_string): Declare new function.

Change-Id: I6454ce43cacb61d32fbadb9e3655e70823085777
gdb/ChangeLog
gdb/symtab.c
gdb/symtab.h
This page took 0.025291 seconds and 4 git commands to generate.