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