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