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