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