2013-02-04 Andreas Tobler <andreast@fgznet.ch>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
2
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.
8
9 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10 Denys Vlasenko <dvlasenk@redhat.com>
11 Pedro Alves <palves@redhat.com>
12
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
24 on 32-bit.
25
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>
30
31 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
32
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>
37
38 * aarch64-newlib-tdep.c: New file.
39 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
40 aarch64*-*-elf.
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".
45
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>
50
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.
57
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>
62
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).
79
80 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
81
82 * contrib/expect-read1.c: New file.
83 * contrib/expect-read1.sh: New file.
84
85 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
86
87 * dwarf2read.c (file_file_name): New function with code from
88 file_full_name.
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
95 caller.
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
99 call.
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
108 call.
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
116 comment.
117 (new_macro_table): New parameter comp_dir, add a comment for it.
118 (macro_source_fullname): new declaration.
119
120 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
121
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.
129
130 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
131
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
149 file_matches caller.
150 (search_symbols): Match FILES also against symtab_to_fullname.
151 Optimize it for BASENAMES_MAY_DIFFER.
152
153 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
154
155 * source.c (print_source_lines_base): Print for TUI also "fullname".
156 * tui/tui-data.c (init_content_element): Change tui_locator_element
157 field to full_name.
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
176 full_name.
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.
192
193 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
194
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):
203 Likewise.
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
209 calls.
210 (create_sals_line_offset, convert_linespec_to_sals): New variable
211 fullname, initialize it, replace symtab->filename reference by the
212 variable.
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
265 calls.
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.
275
276 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
277 Jan Kratochvil <jan.kratochvil@redhat.com>
278
279 Add a new variable that controls a way in which filenames are
280 displayed.
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'
287 variable.
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.
292
293 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
294
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
303 comparison.
304
305 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
306
307 Code cleanup.
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
317 fullname.
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
322 find_symbol_file.
323 * symtab.c (find_line_symtab): Rename the called function to
324 expand_symtabs_with_fullname.
325
326 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
327
328 Code cleanup.
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
343 with FILENAME_CMP.
344 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
345
346 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
347
348 Code cleanup.
349 * breakpoint.c (print_breakpoint_location): Replace bp_location field
350 source_file references by symtab field references. Remove variables
351 sal and fullname.
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.
365
366 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
367
368 Replace xfullpath calls by gdb_realpath calls.
369 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
370 function comment.
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
375 it.
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
381 handling.
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
388 gdb_realpath call.
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.
396
397 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
398
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
416 here.
417 * rs6000-tdep.c:
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.
424
425 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
426
427 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
428
429 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
430
431 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
432
433 2013-02-01 Pedro Alves <palves@redhat.com>
434
435 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
436 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
437
438 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
439
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.
445
446 2013-01-31 Tom Tromey <tromey@redhat.com>
447
448 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
449 change type.
450 (struct jit_program_space_data): Rename from jit_inferior_data.
451 Update comments.
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',
457 change type.
458 (jit_register_code): Update.
459 (jit_update_inferior_cache): Remove.
460 (jit_breakpoint_deleted): Get jit data from the location's program
461 space.
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.
468
469 2013-01-31 Tom Tromey <tromey@redhat.com>
470
471 PR gdb/13987:
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
477 functions.
478 (_initialize_jit): Register breakpoint deleted observer.
479
480 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
481
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.
487
488 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
489
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,
493 need_escape.
494 (c_get_string): Remove unused kind.
495 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
496
497 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
498
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
502 continuation_ptr.
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
506 i, cps.
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
536 format.
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
540 p_start, p_end.
541 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
542 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
543 line_width.
544
545 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
546
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.
553
554 2013-01-31 Tom Tromey <tromey@redhat.com>
555
556 PR c++/14998:
557 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
558 TYPE_CODE_FUNC.
559
560 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
561
562 * target.c (target_read_string): Remove unused origlen.
563
564 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
565
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.
571
572 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
573
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
577 unused flags.
578
579 2013-01-30 Tom Tromey <tromey@redhat.com>
580
581 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
582
583 2013-01-30 Tom Tromey <tromey@redhat.com>
584
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.
588
589 2013-01-30 Tom Tromey <tromey@redhat.com>
590
591 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
592 (read_structure_type, read_enumeration_type): Remove cast.
593
594 2013-01-30 Tom Tromey <tromey@redhat.com>
595
596 * dwarf2read.c (read_namespace_type): Remove cast.
597 (read_typedef): Likewise.
598
599 2013-01-29 Tom Tromey <tromey@redhat.com>
600
601 * dwarf2read.c (free_dwo_file): Remove assert.
602
603 2013-01-29 Tom Tromey <tromey@redhat.com>
604
605 * value.c (deprecated_set_value_modifiable): Remove.
606 * value.h (deprecated_set_value_modifiable): Remove.
607
608 2013-01-28 Doug Evans <dje@google.com>
609
610 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
611 to addresses from dwo files.
612
613 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
614
615 * valops.c (find_overload_match): Remove unused argument 'lax'.
616 * value.h: Remove unused argument 'lax' from the declaration of
617 find_overload_match.
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.
622
623 2013-01-25 Tom Tromey <tromey@redhat.com>
624
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.
629
630 2013-01-25 Tom Tromey <tromey@redhat.com>
631
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.
638
639 2013-01-25 Pedro Alves <palves@redhat.com>
640
641 * remote.c (add_current_inferior_and_thread): Tweak comment.
642
643 2013-01-25 Tom Tromey <tromey@redhat.com>
644
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.
652
653 2013-01-25 Tom Tromey <tromey@redhat.com>
654
655 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
656
657 2013-01-25 Pedro Alves <palves@redhat.com>
658
659 * remote.c (stop_reply_extract_thread): New.
660 (add_current_inferior_and_thread): New parameter 'wait_status'.
661 Handle it.
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.
667
668 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
669 Ulrich Weigand <uweigand@de.ibm.com>
670
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
677 behaviour.
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.
685
686 2013-01-25 Yao Qi <yao@codesourcery.com>
687
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.
703
704 2013-01-25 Yao Qi <yao@codesourcery.com>
705
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.
712
713 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
714
715 * MAINTAINERS: Update my email.
716
717 2013-01-25 Yao Qi <yao@codesourcery.com>
718
719 * main.c (print_gdb_help): Remove "--epoch" from the help
720 message.
721
722 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
723
724 * symtab.c (skip_prologue_using_sal): Consider a file
725 change the same as an increased line number
726
727 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
728
729 * MAINTAINERS (Write After Approval): Add myself to the list.
730
731 2013-01-24 Tom Tromey <tromey@redhat.com>
732
733 * ada-lang.h (ada_decode_symbol): Make return type const.
734 * ada-lang.c (ada_decode_symbol): Likewise.
735
736 2013-01-23 Doug Evans <dje@google.com>
737
738 * linespec.c (find_linespec_symbols): Make static.
739
740 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
741
742 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
743 type on float conversion for complex type.
744
745 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
746
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
750 python/py-arch.c.
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
758 functions.
759 * python/python.c (_initialize_python): Initialize
760 gdb.Architecture class.
761
762 2013-01-23 Doug Evans <dje@google.com>
763
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
769 an imported symtab.
770 (write_psymtabs_to_index): Increment version number to 8.
771
772 2013-01-22 Pedro Alves <palves@redhat.com>
773
774 * annotate.c (breakpoint_changed): Skip if breakpoint is not
775 user-visible.
776
777 2013-01-22 Pedro Alves <palves@redhat.com>
778
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.
790
791 2013-01-22 Pedro Alves <palves@redhat.com>
792
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.
803
804 2013-01-22 Pedro Alves <palves@redhat.com>
805
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
810 annotation.
811 * annotate.h (annotate_ignore_count_change): Delete.
812 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
813 annotate_ignore_count_change.
814
815 2013-01-22 Tom Tromey <tromey@redhat.com>
816
817 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
818 require_rvalue for a register location.
819
820 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
821
822 * breakpoint.c (print_one_breakpoint_location): Add MI
823 field 'thread-groups' when printing a breakpoint.
824 (output_thread_groups): New function.
825
826 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
827
828 * python/lib/gdb/commands/explore.py
829 (CompoundExplorer.explore_expr): Correct the name of a method
830 being invoked.
831 (ExploreTypeCommand.invoke): Add a missing 'return'.
832
833 2013-01-21 Tom Tromey <tromey@redhat.com>
834
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.
842
843 2013-01-21 Tom Tromey <tromey@redhat.com>
844
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.
858
859 2013-01-21 Tom Tromey <tromey@redhat.com>
860
861 * dwarf2read.c (fixup_go_packaging): Save package name
862 on objfile obstack.
863 * gdbtypes.c (init_type): Don't copy name.
864
865 2013-01-21 Tom Tromey <tromey@redhat.com>
866
867 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
868 const.
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
875 'name' const.
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'
886 const.
887
888 2013-01-21 Tom Tromey <tromey@redhat.com>
889
890 * gdbtypes.c (init_type): Make 'name' const.
891 * gdbtypes.h (init_type): Update.
892
893 2013-01-21 Tom Tromey <tromey@redhat.com>
894
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.
916
917 2013-01-21 Tom Tromey <tromey@redhat.com>
918
919 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
920 (symbol_set_names): Remove casts. Handle field const-ness.
921
922 2013-01-21 Tom Tromey <tromey@redhat.com>
923
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.
927
928 2013-01-21 Tom Tromey <tromey@redhat.com>
929
930 * main.c (captured_main): Call bfd_init.
931
932 2013-01-21 Tom Tromey <tromey@redhat.com>
933
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.
937 * NEWS: Update.
938
939 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
940
941 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
942
943 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
944
945 Fix gdb.fortran/common-block.exp crash in PIE mode.
946 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
947 LOC_COMMON_BLOCK.
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
951 common_block member.
952 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
953 (enum address_class): New member LOC_COMMON_BLOCK.
954
955 2013-01-18 David Blaikie <dblaikie@gmail.com>
956
957 * MAINTAINERS (Write After Approval): Add "David Blaikie".
958
959 2013-01-18 Tom Tromey <tromey@redhat.com>
960
961 PR c++/14999:
962 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
963 Call require_rvalue.
964
965 2013-01-18 Yao Qi <yao@codesourcery.com>
966
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
984 two parameters.
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.
990
991 2013-01-18 Yao Qi <yao@codesourcery.com>
992
993 * infrun.c (proceed): Rename local variable 'oneproc' to
994 'force_step'.
995
996 2013-01-17 Doug Evans <dje@google.com>
997
998 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
999 (dw2_build_type_unit_groups): Delete. All uses updated.
1000
1001 * symtab.h (struct symbol_search): Add comment.
1002
1003 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1004
1005 * symtab.c (compare_filenames_for_search): New comment for
1006 HAS_DRIVE_SPEC.
1007
1008 2013-01-17 Tom Tromey <tromey@redhat.com>
1009
1010 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1011
1012 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1013
1014 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1015 initialize it by existing make_cleanup. Call new do_cleanups.
1016
1017 2013-01-17 Tom Tromey <tromey@redhat.com>
1018
1019 * cp-abi.c (cp_abi_completer): New function.
1020 (_initialize_cp_abi): Set completer for "set cp-abi".
1021
1022 2013-01-17 Tom Tromey <tromey@redhat.com>
1023
1024 * mem-break.c: Remove obsolete comment.
1025 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1026
1027 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1028
1029 * jit.c (jit_reader_load_command): Interpret the jit reader name
1030 as an absolute path if it begins with a forward slash.
1031
1032 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1033
1034 PR gdb/14550
1035
1036 * jit.c (finalize_symtab): Ensure that only the global block has a
1037 NULL superblock.
1038
1039 2013-01-17 Pedro Alves <palves@redhat.com>
1040
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.
1045
1046 2013-01-16 Doug Evans <dje@google.com>
1047
1048 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1049
1050 2013-01-16 Pedro Alves <palves@redhat.com>
1051 Tom Tromey <tromey@redhat.com>
1052
1053 PR cli/7221:
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
1070 via bpstats.
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.
1076
1077 2013-01-16 Tom Tromey <tromey@redhat.com>
1078
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
1082 "catch-type".
1083
1084 2013-01-16 Yao Qi <yao@codesourcery.com>
1085
1086 * printcmd.c (current_display_number): Make it static.
1087
1088 2013-01-16 Yao Qi <yao@codesourcery.com>
1089
1090 * infcmd.c (step_once): Don't check '!single_inst' as it was
1091 checked before.
1092
1093 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1094
1095 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1096
1097 2013-01-14 Tom Tromey <tromey@redhat.com>
1098
1099 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1100 set command.
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.
1105
1106 2013-01-14 Tom Tromey <tromey@redhat.com>
1107
1108 PR symtab/14442:
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.
1120
1121 2013-01-14 Tom Tromey <tromey@redhat.com>
1122
1123 PR symtab/14931:
1124 * psymtab.c (struct psymtab_state): New.
1125 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1126 functions.
1127 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1128 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1129
1130 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1131 Pedro Alves <palves@redhat.com>
1132
1133 PR remote/14786
1134
1135 * remote.c (remote_threads_info): Make a copy of the reply from
1136 qfThreadInfo and use that instead of rs->buf.
1137
1138 2013-01-14 Yao Qi <yao@codesourcery.com>
1139
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.
1145
1146 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1147
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.
1154
1155 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1158 non-existing files.
1159
1160 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1161 non-existing files if FILENAME is already absolute.
1162
1163 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1164
1165 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1166 fputs_filtered. Append trailing newline.
1167
1168 2013-01-11 Yao Qi <yao@codesourcery.com>
1169 Stan Shebs <stan@codesourcery.com>
1170
1171 * psymtab.c (init_psymbol_list): Clarify the comment.
1172
1173 2013-01-11 Yao Qi <yao@codesourcery.com>
1174
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.
1178
1179 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1180
1181 Code cleanup.
1182 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1183 type const char *.
1184 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1185 const char *.
1186 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1187
1188 2013-01-09 Anthony Green <green@moxielogic.com>
1189
1190 * cp-abi.c (cplus_print_vtable): Don't return value from void
1191 function.
1192 * ada-lang.c (re_set_catch_assert): Ditto.
1193
1194 2013-01-09 Doug Evans <dje@google.com>
1195
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.
1207
1208 2013-01-09 Tom Tromey <tromey@redhat.com>
1209
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
1213 support.
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.
1218
1219 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1220
1221 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1222 Cast return_address to 64bits.
1223
1224 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1225
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.
1229
1230 2013-01-07 Tom Tromey <tromey@redhat.com>
1231
1232 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1233 Remove.
1234 (objc_language_defn): Use c_printchar, c_printstr,
1235 c_emit_char.
1236
1237 2013-01-07 Tom Tromey <tromey@redhat.com>
1238
1239 PR cli/7719:
1240 * NEWS: Update.
1241 * ada-valprint.c (printstr, print_field_values): Remove
1242 "inspect_it" code.
1243 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1244 code.
1245 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1246 code.
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
1252 "inspect_it" code.
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
1262 field.
1263
1264 2013-01-04 Tom Tromey <tromey@redhat.com>
1265
1266 * valprint.h (read_string): Add 'extern'.
1267
1268 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1269
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.
1272
1273 2013-01-03 Pierre Muller <muller@sourceware.org>
1274
1275 * main.c (relocate_gdb_directory): Avoid calling stat function
1276 if DIR is empty.
1277
1278 2013-01-03 Yao Qi <yao@codesourcery.com>
1279
1280 * psymtab.c (fixup_psymbol_section): Update declaration.
1281 (fixup_psymbol_section): Remove code returning value.
1282
1283 2013-01-03 Yao Qi <yao@codesourcery.com>
1284
1285 * symtab.h: Remove some out of date comments.
1286 (enum exception_event_kind): Move it ...
1287 * breakpoint.c: ... here.
1288
1289 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1290
1291 PR gdb/14405
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.
1296
1297 2013-01-02 Tom Tromey <tromey@redhat.com>
1298
1299 * symfile.h (struct ecoff_debug_hack): Remove.
1300 * objfiles.c: Don't include mdebugread.h.
1301
1302 2013-01-02 Tom Tromey <tromey@redhat.com>
1303
1304 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1305 * configure.ac: Check for Mach-O support in BFD. Update
1306 CONFIG_OBS.
1307 * configure: Rebuild.
1308
1309 2013-01-02 Tom Tromey <tromey@redhat.com>
1310
1311 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1312 * configure.ac: Use GDB_AC_CHECK_BFD.
1313 * configure: Rebuild.
1314
1315 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1316
1317 * MAINTAINERS: Update my email.
1318
1319 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1320
1321 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1322
1323 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1324
1325 * rs6000-nat.c (bss_data_overlap): New function.
1326 (vmap_symtab): Use it to adjust the .bss section's offset.
1327
1328 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1329
1330 Update year range in copyright notice of all files.
1331
1332 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1333
1334 * top.c (print_gdb_version): Update copyright year.
1335
1336 For older changes see ChangeLog-2012.
1337 \f
1338 Local Variables:
1339 mode: change-log
1340 left-margin: 8
1341 fill-column: 74
1342 version-control: never
1343 coding: utf-8
1344 End:
This page took 0.055736 seconds and 5 git commands to generate.