diff options
author | Lancelot SIX <lancelot.six@amd.com> | 2022-03-07 17:36:53 +0000 |
---|---|---|
committer | Lancelot SIX <lancelot.six@amd.com> | 2022-04-04 23:03:32 +0100 |
commit | 6cacd78ba5bb705e127d60478c71955b37914c53 (patch) | |
tree | 57ea0c7a6068ff6a199aebedbae439c0b8226bb8 /gdb/buildsym-legacy.c | |
parent | 962937b15dd570e44109f3c8196a392b788837ba (diff) | |
download | fsf-binutils-gdb-6cacd78ba5bb705e127d60478c71955b37914c53.zip fsf-binutils-gdb-6cacd78ba5bb705e127d60478c71955b37914c53.tar.gz fsf-binutils-gdb-6cacd78ba5bb705e127d60478c71955b37914c53.tar.bz2 |
gdb/buildsym: Line record use a record flag
Currently when recording a line entry (with
buildsym_compunit::record_line), a boolean argument argument is used to
indicate that the is_stmt flag should be set for this particular record.
As a later commit will add support for new flags, instead of adding a
parameter to record_line for each possible flag, transform the current
is_stmt parameter into a enum flag. This flags parameter will allow
greater flexibility in future commits.
This enum flags type is not propagated into the linetable_entry type as
this would require a lot of changes across the codebase for no practical
gain (it currently uses a bitfield where each interesting flag only
occupy 1 bit in the structure).
Tested on x86_64-linux, no regression observed.
Change-Id: I5d061fa67bdb34918742505ff983d37453839d6a
Diffstat (limited to 'gdb/buildsym-legacy.c')
-rw-r--r-- | gdb/buildsym-legacy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/buildsym-legacy.c b/gdb/buildsym-legacy.c index b16c978..490eef9 100644 --- a/gdb/buildsym-legacy.c +++ b/gdb/buildsym-legacy.c @@ -210,7 +210,7 @@ record_line (struct subfile *subfile, int line, CORE_ADDR pc) gdb_assert (buildsym_compunit != nullptr); /* Assume every line entry is a statement start, that is a good place to put a breakpoint for that line number. */ - buildsym_compunit->record_line (subfile, line, pc, true); + buildsym_compunit->record_line (subfile, line, pc, LEF_IS_STMT); } /* Start a new compunit_symtab for a new source file in OBJFILE. Called, for |