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