gdb: use std::string in partial_symtab::partial_symtab / allocate_symtab
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 2 Apr 2021 15:39:55 +0000 (11:39 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 2 Apr 2021 15:39:55 +0000 (11:39 -0400)
commit9984dd9994c3d71fd28f41c50cdece48d6be13a6
treec1558384491c1187e4e664f061cdeb0f89517891
parent4a4f97c129b26445ff14d0e5323feeb80610a539
gdb: use std::string in partial_symtab::partial_symtab / allocate_symtab

This simplifies the code a bit.

gdb/ChangeLog:

* psymtab.c (partial_symtab::partial_symtab): Change
last_objfile_name to be an std::string.
* symfile.c (allocate_symtab): Likewise.

Change-Id: I3dfe217233ed9346c2abc04a9b1be0df69a90af8
gdb/ChangeLog
gdb/psymtab.c
gdb/symfile.c