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