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