Constify linetables
Linetables no longer change after they are created. This patch
applies const to them.
Note there is one hack to cast away const in mdebugread.c. This code
allocates a linetable using 'malloc', then later copies it to the
obstack. While this could be cleaned up, I chose not to do so because
I have no way of testing it.
Approved-By:
Simon Marchi <simon.marchi@efficios.com>
Showing
- gdb/buildsym.c 7 additions, 5 deletionsgdb/buildsym.c
- gdb/disasm.c 1 addition, 1 deletiongdb/disasm.c
- gdb/jit.c 5 additions, 3 deletionsgdb/jit.c
- gdb/linespec.c 3 additions, 3 deletionsgdb/linespec.c
- gdb/mdebugread.c 4 additions, 1 deletiongdb/mdebugread.c
- gdb/python/py-linetable.c 5 additions, 6 deletionsgdb/python/py-linetable.c
- gdb/record-btrace.c 2 additions, 2 deletionsgdb/record-btrace.c
- gdb/symmisc.c 3 additions, 3 deletionsgdb/symmisc.c
- gdb/symtab.c 20 additions, 20 deletionsgdb/symtab.c
- gdb/symtab.h 4 additions, 4 deletionsgdb/symtab.h
Loading
Please register or sign in to comment