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