mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 02:37:23 +08:00
gdb: remove COMPUNIT_PRODUCER macro, add getter/setter
Add a getter and a setter for a compunit_symtab's producer. Remove the corresponding macro and adjust all callers. Change-Id: Ia1d6d8a0e247a08a21af23819d71e49b37d8931b
This commit is contained in:

committed by
Simon Marchi

parent
422f1ea279
commit
ab5f850eed
@ -132,9 +132,9 @@ stpy_get_producer (PyObject *self, void *closure)
|
||||
|
||||
STPY_REQUIRE_VALID (self, symtab);
|
||||
cust = SYMTAB_COMPUNIT (symtab);
|
||||
if (COMPUNIT_PRODUCER (cust) != NULL)
|
||||
if (cust->producer () != nullptr)
|
||||
{
|
||||
const char *producer = COMPUNIT_PRODUCER (cust);
|
||||
const char *producer = cust->producer ();
|
||||
|
||||
return host_string_to_python_string (producer).release ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user