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