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