* README: Update coding style link.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
59be2b6a
DE
12013-02-05 Doug Evans <dje@google.com>
2
3 * completer.c (location_completer): Fix typo in comment.
4
d30113d4
JK
52013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6
7 * breakpoint.c (add_location_to_breakpoint): Insert the location with
8 ADDRESS sorted.
9
14ac654f
MS
102013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11
12 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
13 Refactor if statement to avoid trailing || operator.
14
543bf33d
AT
152013-02-05 Andreas Tobler <andreast@fgznet.ch>
16
17 * NEWS: Add PowerPC FreeBSD as a new native configuration.
18
dc18f110
AT
192013-02-04 Andreas Tobler <andreast@fgznet.ch>
20
21 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
22 * configure.host: Add powerpc*-*-freebsd* target.
23 * configure.tgt: Add target info for powerpc*-*-freebsd*.
24 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
25 * config/powerpc/fbsd.mh: New file.
26
b3ac9c77
SDJ
272013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
28 Denys Vlasenko <dvlasenk@redhat.com>
29 Pedro Alves <palves@redhat.com>
30
31 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
32 (struct elf_internal_linux_prpsinfo): Forward declare.
33 * gdbarch.h, gdbarch.c: Regenerate.
34 * linux-tdep.c: Include `cli/cli-utils.h'.
35 (linux_fill_prpsinfo): New function.
36 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
37 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
38 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
39 depending on gdbarch pointer bitness.
40 * ppc-linux-tdep.c: Include elf-bfd.h.
41 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
42 on 32-bit.
43
176eb98c
MS
442013-02-04 Jim MacArthur <jim.macarthur@arm.com>
45 Marcus Shawcroft <marcus.shawcroft@arm.com>
46 Nigel Stephens <nigel.stephens@arm.com>
47 Yufeng Zhang <yufeng.zhang@arm.com>
48
49 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
50
cf0dbd6f
MS
512013-02-04 Jim MacArthur <jim.macarthur@arm.com>
52 Marcus Shawcroft <marcus.shawcroft@arm.com>
53 Nigel Stephens <nigel.stephens@arm.com>
54 Yufeng Zhang <yufeng.zhang@arm.com>
55
56 * aarch64-newlib-tdep.c: New file.
57 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
58 aarch64*-*-elf.
59 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
60 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
61 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
62 * osabi.c (gdb_osabi_names): Add "Newlib".
63
1ae3db19
MS
642013-02-04 Jim MacArthur <jim.macarthur@arm.com>
65 Marcus Shawcroft <marcus.shawcroft@arm.com>
66 Nigel Stephens <nigel.stephens@arm.com>
67 Yufeng Zhang <yufeng.zhang@arm.com>
68
69 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
70 (ALLDEPFILES): Add aarch64-linux-tdep.c.
71 * aarch64-linux-tdep.c: New file.
72 * aarch64-linux-tdep.h: New file.
73 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
74 * configure.tgt: Add aarch64-none-linux-gnu.
75
07b287a0
MS
762013-02-04 Jim MacArthur <jim.macarthur@arm.com>
77 Marcus Shawcroft <marcus.shawcroft@arm.com>
78 Nigel Stephens <nigel.stephens@arm.com>
79 Yufeng Zhang <yufeng.zhang@arm.com>
80
81 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
82 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
83 (ALLDEPFILES): Add aarch64-tdep.c.
84 * aarch64-tdep.c: New file.
85 * aarch64-tdep.h: New file.
86 * configure.tgt: Add AArch64.
87 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
88 (aarch64-expedite): New definition.
89 * features/aarch64-core.xml: New file.
90 * features/aarch64-fpu.xml: New file.
91 * features/aarch64-without-fpu.c: New file (generated).
92 * features/aarch64-without-fpu.xml: New file.
93 * features/aarch64.c: New file (generated).
94 * features/aarch64.xml: New file.
95 * regformats/aarch64-without-fpu.dat: New file (generated).
96 * regformats/aarch64.dat: New file (generated).
97
0f1b18ab
JK
982013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
99
100 * contrib/expect-read1.c: New file.
101 * contrib/expect-read1.sh: New file.
102
233d95b5
JK
1032013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
104
105 * dwarf2read.c (file_file_name): New function with code from
106 file_full_name.
107 (file_full_name): Move most of the code to file_file_name.
108 (macro_start_file): Rename variable full_name to file_name and use
109 file_file_name for it. Add comp_dir parameter to new_macro_table.
110 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
111 macro_source_file->filename access by macro_source_fullname call.
112 * macroscope.c (_initialize_macroscope): Update the new_macro_table
113 caller.
114 * macrotab.c (struct macro_table): New field comp_dir.
115 (macro_include): New variables link_fullname and source_fullname.
116 Replace any macro_source_file->filename access by macro_source_fullname
117 call.
118 (macro_lookup_inclusion): Remove the partial filenames checking code.
119 (check_for_redefinition): New variables source_fullname and
120 found_key_fullname. Replace any macro_source_file->filename access by
121 macro_source_fullname call.
122 (macro_undef): New variables source_fullname and key_fullname. Replace
123 any macro_source_file->filename access by macro_source_fullname call.
124 (macro_lookup_definition): New variables retval and source_fullname.
125 Replace any macro_source_file->filename access by macro_source_fullname
126 call.
127 (foreach_macro): New variable key_fullname. Replace any
128 macro_source_file->filename access by macro_source_fullname call.
129 (foreach_macro_in_scope): New variable datum_fullname. Replace any
130 macro_source_file->filename access by macro_source_fullname call.
131 (new_macro_table): Add parameter comp_dir. Initialize T with it.
132 (macro_source_fullname): New function.
133 * macrotab.h (struct macro_source_file): Extent the filename field
134 comment.
135 (new_macro_table): New parameter comp_dir, add a comment for it.
136 (macro_source_fullname): new declaration.
137
da235a7c
JK
1382013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
139
140 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
141 this_real_name to outer block. Use it also for
142 compare_filenames_for_search.
143 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
144 with dw2_get_real_path for file_matcher, considering also
145 BASENAMES_MAY_DIFFER.
146 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
147
fbd9ab74
JK
1482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
149
150 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
151 to the file_matcher parameter. Pass 0 to it.
152 (dwarf2_create_include_psymtab): Copy also DIRNAME.
153 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
154 NULL psymtab_to_fullname result.
155 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
156 an expected filename instead.
157 (expand_symtabs_matching_via_partial): Add basenames parameter to the
158 file_matcher parameter. Call also psymtab_to_fullname, after newly
159 considering BASENAMES_MAY_DIFFER.
160 * source.c (rewrite_source_path): Remove static.
161 * source.h (rewrite_source_path): New declaration.
162 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
163 the expand_symtabs_matching field. Comment it.
164 * symtab.c (file_matches): New function comment. Add parameter
165 basenames, implement it.
166 (search_symbols_file_matches): Add basenames parameter. Update the
167 file_matches caller.
168 (search_symbols): Match FILES also against symtab_to_fullname.
169 Optimize it for BASENAMES_MAY_DIFFER.
170
56d397a3
JK
1712013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
172
173 * source.c (print_source_lines_base): Print for TUI also "fullname".
174 * tui/tui-data.c (init_content_element): Change tui_locator_element
175 field to full_name.
176 * tui/tui-data.h (struct tui_locator_element): Likewise.
177 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
178 tui_update_locator_filename calls to tui_update_locator_fullname.
179 Replace symtab->filename refererence by symtab_to_fullname call.
180 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
181 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
182 field to full_name. Replace symtab->filename refererence by
183 symtab_to_fullname call.
184 (tui_show_symtab_source): Rename parameter to fullname. Change
185 tui_locator_element field to full_name.
186 * tui/tui-stack.c: Include source.h.
187 (tui_set_locator_filename): Rename the declaration to ...
188 (tui_set_locator_fullname): ... here. Rename its parameter to
189 fullname, updates its comment.
190 (tui_set_locator_info): Rename its parameter to fullname.
191 (tui_set_locator_filename): Rename the definition to ...
192 (tui_set_locator_fullname): ... here. Rename its parameter to
193 fullname, updates its comment. Change tui_locator_element field to
194 full_name.
195 (tui_set_locator_info): Rename its parameter to fullname.
196 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
197 (tui_update_locator_filename): Rename to ...
198 (tui_update_locator_fullname): ... here. Rename callee to
199 tui_set_locator_fullname.
200 (tui_show_frame_info): Replace symtab->filename refererence by
201 symtab_to_fullname call.
202 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
203 (tui_update_locator_fullname): ... here.
204 * tui/tui-winsource.c (tui_display_main): Rename the callee to
205 tui_update_locator_fullname. Replace symtab->filename refererence by
206 symtab_to_fullname call.
207 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
208 Rename the callee to tui_update_locator_fullname.
209 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
210
05cba821
JK
2112013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
212
213 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
214 by symtab_to_filename_for_display calls.
215 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
216 (clear_command): New variable sal_fullname, initialize it. Replace
217 compare_filenames_for_search by filename_cmp with sal_fullname.
218 (say_where, update_static_tracepoint): Replace symtab->filename
219 refererences by symtab_to_filename_for_display calls.
220 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
221 Likewise.
222 * dwarf2read.c: Include source.h.
223 (fixup_go_packaging): Replace symtab->filename refererences by
224 symtab_to_filename_for_display calls.
225 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
226 Replace symtab->filename refererences by symtab_to_filename_for_display
227 calls.
228 (create_sals_line_offset, convert_linespec_to_sals): New variable
229 fullname, initialize it, replace symtab->filename reference by the
230 variable.
231 * linux-fork.c: Include source.h.
232 (info_checkpoints_command): Replace symtab->filename refererences by
233 symtab_to_filename_for_display calls.
234 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
235 by symtab_to_filename_for_display calls.
236 * mdebugread.c: Include source.h.
237 (psymtab_to_symtab_1): Replace symtab->filename refererences by
238 symtab_to_filename_for_display calls.
239 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
240 (mi_cmd_file_list_exec_source_files): Likewise.
241 * printcmd.c: Include source.h.
242 (build_address_symbolic): Replace symtab->filename refererences by
243 symtab_to_filename_for_display calls.
244 * psymtab.c (partial_map_symtabs_matching_filename)
245 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
246 with psymtab_to_fullname.
247 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
248 by symtab_to_filename_for_display calls.
249 (stpy_get_filename): New variable filename, initialize it, use instead
250 of symtab->filename refererences.
251 (salpy_str): Make variable filename const char *. Replace
252 symtab->filename refererences by symtab_to_filename_for_display calls.
253 * skip.c: Include source.h and filenames.h.
254 (skip_file_command): Remove const from the symtab variable. Replace
255 symtab->filename refererences by symtab_to_fullname call.
256 (function_name_is_marked_for_skip): New variables searched_for_fullname
257 and fullname. Use them to search also with symtab's fullname.
258 * source.c (find_source_lines): Replace symtab->filename refererences
259 by symtab_to_filename_for_display calls.
260 (print_source_lines_base): New variable filename, use it instead of
261 symtab->filename. Replace symtab->filename refererences by
262 symtab_to_filename_for_display calls.
263 (line_info, forward_search_command): Replace symtab->filename
264 refererences by symtab_to_filename_for_display calls.
265 (reverse_search_command): Replace symtab->filename refererences by
266 symtab_to_filename_for_display calls. New variable filename for it.
267 * stack.c (frame_info): Likewise.
268 * symmisc.c: Include source.h.
269 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
270 (maintenance_info_symtabs): Replace symtab->filename refererences by
271 symtab_to_filename_for_display calls.
272 * symtab.c (iterate_over_some_symtabs): Call
273 compare_filenames_for_search also with symtab_to_fullname.
274 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
275 symtab->filename refererences by symtab_to_filename_for_display calls.
276 (find_line_symtab): Replace symtab->filename refererences by
277 symtab_to_filename_for_display calls.
278 (file_matches): Replace filename_cmp by compare_filenames_for_search.
279 (print_symbol_info): Make the last parameter const char *. New
280 variable s_filename. Use it in the function.
281 (symtab_symbol_info): Make the last_filename variable const char *.
282 Replace symtab->filename refererences by symtab_to_filename_for_display
283 calls.
284 (rbreak_command): New variable fullname. Use it. Replace
285 symtab->filename refererence by symtab_to_filename_for_display call.
286 * tracepoint.c (set_traceframe_context, trace_find_line_command)
287 (print_one_static_tracepoint_marker): Replace symtab->filename
288 refererences by symtab_to_filename_for_display calls.
289 * tui/tui-source.c (tui_set_source_content): New variables filename and
290 s_filename. Replace symtab->filename refererences by this variable.
291 Replace other symtab->filename refererences by
292 symtab_to_filename_for_display calls.
293
1b56eb55
JK
2942013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
295 Jan Kratochvil <jan.kratochvil@redhat.com>
296
297 Add a new variable that controls a way in which filenames are
298 displayed.
299 * NEWS (set filename-display): New entry.
300 * source.c (filename_display_basename, filename_display_relative)
301 (filename_display_absolute, filename_display_kind_names)
302 (filename_display_string, show_filename_display_string)
303 (symtab_to_filename_for_display): New.
304 (_initialize_source): Added initialization of 'filename-display'
305 variable.
306 * source.h (symtab_to_filename_for_display): Added declaration.
307 * stack.c (print_frame): Added new variable and calling of a new
308 function and condition with this variable. Changed third argument of
309 calling of a function.
310
aa079c93
JK
3112013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
312
313 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
314 Rename field reference filename to fullname.
315 * tui/tui-data.h (struct tui_source_info): Rename field filename to
316 fullname. New comment for it.
317 * tui/tui-source.c (tui_set_source_content): Rename field reference
318 filename to fullname. Initialize field by symtab_to_fullname now.
319 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
320 reference filename to fullname. Use symtab_to_fullname during
321 comparison.
322
652a8996
JK
3232013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
324
325 Code cleanup.
326 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
327 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
328 filename to fullname. Rename variable this_name to this_fullname.
329 Lowercase FILENAME_CMP call.
330 (dw2_find_symbol_file): New comment for the returned string.
331 (dwarf2_gdb_index_functions): Rename the function to
332 dw2_expand_symtabs_with_fullname.
333 * psymtab.c (read_psymtabs_with_filename): Rename to ...
334 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
335 fullname.
336 (psym_functions): Rename the function to read_psymtabs_with_fullname.
337 * symfile.h (struct quick_symbol_functions): Rename field
338 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
339 parameter filename to fullname. Document returned string meaning for
340 find_symbol_file.
341 * symtab.c (find_line_symtab): Rename the called function to
342 expand_symtabs_with_fullname.
343
af529f8f
JK
3442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
345
346 Code cleanup.
347 * breakpoint.c (clear_command): Remove variable is_abs, unify the
348 call of filename_cmp with compare_filenames_for_search.
349 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
350 is_abs, unify the call of FILENAME_CMP with
351 compare_filenames_for_search. New gdb_asserts for real_path and name.
352 Unify the call of compare_filenames_for_search with FILENAME_CMP.
353 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
354 * symfile.h (struct quick_symbol_functions): Extend the comment for
355 map_symtabs_matching_filename.
356 * symtab.c (compare_filenames_for_search): Remove the function comment
357 relative path requirement. Handle absolute filenames, with a comment.
358 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
359 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
360 real_path and name. Unify the call of compare_filenames_for_search
361 with FILENAME_CMP.
362 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
363
2f202fde
JK
3642013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
365
366 Code cleanup.
367 * breakpoint.c (print_breakpoint_location): Replace bp_location field
368 source_file references by symtab field references. Remove variables
369 sal and fullname.
370 (momentary_breakpoint_from_master, add_location_to_breakpoint):
371 (clear_command, say_where): Replace bp_location field source_file
372 references by symtab field references.
373 (bp_location_dtor): Remove the source_file reference.
374 (update_static_tracepoint): Replace bp_location field source_file
375 references by symtab field references.
376 (breakpoint_free_objfile): New function.
377 * breakpoint.h (struct bp_location): Extend the comment for line_number.
378 Replace the field source_file by field symtab, extend its comment.
379 (breakpoint_free_objfile): New declaration.
380 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
381 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
382 field source_file references by symtab field references.
383
f5b95b50
JK
3842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
385
386 Replace xfullpath calls by gdb_realpath calls.
387 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
388 function comment.
389 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
390 Remove it from the iterate_over_some_symtabs call.
391 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
392 Remove it from the dw2_map_expand_apply calls, remove a block handling
393 it.
394 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
395 Remove it from the iterate_over_some_symtabs call.
396 (partial_map_symtabs_matching_filename): Remove parameter full_path.
397 Remove it from the partial_map_expand_apply calls, remove a block
398 handling it. Drop gdb_realpath call and cleanups from the real_path
399 handling.
400 * source.c (openp): Drop the comment part about xfullpath. Replace
401 xfullpath calls by gdb_realpath calls.
402 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
403 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
404 from method map_symtabs_matching_filename and its comment.
405 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
406 gdb_realpath call.
407 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
408 remove it also from the function comment, remove a block handling it.
409 Drop gdb_realpath call and cleanups from the real_path handling.
410 (iterate_over_symtabs): Drop variable full_path and its use.
411 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
412 * utils.c (xfullpath): Remove.
413 * utils.h (xfullpath): Remove.
414
d78489bf
AT
4152013-02-01 Andreas Tobler <andreast@fgznet.ch>
416
417 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
418 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
419 (ALLDEPFILES): Add ppc64-tdep.c.
420 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
421 ppc64-tdep.o to gdb_target_obs.
422 * ppc64-tdep.h: New file.
423 * ppc64-tdep.c: New file.
424 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
425 ppc-linux-tdep.c to here.
426 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
427 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
428 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
429 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
430 from ppc-linux-tdep.c to here.
431 (ppc64_convert_from_func_ptr_addr): Rename from
432 ppc64_linux_convert_from_func_ptr_addr to
433 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
434 here.
435 * rs6000-tdep.c:
436 (read_insn): Move from ppc-linux-tdep.c to here.
437 (insns_match_pattern, insn_d_field, insn_ds_field): Move
438 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
439 * ppc-linux-tdep.c: Include ppc64-tdep.h.
440 Removed above functions.
441 (ppc_linux_init_abi): Adjust.
442
8db60374
AR
4432013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
444
445 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
446
f2e5f4ce
AR
4472013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
448
449 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
450
c1f7d745
PA
4512013-02-01 Pedro Alves <palves@redhat.com>
452
453 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
454 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
455
8a92335b
JK
4562013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
457
458 * elfread.c (elf_symfile_read): Limit separate debug info additions to
459 files with no separate debug info.
460 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
461 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
462 only for files with no separate debug info.
463
8eacb197
TT
4642013-01-31 Tom Tromey <tromey@redhat.com>
465
466 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
467 change type.
468 (struct jit_program_space_data): Rename from jit_inferior_data.
469 Update comments.
470 (get_jit_program_space_data): Rename from get_jit_inferior_data.
471 Change return type. Attach data to program space.
472 (jit_program_space_data_cleanup): Rename from
473 jit_inferior_data_cleanup; change argument type.
474 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
475 change type.
476 (jit_register_code): Update.
477 (jit_update_inferior_cache): Remove.
478 (jit_breakpoint_deleted): Get jit data from the location's program
479 space.
480 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
481 'ps_data', change type.
482 (jit_inferior_init, jit_breakpoint_re_set_internal)
483 (jit_event_handler): Update.
484 (free_objfile_data): Get data from objfile's program space.
485 (_initialize_jit): Update.
486
f25c0135
TT
4872013-01-31 Tom Tromey <tromey@redhat.com>
488
489 PR gdb/13987:
490 * jit.c (struct jit_inferior_data) <cached_code_address,
491 jit_breakpoint>: New fields.
492 (jit_breakpoint_re_set_internal): Fix logging. Only create
493 breakpoint if cached address has changed.
494 (jit_update_inferior_cache, jit_breakpoint_deleted): New
495 functions.
496 (_initialize_jit): Register breakpoint deleted observer.
497
974a734b
AR
4982013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
499
500 * infrun.c (handle_syscall_event): Remove unused gdbarch.
501 (save_infcall_suspend_state): Ifdef out unused inf.
502 (restore_infcall_suspend_state): Ifdef out unused inf.
503 * jit.c (jit_register_code): Remove unused i, b, inf_data.
504 (jit_frame_sniffer): Remove unused inf_data.
505
df54f8eb
AR
5062013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
507
508 * c-exp.y (classify_inner_name): Remove unused type.
509 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
510 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
511 need_escape.
512 (c_get_string): Remove unused kind.
513 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
514
5799c0b9
AR
5152013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
516
517 * charset.c (intermediate_encoding): Remove unused i.
518 * completer.c (signal_completer): Remove unused i.
519 * continuations.c (discard_my_continuations_1): Remove unused
520 continuation_ptr.
521 * corelow.c (core_close): Remove unuseD name.
522 (get_core_siginfo): Remove unused pid.
523 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
524 i, cps.
525 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
526 (loclist_describe_location): Remove unused first.
527 * event-top.c (command_line_handler): Remove unused got_eof.
528 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
529 (resize_section_table): Remove unused old_value.
530 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
531 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
532 * i386-tdep.c (i386_process_record): Remove unused rex.
533 * infcmd.c (get_return_value): Remove unused uiout.
534 * jv-lang.c (type_from_class): Remove unused is_array.
535 * jv-valprint.c (java_val_print): Remove unused i.
536 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
537 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
538 * m2-typeprint.c (m2_print_type): Remove unused code.
539 * macroexp.c (get_character_constant): Remove unused body_start.
540 (macro_stringify): Remove unused result.
541 * objc-lang.c (find_methods): Remove unused gdbarch.
542 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
543 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
544 * stack.c (print_frame_args): Remove unused summary.
545 * thread.c (thread_apply_command): Remove unused p.
546 * valarith.c (value_x_unop): Remove unused mangle_ptr.
547 * valops.c (search_struct_method): Remove unused skip.
548 * valprint.c (generic_val_print): Remove unused byte_order.
549 * varobj.c (varobj_update): Remove unused changed.
550 * cli/cli-cmds.c (complete_command): Remove unused next_item.
551 (alias_command): Remove unused c.
552 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
553 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
554 format.
555 (mi_cmd_data_write_memory): Remove unused word_format.
556 (mi_cmd_data_write_memory_bytes): Remove unused r.
557 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
558 p_start, p_end.
559 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
560 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
561 line_width.
562
c656bca5
AR
5632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
564
565 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
566 * symtab.c (iterate_over_symtabs): Remove unused s.
567 (find_pc_sect_symtab): Remove unused pspAce.
568 (find_pc_sect_line): Remove unused alt_symtab.
569 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
570 (completion_list_add_name): Remove unused newsize.
571
7078baeb
TT
5722013-01-31 Tom Tromey <tromey@redhat.com>
573
574 PR c++/14998:
575 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
576 TYPE_CODE_FUNC.
577
c2e8b827
AR
5782013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
579
580 * target.c (target_read_string): Remove unused origlen.
581
0e43993a
AR
5822013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
583
584 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
585 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
586 * ax-general.c (ax_print): Remove unused is_float.
587 * blockframe.c (block_innermost_frame): Remove unused start, end.
588 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
589
765a97ab
AR
5902013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
591
592 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
593 (svr4_read_so_list): Remove unused lmo.
594 * solib-target.c (solib_target_relocate_section_addresses): Remove
595 unused flags.
596
a99dad3d
TT
5972013-01-30 Tom Tromey <tromey@redhat.com>
598
599 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
600
3bff1ecd
TT
6012013-01-30 Tom Tromey <tromey@redhat.com>
602
603 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
604 * utils.c (gnu_debuglink_crc32): Remove.
605 * utils.h (gnu_debuglink_crc32): Don't declare.
606
7d455152
TT
6072013-01-30 Tom Tromey <tromey@redhat.com>
608
609 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
610 (read_structure_type, read_enumeration_type): Remove cast.
611
abee88f2
TT
6122013-01-30 Tom Tromey <tromey@redhat.com>
613
614 * dwarf2read.c (read_namespace_type): Remove cast.
615 (read_typedef): Likewise.
616
8d9878a4
TT
6172013-01-29 Tom Tromey <tromey@redhat.com>
618
619 * dwarf2read.c (free_dwo_file): Remove assert.
620
a543d2a9
TT
6212013-01-29 Tom Tromey <tromey@redhat.com>
622
623 * value.c (deprecated_set_value_modifiable): Remove.
624 * value.h (deprecated_set_value_modifiable): Remove.
625
bed911e5
DE
6262013-01-28 Doug Evans <dje@google.com>
627
628 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
629 to addresses from dwo files.
630
28c64fc2
SCR
6312013-01-25 Siva Chandra Reddy <sivachandra@google.com>
632
633 * valops.c (find_overload_match): Remove unused argument 'lax'.
634 * value.h: Remove unused argument 'lax' from the declaration of
635 find_overload_match.
636 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
637 to find_overload_match.
638 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
639 argument to find_overload_match.
640
4d4ec4e5
TT
6412013-01-25 Tom Tromey <tromey@redhat.com>
642
643 * dwarf2read.c (processing_has_namespace_info): Remove.
644 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
645 (process_die, read_func_scope, dwarf2_start_symtab)
646 (new_symbol_full): Update.
647
195a3f6c
TT
6482013-01-25 Tom Tromey <tromey@redhat.com>
649
650 * cp-namespace.c (cp_set_block_scope): Remove.
651 * cp-support.h (cp_set_block_scope): Remove.
652 * dbxread.c: Include block.h.
653 (cp_set_block_scope): New function.
654 (process_one_symbol): Update.
655 * dwarf2read.c (read_func_scope): Use block_set_scope.
656
8ba0730a
PA
6572013-01-25 Pedro Alves <palves@redhat.com>
658
659 * remote.c (add_current_inferior_and_thread): Tweak comment.
660
12aaed36
TT
6612013-01-25 Tom Tromey <tromey@redhat.com>
662
663 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
664 (cp_add_using_directive): Add 'copy_names' argument.
665 * cp-support.h (cp_add_using_directive): Update.
666 (struct using_direct) <import_src, import_dest, alias,
667 declaration>: Now const.
668 * dwarf2read.c (read_import_statement): Use obconcat.
669 Don't copy names passed to cp_add_using_directive.
670
7fc75ca7
TT
6712013-01-25 Tom Tromey <tromey@redhat.com>
672
673 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
674
3405876a
PA
6752013-01-25 Pedro Alves <palves@redhat.com>
676
677 * remote.c (stop_reply_extract_thread): New.
678 (add_current_inferior_and_thread): New parameter 'wait_status'.
679 Handle it.
680 (remote_start_remote): Pass wait status to
681 add_current_inferior_and_thread.
682 (extended_remote_run): Update comment.
683 (extended_remote_create_inferior_1): Pass wait status to
684 add_current_inferior_and_thread.
685
8954db33
AB
6862013-01-25 Andrew Burgess <aburgess@broadcom.com>
687 Ulrich Weigand <uweigand@de.ibm.com>
688
689 * valarith.c (value_vector_widen): New function for replicating a
690 scalar into a vector.
691 (value_binop): Use value_vector_widen to widen scalar to vector
692 rather than casting, this better matches gcc C behaviour.
693 * valops.c (value_casst): Update logic for casting between vector
694 types, and for casting from scalar to vector, try to match gcc C
695 behaviour.
696 * value.h (value_vector_widen): Declare.
697 * opencl-lang.c (opencl_value_cast): New opencl specific casting
698 function, handle special case for casting scalar to vector.
699 (opencl_relop): Use opencl_value_cast.
700 (evaluate_subexp_opencl): Use opencl_value_cast instead of
701 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
702 in order to use opencl_value_cast.
703
843b20dc
YQ
7042013-01-25 Yao Qi <yao@codesourcery.com>
705
706 * event-loop.c: Include "queue.h".
707 (gdb_event_p): New typedef.
708 (DECLARE_QUEUE_P): Use.
709 (DEFINE_QUEUE_P): Use.
710 (async_queue_event): Remove.
711 (gdb_event_xfree): New.
712 (initialize_event_loop): New.
713 (process_event): Use QUEUE macros.
714 (event_queue): Remove.
715 (gdb_wait_for_event): Caller update.
716 (check_async_event_handlers): Likewise.
717 (poll_timers): Likewise.
718 * event-loop.h (initialize_event_loop): Declare.
719 * event-loop.c (gdb_event_xfree): New.
720 * top.c (gdb_init): Call initialize_event_loop.
721
20ad8856
YQ
7222013-01-25 Yao Qi <yao@codesourcery.com>
723
724 * event-loop.c (async_queue_event): Remove one parameter
725 'position'. Remove code handling 'position' == TAIL.
726 (gdb_wait_for_event): Caller update.
727 (check_async_event_handlers): Caller update.
728 (poll_timers): Caller update.
729 * event-loop.h (enum queue_position): Remove.
730
3bbbe775
MK
7312013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
732
733 * MAINTAINERS: Update my email.
734
a87d9ac4
YQ
7352013-01-25 Yao Qi <yao@codesourcery.com>
736
737 * main.c (print_gdb_help): Remove "--epoch" from the help
738 message.
739
2077afdd
TD
7402013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
741
742 * symtab.c (skip_prologue_using_sal): Consider a file
743 change the same as an increased line number
744
63da4037
TD
7452013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
746
747 * MAINTAINERS (Write After Approval): Add myself to the list.
748
45e6c716
TT
7492013-01-24 Tom Tromey <tromey@redhat.com>
750
751 * ada-lang.h (ada_decode_symbol): Make return type const.
752 * ada-lang.c (ada_decode_symbol): Likewise.
753
b1ae631a
DE
7542013-01-23 Doug Evans <dje@google.com>
755
756 * linespec.c (find_linespec_symbols): Make static.
757
55a78401
SDJ
7582013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
759
760 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
761 type on float conversion for complex type.
762
bea883fd
SCR
7632013-01-23 Siva Chandra Reddy <sivachandra@google.com>
764
765 Add a new class gdb.Architecture which exposes GDB's
766 internal representation of architecture via GDB Python API.
767 * Makefile.in: Add entries corresponding to the new file
768 python/py-arch.c.
769 * NEWS (Python Scripting): Add entries for the new class
770 gdb.Architecture and the new method gdb.Frame.architecture.
771 * python/py-arch.c: Implement gdb.Architecture class.
772 * python/py-frame.c (frapy_arch): Implement the method
773 gdb.Frame.architecture().
774 (frame_object_methods): Add 'architecture' to the method table.
775 * python/python-internal.h: Add declarations of new utility
776 functions.
777 * python/python.c (_initialize_python): Initialize
778 gdb.Architecture class.
779
796a7ff8
DE
7802013-01-23 Doug Evans <dje@google.com>
781
782 Work around binutils/15021.
783 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
784 type_unit_group out of union s. All uses updated.
785 (read_index_from_section): Watch for index version 8.
786 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
787 an imported symtab.
788 (write_psymtabs_to_index): Increment version number to 8.
789
0928e93d
PA
7902013-01-22 Pedro Alves <palves@redhat.com>
791
792 * annotate.c (breakpoint_changed): Skip if breakpoint is not
793 user-visible.
794
9c97429f
PA
7952013-01-22 Pedro Alves <palves@redhat.com>
796
797 * annotate.c (annotate_breakpoints_changed): Rename to ...
798 (annotate_breakpoints_invalid): ... this. Make static.
799 (breakpoint_changed): Adjust.
800 (_initialize_annotate): Always install the observers. Install a
801 "breakpoint_created" observer.
802 * annotate.h (annotate_breakpoints_changed): Delete declaration.
803 * breakpoint.c (set_breakpoint_condition)
804 (breakpoint_set_commands, do_map_commands_command)
805 (init_raw_breakpoint, clear_command, set_ignore_count)
806 (enable_breakpoint_disp): No longer call
807 annotate_breakpoints_changed.
808
bd00c694
PA
8092013-01-22 Pedro Alves <palves@redhat.com>
810
811 * annotate.c: Include "inferior.h".
812 (frames_invalid_emitted)
813 (breakpoints_invalid_emitted): New globals.
814 (async_background_execution_p): New function.
815 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
816 emitting the annotation if it has already been emitted.
817 (annotate_display_prompt): New function.
818 * annotate.h (annotate_display_prompt): New declaration.
819 * event-top.c: Include annotate.h.
820 (display_gdb_prompt): Call annotate_display_prompt.
821
187d10dd
PA
8222013-01-22 Pedro Alves <palves@redhat.com>
823
824 * annotate.c (ignore_count_changed): Delete.
825 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
826 (annotate_ignore_count_change): Delete.
827 (annotate_stopped): Don't emit a delayed breakpoints-changed
828 annotation.
829 * annotate.h (annotate_ignore_count_change): Delete.
830 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
831 annotate_ignore_count_change.
832
d84cf7eb
TT
8332013-01-22 Tom Tromey <tromey@redhat.com>
834
835 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
836 require_rvalue for a register location.
837
8f1d5693
MK
8382013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
839
840 * breakpoint.c (print_one_breakpoint_location): Add MI
841 field 'thread-groups' when printing a breakpoint.
842 (output_thread_groups): New function.
843
aa6199c6
SCR
8442013-01-21 Siva Chandra Reddy <sivachandra@google.com>
845
846 * python/lib/gdb/commands/explore.py
847 (CompoundExplorer.explore_expr): Correct the name of a method
848 being invoked.
849 (ExploreTypeCommand.invoke): Add a missing 'return'.
850
d2afef13
TT
8512013-01-21 Tom Tromey <tromey@redhat.com>
852
853 * gdb_obstack.h (obconcat): Move declaration here, from...
854 * symfile.h (obconcat): ... here.
855 * gdb_obstack.c: New file.
856 (obconcat): Move from...
857 * symfile.c (obconcat): ... here.
858 * Makefile.in (SFILES): Add gdb_obstack.c.
859 (COMMON_OBS): Add gdb_obstack.o.
860
10f0c4bb
TT
8612013-01-21 Tom Tromey <tromey@redhat.com>
862
863 * symfile.h (obsavestring): Don't declare.
864 * symfile.c (obsavestring): Remove.
865 * ada-exp.y: Use obstack_copy0, not obsavestring.
866 * ada-lang.c: Use obstack_copy0, not obsavestring.
867 * coffread.c: Use obstack_copy0, not obsavestring.
868 * cp-namespace.c: Use obstack_copy0, not obsavestring.
869 * dbxread.c: Use obstack_copy0, not obsavestring.
870 * dwarf2read.c: Use obstack_copy0, not obsavestring.
871 * jit.c: Use obstack_copy0, not obsavestring.
872 * mdebugread.c: Use obstack_copy0, not obsavestring.
873 * psymtab.c: Use obstack_copy0, not obsavestring.
874 * stabsread.c: Use obstack_copy0, not obsavestring.
875 * xcoffread.c: Use obstack_copy0, not obsavestring.
876
86f62fd7
TT
8772013-01-21 Tom Tromey <tromey@redhat.com>
878
879 * dwarf2read.c (fixup_go_packaging): Save package name
880 on objfile obstack.
881 * gdbtypes.c (init_type): Don't copy name.
882
15d034d0
TT
8832013-01-21 Tom Tromey <tromey@redhat.com>
884
885 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
886 const.
887 (struct attribute) <u.str>: Now const.
888 (struct fnfieldlist) <name>: Now const.
889 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
890 (partial_die_parent_scope): Make return type const.
891 (partial_die_full_name, add_partial_symbol): Update.
892 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
893 'name' const.
894 (find_file_and_directory): Make 'name' and 'comp_dir' const.
895 (read_file_scope, read_func_scope, dwarf2_add_field)
896 (dwarf2_add_member_fn, read_structure_type)
897 (process_enumeration_scope, read_array_type, read_module_type)
898 (read_base_type, read_subrange_type): Update.
899 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
900 (new_symbol_full, guess_full_die_structure_name): Update.
901 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
902 (dwarf2_name): Return const type.
903 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
904 const.
905
748e18ae
TT
9062013-01-21 Tom Tromey <tromey@redhat.com>
907
908 * gdbtypes.c (init_type): Make 'name' const.
909 * gdbtypes.h (init_type): Update.
910
46212e0b
TT
9112013-01-21 Tom Tromey <tromey@redhat.com>
912
913 * buildsym.c (patch_subfile_names): Use set_last_source_file.
914 (start_symtab): Make 'name' and 'dirname' const. Use
915 set_last_source_file.
916 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
917 (last_source_file): Define. Now static.
918 (set_last_source_file, get_last_source_file): New functions.
919 * buildsym.h (last_source_file): Don't declare.
920 (start_symtab): Update.
921 (set_last_source_file, get_last_source_file): Declare.
922 * coffread.c (complete_symtab): Use set_last_source_file.
923 (coff_end_symtab): Likewise.
924 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
925 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
926 set_last_source_file.
927 (process_one_symbol): Use get_last_source_file.
928 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
929 (psymtab_to_symtab_1): Use get_last_source_file.
930 * xcoffread.c (process_linenos): Use get_last_source_file.
931 (complete_symtab): Use set_last_source_file.
932 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
933 (scan_xcoff_symtab): Use set_last_source_file.
934
9d2ceabe
TT
9352013-01-21 Tom Tromey <tromey@redhat.com>
936
937 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
938 (symbol_set_names): Remove casts. Handle field const-ness.
939
cfc594ee
TT
9402013-01-21 Tom Tromey <tromey@redhat.com>
941
942 * dwarf2read.c (new_symbol_full): Remove cast.
943 * symtab.c (symbol_set_demangled_name): Make 'name' const.
944 * symtab.h (symbol_set_demangled_name): Update.
945
5484b13a
TT
9462013-01-21 Tom Tromey <tromey@redhat.com>
947
948 * main.c (captured_main): Call bfd_init.
949
1605ef26
TT
9502013-01-21 Tom Tromey <tromey@redhat.com>
951
952 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
953 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
954 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
955 * NEWS: Update.
956
3b74cdc3
JK
9572013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
958
959 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
960
5a352474
JK
9612013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
962
963 Fix gdb.fortran/common-block.exp crash in PIE mode.
964 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
965 LOC_COMMON_BLOCK.
966 * f-valprint.c (info_common_command_for_block): Expect
967 LOC_COMMON_BLOCK in gdb_assert.
968 * symtab.h (struct general_symbol_info): Update comment for the
969 common_block member.
970 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
971 (enum address_class): New member LOC_COMMON_BLOCK.
972
c60797fd
DB
9732013-01-18 David Blaikie <dblaikie@gmail.com>
974
975 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 976
46f35228
TT
9772013-01-18 Tom Tromey <tromey@redhat.com>
978
979 PR c++/14999:
980 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
981 Call require_rvalue.
982
257e7a09
YQ
9832013-01-18 Yao Qi <yao@codesourcery.com>
984
985 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
986 (dbx_read_symtab): New declaration.
987 (dbx_psymtab_to_symtab): Delete.
988 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
989 Rename parameter PST to SELF. Exchanged two parameters.
990 (start_psymtab): Caller update.
991 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
992 (dwarf2_read_symtab): New declaration.
993 (dwarf2_psymtab_to_symtab): Delete.
994 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
995 Rename parameter PST to SELF. Exchanged two parameters.
996 (create_partial_symtab): Caller update.
997 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
998 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
999 Rename parameter PST to SELF. Exchanged two parameters.
1000 (parse_partial_symbols, new_psymtab): Caller update.
1001 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1002 two parameters.
1003 * psymtab.c (psymtab_to_symtab): Caller update.
1004 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1005 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1006 Rename parameter PST to SELF. Exchanged two parameters.
1007 (xcoff_start_psymtab): Caller update.
1008
0de5618e
YQ
10092013-01-18 Yao Qi <yao@codesourcery.com>
1010
1011 * infrun.c (proceed): Rename local variable 'oneproc' to
1012 'force_step'.
1013
5c04624b
DE
10142013-01-17 Doug Evans <dje@google.com>
1015
848e3e78
DE
1016 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1017 (dw2_build_type_unit_groups): Delete. All uses updated.
1018
5c04624b
DE
1019 * symtab.h (struct symbol_search): Add comment.
1020
d84fca2c
JK
10212013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1022
1023 * symtab.c (compare_filenames_for_search): New comment for
1024 HAS_DRIVE_SPEC.
1025
6108433d
TT
10262013-01-17 Tom Tromey <tromey@redhat.com>
1027
1028 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1029
c89ffd86
JK
10302013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1031
1032 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1033 initialize it by existing make_cleanup. Call new do_cleanups.
1034
db2b2972
TT
10352013-01-17 Tom Tromey <tromey@redhat.com>
1036
1037 * cp-abi.c (cp_abi_completer): New function.
1038 (_initialize_cp_abi): Set completer for "set cp-abi".
1039
be7d37a2
TT
10402013-01-17 Tom Tromey <tromey@redhat.com>
1041
1042 * mem-break.c: Remove obsolete comment.
1043 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1044
c9fb1240
SD
10452012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1046
1047 * jit.c (jit_reader_load_command): Interpret the jit reader name
1048 as an absolute path if it begins with a forward slash.
1049
db334a01
SD
10502012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1051
1052 PR gdb/14550
1053
1054 * jit.c (finalize_symtab): Ensure that only the global block has a
1055 NULL superblock.
1056
7d928dac
PA
10572013-01-17 Pedro Alves <palves@redhat.com>
1058
1059 * acinclude.m4: Include ../config/plugins.m4,
1060 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1061 * Makefile.in (aclocal_m4_deps): Update.
1062 * aclocal.m4: Renegerate.
1063
fb8cf7c5
DE
10642013-01-16 Doug Evans <dje@google.com>
1065
1066 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1067
ab04a2af
TT
10682013-01-16 Pedro Alves <palves@redhat.com>
1069 Tom Tromey <tromey@redhat.com>
1070
1071 PR cli/7221:
1072 * NEWS: Add "catch signal".
1073 * breakpoint.c (base_breakpoint_ops): No longer static.
1074 (bpstat_explains_signal): New function.
1075 (init_catchpoint): No longer static.
1076 (base_breakpoint_explains_signal): New function.
1077 (base_breakpoint_ops): Initialize new field.
1078 * breakpoint.h (enum bpstat_signal_value): New.
1079 (struct breakpoint_ops) <explains_signal>: New field.
1080 (bpstat_explains_signal): Remove macro, declare as function.
1081 (base_breakpoint_ops, init_catchpoint): Declare.
1082 * break-catch-sig.c: New file.
1083 * inferior.h (signal_catch_update): Declare.
1084 * infrun.c (signal_catch): New global.
1085 (handle_syscall_event): Update for change to
1086 bpstat_explains_signal.
1087 (handle_inferior_event): Likewise. Always handle random signals
1088 via bpstats.
1089 (signal_cache_update): Check signal_catch.
1090 (signal_catch_update): New function.
1091 (_initialize_infrun): Initialize signal_catch.
1092 * Makefile.in (SFILES): Add break-catch-sig.c.
1093 (COMMON_OBS): Add break-catch-sig.o.
1094
8ac3646f
TT
10952013-01-16 Tom Tromey <tromey@redhat.com>
1096
1097 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1098 (print_one_catch_solib, print_one_catch_syscall)
1099 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1100 "catch-type".
1101
5a18e302
YQ
11022013-01-16 Yao Qi <yao@codesourcery.com>
1103
1104 * printcmd.c (current_display_number): Make it static.
1105
3f01d0d0
YQ
11062013-01-16 Yao Qi <yao@codesourcery.com>
1107
1108 * infcmd.c (step_once): Don't check '!single_inst' as it was
1109 checked before.
1110
1ed59174
JK
11112013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1112
1113 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1114
44478ab3
TT
11152013-01-14 Tom Tromey <tromey@redhat.com>
1116
1117 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1118 set command.
1119 * command.h (add_setshow_string_noescape_cmd): Update.
1120 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1121 (complete_set_gnutarget): New function.
1122 (_initialize_core): Set the "set gnutarget" completer.
1123
06d66ee9
TT
11242013-01-14 Tom Tromey <tromey@redhat.com>
1125
1126 PR symtab/14442:
1127 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1128 (c_type_print_modifier): Likewise.
1129 * dwarf2read.c (read_tag_restrict_type): New function.
1130 (read_type_die_1): Handle DW_TAG_restrict_type.
1131 * gdbtypes.c (make_restrict_type): New function.
1132 (recursive_dump_type): Handle TYPE_RESTRICT.
1133 * gdbtypes.h (enum type_flag_values): Renumber.
1134 (enum type_instance_flag_value): Add
1135 TYPE_INSTANCE_FLAG_RESTRICT.
1136 (TYPE_RESTRICT): New macro.
1137 (make_restrict_type): Declare.
1138
c9bf0622
TT
11392013-01-14 Tom Tromey <tromey@redhat.com>
1140
1141 PR symtab/14931:
1142 * psymtab.c (struct psymtab_state): New.
1143 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1144 functions.
1145 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1146 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1147
44d594fd
PA
11482013-01-14 Richard Sharman <richard_sharman@mitel.com>
1149 Pedro Alves <palves@redhat.com>
1150
1151 PR remote/14786
1152
1153 * remote.c (remote_threads_info): Make a copy of the reply from
1154 qfThreadInfo and use that instead of rs->buf.
1155
442e4d9c
YQ
11562013-01-14 Yao Qi <yao@codesourcery.com>
1157
1158 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1159 (dbx_psymtab_to_symtab): Likewise.
1160 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1161 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1162 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1163
5b12a61c
JK
11642013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1165
1166 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1167 make_cleanup_restore_current_language. Call set_language. Move
1168 OLD_CHAIN and INNER_CHAIN cleanups.
1169 * utils.c (do_restore_current_language)
1170 (make_cleanup_restore_current_language): New functions.
1171 * utils.h (make_cleanup_restore_current_language): New declaration.
1172
f0a4b570
JK
11732013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1174
1175 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1176 non-existing files.
1177
57b3c00c
JK
1178 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1179 non-existing files if FILENAME is already absolute.
1180
daefa854
JK
11812013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1182
1183 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1184 fputs_filtered. Append trailing newline.
1185
ca9c6ee2
YQ
11862013-01-11 Yao Qi <yao@codesourcery.com>
1187 Stan Shebs <stan@codesourcery.com>
1188
1189 * psymtab.c (init_psymbol_list): Clarify the comment.
1190
f28045c2
YQ
11912013-01-11 Yao Qi <yao@codesourcery.com>
1192
1193 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1194 (update_dprintf_command_list): Assert that 'printf_line' is
1195 non-null. Remove condition check.
1196
da5132d3
JK
11972013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1198
1199 Code cleanup.
1200 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1201 type const char *.
1202 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1203 const char *.
1204 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1205
843e694d
AG
12062013-01-09 Anthony Green <green@moxielogic.com>
1207
1208 * cp-abi.c (cplus_print_vtable): Don't return value from void
1209 function.
1210 * ada-lang.c (re_set_catch_assert): Ditto.
1211
da51c347
DE
12122013-01-09 Doug Evans <dje@google.com>
1213
1214 * symfile.h (quick_symbol_functions): Delete member
1215 pre_expand_symtabs_matching. All uses removed.
1216 * dwarf2read.c (dw2_lookup_symbol): Implement.
1217 (dw2_do_expand_symtabs_matching): Delete.
1218 (dw2_pre_expand_symtabs_matching): Delete.
1219 (struct dw2_symtab_iterator): New type.
1220 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1221 (dw2_expand_symtabs_for_function): Rewrite.
1222 (dwarf2_gdb_index_functions): Update.
1223 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1224 (psym_functions): Update.
1225
b2259038
TT
12262013-01-09 Tom Tromey <tromey@redhat.com>
1227
1228 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1229 * configure: Rebuild.
1230 * configure.ac: Add somread.o to the build if BFD has SOM
1231 support.
1232 * somread.c: Include som/aout.h, not syms.h.
1233 (som_symtab_read): Use som_external_symbol_dictionary_record.
1234 Unpack records manually.
1235 (_initialize_somread): Declare.
1236
bdad4180
MF
12372012-01-08 Mike Frysinger <vapier@gentoo.org>
1238
1239 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1240 Cast return_address to 64bits.
1241
03cdf680
HZ
12422013-01-08 Hui Zhu <hui_zhu@mentor.com>
1243
1244 * printcmd.c: Remove define of function output_command.
1245 * tracepoint.c: Remove extern of function output_command.
1246 * valprint.h: (output_command): New extern.
1247
8a808554
TT
12482013-01-07 Tom Tromey <tromey@redhat.com>
1249
1250 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1251 Remove.
1252 (objc_language_defn): Use c_printchar, c_printstr,
1253 c_emit_char.
1254
e93a8774
TT
12552013-01-07 Tom Tromey <tromey@redhat.com>
1256
1257 PR cli/7719:
1258 * NEWS: Update.
1259 * ada-valprint.c (printstr, print_field_values): Remove
1260 "inspect_it" code.
1261 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1262 code.
1263 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1264 code.
1265 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1266 * main.c (captured_main): Remove "epoch" argument.
1267 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1268 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1269 * p-valprint.c (pascal_object_print_value_fields): Remove
1270 "inspect_it" code.
1271 * printcmd.c (print_command_1): Remove 'inspect' argument.
1272 (print_command, call_command): Update.
1273 (inspect_command): Remove.
1274 (_initialize_printcmd): Make "inspect" an alias for "print".
1275 * top.c (epoch_interface): Remove.
1276 * top.h (epoch_interface): Remove.
1277 * valprint.c (user_print_options): Update.
1278 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1279 * valprint.h (struct value_print_options) <inspect_it>: Remove
1280 field.
1281
12822013-01-04 Tom Tromey <tromey@redhat.com>
1283
1284 * valprint.h (read_string): Add 'extern'.
1285
b967eb24
JB
12862013-01-07 Joel Brobecker <brobecker@adacore.com>
1287
1288 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1289 used to decide whether to define darwin_read_dyld_info or not.
1290
78a8b30e
PM
12912013-01-03 Pierre Muller <muller@sourceware.org>
1292
1293 * main.c (relocate_gdb_directory): Avoid calling stat function
1294 if DIR is empty.
1295
50da2f25
YQ
12962013-01-03 Yao Qi <yao@codesourcery.com>
1297
1298 * psymtab.c (fixup_psymbol_section): Update declaration.
1299 (fixup_psymbol_section): Remove code returning value.
1300
e7e8980f
YQ
13012013-01-03 Yao Qi <yao@codesourcery.com>
1302
1303 * symtab.h: Remove some out of date comments.
1304 (enum exception_event_kind): Move it ...
1305 * breakpoint.c: ... here.
1306
569283d4
MF
13072013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1308
9f9d9a96 1309 PR gdb/14405
569283d4
MF
1310 * darwin-nat.c (darwin_read_dyld_info): Only build if
1311 TASK_DYLD_INFO_COUNT is defined.
1312 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1313 TASK_DYLD_INFO_COUNT is defined.
1314
2e36fbea
TT
13152013-01-02 Tom Tromey <tromey@redhat.com>
1316
1317 * symfile.h (struct ecoff_debug_hack): Remove.
1318 * objfiles.c: Don't include mdebugread.h.
1319
4f05add4
TT
13202013-01-02 Tom Tromey <tromey@redhat.com>
1321
1322 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1323 * configure.ac: Check for Mach-O support in BFD. Update
1324 CONFIG_OBS.
1325 * configure: Rebuild.
1326
def63ff0
TT
13272013-01-02 Tom Tromey <tromey@redhat.com>
1328
1329 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1330 * configure.ac: Use GDB_AC_CHECK_BFD.
1331 * configure: Rebuild.
1332
60c5dd93
MK
13332013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1334
1335 * MAINTAINERS: Update my email.
1336
6e58437e
JB
13372013-01-01 Joel Brobecker <brobecker@adacore.com>
1338
1339 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1340
627fe805
JB
13412013-01-01 Joel Brobecker <brobecker@adacore.com>
1342
1343 * rs6000-nat.c (bss_data_overlap): New function.
1344 (vmap_symtab): Use it to adjust the .bss section's offset.
1345
28e7fd62
JB
13462013-01-01 Joel Brobecker <brobecker@adacore.com>
1347
1348 Update year range in copyright notice of all files.
1349
e93a8774 13502013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
1351
1352 * top.c (print_gdb_version): Update copyright year.
1353
72b20e9c 1354For older changes see ChangeLog-2012.
c906108c
SS
1355\f
1356Local Variables:
1357mode: change-log
1358left-margin: 8
1359fill-column: 74
1360version-control: never
57da7796 1361coding: utf-8
c906108c 1362End:
This page took 1.56652 seconds and 4 git commands to generate.