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