]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix memory leak of the demangled symbol name
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
57d75002
CB
12020-01-09 Christian Biesinger <cbiesinger@google.com>
2
3 * symtab.c (general_symbol_info::compute_and_set_names): Move the
4 unique_xmalloc_ptr outside the if to always free the demangled name.
5
6a053cb1
TT
62020-01-08 Tom Tromey <tromey@adacore.com>
7
8 * xcoffread.c (enter_line_range, read_xcoff_symtab)
9 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12 Remove.
13 (section_offsets): New typedef.
14 * symtab.c (fixup_section, get_msymbol_address): Update.
15 * symmisc.c (dump_msymbols): Update.
16 * symfile.h (relative_addr_info_to_section_offsets)
17 (symfile_map_offsets_to_segments): Update.
18 * symfile.c (build_section_addr_info_from_objfile)
19 (init_objfile_sect_indices): Update.
20 (struct place_section_arg): Change type of "offsets".
21 (place_section): Update.
22 (relative_addr_info_to_section_offsets): Change type of
23 "section_offsets". Remove "num_sections" parameter.
24 (default_symfile_offsets, syms_from_objfile_1)
25 (set_objfile_default_section_offset): Update.
26 (reread_symbols): No need to preserve section offsets by hand.
27 (symfile_map_offsets_to_segments): Change type of "offsets".
28 * stap-probe.c (relocate_address): Update.
29 * stabsread.h (process_one_symbol): Update.
30 * solib-target.c (struct lm_info_target) <offsets>: Change type.
31 (solib_target_relocate_section_addresses): Update.
32 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
33 Update.
34 * solib-frv.c (frv_relocate_main_executable): Update.
35 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
36 * solib-aix.c (solib_aix_get_section_offsets): Change return
37 type.
38 (solib_aix_solib_create_inferior_hook): Update.
39 * remote.c (remote_target::get_offsets): Update.
40 * psymtab.c (find_pc_sect_psymtab): Update.
41 * psympriv.h (struct partial_symbol) <address, text_low,
42 text_high>: Update.
43 * objfiles.h (obj_section_offset): Update.
44 (struct objfile) <section_offsets>: Change type.
45 <num_sections>: Remove.
46 (objfile_relocate): Update.
47 * objfiles.c (entry_point_address_query): Update
48 (relocate_one_symbol): Change type of "section_offsets".
49 (objfile_relocate1, objfile_relocate1): Change type of
50 "new_offsets".
51 (objfile_rebase1): Update.
52 * mipsread.c (mipscoff_symfile_read): Update.
53 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
54 parameter.
55 * mdebugread.c (parse_symbol): Change type of "section_offsets".
56 (parse_external, psymtab_to_symtab_1): Update.
57 * machoread.c (macho_symfile_offsets): Update.
58 * ia64-tdep.c (ia64_find_unwind_table): Update.
59 * hppa-tdep.c (read_unwind_info): Update.
60 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
61 * dwarf2read.c (create_addrmap_from_index)
62 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
63 (process_psymtab_comp_unit_reader, add_partial_symbol)
64 (add_partial_subprogram, process_full_comp_unit)
65 (read_file_scope, read_func_scope, read_lexical_block_scope)
66 (read_call_site_scope, dwarf2_rnglists_process)
67 (dwarf2_ranges_process, dwarf2_ranges_read)
68 (dwarf_decode_lines_1, var_decode_location, new_symbol)
69 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
70 Update.
71 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
72 Update.
73 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
74 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
75 (process_one_symbol): Change type of "section_offsets".
76 * ctfread.c (get_objfile_text_range): Update.
77 * coffread.c (coff_symtab_read, enter_linenos)
78 (process_coff_symbol): Update.
79 * coff-pe-read.c (add_pe_forwarded_sym): Update.
80 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
81
456e800a
TT
822020-01-08 Tom Tromey <tromey@adacore.com>
83
84 * dwarf2read.c (parse_macro_definition): Use std::string.
85 (parse_macro_definition): Likewise.
86
6dfa2fc2
TT
872020-01-08 Tom Tromey <tromey@adacore.com>
88
89 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
90 (ATTR_ALLOC_CHUNK): Remove.
91
421d1616
TT
922020-01-08 Tom Tromey <tromey@adacore.com>
93
94 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
95
43816ebc
TT
962020-01-08 Tom Tromey <tromey@adacore.com>
97
98 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
99 (dwarf2_compute_name, open_dwo_file): Likewise.
100 (process_enumeration_scope): Use std::vector.
101 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
102 (partial_die_info::fixup, dwarf2_start_subfile)
103 (guess_full_die_structure_name, dwarf2_name): Likewise.
104 (determine_prefix): Update.
105 (guess_full_die_structure_name): Make return type const.
106 (partial_die_full_name): Return unique_xmalloc_ptr.
107 (DW_FIELD_ALLOC_CHUNK): Remove.
108
4212d509
TT
1092020-01-07 Tom Tromey <tromey@adacore.com>
110
111 PR build/24937:
112 * stap-probe.c (class stap_static_probe_ops): Add constructor.
113
06a6207a
JT
1142020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
115
116 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
117
153d79c4
AB
1182020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * stack.c (print_frame_info): Move disassemble_next_line code
121 inside source_print block.
122
66182876
EZ
1232020-01-06 Eli Zaretskii <eliz@gnu.org>
124
125 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
126 gdb/signals.h, as we are now using native signal symbols.
127
cbfa8581
SV
1282020-01-06 Shahab Vahedi <shahab@synopsys.com>
129
130 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
131 overflow by an early check of content vs threshold.
132 * tui/tui-source.c (tui_source_window::line_is_displayed):
133 Likewise.
134
3f602821
EZ
1352020-01-06 Eli Zaretskii <eliz@gnu.org>
136
137 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
138
a08c904d
JT
1392020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
140
141 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
142 export table if no section contains it's RVA.
143
89a65580
EZ
1442020-01-06 Eli Zaretskii <eliz@gnu.org>
145
146 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
147
8b7fcda2
HD
1482020-01-06 Hannes Domani <ssbssa@yahoo.de>
149
150 * source.c (print_source_lines_base): Set last_line_listed.
151
a61b4f69
SV
1522020-01-06 Shahab Vahedi <shahab@synopsys.com>
153
154 * tui/tui-disasm.c: Remove trailing spaces.
155
559e7e50
EZ
1562020-01-06 Eli Zaretskii <eliz@gnu.org>
157 Pedro Alves <palves@redhat.com>
158
159 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
160 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
161 (windows_gdb_signal_to_target): New function, uses the above
162 enumeration to convert GDB internal signal codes to equivalent
163 Windows codes.
164 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
165 * windows-nat.c: Include "gdb_wait.h".
166 (get_windows_debug_event): Extract the fatal exception from the
167 exit status and convert to the equivalent Posix signal number.
168 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
169 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
170 * gdbsupport/gdb_wait.c: New file, implements
171 windows_status_to_termsig.
172 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
173 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
174
f2302a34
AB
1752020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
176
177 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
178 show_layout.
179
6a5206eb
LM
1802020-01-05 Luis Machado <luis.machado@linaro.org>
181
182 * aarch64-linux-nat.c
183 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
184 and bfd_mach_aarch64.
185
6ec1d75e
PW
1862020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
187
188 * ui-file.c (stdio_file::can_emit_style_escape)
189 (tee_file::can_emit_style_escape): Ensure style is used also on
190 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
191 to gdb_stdout.
192 * main.c (set_gdb_data_directory): Use file style to output the
193 warning that the given pathname is not a directory.
194 * top.c (show_history_filename, gdb_safe_append_history)
195 (show_gdb_datadir): Use file style.
196
44f81a76
HD
1972020-01-03 Hannes Domani <ssbssa@yahoo.de>
198
199 * solib-target.c (struct lm_info_target):
200 Change offsets to be a unique_xmalloc_ptr.
201 (solib_target_relocate_section_addresses): Update.
202
25057eb0
HD
2032020-01-03 Hannes Domani <ssbssa@yahoo.de>
204
205 * windows-nat.c (windows_clear_solib): Free so_list linked list.
206
6e2118f5
BE
2072020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
208
209 * MAINTAINERS (Write After Approval): Add myself.
210
8133c7dc
LM
2112020-01-02 Luis Machado <luis.machado@linaro.org>
212
213 * proc-service.c (get_ps_regcache): Remove reference to obsolete
214 Cell BE architecture.
215 * target.h (struct target_ops) <thread_architecture>: Likewise.
216
48189bec
HD
2172020-01-01 Hannes Domani <ssbssa@yahoo.de>
218
219 * Makefile.in: Use INSTALL_PROGRAM_ENV.
220
ead1063b
HD
2212020-01-01 Hannes Domani <ssbssa@yahoo.de>
222
223 * MAINTAINERS (Write After Approval): Add myself.
224
e5d78223
JB
2252020-01-01 Joel Brobecker <brobecker@adacore.com>
226
227 * gdbarch.sh: Update copyright year range of generated files.
228
b811d2c2
JB
2292020-01-01 Joel Brobecker <brobecker@adacore.com>
230
231 Update copyright year range in all GDB files.
232
5f4def5c
JB
2332020-01-01 Joel Brobecker <brobecker@adacore.com>
234
235 * copyright.py: Convert to Python 3.
236
51fd4002
JB
2372020-01-01 Joel Brobecker <brobecker@adacore.com>
238
239 * copyright.py: Adapt after move of gnulib directory from gdb
240 directory to toplevel directory.
241
5fb651f2
JB
2422020-01-01 Joel Brobecker <brobecker@adacore.com>
243
244 * copyright.py (main): Exit if run from the wrong directory.
245
5dd8bf88
JB
2462020-01-01 Joel Brobecker <brobecker@adacore.com>
247
248 * top.c (print_gdb_version): Change copyright year to 2020.
249
9f71dacb 2502020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 251
9f71dacb 252 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 253
9f71dacb 254For older changes see ChangeLog-2019.
c906108c
SS
255\f
256Local Variables:
257mode: change-log
258left-margin: 8
259fill-column: 74
260version-control: never
57da7796 261coding: utf-8
c906108c 262End: