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