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