a200927a62ec3d77ea9606094cbcd00a6921e796
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-07-18 Tom Tromey <tromey@redhat.com>
2
3 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4
5 2012-07-18 Tom Tromey <tromey@redhat.com>
6
7 * gdb_bfd.c (struct gdb_bfd_data): New.
8 (gdb_bfd_cache): New global.
9 (struct gdb_bfd_cache_search): New.
10 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
11 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
12 * gdb_bfd.h (gdb_bfd_open): Declare.
13
14 2012-07-18 Tom Tromey <tromey@redhat.com>
15
16 * utils.c (make_cleanup_bfd_unref): Rename from
17 make_cleanup_bfd_close.
18 * defs.h (make_cleanup_bfd_unref): Rename from
19 make_cleanup_bfd_close.
20 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
21 (bfd_openw_with_cleanup): Update.
22 * corelow.c (core_open): Update.
23 * dsrec.c (load_srec): Update.
24 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
25 * remote-m32r-sdi.c (m32r_load): Update.
26 * remote-mips.c (mips_load_srec): Update.
27 (pmon_load_fast): Update.
28 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
29 Update.
30 (darwin_bfd_open): Update.
31 * solib.c (solib_bfd_fopen): Update.
32 * symfile-mem.c (symbol_file_add_from_memory): Update.
33 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
34 (symfile_bfd_open): Update.
35 (generic_load): Update.
36
37 2012-07-18 Tom Tromey <tromey@redhat.com>
38
39 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
40 (pmon_load_fast): Likewise.
41 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
42 (m32r_upload_command): Likewise.
43 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
44 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
45 Use make_cleanup_bfd_close.
46
47 2012-07-18 Tom Tromey <tromey@redhat.com>
48
49 * symfile.c (symfile_bfd_open): Don't copy name. Call
50 gdb_bfd_stash_filename.
51 (load_command): Open the new BFD before freeing the old.
52 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
53 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
54 Call gdb_bfd_stash_filename.
55 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
56 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
57 gdb_bfd_stash_filename.
58 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
59 Free found_pathname.
60 * rs6000-nat.c (add_vmap): Don't copy filename. Call
61 gdb_bfd_stash_filename.
62 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
63 * machoread.c (macho_add_oso_symfile): Call
64 gdb_bfd_stash_filename.
65 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
66 gdb_bfd_stash_filename.
67 (macho_check_dsym): Don't copy filename. Call
68 gdb_bfd_stash_filename.
69 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
70 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
71 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
72 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
73 * exec.c (exec_close): Don't free the BFD's filename.
74 (exec_file_attach): Don't copy the filename. Call
75 gdb_bfd_stash_filename.
76 * corelow.c (core_close): Don't free the BFD's filename.
77 (core_open): Call gdb_bfd_stash_filename.
78 * corefile.c (reopen_exec_file): Remove #if 0 code.
79 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
80 pathname.
81 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
82
83 2012-07-18 Tom Tromey <tromey@redhat.com>
84
85 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
86 gdb_bfd_unref.
87 (free_dwo_file): Use gdb_bfd_unref.
88 * cli/cli-dump.c: Include gdb_bfd.h.
89 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
90 (bfd_openr_with_cleanup): Likewise.
91 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
92 gdb_bfd_unref.
93 * utils.c: Include gdb_bfd.h.
94 (do_bfd_close_cleanup): Use gdb_bfd_unref.
95 * symfile.c: Include gdb_bfd.h.
96 (separate_debug_file_exists): Use gdb_bfd_unref.
97 (bfd_open_maybe_remote): Use gdb_bfd_ref.
98 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
99 (generic_load): Use gdb_bfd_ref.
100 (reread_symbols): Use gdb_bfd_unref.
101 * symfile-mem.c: Include gdb_bfd.h.
102 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
103 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
104 * solib.c: Include gdb_bfd.h.
105 (solib_bfd_fopen): Use gdb_bfd_ref.
106 (solib_bfd_open): Use gdb_bfd_unref.
107 (free_so_symbols): Use gdb_bfd_unref.
108 (reload_shared_libraries_1): Use gdb_bfd_unref.
109 * solib-spu.c: Include gdb_bfd.h.
110 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
111 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
112 gdb_bfd_unref.
113 * solib-frv.c: Include gdb_bfd.h.
114 (enable_break2): Use gdb_bfd_unref.
115 * solib-dsbt.c: Include gdb_bfd.h.
116 (enable_break2): Use gdb_bfd_unref.
117 * solib-darwin.c: Include gdb_bfd.h.
118 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
119 gdb_bfd_unref.
120 (darwin_bfd_open): Use gdb_bfd_unref.
121 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
122 * remote-mips.c: Include gdb_bfd.h.
123 (mips_load_srec): Use gdb_bfd_ref.
124 (pmon_load_fast): Use gdb_bfd_ref.
125 * remote-m32r-sdi.c: Include gdb_bfd.h.
126 (m32r_load): Use gdb_bfd_ref.
127 * record.c: Include gdb_bfd.h.
128 (record_save_cleanups): Use gdb_bfd_unref.
129 (cmd_record_save): Use gdb_bfd_unref.
130 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
131 gdb_bfd_unref.
132 * objfiles.h (gdb_bfd_close_or_warn): Remove.
133 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
134 * objfiles.c: Include gdb_bfd.h.
135 (free_objfile): Use gdb_bfd_unref.
136 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
137 gdb_bfd.c.
138 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
139 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
140 (macho_check_dsym): Likewise.
141 * m32r-rom.c: Include gdb_bfd.h.
142 (m32r_load): Use gdb_bfd_ref.
143 (m32r_upload_command): Use gdb_bfd_ref.
144 * jit.c: Include gdb_bfd.h.
145 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
146 * gdb_bfd.h: New file.
147 * gdb_bfd.c: New file.
148 * gcore.c: Include gdb_bfd.h.
149 (create_gcore_bfd): Use gdb_bfd_ref.
150 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
151 (gcore_command): Use gdb_bfd_unref.
152 * exec.c: Include gdb_bfd.h.
153 (exec_close): Use gdb_bfd_unref.
154 (exec_close_1): Use gdb_bfd_unref.
155 (exec_file_attach): Use gdb_bfd_ref.
156 * elfread.c: Include gdb_bfd.h.
157 (build_id_verify): Use gdb_bfd_unref.
158 * dsrec.c: Include gdb_bfd.h.
159 (load_srec): Use gdb_bfd_ref.
160 * corelow.c: Include gdb_bfd.h.
161 (core_close): Use gdb_bfd_unref.
162 (core_open): Use gdb_bfd_ref.
163 * bfd-target.c: Include gdb_bfd.h.
164 (target_bfd_xclose): Use gdb_bfd_unref.
165 (target_bfd_reopen): Use gdb_bfd_ref.
166 * Makefile.in (SFILES): Add gdb_bfd.c.
167 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
168 (COMMON_OBS): Add gdb_bfd.o.
169
170 2012-07-18 Keith Seitz <keiths@redhat.com>
171
172 * breakpoint.c (find_condition_and_thread): Initialize
173 TASK and REST.
174 (create_breakpiont): find_condition_and_thread will now
175 initialize COND_STRING, THREAD, and REST (and TASK).
176 (addr_string_to_sals): Likewise.
177
178 2012-07-18 Pedro Alves <palves@redhat.com>
179
180 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
181 Pull the single step breakpoints out of the target.
182
183 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
184
185 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
186 * stap-probe.c (compile_probe_arg): Likewise.
187
188 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
189
190 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
191 (elf_compile_to_ax): Likewise.
192 * infrun.c (insert_exception_resume_from_probe): Likewise.
193 (check_exception_resume): Remove `objfile' variable.
194 * probe.c (find_probe_by_pc): Remove `objfile' argument.
195 (struct probe_and_objfile, probe_and_objfile_s): Delete.
196 (collect_probes): Adjust return value to `VEC (probe_p) *'.
197 (compare_entries): Rename to...
198 (compare_probes): ...this. Adjust function to work with
199 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
200 respectively.
201 (gen_ui_out_table_header_info): Adjust `probes' argument to be
202 `VEC (probe_p) *'.
203 (print_ui_out_info): Adjust argument to be `struct probe *'.
204 (info_probes_for_ops): Adjust internal computations to use
205 `VEC (probe_p) *'.
206 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
207 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
208 gen_info_probes_table_values>: Remove `objfile' argument.
209 (struct probe) <objfile>: New field.
210 (find_probe_by_pc): Remove `objfile' argument.
211 * stap-probe.c (stap_parse_probe_arguments): Likewise.
212 (stap_get_probe_argument_count): Likewise.
213 (stap_get_arg): Likewise.
214 (stap_evaluate_probe_argument): Likewise.
215 (stap_compile_to_ax): Likewise.
216 (compile_probe_arg): Refactor not to pass `objfile' anymore.
217 (handle_stap_probe): Fill `objfile' field from `struct probe'.
218 (stap_gen_info_probes_table_header): Remove `objfile' argument.
219 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
220 sym_compile_to_ax>: Likewise.
221
222 2012-07-18 Terry Guo <terry.guo@arm.com>
223
224 PR 14329
225 * defs.h (GDB_MI_MSG_WIDTH): New.
226 * ser_base (ser_base_read_error_fd): New function.
227 (do_ser_base_readchar): Poll error file descriptor as well as
228 standard output.
229 (generic_readchar): Refactor error handling.
230
231 2012-07-18 Joel Brobecker <brobecker@adacore.com>
232
233 * NEWS: Create a new section for the next release branch.
234 Rename the section of the current branch, now that it has
235 been cut.
236
237 2012-07-18 Joel Brobecker <brobecker@adacore.com>
238
239 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
240 * version.in: Bump version to 7.5.50.20120718-cvs.
241
242 2012-07-17 Keith Seitz <keiths@redhat.com>
243
244 * linespec.c (linespec_parse_line_offset): Make parameter
245 const.
246
247 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
248
249 PR 11914
250 * f-valprint.c (info_common_command): New variable frame_id.
251 Reinitialize FI form FRAME_ID after each print_variable_and_value.
252 * printcmd.c (print_variable_and_value): Extend function comment.
253 Add comment for invalidated FRAME.
254 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
255 FI form FRAME_ID after each print_frame_local_vars.
256 (struct print_variable_and_value_data): Change frame to frame_id.
257 (do_print_variable_and_value): New variable frame, initialize it from
258 p->frame_id. Add comment for invalidated FRAME.
259 (print_frame_local_vars, print_frame_arg_vars): New function comment.
260 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
261 for invalidated FRAME.
262
263 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
264 Pedro Alves <palves@redhat.com>
265
266 * linux-nat.c (linux_nat_detach): Don't unregister from the event
267 loop.
268
269 2012-07-16 Tom Tromey <tromey@redhat.com>
270
271 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
272
273 2012-07-15 Doug Evans <dje@google.com>
274
275 * dwarf2read.c (stmt_list_hash): New struct.
276 (type_unit_group): Embed "per_cu" member, remove pointer.
277 New union member "t", move member "tus" into it, all uses updated.
278 New member "hash", replaces member "line_offset, all uses updated.
279 (quick_file_names): Replace member "offset" with "hash", all uses
280 updated.
281 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
282 (hash_file_name_entry, eq_file_name_entry): Call them.
283 (hash_type_unit_group, eq_type_unit_group): Ditto.
284 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
285 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
286 (dw2_get_file_names): Update.
287 (create_type_unit_group): Replace "per_cu" arg with "cu".
288 All callers updated. Fix "quick" (.gdb_index) handling.
289 (get_type_unit_group): Replace "per_cu" arg with "cu".
290 All callers updated.
291 (build_type_unit_groups): Don't reset tu_stats.
292
293 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
294 "tab_cur_size". Change member "tab" to be a htab_t.
295 (create_filename_seen_cache): Update.
296 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
297 (filename_seen): Update.
298
299 2012-07-13 Doug Evans <dje@google.com>
300
301 * symtab.c (filename_seen): Update comment.
302
303 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
304 Doug Evans <dje@google.com>
305
306 * buildsym.c (end_symtab_1): Split it to ...
307 (end_symtab_get_static_block): ... this ...
308 (end_symtab_from_static_block): ... and this function.
309 (end_symtab, end_expandable_symtab): Call them.
310 * buildsym.h (end_symtab_get_static_block)
311 (end_symtab_from_static_block): New declarations.
312 * dwarf2read.c (process_full_comp_unit): New variable static_block.
313 Set its valid CU ranges.
314
315 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
316
317 * dwarf2loc.c (disassemble_dwarf_expression): Handle
318 DW_OP_GNU_parameter_ref.
319
320 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
321
322 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
323 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
324
325 2012-07-13 Doug Evans <dje@google.com>
326
327 * symtab.c (output_source_filename): Delete unnecessary forward decl.
328 (filename_seen_cache): New struct.
329 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
330 (create_filename_seen_cache): New function.
331 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
332 (filename_seen): Delete arg "first". New arg "cache". All callers
333 updated.
334 (output_source_filename_data): New struct.
335 (output_source_filename): Delete arg "first". New arg "data".
336 All callers updated.
337 (sources_info): Delete local "first". New locals "data", "cleanups".
338 Rewrite to use filename_seen_cache.
339 (add_partial_filename_data): Delete member "first". New member
340 "filename_seen_cache". All uses updated.
341 (make_source_files_completion_list): Rewrite to use
342 filename_seen_cache.
343
344 2012-07-12 Doug Evans <dje@google.com>
345
346 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
347
348 2012-07-10 Doug Evans <dje@google.com>
349
350 PR gdb/13498
351 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
352 all_type_unit_groups, type_unit_groups, tu_stats.
353 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
354 All uses updated. Add type_unit_group to union "s".
355 (type_unit_group): New struct.
356 (IS_TYPE_UNIT_GROUP): New macro.
357 (abbrev_table): Delete unused member "section".
358 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
359 (dw2_get_cu): Assert not used with type_unit_group.
360 (dw2_get_primary_cu): New function.
361 (dw2_build_type_unit_groups_reader): New function.
362 (dw2_build_type_unit_groups): New function.
363 (dw2_get_file_names): Assert not called on type units.
364 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
365 Redo loop to iterate over type unit groups instead of type units.
366 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
367 (read_abbrev_offset): New function.
368 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
369 updated.
370 (create_partial_symtab): New function.
371 (process_psymtab_comp_unit_reader): Assert not used with type units.
372 Call create_partial_symtab.
373 (process_psymtab_type_unit): Delete.
374 (hash_type_unit_group, eq_type_unit_group): New functions.
375 (allocate_type_unit_groups_table): New function.
376 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
377 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
378 (create_type_unit_group, get_type_unit_group): New functions.
379 (tu_abbrev_offset): New struct.
380 (sort_tu_by_abbrev_offset): New function.
381 (add_type_unit_group_to_table): New function.
382 (build_type_unit_groups): New function.
383 (build_type_psymtabs_reader): New function.
384 (build_type_psymtab_dependencies): New function.
385 (build_type_psymtabs): Rewrite.
386 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
387 is seen in a type unit.
388 (process_queue): Move symtab expansion debugging printfs here.
389 Call process_full_type_unit for type units.
390 (compute_symtab_includes): Assert not called for type units.
391 (process_cu_includes): Don't call compute_symtab_includes for
392 type units.
393 (process_full_type_unit): New function.
394 (process_imported_unit_die): Flag an error if called for type units.
395 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
396 updated. Assert not called for type units.
397 (read_file_scope): Call dwarf2_start_symtab.
398 (setup_type_unit_groups): New function.
399 (read_type_unit_scope): Rewrite.
400 (abbrev_table_read_table): Initialize abbrev_table->offset.
401 (abbrev_table_free_cleanup): New function.
402 (dwarf2_start_symtab): New function.
403 (load_full_type_unit): Assert not called for type unit groups.
404 * buildsym.c (finish_block_internal): New arg "expandable".
405 All callers updated.
406 (start_symtab): Move most contents to ...
407 (restart_symtab): ... here. New function.
408 (reset_symtab_globals): New function.
409 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
410 Call reset_symtab_globals.
411 (end_symtab, end_expandable_symtab): New functions.
412 (set_missing_symtab, augment_type_symtab): New functions.
413 * buildsym.h (end_expandable_symtab): Declare.
414 (augment_type_symtab, restart_symtab): Declare.
415 * psympriv.h (struct partial_symtab): New member "anonymous".
416 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
417 anonymous psymtabs.
418 (read_psymtabs_with_filename): Ditto.
419 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
420 (expand_symtabs_matching_via_partial): Ditto.
421 (dump_psymtab): Update.
422 * dictionary.c (dict_add_pending): New function.
423 * dictionary.h (dict_add_pending): Declare.
424
425 2012-07-09 Doug Evans <dje@google.com>
426
427 * buildsym.c (start_subfile): Remove unnecessary check for
428 name == NULL.
429
430 * psymtab.c (allocate_psymtab): Use host_address_to_string.
431
432 * dwarf2read.c (load_full_type_unit): Simplify.
433
434 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
435 to struct signatured_type **. All uses updated.
436
437 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
438 All callers updated.
439
440 2012-07-09 Tom Tromey <tromey@redhat.com>
441
442 * c-exp.y (check_parameter_typelist): New function.
443 (parameter_typelist): Call it.
444 * eval.c (make_params): Handle '(void)' case.
445 * gdbtypes.c (lookup_function_type_with_arguments): Handle
446 '(void)' case.
447
448 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
449
450 * common/linux-ptrace.c: Include gdb_assert.h.
451 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
452 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
453 stdint.h.
454 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
455 functions.
456 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
457 * linux-nat.c (linux_child_post_attach)
458 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
459
460 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
461
462 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
463 nptl <2.7 bug workaround for core files.
464
465 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
466
467 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
468 clearing.
469 (save_siginfo): Remove.
470 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
471 call.
472 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
473 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
474 * linux-nat.h (struct lwp_info): Remove field siginfo.
475
476 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
477
478 Code cleanup for the next patch.
479 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
480 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
481 call for it.
482 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
483 (ia64_linux_stopped_data_address):
484 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
485 the return value.
486 * linux-nat.h (linux_nat_get_siginfo): Likewise.
487 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
488 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
489 call for it.
490
491 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
492
493 PR 14321
494 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
495 Increase buffer sizes to 2x we need, not just 2x of the previous size.
496
497 2012-07-06 Tom Tromey <tromey@redhat.com>
498
499 * c-exp.y (DOTDOTDOT): New token.
500 (func_mod, exp): Use parameter_typelist.
501 (parameter_typelist): New production.
502 (tokentab3): Add "..." token.
503 * eval.c (make_params): Handle varargs.
504 * gdbtypes.c (lookup_function_type_with_arguments): Handle
505 varargs.
506
507 2012-07-06 Tom Tromey <tromey@redhat.com>
508
509 PR exp/9608:
510 * c-exp.y (%union) <tvec>: Change type.
511 (func_mod): Now uses <tvec> type.
512 (exp): Update for tvec change.
513 (direct_abs_decl): Push the typelist.
514 (func_mod): Return a typelist.
515 (nonempty_typelist): Update for tvec change.
516 * gdbtypes.c (lookup_function_type_with_arguments): New function.
517 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
518 * parse.c (pop_type_list): New function.
519 (push_typelist): New function.
520 (follow_types): Handle tp_function_with_arguments.
521 * parser-defs.h (type_ptr): New typedef. Define a VEC.
522 (enum type_pieces) <tp_function_with_arguments>: New constant.
523 (union type_stack_elt) <typelist_val>: New field.
524 (push_typelist): Declare.
525
526 2012-07-06 Tom Tromey <tromey@redhat.com>
527
528 * c-exp.y (%union) <type_stack>: New field.
529 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
530 (ptr_operator_ts): New production.
531 (ptype): Update.
532 * parse.c (type_stack_reserve): New function.
533 (check_type_stack_depth): Use it.
534 (pop_type_stack, append_type_stack, push_type_stack)
535 (get_type_stack, type_stack_cleanup): New functions.
536 (follow_types): Handle tp_type_stack.
537 (_initialize_parse): Simplify initialization.
538 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
539 constant.
540 (union type_stack_elt) <stack_val>: New field.
541 (get_type_stack, append_type_stack, push_type_stack)
542 (type_stack_cleanup): Declare.
543
544 2012-07-06 Tom Tromey <tromey@redhat.com>
545
546 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
547 Remove.
548 (struct type_stack): New.
549 * parse.c (type_stack, type_stack_size, type_stack_depth):
550 Remove.
551 (type_stack): New global.
552 (parse_exp_in_context, check_type_stack_depth)
553 (insert_into_type_stack, insert_type, push_type, push_type_int)
554 (insert_type_address_space, pop_type, pop_type_int)
555 (_initialize_parse): Update.
556
557 2012-07-06 Tom Tromey <tromey@redhat.com>
558
559 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
560 Remove %type.
561
562 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
563
564 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
565
566 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
567 Jan Kratochvil <jan.kratochvil@redhat.com>
568
569 * cp-valprint.c (cp_print_value): Replace potentially unsafe
570 alloca with xmalloc/xfree.
571
572 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
573
574 * MAINTAINERS (Write After Approval): Add myself to the list.
575
576 2012-07-05 Doug Evans <dje@google.com>
577
578 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
579
580 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
581
582 * ax-gdb.c (cli/cli-utils.h): New include.
583 (linespec.h): Ditto.
584 (agent_eval_command_one): New function.
585 (agent_command_1): Ditto.
586 (agent_command): Call function agent_command_1.
587 (agent_eval_command): Ditto.
588 (_initialize_ax_gdb): Change help for "maint agent"
589 and "maint agent-eval".
590
591 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
592
593 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
594 * cli/cli-utils.c (check_for_argument): New function.
595 * cli/cli-utils.h (check_for_argument): Ditto.
596
597 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
598
599 * NEWS: Mention x32 ABI support.
600
601 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
602
603 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
604 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
605
606 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
607 and pc_regnum_from_eax to -1. Update SP regnum from
608 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
609 needed.
610
611 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
612 pc_regnum_from_eax.
613
614 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
615
616 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
617 * dwarf2expr.h: Include gdbtypes.h.
618 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
619 these forward declarations.
620 (cu_offset, sect_offset): Move these ...
621 * gdbtypes.h: Remove include dwarf2expr.h.
622 (cu_offset, sect_offset): ... here.
623
624 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
625
626 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
627 (amd64_linux_sigtramp_code): This.
628 (amd64_x32_linux_sigtramp_code): New.
629 (LINUX_SIGTRAMP_LEN): Updated.
630 (amd64_linux_sigtramp_start): Check x32 sigtramp.
631
632 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
633
634 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
635
636 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
637
638 * config.in: Regenerate.
639 * configure: Regenerate.
640 * configure.ac: Remove check for gnu/libc-version.h.
641 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
642 gnu/libc-version.h.
643 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
644 variables libc_version, libc_major and libc_minor. Replace sscanf by
645 inferior_has_bug. Extend the comment.
646
647 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 * linux-thread-db.c (inferior_has_bug): New function.
650 (thread_db_find_new_threads_silently): Return boolean as checked by
651 inferior_has_bug, describe it in the comments.
652 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
653 earlier. Abort the initialization if it returned non-zero.
654 (thread_db_new_objfile): Exclude debug files.
655 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
656 if UNTIL_NO_NEW,
657
658 2012-07-02 Doug Evans <dje@google.com>
659
660 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
661 related to queue management.
662
663 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
664 instead of "debug dwarf2-die" in debugging printfs.
665 (create_debug_info_hash_table_reader): Ditto.
666 (create_debug_info_hash_table): Ditto.
667 (init_dwo_file): Ditto.
668 (init_cutu_and_read_dies): Add debugging printf.
669 (init_cutu_and_read_dies_no_follow): Ditto.
670 (process_psymtab_comp_unit_reader): Ditto.
671
672 2012-07-02 Stan Shebs <stan@codesourcery.com>
673
674 Add target-side support for dynamic printf.
675 * NEWS: Mention the additional style.
676 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
677 (struct bp_location): New field cmd_bytecode.
678 * breakpoint.c: Include format.h.
679 (disconnected_dprintf): New global.
680 (parse_cmd_to_aexpr): New function.
681 (build_target_command_list): New function.
682 (insert_bp_location): Call it.
683 (remove_breakpoints_pid): Skip dprintf breakpoints.
684 (print_one_breakpoint_location): Ditto.
685 (dprintf_style_agent): New global.
686 (dprintf_style_enums): Add dprintf_style_agent.
687 (update_dprintf_command_list): Add agent case.
688 (agent_printf_command): New function.
689 (_initialize_breakpoint): Add new commands.
690 * common/ax.def (printf): New bytecode.
691 * ax.h (ax_string): Declare.
692 * ax-gdb.h (gen_printf): Declare.
693 * ax-gdb.c: Include cli-utils.h, format.h.
694 (gen_printf): New function.
695 (maint_agent_print_command): New function.
696 (_initialize_ax_gdb): Add maint agent-printf command.
697 * ax-general.c (ax_string): New function.
698 (ax_print): Add printf disassembly.
699 * Makefile.in (SFILES): Add format.c
700 (COMMON_OBS): Add format.o.
701 * common/format.h: New file.
702 * common/format.c: New file.
703 * printcmd.c: Include format.h.
704 (ui_printf): Call parse_format_string.
705 * remote.c (remote_state): New field breakpoint_commands.
706 (PACKET_BreakpointCommands): New enum.
707 (remote_breakpoint_commands_feature): New function.
708 (remote_protocol_features): Add new BreakpointCommands entry.
709 (remote_can_run_breakpoint_commands): New function.
710 (remote_add_target_side_commands): New function.
711 (remote_insert_breakpoint): Call it.
712 (remote_insert_hw_breakpoint): Ditto.
713 (_initialize_remote): Add new packet configuration for
714 target-side breakpoint commands.
715 * target.h (struct target_ops): New field
716 to_can_run_breakpoint_commands.
717 (target_can_run_breakpoint_commands): New macro.
718 * target.c (update_current_target): Handle
719 to_can_run_breakpoint_commands.
720
721 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
722
723 Execute -ix and -iex only after system and user gdbinit files.
724 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
725 processing down after gdbinit files.
726
727 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
728
729 Add fnmatch-gnu module.
730 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
731 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
732 * gnulib/aclocal.m4: Regenerate.
733 * gnulib/config.in: Regenerate.
734 * gnulib/configure: Regenerate.
735 * gnulib/import/dummy.c: Remove.
736 * gnulib/import/Makefile.am: Regenerate.
737 * gnulib/import/Makefile.in: Likewise.
738 * gnulib/import/m4/gnulib-cache.m4: Likewise.
739 * gnulib/import/m4/gnulib-comp.m4: Likewise.
740 * gnulib/import/alloca.c: New file.
741 * gnulib/import/alloca.in.h: Likewise.
742 * gnulib/import/config.charset: Likewise.
743 * gnulib/import/fnmatch.c: Likewise.
744 * gnulib/import/fnmatch.in.h: Likewise.
745 * gnulib/import/fnmatch_loop.c: Likewise.
746 * gnulib/import/localcharset.c: Likewise.
747 * gnulib/import/localcharset.h: Likewise.
748 * gnulib/import/m4/alloca.m4: Likewise.
749 * gnulib/import/m4/codeset.m4: Likewise.
750 * gnulib/import/m4/configmake.m4: Likewise.
751 * gnulib/import/m4/fcntl-o.m4: Likewise.
752 * gnulib/import/m4/fnmatch.m4: Likewise.
753 * gnulib/import/m4/glibc21.m4: Likewise.
754 * gnulib/import/m4/localcharset.m4: Likewise.
755 * gnulib/import/m4/locale-fr.m4: Likewise.
756 * gnulib/import/m4/locale-ja.m4: Likewise.
757 * gnulib/import/m4/locale-zh.m4: Likewise.
758 * gnulib/import/m4/mbrtowc.m4: Likewise.
759 * gnulib/import/m4/mbsinit.m4: Likewise.
760 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
761 * gnulib/import/m4/mbstate_t.m4: Likewise.
762 * gnulib/import/m4/stdbool.m4: Likewise.
763 * gnulib/import/m4/wchar_h.m4: Likewise.
764 * gnulib/import/m4/wctype_h.m4: Likewise.
765 * gnulib/import/m4/wint_t.m4: Likewise.
766 * gnulib/import/mbrtowc.c: Likewise.
767 * gnulib/import/mbsinit.c: Likewise.
768 * gnulib/import/mbsrtowcs-impl.h: Likewise.
769 * gnulib/import/mbsrtowcs-state.c: Likewise.
770 * gnulib/import/mbsrtowcs.c: Likewise.
771 * gnulib/import/ref-add.sin: Likewise.
772 * gnulib/import/ref-del.sin: Likewise.
773 * gnulib/import/stdbool.in.h: Likewise.
774 * gnulib/import/streq.h: Likewise.
775 * gnulib/import/strnlen1.c: Likewise.
776 * gnulib/import/strnlen1.h: Likewise.
777 * gnulib/import/verify.h: Likewise.
778 * gnulib/import/wchar.in.h: Likewise.
779 * gnulib/import/wctype.in.h: Likewise.
780
781 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
782
783 Support shell wildcards for 'set auto-load safe-path'.
784 * auto-load.c: Include fnmatch.h.
785 (filename_is_in_dir): Rename to ...
786 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
787 it. Update function comment. Rename dir_len to pattern_len. New
788 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
789 messages. Use gdb_filename_fnmatch.
790 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
791 pattern.
792 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
793 * defs.h (gdb_filename_fnmatch): New declaration.
794 * utils.c: Include fnmatch.h.
795 (gdb_filename_fnmatch): New function.
796
797 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
798
799 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
800 `-probe' and `-probe-stap' options.
801
802 2012-07-01 Yao Qi <yao@codesourcery.com>
803
804 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
805 always_inserted_off, and always_inserted_enums.
806 Change always_inserted_mode's type to 'enum auto_boolean'.
807 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
808 callers.
809 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
810 of add_setshow_enum_cmd.
811 * infrun.c: Remove can_use_displaced_stepping_auto,
812 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
813 can_use_displaced_stepping_enum.
814 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
815 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
816 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
817 add_setshow_enum_cmd.
818
819 2012-06-30 Doug Evans <dje@google.com>
820
821 * dwarf2read.c (signatured_type): Make "per_cu" member first.
822 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
823 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
824
825 2012-06-29 Doug Evans <dje@google.com>
826
827 * linespec.c: #include "stack.h".
828 (decode_line_with_current_source): Moved here from symtab.c and
829 renamed from decode_line_spec. All callers updated.
830 (decode_line_with_last_displayed): Moved here from breakpoint.c and
831 renamed from decode_line_spec_1. All callers updated.
832 * linespec.h (decode_line_with_current_source): Move declaration here
833 from symtab.h and renamed from decode_line_spec.
834 (decode_line_with_last_displayed): Move declaration here from symtab.h
835 and renamed from decode_line_spec_1.
836 * macrocmd.c: #include "linespec.h".
837 * symtab.c: Remove #include "linespec.h".
838
839 2012-06-28 Doug Evans <dje@google.com>
840
841 * dwarf2read.c (get_cu_length): New function.
842 (offset_in_cu_p, error_check_comp_unit_head): Call it.
843 (create_debug_types_hash_table): Ditto.
844 (init_cutu_and_read_dies): Ditto.
845 (init_cutu_and_read_dies_no_follow): Ditto.
846
847 * dwarf2read.c (dwarf2_find_base_address): Move definition.
848
849 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
850 (struct abbrev_table): Define.
851 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
852 abbrev_table.
853 (init_cutu_and_read_dies): Update.
854 (abbrev_table_alloc_abbrev): New function. Replaces
855 dwarf_alloc_abbrev. All callers updated.
856 (abbrev_table_add_abbrev): New function.
857 (abbrev_table_lookup_abbrev): New function. Replaces
858 dwarf2_lookup_abbrev. All callers updated.
859 (abbrev_table_read_table): New function. Contents moved here from
860 dwarf2_read_abbrevs.
861 (dwarf2_read_abbrevs): Call it.
862 (abbrev_table_free): New function.
863 (dwarf2_free_abbrev_table): Call it.
864
865 2012-06-28 Stan Shebs <stan@codesourcery.com>
866
867 * osdata.c (info_osdata_command): Filter out "Title" columns
868 from non-MI uses.
869 * common/linux-osdata.c (struct osdata_type): Add title field.
870 (osdata_table): Add titles to each entry.
871 (linux_command_xfer_osdata): Add a column for title data.
872
873 2012-06-28 Stan Shebs <stan@codesourcery.com>
874
875 Make logging work for MI.
876 * NEWS: Mention it.
877 * interps.h (interp_set_logging_ftype): New typedef.
878 (struct interp_procs): New field set_logging_proc.
879 (current_interp_set_logging): Declare.
880 * interps.c (current_interp_set_logging): New function.
881 * cli/cli-logging.c: Include interps.h.
882 (set_logging_redirect): Call current_interp_set_logging.
883 (pop_output_files): Ditto.
884 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
885 * mi/mi-console.h (mi_console_set_raw): Declare.
886 * mi/mi-console.c (mi_console_set_raw): New function.
887 * mi/mi-interp.c (saved_raw_stdout): New global.
888 (mi_set_logging): New function.
889 (_initialize_mi_interp): Add it to interp procs.
890
891 2012-06-28 Doug Evans <dje@google.com>
892
893 * symtab.c (lookup_symbol_aux_objfile): Use
894 ALL_OBJFILE_PRIMARY_SYMTABS.
895
896 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
897
898 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 * common/buffer.c: Include inttypes.h and stdint.h.
901 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
902
903 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
904 Pedro Alves <palves@redhat.com>
905
906 * gdbthread.h (ALL_THREADS): New macro.
907 (thread_list): Declare.
908 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
909 going, but instead fall through to the stepping handling.
910 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
911 the passed in signal. Adjust debug output.
912 (resume_callback): Rename to ...
913 (linux_nat_resume_callback): ... this. Pass the thread's last
914 stop signal, if in "pass" state.
915 (linux_nat_resume): Adjust to rename.
916 (stop_wait_callback): New assertion. Don't respawn signals;
917 instead let the LWP remain with SIGNALLED set.
918 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
919 * remote.c (append_pending_thread_resumptions): New.
920 (remote_vcont_resume): Call it.
921 * target.h (target_resume): Extend comment.
922
923 2012-06-28 Iain Sandoe <iain@codesourcery.com>
924
925 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
926
927 2012-06-27 Doug Evans <dje@google.com>
928
929 * dwarf2read.c (dwarf2_cu): Add ranges_base.
930 Delete have_addr_base, unused. All uses updated.
931 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
932 (dwarf2_get_pc_bounds): Add ranges_base.
933 (dwarf2_record_block_ranges): Ditto.
934
935 2012-06-27 Tom Tromey <tromey@redhat.com>
936
937 PR macros/7961:
938 * varobj.c (varobj_create): Update.
939 (varobj_set_value): Update.
940 * tracepoint.c (validate_actionline): Update.
941 (encode_actions_1): Update.
942 * parse.c (parse_exp_1): Add 'pc' argument.
943 (parse_exp_in_context): Add 'pc' argument. Change how
944 expression_context_pc is set.
945 (parse_expression): Update.
946 (parse_field_expression): Update.
947 * expression.h (parse_exp_1): Update.
948 * eval.c (parse_to_comma_and_eval): Update.
949 * breakpoint.c (set_breakpoint_condition): Update.
950 (update_watchpoint): Update.
951 (init_breakpoint_sal): Update
952 (find_condition_and_thread): Update.
953 (watch_command_1): Update.
954 (update_breakpoint_locations): Update.
955 * ada-lang.c (ada_read_renaming_var_value): Update.
956 (create_excep_cond_exprs): Update.
957
958 2012-06-27 Doug Evans <dje@google.com>
959
960 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
961 type units.
962
963 2012-06-26 Doug Evans <dje@google.com>
964
965 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
966 prototype.
967 (error_check_comp_unit_head): New arg abbrev_section. All callers
968 updated.
969 (read_and_check_comp_unit_head): Ditto.
970 (read_and_check_type_unit_head): Ditto.
971
972 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
973
974 New attribute 'last' for gdb.Symtab_and_line.
975 * NEWS (Python Scripting): Add entry about the new attribute.
976 * python/py-symtab.c (salpy_get_last): New function which
977 implements the get method for the 'last' attribute of
978 gdb.Symtab_and_line.
979 (sal_object_getset): Add entry for the 'last' attribute.
980
981 2012-06-26 Doug Evans <dje@google.com>
982
983 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
984 (dwo_sections): Add macinfo, macro.
985 (dwarf2_locate_dwo_sections): Watch for macro sections.
986 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
987 All callers updated. Handle DWO files.
988
989 * NEWS: Mention new options "set debug dwarf2-read" and
990 "set debug symtab-create".
991 * dwarf2read.c (dwarf2_read_debug): New static global.
992 (dwarf2_build_psymtabs_hard): Add debugging printfs.
993 (process_queue): Ditto.
994 (process_full_comp_unit): Ditto.
995 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
996 * elfread.c (elf_symfile_read): Add debugging printf.
997 * minsyms.c (install_minimal_symbols): Ditto.
998 * psymtab.c (allocate_psymtab): Ditto.
999 * symfile.c (allocate_symtab): Ditto.
1000 * symtab.c (symtab_create_debug): New global.
1001 (_initialize_symtab): Add new option "set debug symtab-create".
1002 * symtab.h (symtab_create_debug): Declare.
1003
1004 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1005 (lookup_dwo_type_unit): Ditto.
1006
1007 2012-06-26 Roland McGrath <roland@hack.frob.com>
1008 H.J. Lu <hongjiu.lu@intel.com>
1009
1010 * amd64-linux-nat.c: Include <sys/user.h>.
1011 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1012 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1013 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1014
1015 * configure.ac: Check if the fs_base and gs_base members of
1016 `struct user_regs_struct' exist.
1017 * config.in: Regenerated.
1018 * configure: Likewise.
1019
1020 2012-06-25 Michael Eager <eager@eagercon.com>
1021
1022 PR python/14291
1023 * python/python.c (gdbpy_write): Check for interrupted output.
1024
1025 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1026
1027 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1028 register as a stack alignment in ARM mode.
1029
1030 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1031
1032 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1033 * gnulib/config.in: Regenerate.
1034 * gnulib/configure: Likewise.
1035 * gnulib/import/m4/extensions.m4: Update it.
1036 * gnulib/import/m4/gnulib-common.m4: Likewise.
1037 * gnulib/import/m4/memmem.m4: Likewise.
1038 * gnulib/import/m4/mmap-anon.m4: Likewise.
1039 * gnulib/import/m4/multiarch.m4: Likewise.
1040 * gnulib/import/stdint.in.h: Likewise.
1041
1042 2012-06-24 Yao Qi <yao@codesourcery.com>
1043
1044 * corefile.c (write_memory_with_notification): New.
1045 * gdbcore.h: Declare write_memory_with_notification.
1046 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1047 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1048 * valops.c (value_assign): Likewise.
1049 * python/py-inferior.c (infpy_write_memory): Call
1050 'write_memory_with_notification'.
1051
1052 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1053
1054 * cc-with-index.sh: Use also -ex "set auto-load no".
1055
1056 2012-06-23 Doug Evans <dje@google.com>
1057
1058 PR 14125
1059 * NEWS: Document additions to .gdb_index.
1060 * dwarf2read.c: #include "gdb/gdb-index.h".
1061 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1062 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1063 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1064 (dwarf2_read_index): Recognize version 7.
1065 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1066 block_kind, domain): All callers updated.
1067 (dw2_find_symbol_file): Handle new index CU values.
1068 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1069 (add_index_entry): New args is_static, kind. All callers updated.
1070 (offset_type_compare, uniquify_cu_indices): New functions
1071 (symbol_kind): New function.
1072 (write_psymtabs_to_index): Remove duplicate CU values.
1073 (write_psymtabs_to_index): Write .gdb_index version 7.
1074
1075 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1076
1077 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1078 * configure: Regenerate.
1079
1080 2012-06-20 Yao Qi <yao@codesourcery.com>
1081
1082 * python/py-inferior.c: Update comments of infpy_read_memory
1083 and infpy_write_memory.
1084
1085 2012-06-19 Tom Tromey <tromey@redhat.com>
1086
1087 PR exp/9514:
1088 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1089 (push_type_address_space): Remove.
1090 * parse.c (insert_into_type_stack): New function.
1091 (insert_type): Likewise.
1092 (insert_type_address_space): Rename from push_type_address_space.
1093 Insert tp_space_identifier.
1094 * c-exp.y (ptr_operator): New production.
1095 (abs_decl): Use ptr_operator.
1096 (space_identifier): Call insert_type_address_space.
1097 (ptype): Don't use const_or_volatile_or_space_identifier.
1098 (const_or_volatile_noopt): Call insert_type.
1099 (conversion_type_id, conversion_declarator): New productions.
1100 (operator): Use conversion_type_id.
1101
1102 2012-06-18 Doug Evans <dje@google.com>
1103
1104 * symtab.h (minimal_symbol): New member created_by_gdb.
1105 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1106 created by gdb.
1107 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1108 (search_symbols): Call it instead of lookup_symbol.
1109 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1110
1111 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1112 Adjust address for DW_OP_GNU_addr_index.
1113 * dwarf2expr.h (dwarf_expr_context): Update comment.
1114 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1115 all callers updated. Handle TLS vars described with
1116 DW_OP_GNU_const_index.
1117 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1118 and DW_OP_GNU_const_index.
1119 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1120
1121 * block.c (find_block_in_blockvector): Make explicit the fact that we
1122 ignore GLOBAL_BLOCK.
1123
1124 2012-06-18 Tom Tromey <tromey@redhat.com>
1125
1126 * c-exp.y (operator): Remove trailing space after "delete" and
1127 "delete[]".
1128
1129 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1130 Jan Kratochvil <jan.kratochvil@redhat.com>
1131
1132 Switch i386 and derived targets to ON_STACK.
1133 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1134 (amd64_dicos_init_abi): Remove its installment.
1135 * dicos-tdep.c (dicos_init_abi): Remove the
1136 set_gdbarch_call_dummy_location call. Update the comment here.
1137 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1138 (i386_dicos_init_abi): Remove its installment.
1139 * i386-tdep.c (i386_push_dummy_code): New function.
1140 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1141 i386_push_dummy_code.
1142
1143 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1144
1145 Remove stale dummy frames.
1146 * breakpoint.c: Include dummy-frame.h.
1147 (longjmp_breakpoint_ops): New variable.
1148 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1149 bp_longjmp_call_dummy.
1150 (bpstat_what, bptype_string, print_one_breakpoint_location)
1151 (init_bp_location): Support bp_longjmp_call_dummy.
1152 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1153 (set_longjmp_breakpoint_for_call_dummy)
1154 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1155 functions.
1156 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1157 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1158 FIXME comment and extend the other comment for bp_call_dummy.
1159 (set_longjmp_breakpoint_for_call_dummy)
1160 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1161 * dummy-frame.c: Include gdbthread.h.
1162 (pop_dummy_frame_bpt): New function.
1163 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1164 (dummy_frame_discard): New function.
1165 (cleanup_dummy_frames): Update the comment about longjmps.
1166 * dummy-frame.h (dummy_frame_discard): New declaration.
1167 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1168 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1169 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1170 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1171 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1172 keep_going if IS_LONGJMP and there is no other reason to stop.
1173
1174 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1175
1176 * remote-sim.c (sim_command_completer): Initialize
1177 variable 'result'.
1178
1179 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1180
1181 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1182 * dwarf2loc.c (call_site_parameter_matches): Support
1183 CALL_SITE_PARAMETER_PARAM_OFFSET.
1184 (needs_dwarf_reg_entry_value): Push stub value.
1185 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1186 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1187 * gdbtypes.h (enum call_site_parameter_kind): New item
1188 CALL_SITE_PARAMETER_PARAM_OFFSET.
1189 (struct call_site.parameter.u): New field param_offset.
1190
1191 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1192
1193 Code cleanup: Generalize call_site.parameter key.
1194 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1195 variable dwarf_reg. New variable kind_u. Update parameters to
1196 push_dwarf_reg_entry_value.
1197 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1198 * dwarf2expr.h (enum call_site_parameter_kind)
1199 (union call_site_parameter_u): Forward declarations.
1200 (struct dwarf_expr_context_funcs): Update parameters and their
1201 description for push_dwarf_reg_entry_value.
1202 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1203 * dwarf2loc.c (call_site_parameter_matches): New function.
1204 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1205 description. Use call_site_parameter_matches.
1206 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1207 Update parameters and their description.
1208 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1209 New variable kind_u. Adjust the caller for updated parameters.
1210 (needs_dwarf_reg_entry_value): Update parameters.
1211 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1212 instead of attr. Update for the changed fields of struct
1213 call_site_parameter.
1214 * gdbtypes.h: Include dwarf2expr.h.
1215 (enum call_site_parameter_kind): New.
1216 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1217 fb_offset into new union u.
1218
1219 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1220
1221 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1222 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1223 for x32.
1224
1225 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1226
1227 * amd64-linux-nat.c (compat_x32_clock_t): New.
1228 (compat_x32_siginfo_t): Likewise.
1229 (compat_x32_siginfo_from_siginfo): Likewise.
1230 (siginfo_from_compat_x32_siginfo): Likewise.
1231 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1232 and siginfo_from_compat_x32_siginfo for x32.
1233
1234 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1235
1236 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1237
1238 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1239
1240 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1241 instead of gdbarch_ptr_bit.
1242 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1243 (amd64_supply_native_gregset): Likewise.
1244 (amd64_collect_native_gregset): Likewise.
1245 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1246 (amd64_supply_xsave): Likewise.
1247 (amd64_collect_fxsave): Likewise.
1248 (amd64_collect_xsave): Likewise.
1249
1250 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1251
1252 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1253 (amd64_linux_read_description): Check DS segment register for
1254 x32 process.
1255
1256 2012-06-15 Tom Tromey <tromey@redhat.com>
1257
1258 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1259 init_cutu_and_read_dies.
1260
1261 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1262
1263 * MAINTAINERS (Write After Approval): Add myself to the list.
1264
1265 2012-06-15 Tom Tromey <tromey@redhat.com>
1266
1267 * valops.c (value_find_oload_method_list): Now static.
1268 * value.h (value_find_oload_method_list): Don't declare.
1269
1270 2012-06-15 Tom Tromey <tromey@redhat.com>
1271
1272 * valops.c (find_overload_match): Use value_ind.
1273
1274 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1275
1276 * infrun.c (handle_inferior_event): Correct indentation.
1277
1278 2012-06-14 Doug Evans <dje@google.com>
1279
1280 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1281 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1282 All uses updated.
1283 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1284 updated. Handle DEBUG_LOC_START_LENGTH.
1285 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1286 (loclist_describe_location): Ditto.
1287
1288 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1289
1290 PR backtrace/13866
1291 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1292 after hiding inline functions.
1293
1294 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1295
1296 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1297 _initialize_inf_ttrace.
1298
1299 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1300
1301 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1302 _initialize_hppa_hpux_nat.
1303
1304 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1305
1306 * remote-sim.c (sim_command_completer): Change type of return
1307 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1308
1309 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1310 Jan Kratochvil <jan.kratochvil@redhat.com>
1311
1312 PR tdep/14222
1313 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1314 stack on a 16-byte boundary.
1315
1316 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1317
1318 * jit.c (finalize_symtab): Set function's return type to 'void' by
1319 default.
1320
1321 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1322 H.J. Lu <hongjiu.lu@intel.com>
1323
1324 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1325 Move bits common to both the classic LP64 and the new x32 ILP32
1326 ABI here.
1327 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1328 (amd64_x32_linux_init_abi): New function.
1329 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1330 subtype.
1331
1332 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1333 * i386-tdep.c (i386_pseudo_register_name): Make public.
1334 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1335 * amd64-tdep.c (amd64_dword_names): Add "eip".
1336 (amd64_x32_pseudo_register_type): New function
1337 (amd64_x32_init_abi): New function.
1338
1339 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1340
1341 PR build/14003
1342 * inferior.h (struct inferior_suspend_state): Comment out.
1343 (struct inferior): Comment out the field suspend.
1344 * infrun.c (struct infcall_suspend_state): Comment out the field
1345 inferior_suspend.
1346 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1347 out its assignment.
1348
1349 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1352 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1353 function comment. Return ERROR for unresolved cases. Implement
1354 returning proper NAME.
1355 (yylex): Accept also NAME from classify_inner_name.
1356 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1357 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1358 LOC_TYPEDEF type.
1359 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1360
1361 2012-06-13 Tom Tromey <tromey@redhat.com>
1362
1363 * breakpoint.c (condition_completer): New function.
1364 (_initialize_breakpoint): Use it.
1365 * value.c (complete_internalvar): New function.
1366 * value.h (complete_internalvar): Declare.
1367
1368 2012-06-13 Tom Tromey <tromey@redhat.com>
1369
1370 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1371 * breakpoint.c (catch_syscall_completer): Return a VEC.
1372 * cli/cli-cmds.c (complete_command): Update.
1373 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1374 (complete_on_enum): Likewise.
1375 * command.h: Include gdb_vecs.h.
1376 (completer_ftype): Change return type.
1377 (complete_on_cmdlist, complete_on_enum): Likewise.
1378 * completer.c (noop_completer, filename_completer)
1379 (location_completer): Return a VEC.
1380 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1381 to a VEC.
1382 (expression_completer, complete_line_internal, complete_line)
1383 (command_completer): Return a VEC.
1384 (gdb_completion_word_break_characters, line_completion_function):
1385 Update.
1386 * completer.h: Include gdb_vecs.h.
1387 (complete_line, noop_completer, filename_completer)
1388 (expression_completer, location_completer, command_completer):
1389 Update.
1390 * f-lang.c (f_word_break_characters): Return a VEC.
1391 * interps.c (interpreter_completer): Return a VEC.
1392 * language.h (struct language_defn)
1393 <la_make_symbol_completion_list>: Return a VEC.
1394 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1395 * symtab.c (free_completion_list): Take a VEC.
1396 (return_val_size, return_val_index): Remove.
1397 (return_val): Now a VEC.
1398 (completion_list_add_name): Update.
1399 (default_make_symbol_completion_list_break_on)
1400 (default_make_symbol_completion_list, make_symbol_completion_list)
1401 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1402 Return a VEC.
1403 (add_filename_to_list): Update.
1404 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1405 <list>: Now a VEC.
1406 (maybe_add_partial_symtab_filename): Update.
1407 (make_source_files_completion_list): Return a VEC.
1408 * symtab.h (default_make_symbol_completion_list_break_on)
1409 (default_make_symbol_completion_list, make_symbol_completion_list)
1410 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1411 (make_source_files_completion_list): Update.
1412
1413 2012-06-13 Tom Tromey <tromey@redhat.com>
1414
1415 * breakpoint.c (add_catch_command): Use completer_ftype.
1416 * breakpoint.h: Include command.h.
1417 (add_catch_command): Use completer_ftype.
1418 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1419 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1420 Use completer_ftype.
1421 * command.h (completer_ftype): New typedef.
1422 (set_cmd_completer): Use it.
1423 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1424 completer_ftype.
1425
1426 2012-06-13 Pedro Alves <palves@redhat.com>
1427
1428 Partial revert of previous change.
1429
1430 * serial.c (scb_base): New global.
1431 (serial_for_fd): New.
1432 (serial_open, serial_fdopen_ops): Link new serial in open serials
1433 chain.
1434 (do_serial_close): Unlink serial from the open serials chain.
1435
1436 2012-06-12 Pedro Alves <palves@redhat.com>
1437
1438 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1439 threads here.
1440 (prepare_for_detach): No longer context switch here in non-stop
1441 mode.
1442 (fetch_inferior_event): Ditto.
1443 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1444 to the event thread before removing breakpoints. Switch to the
1445 event thread before inserting breakpoints and resuming.
1446 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1447 event thread before resuming.
1448 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1449 Switch to the event thread before removing breakpoints.
1450
1451 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1452
1453 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1454 special characters correctly for the Windows shells. See
1455 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1456 report.
1457 [!__MINGW32__]: Remove extra double quote character from special
1458 characters.
1459
1460 2012-06-11 Stan Shebs <stan@codesourcery.com>
1461
1462 * ui-out.h: Remove #if 0 declarations.
1463 * ui-out.c: Remove #if 0 functions.
1464
1465 2012-06-11 Pedro Alves <palves@redhat.com>
1466
1467 * ser-base.c (run_async_handler_and_reschedule): New.
1468 (fd_event, push_event): Use it.
1469 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1470 reference count to 1.
1471 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1472 instead of xfree.
1473 (serial_is_open, serial_ref, serial_unref): New.
1474 * serial.h (serial_open): Adjust comment.
1475 (serial_is_open): Declare.
1476 (serial_close): Adjust comment.
1477 (serial_ref, serial_unref) Declare.
1478 (struct serial): New field 'refcnt'.
1479
1480 2012-06-11 Pedro Alves <palves@redhat.com>
1481
1482 Remove #if 0'd "connect" command, and unnecessary associated
1483 refcounting and serial reuse bits.
1484
1485 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1486 * serial.c (last_serial_opened): Delete.
1487 (scb_base): Delete.
1488 (serial_open): Adjust.
1489 (serial_for_fd): Delete.
1490 (serial_fdopen_ops, do_serial_close): Adjust.
1491 (serial_fdopen_ops): Adjust.
1492
1493 2012-06-11 Pedro Alves <palves@redhat.com>
1494
1495 * serial.c (do_serial_close): Remove early return when SCB is
1496 null.
1497
1498 2012-06-11 Tom Tromey <tromey@redhat.com>
1499
1500 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1501
1502 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 Fix regression by the "ambiguous linespec" series.
1505 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1506 get_last_displayed_symtab and get_last_displayed_line and depending
1507 on CURSAL.
1508
1509 2012-06-11 Tom Tromey <tromey@redhat.com>
1510
1511 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1512 (dw2_find_symbol_file): Use it.
1513
1514 2012-06-11 Michael Eager <eager@eagercon.com>
1515
1516 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1517 * mips-linux-tdep.h (mips_signals): New
1518
1519 2012-06-11 Tom Tromey <tromey@redhat.com>
1520
1521 * infrun.c (handle_inferior_event)
1522 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1523 breakpoint.
1524 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1525 exception logic in all cases. Update comments.
1526 (insert_longjmp_resume_breakpoint): Set the exception resume
1527 breakpoint.
1528
1529 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1530
1531 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1532
1533 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
1534
1535 * valarith.c (binop_types_user_defined_p): Fix a typo.
1536
1537 2012-06-08 Yao Qi <yao@codesourcery.com>
1538 Chung-Lin Tang <cltang@codesourcery.com>
1539
1540 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1541 * arch-utils.h: Declare.
1542 * gdbarch.sh: Add return_in_first_hidden_param_p.
1543 * gdbarch.c, gdbarch.h: Regenerated.
1544 * infcall.c (call_function_by_hand): Call
1545 gdbarch_return_in_first_hidden_param_p instead of
1546 language_pass_by_reference.
1547
1548 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1549 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1550 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1551 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1552 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1553 `cplus_return_struct_by_reference'.
1554 (tic6x_return_value): Handle language cplusplus.
1555 (tic6x_return_in_first_hidden_param_p): New.
1556 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1557
1558 2012-06-07 Doug Evans <dje@google.com>
1559
1560 * dwarf2read.c (dwarf2_cu): Add comment.
1561
1562 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1563
1564 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
1565 variable.
1566 (mips_eabi_push_dummy_call): Likewise.
1567 (mips_n32n64_push_dummy_call): Likewise.
1568 (mips_o32_push_dummy_call): Likewise.
1569 (mips_o64_push_dummy_call): Likewise.
1570
1571 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1572
1573 * mips-tdep.c (mips_convert_register_p): Correct coding style.
1574
1575 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1576
1577 * mips-tdep.c (mips_pseudo_register_type): Use
1578 mips_float_register_p.
1579
1580 2012-06-06 Pedro Alves <palves@redhat.com>
1581
1582 * infrun.c (handle_inferior_event): Remove calls to
1583 reinit_frame_cache that follow a context_switch call.
1584
1585 2012-06-06 Pedro Alves <palves@redhat.com>
1586
1587 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
1588 context_switch and remove stale comment.
1589
1590 2012-06-06 Pedro Alves <palves@redhat.com>
1591
1592 * infrun.c (struct execution_control_state): Remove
1593 `new_thread_event' field.
1594 (handle_inferior_event): Simplify new threads handling; don't
1595 resume the inferior if we find a new thread.
1596
1597 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
1598
1599 * NEWS: Document the deprecation of SH's 'regs' command.
1600 * inferior.h (all_registers_info): Add function declaration.
1601 * sh-tdep.c (sh_show_regs): Remove variable.
1602 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
1603 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1604 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
1605 (sh_show_regs_command): Remove functions.
1606 (sh_gdbarch_init): Don't set sh_show_regs.
1607 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
1608 'info all-registers'.
1609 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
1610 (sh64_show_regs): Remove functions.
1611 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
1612
1613 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1614
1615 * configure.ac: Move development=true below AC_INIT.
1616 * configure: Regenerate.
1617
1618 2012-06-05 Stan Shebs <stan@codesourcery.com>
1619
1620 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
1621 gdb_stdout.
1622
1623 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
1624
1625 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
1626 argument as ssize_t.
1627 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
1628 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
1629 * target.c (target_read_stack, target_write_memory)
1630 (target_write_raw_memory): Likewise.
1631 * target.h (target_read_stack, target_write_memory)
1632 (target_write_raw_memory): Likewise.
1633
1634 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1635
1636 * symfile-mem.c: Change gdb_static_assert to ssize_t.
1637 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
1638 * target.c (target_read_memory): Change LEN to ssize_t.
1639 * target.h (target_read_memory): Change LEN to ssize_t.
1640
1641 2012-06-05 Pedro Alves <palves@redhat.com>
1642
1643 PR backtrace/13866
1644
1645 * breakpoint.c (until_break_command): Only fetch the selected
1646 frame after decode_line_1.
1647
1648 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1649
1650 * solib-svr4.c (enable_break): Don't fallback to setting the solib
1651 event breakpoint at _start, __start or main if a program
1652 interpreter is not found.
1653
1654 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1655
1656 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
1657 Add declaration.
1658 * windows-tdep.c: #include "objfiles.h".
1659 (windows_iterate_over_objfiles_in_search_order): New function.
1660 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1661 iterate_over_objfiles_in_search_order gdbarch method to
1662 windows_iterate_over_objfiles_in_search_order.
1663 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1664
1665 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1666
1667 * gdbarch.sh: Add generation of
1668 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
1669 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
1670 (iterate_over_objfiles_in_search_order): New gdbarch method.
1671 * gdbarch.h, gdbarch.c: Regenerate.
1672 * objfiles.h (default_iterate_over_objfiles_in_search_order):
1673 Add declaration.
1674 * objfiles.c (default_iterate_over_objfiles_in_search_order):
1675 New function.
1676 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1677 out of lookup_symbol_aux_symtabs.
1678 (lookup_symbol_aux_symtabs): Replace extracted-out code by
1679 call to lookup_symbol_aux_objfile.
1680 (struct global_sym_lookup_data): New type.
1681 (lookup_symbol_global_iterator_cb): New function.
1682 (lookup_symbol_global): Search for symbol using
1683 gdbarch_iterate_over_objfiles_in_search_order and
1684 lookup_symbol_global_iterator_cb.
1685 * findvar.c (struct minsym_lookup_data): New type.
1686 (minsym_lookup_iterator_cb): New function.
1687 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
1688 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
1689 and minsym_lookup_iterator_cb.
1690
1691 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1692
1693 Revert the following patch:
1694 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1695 try locating the symbol in the symbol's own objfile first, before
1696 extending the search to all objfiles.
1697 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1698 out of lookup_symbol_aux_symtabs.
1699 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1700 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1701 Do not search EXCLUDE_OBJFILE.
1702 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1703 (lookup_symbol_global): Search for matches in the block's objfile
1704 first, before searching all other objfiles.
1705
1706 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1707
1708 * breakpoint.c (find_condition_and_thread): Stop parsing
1709 as soon as the first invalid keyword is found.
1710
1711 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1712
1713 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
1714
1715 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1716
1717 * config/djgpp/djcheck.sh: Add copyright header.
1718
1719 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1720
1721 * copyright.py (update_files, main): Fix path to update-copyright
1722 script.
1723
1724 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1725
1726 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
1727 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
1728 for which a reminder to update by hand is printed.
1729
1730 2012-06-04 Doug Evans <dje@google.com>
1731
1732 * buildsym.c (make_blockvector): Add comment.
1733
1734 2012-06-04 Pedro Alves <palves@redhat.com>
1735
1736 * arch-utils.c (default_gdb_signal_from_target): Delete.
1737 * arch-utils.h (default_gdb_signal_from_target): Delete.
1738 * corelow.c (core_open) <signal mapping>: Extended comment. Check
1739 gdbarch_gdb_signal_from_target_p.
1740 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
1741 predicate).
1742 * gdbarch.h: Regenerate.
1743 * gdbarch.c: Regenerate.
1744
1745 2012-06-04 Pedro Alves <palves@redhat.com>
1746
1747 * gdbarch.sh (gdb_signal_from_target): Mention that the
1748 implementation of the method must be host independent.
1749 * gdbarch.h: Regenerate.
1750
1751 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1752
1753 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
1754 parameters.
1755 (target_read_memory_bfd): New function.
1756 (symbol_file_add_from_memory): Use it.
1757
1758 2012-06-03 Doug Evans <dje@google.com>
1759
1760 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
1761 of primary symtab.
1762 (basic_lookup_transparent_type): Ditto.
1763
1764 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
1765 (ALL_PRIMARY_SYMTABS): Use it.
1766 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1767 * dwarf2read.c (dw2_find_symbol_file): Ditto.
1768 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
1769 * symtab.c (lookup_symbol_aux_objfile): Ditto.
1770 (basic_lookup_transparent_type): Ditto.
1771
1772 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
1773
1774 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
1775 it to optimize resolution of demangled name.
1776
1777 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1778
1779 * configure.ac (development): Define new variable.
1780 Call AC_CHECK_LIB for mcheck if $development.
1781 (ERROR_ON_WARNING): Enable it by default only if $development.
1782 * config.in: Regenerate.
1783 * configure: Regenerate.
1784
1785 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
1786
1787 * target.c (target_read_memory): Make LEN argument as size_t.
1788 * target.h (target_read_memory): Likewise.
1789
1790 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1791
1792 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
1793
1794 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
1795
1796 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
1797 BookE interface for PowerPC server processors if not available
1798 in the Linux Kernel.
1799
1800 2012-05-31 Keith Seitz <keiths@redhat.com>
1801
1802 * linespec.c (decode_objc): Add cleanup to free
1803 INFO.FILE_SYMTABS.
1804 (find_linespec_symbols): Add cleanup to free CLASSES.
1805 * symfile.c (find_separate_debug_file_by_debuglink): Add
1806 cleanup to free DEBUGLINK.
1807 * ui-out.c (clear_header_list): No need to check if
1808 HEADER_NEXT.COLHDR is NULL.
1809 Free HEADER_NEXT.COL_NAME.
1810
1811 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1812
1813 * ada-lang.c (standard_lookup): Prevent uninitialized variable
1814 warning.
1815
1816 2012-05-30 Jeff Kenton <jkenton@tilera.com>
1817
1818 * configure.host (gdb_host_cpu): Handle tilegx*.
1819 (gdb_host): Handle tilegx-*-linux*.
1820 * tilegx-linux-nat.c: New file.
1821 * config/tilegx/linux.mh: New file.
1822
1823 2012-05-30 Jeff Kenton <jkenton@tilera.com>
1824
1825 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
1826 tilegx-linux-tdep.o.
1827 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
1828 tilegx-linux-tdep.c.
1829 * configure.tgt: Handle tilegx-*-linux*.
1830 * tilegx-tdep.h: New file.
1831 * tilegx-tdep.c: New file.
1832 * tilegx-linux-tdep.c: New file.
1833 * regformats/reg-tilegx.dat: New file.
1834
1835 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
1836
1837 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
1838 accounting of hw watchpoints on ppc.
1839
1840 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
1841
1842 * source.c (openp): Expand tilde in path entries.
1843
1844 2012-05-29 Doug Evans <dje@google.com>
1845
1846 * buildsym.c (block_compar): Fix comment.
1847 (end_symtab): Fix and clarify some comments.
1848
1849 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
1850 cleanup_undefined_types.
1851 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
1852 All callers updated.
1853
1854 2012-05-29 Tom Tromey <tromey@redhat.com>
1855
1856 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
1857 fails.
1858 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
1859 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
1860 fails.
1861 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
1862 fails.
1863
1864 2012-05-29 Tristan Gingold <gingold@adacore.com>
1865
1866 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
1867 (struct darwin_info): ... New struct.
1868 (solib_darwin_pspace_data): New variable.
1869 (darwin_pspace_data_cleanup): New function.
1870 (get_darwin_info): Likewise.
1871 (darwin_dyld_version_ok, darwin_load_image_infos)
1872 (darwin_solib_get_all_image_info_addr_at_init)
1873 (darwin_solib_read_all_image_info_addr): Add info argument.
1874 Adjust code.
1875 (darwin_current_sos): Use per pspace structure.
1876 (darwin_solib_create_inferior_hook): Likewise.
1877 (darwin_clear_solib): Likewise.
1878 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1879
1880 2012-05-28 Pedro Alves <palves@redhat.com>
1881
1882 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1883 block that uses them. Clear ecss before handling each event.
1884
1885 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1886
1887 * solib-svr4.c (svr4_current_sos): New comment on
1888 svr4_current_sos_via_xfer_libraries fall back.
1889
1890 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1891
1892 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1893 it as a fallback for TYPE_IS_OPAQUE.
1894 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1895 symbols for lookup_symbol.
1896
1897 2012-05-24 John Steele Scott <toojays@toojays.net>
1898
1899 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1900 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1901 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1902 (check_producer): ... this new function, which also checks for ICC
1903 and caches the result.
1904 (producer_is_icc): New function.
1905 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1906 producer was ICC.
1907
1908 2012-05-24 Pedro Alves <palves@redhat.com>
1909
1910 PR gdb/7205
1911
1912 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1913 (default_gdb_signal_to_target): ... this. Add comment.
1914 (default_gdb_signal_from_host): Rename to ...
1915 (default_gdb_signal_from_target): ... this. Add comment.
1916 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1917 (default_gdb_signal_to_target): ... this.
1918 (default_gdb_signal_from_host): Rename to ...
1919 (default_gdb_signal_from_target): ... this.
1920 * corelow.c (core_open): Adjust to naming change. Replace comment.
1921 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1922 (gdb_signal_from_target): ... this. Adjust to
1923 default_gdb_signal_from_host naming change. Extend comment.
1924 (gdb_signal_to_host): Rename to ...
1925 (gdb_signal_to_target): ... this. Adjust to
1926 default_gdb_signal_to_host naming change.
1927 * gdbarch.h, gdbarch.c: Renegerate.
1928
1929 2012-05-24 Pedro Alves <palves@redhat.com>
1930
1931 PR gdb/7205
1932
1933 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1934
1935 2012-05-24 Pedro Alves <palves@redhat.com>
1936
1937 PR gdb/7205
1938
1939 Replace target_signal with gdb_signal throughout.
1940
1941 2012-05-24 Pedro Alves <palves@redhat.com>
1942
1943 PR tui/14159
1944
1945 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1946 string, instead of reusing the va_list argument.
1947
1948 2012-05-24 Tom Tromey <tromey@redhat.com>
1949
1950 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1951 Remove.
1952
1953 2012-05-23 Doug Evans <dje@google.com>
1954
1955 * symtab.c (search_symbols): Formatting fixes.
1956 (print_symbol_info): Formatting fixes.
1957
1958 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1959 int64_t change to leb128 API.
1960 (read_encoded_value, decode_frame_entry_1): Ditto.
1961 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1962 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1963 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1964 (execute_stack_op): Ditto.
1965 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1966 (safe_read_uleb128, safe_read_sleb128): Ditto.
1967 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1968 (dwarf2_compile_expr_to_ax): Ditto.
1969 (locexpr_describe_location_piece): Ditto.
1970 (disassemble_dwarf_expression): Ditto.
1971 (locexpr_describe_location_1): Ditto.
1972
1973 2012-05-23 Stan Shebs <stan@codesourcery.com>
1974 Kwok Cheung Yeung <kcy@codesourcery.com>
1975
1976 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1977 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1978 (mi-cmd-info.o): New rule.
1979 * osdata.h (info_osdata_command): New declaration.
1980 * osdata.c (info_osdata_command): Change to non-static.
1981 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1982 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1983 * mi/mi-cmd-info.c: New file.
1984
1985 2012-05-23 Doug Evans <dje@google.com>
1986
1987 * symtab.c (search_symbols): Pass NULL for file_matcher to
1988 expand_symtabs_matching if there are no files to match.
1989
1990 * gdbtypes.c (lookup_typename): Simplify.
1991
1992 2012-05-23 Pedro Alves <palves@redhat.com>
1993
1994 * arch-utils.h (default_target_signal_to_host): Delete.
1995 * arch-utils.c (default_target_signal_to_host): Delete.
1996 * gdbarch.sh (target_signal_to_host): Remove.
1997 * gdbarch.h, gdbarch.c: Regenerate.
1998
1999 2012-05-22 Doug Evans <dje@google.com>
2000
2001 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2002 "const gdb_byte *".
2003 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2004 (execute_cfa_program): Update to match API of leb128 functions.
2005 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2006 "const gdb_byte *".
2007 (read_unsigned_leb128, read_signed_leb128): Delete.
2008 (read_initial_length): Change type of buf argument to
2009 "const gdb_byte *".
2010 (read_encoded_value): Update to match API of leb128 functions.
2011 (decode_frame_entry): Change result to "const gdb_byte *", and
2012 similarly for "start" parameter.
2013 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2014 (dwarf2_build_frame_info): Change local frame_ptr to
2015 "const gdb_byte *".
2016 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2017 read_uleb128, read_sleb128. All callers updated.
2018 (safe_skip_leb128): New function.
2019 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2020 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2021 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2022 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2023 read_uleb128, read_sleb128.
2024 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2025 (execute_stack_op): Update to match API of leb128 functions.
2026 * dwarf2expr.h: #include "leb128.h".
2027 (read_uleb128, read_sleb128): Delete.
2028 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2029 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2030 * dwarf2loc.c (debug_loc_kind): New enum.
2031 (decode_debug_loc_addresses): New function.
2032 (decode_debug_loc_dwo_addresses): New function.
2033 (dwarf2_find_location_expression): Rewrite.
2034 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2035 (locexpr_describe_location_piece): Ditto.
2036 (disassemble_dwarf_expression): Ditto.
2037 (locexpr_describe_location_1): Ditto.
2038 (loclist_describe_location): Rewrite.
2039 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2040 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2041 (dwarf2_section_buffer_overflow_complaint): Renamed from
2042 dwarf2_macros_too_long_complaint. All callers updated.
2043 (skip_leb128): Delete.
2044 (init_cu_die_reader): Initialize reader->buffer_end.
2045 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2046 (skip_form_bytes): New arg buffer_end. All callers updated.
2047 Replace call to skip_leb128 with gdb_skip_leb128.
2048 (skip_unknown_opcode): New arg mac_end. All callers updated.
2049 (fill_in_loclist_baton): Initialize baton->from_dwo.
2050
2051 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2052
2053 * mips-linux-nat.c (mips_linux_read_description): Use a more
2054 verbose error message.
2055
2056 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2057
2058 * NEWS: Add MIPS/Linux DSP support.
2059 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2060 (SIGCONTEXT_DSPCTL): New macro.
2061 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2062 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2063 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2064 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2065 (N64_SIGCONTEXT_HI3): Likewise.
2066 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2067 (N64_SIGCONTEXT_LO3): Likewise.
2068 (N64_SIGCONTEXT_DSPCTL): Likewise.
2069 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2070 (mips_linux_o32_sigframe_init): Handle DSP registers.
2071 (mips_linux_n32n64_sigframe_init): Likewise.
2072
2073 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2074
2075 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2076 call to abort.
2077
2078 2012-05-22 Pedro Alves <palves@redhat.com>
2079
2080 * target.h (store_waitstatus): Move declaration ...
2081 * inf-child.h (store_waitstatus): ... here.
2082 * target.c: Move inclusion of gdb_wait.h, and ...
2083 (store_waitstatus): ... this ...
2084 * inf-child.c: ... here.
2085 * linux-nat.c: Include inf-child.h.
2086 * rs6000-nat.c: Include inf-child.h.
2087 * spu-linux-nat.c: Include inf-child.h.
2088
2089 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2090
2091 * tracepoint.c (start_tracing): Add missing i18n markup.
2092 (stop_tracing, set_trace_user): Ditto.
2093 (set_trace_notes, set_trace_stop_notes): Ditto.
2094
2095 2012-05-21 Tom Tromey <tromey@redhat.com>
2096
2097 PR c++/7173:
2098 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2099 types.
2100 * value.h (value_cast_pointers): Update.
2101 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2102 (value_cast): Update.
2103 (update_search_result): New function.
2104 (do_search_struct_field): New, from search_struct_field. Check
2105 for ambiguous results.
2106 (search_struct_field): Rewrite.
2107 * infcall.c (value_arg_coerce): Update.
2108 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2109 value_cast_pointers.
2110 * ada-lang.c (ada_convert_actual): Update.
2111
2112 2012-05-21 Tom Tromey <tromey@redhat.com>
2113
2114 * macroexp.c (macro_stringify): Terminate the string.
2115
2116 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2117
2118 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2119 Describe it.
2120 * auto-load.c (auto_load_expand_dir_vars): New function.
2121 (auto_load_safe_path_vec_update): Use it, remove the
2122 substitute_path_component call thanks to it.
2123 (auto_load_objfile_script): Remove the debug_file_directory processing.
2124 Use auto_load_expand_dir_vars, remove the substitute_path_component
2125 call thanks to it.
2126 * configure: Regenerate.
2127 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2128 path. Escape $ also for $debugdir.
2129 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2130 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2131
2132 2012-05-20 Doug Evans <dje@google.com>
2133
2134 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2135 before use. Check for symtab->includes == NULL before scanning it.
2136
2137 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2138
2139 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2140
2141 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2142
2143 * NEWS: Add microMIPS support and "set mips compression",
2144 "show mips compression" commands.
2145 * mips-tdep.h (mips_isa): New enum.
2146 (gdbarch_tdep): Add mips_isa.
2147 (mips_pc_is_mips16): Update prototype.
2148 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2149 * mips-tdep.c (mips_compression_mips16): New variable.
2150 (mips_compression_micromips): Likewise.
2151 (mips_compression_strings): Likewise.
2152 (mips_compression_string): Likewise.
2153 (is_mips16_isa, is_micromips_isa): New functions.
2154 (is_mips16_addr): Rename to...
2155 (is_compact_addr): ... this.
2156 (unmake_mips16_addr): Likewise to...
2157 (unmake_compact_addr): ... this.
2158 (make_mips16_addr): Likewise to...
2159 (make_compact_addr): ... this.
2160 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2161 functions.
2162 (mips_elf_make_msymbol_special): Handle microMIPS code.
2163 (msymbol_is_special): Rename to...
2164 (msymbol_is_mips16): ... this.
2165 (mips_make_symbol_special, mips_pc_is_mips16): Update
2166 accordingly.
2167 (msymbol_is_mips, msymbol_is_micromips): New functions.
2168 (mips16_to_32_reg): Rename to...
2169 (mips_reg3_to_reg): ... this.
2170 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2171 (mips_pc_isa): Likewise.
2172 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2173 code.
2174 (mips_fetch_instruction): Pass return status instead of printing
2175 an error message if requested. Handle microMIPS code. Bail out
2176 on an invalid ISA.
2177 (micromips_op): New macro.
2178 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2179 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2180 (b6s4_op, b7s3_reg): Likewise.
2181 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2182 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2183 (mips_insn_size): New function.
2184 (mips32_next_pc): Update mips_fetch_instruction call.
2185 (micromips_relative_offset7): New function.
2186 (micromips_relative_offset10): Likewise.
2187 (micromips_relative_offset16): Likewise.
2188 (micromips_pc_insn_size): Likewise.
2189 (micromips_bc1_pc): Likewise.
2190 (micromips_next_pc): Likewise.
2191 (unpack_mips16): Update mips_fetch_instruction call.
2192 (extended_mips16_next_pc): Update according to change to
2193 mips16_to_32_reg.
2194 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2195 code.
2196 (mips16_scan_prologue): Update mips_fetch_instruction call.
2197 Update according to change to mips16_to_32_reg.
2198 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2199 (mips_insn16_frame_base_sniffer): Likewise.
2200 (micromips_decode_imm9): New function.
2201 (micromips_scan_prologue): Likewise.
2202 (mips_micro_frame_cache): Likewise.
2203 (mips_micro_frame_this_id): Likewise.
2204 (mips_micro_frame_prev_register): Likewise.
2205 (mips_micro_frame_sniffer): Likewise.
2206 (mips_micro_frame_unwind): New variable.
2207 (mips_micro_frame_base_address): New function.
2208 (mips_micro_frame_base): New variable.
2209 (mips_micro_frame_base_sniffer): New function.
2210 (mips32_scan_prologue): Update mips_fetch_instruction call.
2211 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2212 rather than for MIPS16.
2213 (mips_insn32_frame_base_sniffer): Likewise.
2214 (mips_addr_bits_remove): Handle microMIPS code.
2215 (deal_with_atomic_sequence): Rename to...
2216 (mips_deal_with_atomic_sequence): ... this. Update the type
2217 of the variable used to hold an instruction. Remove the ISA bit
2218 check. Update mips_fetch_instruction call.
2219 (micromips_deal_with_atomic_sequence): New function.
2220 (deal_with_atomic_sequence): Likewise.
2221 (mips_about_to_return): Handle microMIPS code. Update
2222 mips_fetch_instruction call.
2223 (heuristic_proc_start): Check for the standard MIPS ISA rather
2224 than for MIPS16. Update mips_pc_is_mips16 and
2225 mips_fetch_instruction calls. Handle microMIPS code.
2226 (mips_push_dummy_code): Handle microMIPS code.
2227 (mips_eabi_push_dummy_call): Likewise.
2228 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2229 (mips_o64_push_dummy_call): Handle microMIPS code.
2230 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2231 (is_delayed): Remove function.
2232 (mips_single_step_through_delay): Replace the call to is_delayed
2233 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2234 Handle microMIPS code.
2235 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2236 microMIPS code.
2237 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2238 call.
2239 (micromips_in_function_epilogue_p): New function.
2240 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2241 call.
2242 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2243 Handle microMIPS.
2244 (gdb_print_insn_mips): Likewise.
2245 (mips_breakpoint_from_pc): Likewise.
2246 (mips_remote_breakpoint_from_pc): New function.
2247 (mips32_instruction_has_delay_slot): Simplify making use of the
2248 updated mips_fetch_instruction interface.
2249 (micromips_instruction_has_delay_slot): New function.
2250 (mips16_instruction_has_delay_slot): Simplify making use of the
2251 updated mips_fetch_instruction interface.
2252 (mips_adjust_breakpoint_address): Check for the standard MIPS
2253 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2254 calls. Handle microMIPS code.
2255 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2256 (mips_skip_trampoline_code): Handle microMIPS code.
2257 (global_mips_compression): New function.
2258 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2259 file flags. Register the microMIPS remote breakpoint handler
2260 and heuristic frame unwinder.
2261 (show_mips_compression): New function.
2262 (_initialize_mips_tdep): Add the "set mips compression" and
2263 "show mips compression" commands.
2264
2265 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2266
2267 * ada-lang.c:
2268 * ada-tasks.c:
2269 * ada-varobj.c:
2270 * amd64-darwin-tdep.c:
2271 * arm-symbian-tdep.c:
2272 * arm-tdep.c:
2273 * avr-tdep.c:
2274 * ax-gdb.c:
2275 * bfin-linux-tdep.c:
2276 * breakpoint.c:
2277 * c-valprint.c:
2278 * cli/cli-cmds.c:
2279 * coffread.c:
2280 * cp-support.c:
2281 * cris-tdep.c:
2282 * dwarf2-frame-tailcall.c:
2283 * dwarf2-frame.c:
2284 * dwarf2expr.c:
2285 * dwarf2loc.c:
2286 * dwarf2read.c:
2287 * elfread.c:
2288 * eval.c:
2289 * expprint.c:
2290 * f-valprint.c:
2291 * frv-tdep.c:
2292 * h8300-tdep.c:
2293 * hppa-hpux-tdep.c:
2294 * hppa-tdep.c:
2295 * hppanbsd-tdep.c:
2296 * i386-nto-tdep.c:
2297 * i386-tdep.c:
2298 * i387-tdep.c:
2299 * ia64-tdep.c:
2300 * jit.c:
2301 * linespec.c:
2302 * linux-tdep.c:
2303 * lm32-tdep.c:
2304 * m2-valprint.c:
2305 * m32c-tdep.c:
2306 * m32r-rom.c:
2307 * m32r-tdep.c:
2308 * m68k-tdep.c:
2309 * m68klinux-tdep.c:
2310 * mi/mi-main.c:
2311 * microblaze-tdep.c:
2312 * mips-linux-tdep.c:
2313 * mips-tdep.c:
2314 * mn10300-tdep.c:
2315 * p-valprint.c:
2316 * parse.c:
2317 * ppc-linux-tdep.c:
2318 * ppc-sysv-tdep.c:
2319 * printcmd.c:
2320 * python/py-finishbreakpoint.c:
2321 * python/py-inferior.c:
2322 * python/py-infthread.c:
2323 * python/py-type.c:
2324 * python/python.c:
2325 * remote-fileio.c:
2326 * remote-m32r-sdi.c:
2327 * remote-mips.c:
2328 * reverse.c:
2329 * rl78-tdep.c:
2330 * rs6000-aix-tdep.c:
2331 * rs6000-tdep.c:
2332 * s390-tdep.c:
2333 * score-tdep.c:
2334 * sh64-tdep.c:
2335 * skip.c:
2336 * solib-darwin.c:
2337 * solib-dsbt.c:
2338 * solib-frv.c:
2339 * sparc-tdep.c:
2340 * spu-multiarch.c:
2341 * spu-tdep.c:
2342 * stack.c:
2343 * symfile.c:
2344 * symtab.c:
2345 * tic6x-tdep.c:
2346 * tracepoint.c:
2347 * v850-tdep.c:
2348 * valarith.c:
2349 * valprint.c:
2350 * value.c:
2351 * xcoffread.c:
2352 * xtensa-tdep.c:
2353 * ada-lang.c:
2354 * ada-tasks.c:
2355 * ada-varobj.c:
2356 * amd64-darwin-tdep.c:
2357 * arm-symbian-tdep.c:
2358 * arm-tdep.c: Delete unused variables.
2359
2360 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2361
2362 Rename $ddir to $datadir.
2363 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2364 * auto-load.c (auto_load_safe_path_vec_update)
2365 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2366 * configure: Regenerate.
2367 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2368 Likewise. Remove the 'use $ddir' help string.
2369
2370 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2371
2372 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2373 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2374
2375 2012-05-18 Tom Tromey <tromey@redhat.com>
2376
2377 PR exp/13907:
2378 * valprint.h (struct value_print_options) <symbol_print>: New
2379 field.
2380 * valprint.c (user_print_options): Add default for symbol_print.
2381 (show_symbol_print): New function.
2382 (generic_val_print): Respect symbol_print.
2383 (_initialize_valprint): Add "print symbol" setting.
2384 * f-valprint.c (f_val_print): Respect symbol_print.
2385 * c-valprint.c (c_val_print): Respect symbol_print.
2386 * NEWS: Update.
2387 * printcmd.c (print_address_symbolic): Return int. Ignore some
2388 zero-size symbols.
2389 (print_address_demangle): Return int.
2390 * defs.h: (print_address_symbolic): Return int.
2391 * value.h (print_address_demangle): Return int.
2392
2393 2012-05-18 Tom Tromey <tromey@redhat.com>
2394
2395 * valprint.c (val_print_string): Don't print leading space.
2396 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2397 print space before string or vtbl.
2398 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2399 before string.
2400 * jv-valprint.c (java_value_print): Print space before string.
2401 * go-valprint.c (print_go_string): Print space before string.
2402 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2403 space before string.
2404 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2405 space before string or vtbl.
2406 * auxv.c (fprint_target_auxv): Print space after address.
2407
2408 2012-05-18 Tom Tromey <tromey@redhat.com>
2409
2410 * printcmd.c (print_address_demangle): Remove special case for 0.
2411
2412 2012-05-18 Tom Tromey <tromey@redhat.com>
2413
2414 * printcmd.c (print_address_demangle): Add 'opts' argument.
2415 * p-valprint.c (pascal_val_print): Update.
2416 * jv-valprint.c (java_val_print): Update.
2417 * value.h: Update.
2418 * valprint.c (generic_val_print): Update.
2419 (print_function_pointer_address): Add 'options' argument. Remove
2420 'addressprint' argument. Update.
2421 * m2-valprint.c (print_unpacked_pointer): Update.
2422 * gnu-v3-abi.c (print_one_vtable): Update.
2423 (gnuv3_print_method_ptr): Update.
2424 * f-valprint.c (f_val_print): Update.
2425 * cp-valprint.c (cp_print_value_fields): Update.
2426 * valprint.h (print_function_pointer_address): Update.
2427 * c-valprint.c (c_val_print): Update.
2428
2429 2012-05-18 Tom Tromey <tromey@redhat.com>
2430
2431 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2432 directly corresponding to the found psymtab.
2433 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2434 (dw2_find_pc_sect_symtab): Use it.
2435 * block.h (blockvector_contains_pc): Declare.
2436 * block.c (find_block_in_blockvector): New function.
2437 (blockvector_for_pc_sect): Use it.
2438 (blockvector_contains_pc): New function.
2439
2440 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2441
2442 * mips-tdep.h (mips_write_pc): New prototype.
2443 * mips-tdep.c (mips_write_pc): Make external, add description.
2444 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2445 add description.
2446
2447 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2448
2449 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2450 mips_regnum->pc.
2451 (mips_unwind_pc, mips_write_pc): Likewise.
2452 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2453 gdbarch_read_pc.
2454
2455 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2456
2457 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2458 proc_warn, proc_error, proc_get_status, proc_flags,
2459 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2460 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2461 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2462 proc_stop_process, proc_wait_for_stop, proc_run_process,
2463 proc_set_traced_signals, proc_set_traced_faults,
2464 proc_set_traced_sysentry, proc_set_traced_sysexit,
2465 proc_set_held_signals, proc_get_held_signals,
2466 proc_get_traced_signals, proc_get_traced_faults,
2467 proc_get_traced_sysentry, proc_get_traced_sysexit,
2468 proc_clear_current_fault, proc_set_current_signal,
2469 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2470 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2471 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2472 proc_get_current_thread, proc_get_current_thread,
2473 proc_get_current_thread, proc_update_threads,
2474 proc_update_threads, proc_update_threads, proc_update_threads,
2475 proc_iterate_over_threads, procfs_find_new_threads,
2476 procfs_pid_to_str): Make static. Remove advance declaration.
2477 (proc_cursig): Make static. Conditionalized defintion on
2478 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2479 (proc_syscall, proc_set_kill_on_last_close,
2480 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2481 proc_get_pending_signals, proc_get_signal_actions,
2482 proc_trace_signal, proc_ignore_signal): Delete.
2483
2484 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2485
2486 * coffread.c (cs_section_address): Passing proper argument for
2487 `bfd_get_section_vma'.
2488 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2489 `bfd_get_section_flags'.
2490 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2491 `bfd_get_section_vma'.
2492
2493 2012-05-16 Tom Tromey <tromey@redhat.com>
2494
2495 PR macros/13205:
2496 * macrotab.h: (macro_define_special): Declare.
2497 (enum macro_special_kind): New.
2498 (struct macro_definition) <argc, replacement>: Update comments.
2499 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2500 (macro_define_object_internal): New function.
2501 (macro_define_object): Use it.
2502 (macro_define_special): New function.
2503 (fixup_definition): New function.
2504 (macro_lookup_definition, foreach_macro_in_scope)
2505 (foreach_macro): Use fixup_definition.
2506 * macroexp.h (macro_stringify): Declare.
2507 * macroexp.c (free_buffer_return_text): New function.
2508 (stringify): Constify "arg".
2509 (macro_stringify): New function.
2510 * dwarf2read.c (macro_start_file): Call macro_define_special.
2511
2512 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2513 Maciej W. Rozycki <macro@mips.com>
2514
2515 * breakpoint.h (bp_location): Add related_address member.
2516 * inferior.h (get_return_value): Take a pointer to struct value
2517 instead of struct type for the function requested.
2518 * value.h (using_struct_return): Likewise.
2519 * gdbarch.sh (return_value): Take a pointer to struct value
2520 instead of struct type for the function requested.
2521 * breakpoint.c (set_breakpoint_location_function): Initialize
2522 related_address for bp_gnu_ifunc_resolver breakpoints.
2523 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2524 requested function's address to gdbarch_return_value.
2525 * eval.c (evaluate_subexp_standard): Pass the requested
2526 function's address to using_struct_return.
2527 * infcall.c (call_function_by_hand): Pass the requested
2528 function's address to using_struct_return and
2529 gdbarch_return_value.
2530 * infcmd.c (get_return_value): Take a pointer to struct value
2531 instead of struct type for the function requested.
2532 (print_return_value): Update accordingly.
2533 (finish_command_continuation): Likewise.
2534 * stack.c (return_command): Pass the requested function's
2535 address to using_struct_return and gdbarch_return_value.
2536 * value.c (using_struct_return): Take a pointer to struct value
2537 instead of struct type for the function requested. Pass the
2538 requested function's address to gdbarch_return_value.
2539 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2540 New function_value member, replacing function_type.
2541 (bpfinishpy_dealloc): Update accordingly.
2542 (bpfinishpy_pre_stop_hook): Likewise.
2543 (bpfinishpy_init): Likewise. Record the requested function's
2544 address.
2545 * mips-tdep.c (mips_fval_reg): New enum.
2546 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2547 words put in GP registers.
2548 (mips_o64_push_dummy_call): Update a comment.
2549 (mips_o32_return_value): Take a pointer to struct value instead
2550 of struct type for the function requested and use it to check if
2551 using the MIPS16 calling convention. Return the designated
2552 general purpose registers for floating-point values returned in
2553 MIPS16 mode.
2554 (mips_o64_return_value): Likewise.
2555 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2556 (ppc_sysv_abi_broken_return_value): Likewise.
2557 (ppc64_sysv_abi_return_value): Likewise.
2558 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2559 value instead of struct type for the function requested.
2560 * amd64-tdep.c (amd64_return_value): Likewise.
2561 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
2562 * arm-tdep.c (arm_return_value): Likewise.
2563 * avr-tdep.c (avr_return_value): Likewise.
2564 * bfin-tdep.c (bfin_return_value): Likewise.
2565 * cris-tdep.c (cris_return_value): Likewise.
2566 * frv-tdep.c (frv_return_value): Likewise.
2567 * h8300-tdep.c (h8300_return_value): Likewise.
2568 (h8300h_return_value): Likewise.
2569 * hppa-tdep.c (hppa32_return_value): Likewise.
2570 (hppa64_return_value): Likewise.
2571 * i386-tdep.c (i386_return_value): Likewise.
2572 * ia64-tdep.c (ia64_return_value): Likewise.
2573 * iq2000-tdep.c (iq2000_return_value): Likewise.
2574 * lm32-tdep.c (lm32_return_value): Likewise.
2575 * m32c-tdep.c (m32c_return_value): Likewise.
2576 * m32r-tdep.c (m32r_return_value): Likewise.
2577 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2578 * m68k-tdep.c (m68k_return_value): Likewise.
2579 (m68k_svr4_return_value): Likewise.
2580 * m88k-tdep.c (m88k_return_value): Likewise.
2581 * mep-tdep.c (mep_return_value): Likewise.
2582 * microblaze-tdep.c (microblaze_return_value): Likewise.
2583 * mn10300-tdep.c (mn10300_return_value): Likewise.
2584 * moxie-tdep.c (moxie_return_value): Likewise.
2585 * mt-tdep.c (mt_return_value): Likewise.
2586 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
2587 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
2588 (ppc_sysv_abi_broken_return_value): Likewise.
2589 (ppc64_sysv_abi_return_value): Likewise.
2590 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
2591 * rl78-tdep.c (rl78_return_value): Likewise.
2592 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
2593 * rx-tdep.c (rx_return_value): Likewise.
2594 * s390-tdep.c (s390_return_value): Likewise.
2595 * score-tdep.c (score_return_value): Likewise.
2596 * sh-tdep.c (sh_return_value_nofpu): Likewise.
2597 (sh_return_value_fpu): Likewise.
2598 * sh64-tdep.c (sh64_return_value): Likewise.
2599 * sparc-tdep.c (sparc32_return_value): Likewise.
2600 * sparc64-tdep.c (sparc64_return_value): Likewise.
2601 * spu-tdep.c (spu_return_value): Likewise.
2602 * tic6x-tdep.c (tic6x_return_value): Likewise.
2603 * v850-tdep.c (v850_return_value): Likewise.
2604 * vax-tdep.c (vax_return_value): Likewise.
2605 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
2606 * xtensa-tdep.c (xtensa_return_value): Likewise.
2607 * gdbarch.c: Regenerate.
2608 * gdbarch.h: Regenerate.
2609
2610 2012-05-15 Tom Tromey <tromey@redhat.com>
2611
2612 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
2613
2614 2012-05-15 Joel Brobecker <brobecker@adacore.com>
2615
2616 * breakpoint.c (init_breakpoint_sal): Add quotes around part
2617 of command in two error message.
2618
2619 2012-05-15 Joel Brobecker <brobecker@adacore.com>
2620
2621 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
2622
2623 2012-05-15 Joel Brobecker <brobecker@adacore.com>
2624
2625 * breakpoint.c (find_condition_and_thread): Minor reformatting.
2626
2627 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2628
2629 * NEWS (show auto-load scripts-directory): Add forgotten command.
2630
2631 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2632
2633 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
2634 parameters.
2635
2636 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
2637
2638 * amd64-tdep.c: Include features/i386/x32.c and
2639 features/i386/x32-avx.c.
2640 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
2641 initialize_tdesc_x32_avx.
2642
2643 2012-05-14 Stan Shebs <stan@codesourcery.com>
2644
2645 Add dynamic printf.
2646 * breakpoint.h (enum bptype): New type bp_dprintf.
2647 (struct breakpoint): New field extra_string.
2648 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
2649 (create_breakpoint): Add extra_string arg.
2650 * breakpoint.c (dprintf_breakpoint_ops): New.
2651 (is_breakpoint): Add bp_dprintf.
2652 (bpstat_what): Add dprintf case.
2653 (bptype_string): Ditto.
2654 (print_one_breakpoint_location): Ditto.
2655 (init_bp_location): Ditto.
2656 (bkpt_print_mention): Ditto.
2657 (dprintf_style_enums): New array.
2658 (dprintf_style): New global.
2659 (dprintf_function): New global.
2660 (dprintf_channel): New global.
2661 (update_dprintf_command_list): New function.
2662 (update_dprintf_commands): New function.
2663 (init_breakpoint_sal): Add extra_string argument, handle it.
2664 (create_breakpoint_sal): Add extra_string argument.
2665 (create_breakpoints_sal): Add extra_string argument, update callers.
2666 (find_condition_and_thread): Add extra argument.
2667 (create_breakpoint): Add extra_string argument, record it.
2668 (dprintf_command): New function.
2669 (break_command_1): Add arg to create_breakpoint call.
2670 (handle_gnu_v3_exceptions): Ditto.
2671 (trace_command): Ditto.
2672 (ftrace_command): Ditto.
2673 (strace_command): Ditto.
2674 (bkpt_print_mention): Add dprintf case.
2675 (create_breakpoint_sal_default): Add extra_string argument.
2676 (_initialize_breakpoint): Add new commands.
2677 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
2678 * python/py-breakpoint.c (bppy_init): Ditto.
2679 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2680
2681 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
2682
2683 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
2684
2685 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
2686
2687 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
2688 unsigned long long.
2689
2690 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
2691
2692 Add a new function gdb.find_pc_line to the Python API.
2693 * NEWS (Python Scripting): Add entry about the new function.
2694 * python/python.c (gdbpy_find_pc_line): New function which
2695 implements gdb.find_pc_line.
2696 (GdbMethods): Add entry for the new function.
2697
2698 2012-05-12 Pedro Alves <palves@redhat.com>
2699
2700 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
2701 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
2702
2703 2012-05-12 Eli Zaretskii <eliz@gnu.org>
2704
2705 * inferior.c: Include completer.h
2706 (initialize_inferiors): Set completer of add-inferior to
2707 filename_completer.
2708
2709 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2710
2711 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2712 gdbarch_ptr_bit for x32 core dump.
2713
2714 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2715
2716 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
2717 and features/i386/x32-avx-linux.c.
2718
2719 2012-05-11 Stan Shebs <stan@codesourcery.com>
2720 Kwok Cheung Yeung <kcy@codesourcery.com>
2721
2722 * NEWS: Describe new info os commands.
2723 * common/linux-osdata.c (PID_T, TIME_T): Define.
2724 (MAX_PID_T_STRLEN): New.
2725 (linux_common_core_of_thread): Add comment. Change to use PID_T and
2726 MAX_PID_T_STRLEN.
2727 (command_from_pid): Add comment. Change to use PID_T.
2728 (commandline_from_pid): Change to use PID_T.
2729 (user_from_pid): Add comment.
2730 (get_process_owner): Add comment. Change to use PID_T and
2731 MAX_PID_T_STRLEN.
2732 (get_number_of_cpu_cores): Add comment.
2733 (get_cores_used_by_process): Add comment. Change to use PID_T and
2734 MAX_PID_T_STRLEN.
2735 (linux_xfer_osdata_processes): Change to use PID_T and
2736 MAX_PID_T_STRLEN.
2737 (compare_processes): New function.
2738 (linux_xfer_osdata_processgroups): New function.
2739 (linux_xfer_osdata_threads): Change to use PID_T.
2740 (linux_xfer_osdata_fds): New function.
2741 (format_socket_state, print_sockets): New functions.
2742 (union socket_addr): New union.
2743 (linux_xfer_osdata_isockets): New function.
2744 (time_from_time_t, group_from_gid): New functions.
2745 (linux_xfer_osdata_shm): New function.
2746 (linux_xfer_osdata_sem): New function.
2747 (linux_xfer_osdata_msg): New function.
2748 (linux_xfer_osdata_modules): New function.
2749 (osdata_table): Add new entries.
2750 * common/buffer.c (buffer_xml_printf): Add support for long and
2751 long long format specifiers.
2752
2753 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2754
2755 * amd64-linux-tdep.h (tdesc_x32_linux): New.
2756 (tdesc_x32_avx_linux): Likewise.
2757
2758 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2759
2760 Implement multi-component --with-auto-load-dir.
2761 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
2762 entries.
2763 (--with-auto-load-safe-path): Update the default value description.
2764 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
2765 New.
2766 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
2767 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
2768 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
2769 (_initialize_auto_load): Initialize also auto_load_dir. Install new
2770 "set auto-load scripts-directory".
2771 * config.in: Regenerate.
2772 * configure: Regenerate.
2773 * configure.ac (--with-auto-load-dir): New configure option.
2774 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
2775
2776 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2777
2778 Provide $ddir substitution for --with-auto-load-safe-path.
2779 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
2780 entries.
2781 * auto-load.c: Include observer.h.
2782 (auto_load_safe_path_vec_update): Call substitute_path_component for
2783 each component. New variable ddir_subst.
2784 (auto_load_gdb_datadir_changed): New function.
2785 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2786 AUTO_LOAD_SAFE_PATH. New comment.
2787 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2788 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
2789 * config.in: Regenerate.
2790 * configure: Regenerate.
2791 * configure.ac (--auto-load-safe-path): Rename
2792 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
2793 GDB_DATADIR/auto-load.
2794 * defs.h (substitute_path_component): New declaration.
2795 * top.c: Include observer.h.
2796 (set_gdb_datadir): New function.
2797 (init_main): Install it for "set data-directory".
2798 * utils.c (substitute_path_component): New function.
2799
2800 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
2803 * auto-load.c (auto_load_objfile_script): Remove check for NULL
2804 DEBUG_FILE_DIRECTORY. Handle multiple components of
2805 DEBUG_FILE_DIRECTORY.
2806
2807 2012-05-10 Tom Tromey <tromey@redhat.com>
2808
2809 * dwarf2read.c (recursively_write_psymbols): New function.
2810 (write_psymtabs_to_index): Use it.
2811
2812 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
2813 field.
2814 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
2815 (load_partial_comp_unit): Update.
2816 (queue_comp_unit): Add argument 'pretend_language'.
2817 (process_queue): Update.
2818 (psymtab_to_symtab_1): Skip dependencies that have a user.
2819 (load_partial_comp_unit_reader): Give meaning to the 'data'
2820 argument.
2821 (load_full_comp_unit): Add 'pretend_language' argument.
2822 (process_full_comp_unit): Add 'pretend_language' argument. Set
2823 language on CU.
2824 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
2825 Update.
2826 (maybe_queue_comp_unit): Add 'pretend_language' argument.
2827 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
2828 Update.
2829 (prepare_one_comp_unit): Add 'pretend_language' argument.
2830
2831 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
2832 (struct dwarf2_per_objfile) <just_read_cus>: New field.
2833 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
2834 (dw2_do_instantiate_symtab): Check whether symtab was read in
2835 before queueing.
2836 (dw2_instantiate_symtab): Add assertion. Call
2837 process_cu_includes.
2838 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
2839 (partial_symtab_p): New typedef.
2840 (set_partial_user): New function.
2841 (dwarf2_build_psymtabs_hard): Use set_partial_user.
2842 (scan_partial_symbols): Add imported CU to imported_symtabs.
2843 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
2844 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
2845 (get_symtab, recursively_compute_inclusions)
2846 (compute_symtab_includes, process_cu_includes)
2847 (process_imported_unit_die): New functions.
2848 (process_die) <DW_TAG_imported_unit>: New case.
2849 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
2850
2851 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
2852 comment.
2853 (struct partial_die_info) <locdesc>: Remove.
2854 <d>: New field.
2855 (process_psymtab_comp_unit): Add 'read_partial' argument.
2856 Update.
2857 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
2858 (scan_partial_symbols): Handle DW_TAG_imported_unit.
2859 (add_partial_symbol): Update.
2860 (process_die): Handle DW_TAG_partial_unit.
2861 (read_file_scope): Update comment.
2862 (load_partial_dies): Handle DW_TAG_imported_unit.
2863 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
2864 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2865
2866 2012-05-10 Tom Tromey <tromey@redhat.com>
2867
2868 * cc-with-dwz.sh: New file.
2869
2870 2012-05-10 Tom Tromey <tromey@redhat.com>
2871
2872 * symtab.h (struct symtab) <includes, user>: New fields.
2873 * block.h (struct block_iterator) <d, idx, which>: New fields.
2874 * block.c (initialize_block_iterator, find_iterator_symtab)
2875 (block_iterator_step, block_iter_name_step)
2876 (block_iter_match_step): New functions.
2877 (block_iterator_first, block_iterator_next)
2878 (block_iter_name_first, block_iter_name_next)
2879 (block_iter_match_first, block_iter_match_next): Rewrite.
2880 (get_block_symtab): New function.
2881
2882 2012-05-10 Tom Tromey <tromey@redhat.com>
2883
2884 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2885 set_block_symtab.
2886 * jit.c (finalize_symtab): Use allocate_global_block,
2887 set_block_symtab.
2888 * buildsym.c (finish_block_internal): New function, from old
2889 finish_block.
2890 (finish_block): Rewrite.
2891 (end_symtab): Use finish_block_internal, set_block_symtab.
2892 * block.h (struct global_block): New.
2893 (allocate_global_block, set_block_symtab): Declare.
2894 * block.c (allocate_global_block, set_block_symtab): New
2895 functions.
2896
2897 2012-05-10 Tom Tromey <tromey@redhat.com>
2898
2899 * psymtab.c (partial_map_expand_apply): Add assertion.
2900 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2901 (psymtab_to_symtab): Find unshared psymtab.
2902 (dump_psymtab): Print including psymtabs.
2903 (recursively_search_psymtabs): New function.
2904 (expand_symtabs_matching_via_partial): Use it.
2905 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2906 fields.
2907 (enum psymtab_search_status): New.
2908
2909 2012-05-10 Tom Tromey <tromey@redhat.com>
2910
2911 * tracepoint.c (scope_info): Update.
2912 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2913 (find_pc_sect_symtab, search_symbols)
2914 (default_make_symbol_completion_list_break_on)
2915 (make_file_symbol_completion_list): Update.
2916 * symmisc.c (dump_symtab_1): Update.
2917 * stack.c (print_frame_args, iterate_over_block_locals)
2918 (print_frame_labels, iterate_over_block_arg_vars): Update.
2919 * python/py-block.c (block_object) <dict>: Remove.
2920 <block>: New field.
2921 <iter>: Change type.
2922 (blpy_iter): Update.
2923 (blpy_block_syms_iternext): Update.
2924 * psymtab.c (map_block): Use block iterators.
2925 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2926 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2927 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2928 * infrun.c (check_exception_resume): Update.
2929 * cp-support.c (make_symbol_overload_list_block): Update.
2930 * coffread.c (patch_opaque_types): Update.
2931 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2932 * block.h (struct block_iterator): New.
2933 (block_iterator_first, block_iterator_next, block_iter_name_first)
2934 (block_iter_name_next, block_iter_match_first)
2935 (block_iter_match_next): Declare.
2936 (ALL_BLOCK_SYMBOLS): Redefine.
2937 * block.c (block_iterator_first, block_iterator_next)
2938 (block_iter_name_first, block_iter_name_next)
2939 (block_iter_match_first, block_iter_match_next): New functions.
2940 * ada-lang.c (ada_add_block_symbols)
2941 (ada_make_symbol_completion_list): Use block iterator.
2942
2943 2012-05-10 Tom Tromey <tromey@redhat.com>
2944
2945 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2946 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2947 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2948 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2949 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2950 Update.
2951
2952 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2953
2954 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2955 print-file-var-lib2.c, print-file-var-main.c and
2956 print-file-var.exp (located in gdb/testsuite/gdb.base).
2957
2958 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2959
2960 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2961 try locating the symbol in the symbol's own objfile first, before
2962 extending the search to all objfiles.
2963 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2964 out of lookup_symbol_aux_symtabs.
2965 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2966 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2967 Do not search EXCLUDE_OBJFILE.
2968 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2969 (lookup_symbol_global): Search for matches in the block's objfile
2970 first, before searching all other objfiles.
2971
2972 2012-05-10 Tristan Gingold <gingold@adacore.com>
2973
2974 * printcmd.c (set_command): Add pre/post inc/dec.
2975
2976 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
2977
2978 * gdb.1: Document -ex option.
2979
2980 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2981
2982 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2983 * inferior.h (AT_SYMBOL): Delete.
2984
2985 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2986
2987 * mips-tdep.c (mips_push_dummy_code): New function.
2988 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2989 ON_STACK and install mips_push_dummy_code as our gdbarch
2990 push_dummy_code routine.
2991
2992 2012-05-09 Pedro Alves <palves@redhat.com>
2993
2994 * target.c (set_maintenance_target_async_permitted): Rename to ...
2995 (set_target_async_command): ... this.
2996 (show_maintenance_target_async_permitted): Rename to ...
2997 (show_target_async_command): ... this.
2998 (initialize_targets): Adjust.
2999
3000 2012-05-08 Doug Evans <dje@google.com>
3001
3002 * go-exp.y (classify_name): Add missing assignment of fields of
3003 yylval.ssym.
3004
3005 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3006
3007 Display the ">" prompt in interactive mode while reading canned
3008 commands, even when the current interpreter is MI.
3009
3010 * interps.c (interp_set_temp): New function.
3011
3012 * interps.h (interp_set_temp): Add prototype.
3013
3014 * cli/cli-script.c (restore_interp): New cleanup function.
3015 (read_command_lines): Temporarily override the current interpreter
3016 with CLI and arrange for restoring the original one.
3017
3018 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3019
3020 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3021
3022 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3023
3024 * probe.c (parse_probes): Move conditional to check for
3025 debuginfo files from here...
3026 * stap-probe.c (stap_get_probes): ... to here.
3027
3028 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3029 H.J. Lu <hongjiu.lu@intel.com>
3030
3031 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3032 `movl %esp, %ebp' for the X32 ABI.
3033
3034 2012-05-07 Tom Tromey <tromey@redhat.com>
3035
3036 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3037 get_DW_TAG_name.
3038 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3039 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3040 (dwarf_stack_op_name): Remove.
3041 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3042 (decode_locdesc): Use get_DW_OP_name.
3043 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3044 (dwarf2_compile_expr_to_ax): Likewise.
3045 (disassemble_dwarf_expression): Likewise.
3046 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3047
3048 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3049
3050 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3051 (sh_linux_sigtramp_cache): New function.
3052 (sh_linux_sigreturn_init): New function.
3053 (sh_linux_rt_sigreturn_init): New function.
3054 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3055 patterns.
3056 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3057 syscall codes.
3058 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3059 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3060 (sh_linux_init_abi): Add init calls to register new tramp_frame
3061 definitions under 32-bit SH, update comments.
3062
3063 2012-05-07 Pedro Alves <palves@redhat.com>
3064
3065 PR gdb/10952
3066
3067 * amd64-linux-tdep.c: Include glibc-tdep.h.
3068 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3069 gdbarch_skip_solib_resolver callback.
3070
3071 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3072
3073 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3074 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3075 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3076 (add_auto_load_safe_path): Change the error message.
3077 (_initialize_auto_load): Change the "safe-path" help text.
3078 * configure: Regenerate
3079 * configure.ac (--without-auto-load-safe-path): Set
3080 WITH_AUTO_LOAD_SAFE_PATH to /.
3081
3082 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3083
3084 * stap-probe.h: Do not include unecessary `probe.h'.
3085
3086 2012-05-05 Alan Modra <amodra@gmail.com>
3087
3088 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3089 bfd_und_section_ptr.
3090 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3091 and bfd_com_section_ptr.
3092
3093 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3094
3095 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3096
3097 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3098
3099 * windows-nat.h (segment_register_p_ftype): New typedef.
3100 (windows_set_segment_register_p): Add declaration.
3101 * windows-nat.c (segment_register_p): New static global.
3102 (windows_set_segment_register_p): New function.
3103 (do_windows_fetch_inferior_registers): Add special handling
3104 for segment registers.
3105 * amd64-windows-nat.c: #include "amd64-tdep.h".
3106 (amd64_windows_segment_register_p): New function.
3107 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3108 * i386-windows-nat.c: #include "i386-tdep.h".
3109 (i386_windows_segment_register_p): New function.
3110 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3111
3112 2012-05-04 Tristan Gingold <gingold@adacore.com>
3113
3114 * printcmd.c (set_command): Emit a warning if the expression is not
3115 an assignment.
3116
3117 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3118
3119 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3120 Make static.
3121
3122 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3123
3124 * stap-probe.c (stap_is_operator): Change declaration.
3125 (stap_get_opcode): Change return value.
3126 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3127 `stap_parse_argument_1'.
3128
3129 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3130
3131 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3132 debug log.
3133
3134 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3135
3136 Add two new methods global_block and static_block to gdb.Symtab
3137 objects.
3138 * NEWS (Python scripting): Add entry about the new methods.
3139 * python/py-symtab.c (stpy_global_block): New function which
3140 implements the gdb.Symtab.global_block() method.
3141 (stpy_static_block): New function which implements the
3142 gdb.Symtab.static_block() method.
3143 (symtab_object_methods): Add entries for the two new methods.
3144
3145 2012-05-03 Doug Evans <dje@google.com>
3146
3147 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3148 files.
3149
3150 2012-05-03 Yao Qi <yao@codesourcery.com>
3151
3152 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3153 space.
3154 (i386_process_record): Ditto.
3155
3156 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3157
3158 * infcall.c (unwind_on_signal_p): Make static.
3159
3160 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3161
3162 * sol-thread.c (solaris_pid_to_str): Make static.
3163 (_initialize_sol_thread): Add prototype.
3164
3165 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3166
3167 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3168
3169 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3170
3171 * MAINTAINERS: Remove myself.
3172
3173 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 Fix --without-auto-load-safe-path for MS-Windows host platform.
3176 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3177
3178 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3179
3180 * gdb_curses.h: Undefine KEY_EVENT before including curses
3181 headers. Move "#undef MOUSE_MOVED" before any curses header
3182 inclusion.
3183
3184 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3185
3186 * features/i386/i386-mmx-linux.c: Regenerate.
3187 * features/rs6000/powerpc-32.c: Likewise.
3188 * features/rs6000/powerpc-32l.c: Likewise.
3189 * features/rs6000/powerpc-403.c: Likewise.
3190 * features/rs6000/powerpc-403gc.c: Likewise.
3191 * features/rs6000/powerpc-405.c: Likewise.
3192 * features/rs6000/powerpc-505.c: Likewise.
3193 * features/rs6000/powerpc-601.c: Likewise.
3194 * features/rs6000/powerpc-602.c: Likewise.
3195 * features/rs6000/powerpc-603.c: Likewise.
3196 * features/rs6000/powerpc-604.c: Likewise.
3197 * features/rs6000/powerpc-64.c: Likewise.
3198 * features/rs6000/powerpc-64l.c: Likewise.
3199 * features/rs6000/powerpc-750.c: Likewise.
3200 * features/rs6000/powerpc-860.c: Likewise.
3201 * features/rs6000/powerpc-e500.c: Likewise.
3202 * features/rs6000/powerpc-e500l.c: Likewise.
3203 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3204 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3205 * features/rs6000/rs6000.c: Likewise.
3206
3207 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3208
3209 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3210 variable.
3211 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3212 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3213 (stap_parse_argument) <e>: Likewise.
3214 (handle_stap_probe) <byte_order>: Likewise.
3215
3216 2012-04-30 Doug Evans <dje@google.com>
3217
3218 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3219 init_and_read_dies_worker. All callers updated.
3220 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3221 replaced with init_cutu_and_read_dies.
3222 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3223 (find_partial_die): Remove FIXME. Don't free current CU.
3224
3225 2012-04-30 Sterling Augustine <saugustine@google.com>
3226
3227 * contrib: New directory.
3228 * contrib/test_pubnames_and_indexes.py: New file.
3229
3230 2012-04-30 Doug Evans <dje@google.com>
3231
3232 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3233 All callers updated.
3234 (init_cu_die_reader): Verify the section is non-empty.
3235 (dwarf_decode_line_header): Don't dereference section->asection
3236 until we know the section is present.
3237
3238 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3239
3240 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3241 probes.
3242
3243 2012-04-29 Yao Qi <yao@codesourcery.com>
3244
3245 * gdb-code-style.el: New hook gdb-markup-hook
3246 and gdb-comment-hook.
3247
3248 2012-04-28 Doug Evans <dje@google.com>
3249
3250 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3251 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3252 objfile->obfd.
3253 * symfile.h (dwarf2_debug_sections): New member addr.
3254 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3255 (ctx_no_get_addr_index): New function.
3256 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3257 (ctx_no_get_addr_index): Declare.
3258 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3259 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3260 (dwarf_expr_ctx_funcs): Update.
3261 (needs_get_addr_index): New function.
3262 (needs_frame_ctx_funcs): Update.
3263 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3264 * dwarf2read.c: #include "gdbcore.h".
3265 (dwarf2_per_objfile): New members addr, dwo_files.
3266 (dwarf2_elf_names): Add entry for addr.
3267 (struct dwo_section_names): New type.
3268 (dwo_section_names): New static global.
3269 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3270 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3271 old debug_types_section member updated to use this.
3272 Rename member debug_types_section to info_or_types_section,
3273 all uses updated.
3274 (signatured_type): Rename member type_offset to type_offset_in_tu,
3275 all uses updated. New member type_offset_in_section.
3276 (struct dwo_sections): New type.
3277 (struct dwo_unit): New type.
3278 (struct dwo_file): New type.
3279 (die_reader_specs): New member dwo_file.
3280 (dwarf2_locate_sections): Watch for .debug_addr.
3281 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3282 (dwarf2_read_section): Get bfd of section from bfd's asection,
3283 instead of objfile.
3284 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3285 (create_signatured_type_table_from_index): Initialize
3286 sig_type->info_or_types_section.
3287 (dw2_get_file_names): Statement lists for type units with DWO files
3288 live in the DWO file.
3289 (create_debug_types_hash_table): New function.
3290 (create_all_type_units): Rewrite.
3291 (init_cu_die_reader): New arg dwo_file, all callers updated.
3292 (init_and_read_dies_worker): Get section from
3293 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3294 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3295 continue reading the CU/TU from there.
3296 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3297 updated. Get section from this_cu->info_or_types_section.
3298 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3299 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3300 DW_FORM_GNU_str_index.
3301 (hash_dwo_file, eq_dwo_file): New functions.
3302 (allocate_dwo_file_hash_table): New function.
3303 (hash_dwo_unit, eq_dwo_unit): New functions.
3304 (allocate_dwo_unit_table): New function.
3305 (dwarf2_locate_dwo_sections): New function.
3306 (struct create_dwo_info_table_data): New type.
3307 (create_debug_info_hash_table_reader): New function.
3308 (create_debug_info_hash_table): New function.
3309 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3310 (lookup_dwo_file): New function.
3311 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3312 (free_dwo_file, free_dwo_file_cleanup): New functions.
3313 (free_dwo_file_from_slot, free_dwo_files): New functions.
3314 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3315 (dwarf2_record_block_ranges): Ditto.
3316 (read_partial_die): Ditto.
3317 (process_enumeration_scope): Update to use type_offset_in_section.
3318 (read_full_die_1): New function.
3319 (read_full_die): Rewrite.
3320 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3321 DW_FORM_GNU_str_index.
3322 (read_addr_index_1, read_addr_index): New functions.
3323 (read_addr_index_from_leb128): New function.
3324 (struct dwarf2_read_addr_index_data): New type.
3325 (dwarf2_read_addr_index_reader): New function.
3326 (dwarf2_read_addr_index): New function.
3327 (read_str_index): New function.
3328 (leb128_size): New function.
3329 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3330 If processing a type unit from a DWO file, get the line section
3331 from the DWO file.
3332 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3333 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3334 DW_FORM_GNU_str_index.
3335 (lookup_die_type): Check whether section offset of type's die is
3336 known before looking it up. Remove assert. Condition can
3337 legimately happen for inter-cu type references.
3338 (dwarf_attr_name): Handle Fission attributes.
3339 (dwarf_form_name): Handle Fission forms.
3340 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3341 DW_FORM_GNU_str_index.
3342 (follow_die_sig): Update to use type_offset_in_section.
3343 (decode_locdesc): New case DW_OP_GNU_addr_index.
3344 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3345 DW_FORM_GNU_str_index.
3346 (cu_debug_loc_section): New function.
3347 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3348 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3349 Free DWO files if present.
3350 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3351
3352 Refactor DIE reading.
3353 * dwarf2read.c (dwarf2_per_objfile): Replace members
3354 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3355 (die_reader_specs): New member "die_section". Temporarily make
3356 member "buffer" non-const, pending constifying all info_ptr uses.
3357 (die_reader_func_ftype): New typedef.
3358 (dw2_get_file_names_reader): New function.
3359 (dw2_get_file_names): Rewrite.
3360 (read_and_check_type_unit_head): Rename arg type_offset to
3361 type_offset_in_tu.
3362 (create_all_type_units): Improve debugging message.
3363 Improve dummy type unit check.
3364 (init_cu_die_reader): New arg "section". All callers updated.
3365 (init_and_read_dies_worker): New function.
3366 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3367 (init_cutu_and_read_dies_no_follow): New function.
3368 (init_cutu_and_read_dies_simple): New function.
3369 (process_psymtab_comp_unit_reader): New function.
3370 (process_psymtab_comp_unit): Delete args section,
3371 is_debug_types_section. Rewrite. All callers updated.
3372 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3373 All callers updated. Rewrite.
3374 (load_partial_comp_unit_reader): New function.
3375 (load_partial_comp_unit): Rewrite.
3376 (skip_children): New arg reader. Delete args buffer, cu.
3377 All callers updated.
3378 (skip_one_die): New arg reader. Delete args buffer, cu.
3379 All callers updated.
3380 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3381 All callers updated.
3382 (load_full_comp_unit_reader): New function.
3383 (load_full_comp_unit): Rewrite.
3384 (read_comp_unit): Delete.
3385 (read_die_and_children_1): Delete, contents moved ...
3386 (read_die_and_children): ... here.
3387 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3388 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3389 All callers updated.
3390 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3391 All callers updated.
3392 (find_partial_die): Rewrite load_all_dies support.
3393 (read_attribute_value): New arg reader. Delete args abfd, cu.
3394 All callers updated.
3395 (read_attribute): New arg reader. Delete args abfd, cu.
3396 All callers updated.
3397 (load_full_type_unit): Add assert.
3398 (read_signatured_type_reader): New function.
3399 (read_signatured_type): Rewrite.
3400 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3401 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3402 All callers updated. Set per_cu->cu = NULL after freeing it.
3403 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3404 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3405 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3406 (set_die_type): Update.
3407 (get_die_type_at_offset): Update.
3408 (read_file_scope): Call prepare_one_comp_unit.
3409 (read_type_unit_scope): Ditto.
3410 (prepare_one_comp_unit): Set producer if present.
3411
3412 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3413
3414 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3415 gettext function on `error'.
3416
3417 2012-04-27 Doug Evans <dje@google.com>
3418
3419 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3420 is empty.
3421
3422 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3423 Tom Tromey <tromey@redhat.com>
3424
3425 * breakpoint.c (struct breakpoint_objfile_data)
3426 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3427 <exception_probes>: New fields.
3428 (free_breakpoint_probes): New function.
3429 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3430 `_Unwind_DebugHook'.
3431 (create_exception_master_breakpoint): Likewise.
3432 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3433 * infrun.c: Including necessary header files for handling SystemTap
3434 probes.
3435 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3436 via SystemTap probes.
3437 (check_exception_resume): Remove `func' argument. Handle exception
3438 unwinding breakpoint set via a SystemTap probe.
3439 (insert_exception_resume_from_probe): New function.
3440
3441 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3442 Tom Tromey <tromey@redhat.com>
3443 Jan Kratochvil <jan.kratochvil@redhat.com>
3444
3445 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3446 (COMMON_OBS): Likewise.
3447 (HFILES_NO_SRCDIR): Add `probe'.
3448 * NEWS: Mention support for static and SystemTap probes.
3449 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3450 SystemTap probes' arguments parser.
3451 * arm-linux-tdep.c: Including headers needed to perform the parsing
3452 of SystemTap probes' arguments.
3453 (arm_stap_is_single_operand): New function.
3454 (arm_stap_parse_special_token): Likewise.
3455 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3456 probes' arguments parser.
3457 * ax-gdb.c (require_rvalue): Removing static declaration.
3458 (gen_expr): Likewise.
3459 * ax-gdb.h (gen_expr): Declaring function.
3460 (require_rvalue): Likewise.
3461 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3462 (bkpt_probe_breakpoint_ops): New variable.
3463 (momentary_breakpoint_from_master): Set the `probe' value.
3464 (add_location_to_breakpoint): Likewise.
3465 (break_command_1): Using proper breakpoint_ops according to the
3466 argument passed by the user in the command line.
3467 (bkpt_probe_insert_location): New function.
3468 (bkpt_probe_remove_location): Likewise.
3469 (bkpt_probe_create_sals_from_address): Likewise.
3470 (bkpt_probe_decode_linespec): Likewise.
3471 (tracepoint_probe_create_sals_from_address): Likewise.
3472 (tracepoint_probe_decode_linespec): Likewise.
3473 (tracepoint_probe_breakpoint_ops): New variable.
3474 (trace_command): Using proper breakpoint_ops according to the
3475 argument passed by the user in the command line.
3476 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3477 static probes on breakpoints and tracepoints.
3478 * breakpoint.h (struct bp_location) <probe>: New field.
3479 * cli-utils.c (skip_spaces_const): New function.
3480 (extract_arg): Likewise.
3481 * cli-utils.h (skip_spaces_const): Likewise.
3482 (extract_arg): Likewise.
3483 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3484 * configure.ac: Append `stap-probe.o' to be generated when ELF
3485 support is present.
3486 * configure: Regenerate.
3487 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3488 * elfread.c: Include `probe.h' and `arch-utils.h'.
3489 (probe_key): New variable.
3490 (elf_get_probes): New function.
3491 (elf_get_probe_argument_count): Likewise.
3492 (elf_evaluate_probe_argument): Likewise.
3493 (elf_compile_to_ax): Likewise.
3494 (elf_symfile_relocate_probe): Likewise.
3495 (stap_probe_key_free): Likewise.
3496 (elf_probe_fns): New variable.
3497 (elf_sym_fns): Add `sym_probe_fns' value.
3498 (elf_sym_fns_lazy_psyms): Likewise.
3499 (elf_sym_fns_gdb_index): Likewise.
3500 (_initialize_elfread): Initialize objfile cache for static
3501 probes.
3502 * gdb_vecs.h (struct probe): New forward declaration.
3503 (probe_p): New VEC declaration.
3504 * gdbarch.c: Regenerate.
3505 * gdbarch.h: Regenerate.
3506 * gdbarch.sh (stap_integer_prefix): New variable.
3507 (stap_integer_suffix): Likewise.
3508 (stap_register_prefix): Likewise.
3509 (stap_register_suffix): Likewise.
3510 (stap_register_indirection_prefix): Likewise.
3511 (stap_register_indirection_suffix): Likewise.
3512 (stap_gdb_register_prefix): Likewise.
3513 (stap_gdb_register_suffix): Likewise.
3514 (stap_is_single_operand): New function.
3515 (stap_parse_special_token): Likewise.
3516 (struct stap_parse_info): Forward declaration.
3517 * i386-tdep.c: Including headers needed to perform the parsing
3518 of SystemTap probes' arguments.
3519 (i386_stap_is_single_operand): New function.
3520 (i386_stap_parse_special_token): Likewise.
3521 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3522 probes' arguments parser.
3523 * i386-tdep.h (i386_stap_is_single_operand): New function.
3524 (i386_stap_parse_special_token): Likewise.
3525 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3526 * mipsread.c (ecoff_sym_fns): Likewise.
3527 * objfiles.c (objfile_relocate1): Support relocation for static
3528 probes.
3529 * parse.c (prefixify_expression): Remove static declaration.
3530 (initialize_expout): Likewise.
3531 (reallocate_expout): Likewise.
3532 * parser-defs.h (initialize_expout): Declare function.
3533 (reallocate_expout): Likewise.
3534 (prefixify_expression): Likewise.
3535 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3536 of SystemTap probes' arguments.
3537 (ppc_stap_is_single_operand): New function.
3538 (ppc_stap_parse_special_token): Likewise.
3539 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3540 probes' arguments parser.
3541 * probe.c: New file, for generic statically defined probe support.
3542 * probe.h: Likewise.
3543 * s390-tdep.c: Including headers needed to perform the parsing of
3544 SystemTap probes' arguments.
3545 (s390_stap_is_single_operand): New function.
3546 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3547 probes' arguments parser.
3548 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3549 * stap-probe.c: New file, for SystemTap probe support.
3550 * stap-probe.h: Likewise.
3551 * symfile.h: Include `gdb_vecs.h'.
3552 (struct sym_probe_fns): New struct.
3553 (struct sym_fns) <sym_probe_fns>: New field.
3554 * symtab.c (init_sal): Initialize `probe' field.
3555 * symtab.h (struct probe): Forward declaration.
3556 (struct symtab_and_line) <probe>: New field.
3557 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3558 locations.
3559 (stop_tracing): Likewise.
3560 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
3561
3562 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3563 Tom Tromey <tromey@redhat.com>
3564
3565 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
3566 and to compile agent expressions.
3567 * infrun.c (siginfo_make_value): New argument `ignore'.
3568 (siginfo_funcs): New struct.
3569 (_initialize_infrun): New argument when calling
3570 `create_internalvar_type_lazy'.
3571 * thread.c (thread_id_make_value): New argument `ignore'.
3572 (thread_funcs): New struct.
3573 (_initialize_thread): New argument when calling
3574 `create_internalvar_type_lazy'.
3575 * tracepoint.c (sdata_make_value): New argument `ignore'.
3576 (sdata_funcs): New struct.
3577 (_initialize_tracepoint): New argument when calling
3578 `create_internalvar_type_lazy'.
3579 * value.c (make_value): New struct.
3580 (create_internalvar_type_lazy): New argument `data'.
3581 (compile_internalvar_to_ax): New function.
3582 (value_of_internalvar): Properly handling `make_value' case.
3583 (clear_internalvar): Likewise.
3584 (show_convenience): Adding `TRY_CATCH' block.
3585 * value.h (internalvar_make_value): Delete, replace by...
3586 (struct internalvar_funcs): ... this.
3587 (create_internalvar_type_lazy) <fun>: Delete argument.
3588 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
3589 (compile_internalvar_to_ax): New function.
3590 * windows-tdep.c (tlb_make_value): New argument `ignore'.
3591 (tlb_funcs): New struct.
3592 (_initialize_windows_tdep): New argument when calling
3593 `create_internalvar_type_lazy'.
3594
3595 2012-04-27 Mark Wielaard <mjw@redhat.com>
3596
3597 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
3598 see whether it is an address or a constant offset from DW_AT_low_pc.
3599 (dwarf2_record_block_ranges): Likewise.
3600 (read_partial_die): Likewise.
3601
3602 2012-04-26 Mark Wielaard <mjw@redhat.com>
3603
3604 * MAINTAINERS (Write After Approval): Add myself to the list.
3605
3606 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
3607
3608 * proc-utils.h (proc_prettyprint_signalset): New prototype.
3609 (proc_prettyprint_signal): Likewise.
3610 (proc_prettyprint_faultset): Likewise.
3611 (proc_prettyprint_fault): Likewise.
3612 (proc_prettyprint_actionset): Likewise.
3613 (proc_prettyprint_flags): Move to new proc-flags.c section.
3614 (proc_prettyfprint_flags): New prototype.
3615 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
3616 (proc_syscall, proc_cursig): Likewise.
3617 (proc_set_kill_on_last_close): Likewise.
3618 (proc_unset_kill_on_last_close): Likewise.
3619 (proc_set_watchpoint): Make static.
3620 (proc_delete_dead_threads): Likewise.
3621 (procfs_set_watchpoint): Likewise.
3622 (_initialize_procfs): Add prototype.
3623 * proc-events.c: Include proc-utils.h.
3624 (init_syscall_table): Make static.
3625 * proc-api.c (_initialize_proc_api): Add prototype.
3626 * proc-flags.c: Include proc-utils.h.
3627
3628 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
3629
3630 * configure.ac: Add AC_ARG_PROGRAM.
3631 * configure: Regenerate.
3632
3633 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3634
3635 Fix DW_AT_lower_bound defaults for DWARF-4+.
3636 * dwarf2read.c (read_subrange_type): Remove initialization of low and
3637 high. New variable low_default_is_valid. Implement DWARF-4+
3638 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
3639 no default by the DWARF standard.
3640
3641 2012-04-26 Maciej W. Rozycki <macro@mips.com>
3642 Maciej W. Rozycki <macro@codesourcery.com>
3643
3644 * infrun.c (handle_inferior_event): Move the check for return
3645 trampolines ahead of the check for function trampolines.
3646 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
3647 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
3648 (mips_str_mips16_ret_stub): Likewise.
3649 (mips_str_call_fp_stub): Likewise.
3650 (mips_str_call_stub): Likewise.
3651 (mips_str_fn_stub): Likewise.
3652 (mips_str_pic): Likewise.
3653 (mips_in_frame_stub): New function.
3654 (mips_unwind_pc): Return the return address rather than the PC
3655 if the PC of an intermediate frame is inside a call thunk.
3656 (mips_is_stub_suffix): New function.
3657 (mips_is_stub_mode): Likewise.
3658 (mips_get_mips16_fn_stub_pc): Likewise.
3659 (mips_skip_mips16_trampoline_code): Update to handle all the
3660 currently generated stub types. Don't recurse into __fn_stub
3661 thunks. Remove heuristics to handle stubs beyond etext/_etext.
3662 Use cooked register accesses.
3663 (mips_in_return_stub): Reintroduce function.
3664 (mips_skip_trampoline_code): Traverse trampolines recursively.
3665 (mips_gdbarch_init): Handle MIPS16 return trampolines.
3666
3667 2012-04-26 Joel Brobecker <brobecker@adacore.com>
3668
3669 GDB 7.4.1 released.
3670
3671 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
3672
3673 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
3674 * features/arm-with-m-vfp-d16.xml: New file. Describes
3675 Cortex-M with VFPv4-sp-d16 FPU register layout.
3676 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
3677 * features/arm-with-m-vfp-d16.c: New. Generated from above.
3678 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
3679 (arm-register_g_packet_guesses): Add vfp-d16 guess.
3680 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
3681
3682 2012-04-25 Doug Evans <dje@google.com>
3683
3684 * cli/cli-decode.c (print_doc_line): Use stream instead of
3685 current_uiout.
3686
3687 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
3688
3689 * features/arm-with-iwmmxt.c: Regenerate.
3690 * features/arm-with-m-fpa-layout.c: Likewise.
3691 * features/arm-with-m.c: Likewise.
3692 * features/arm-with-neon.c: Likewise.
3693 * features/arm-with-vfpv2.c: Likewise.
3694 * features/arm-with-vfpv3.c: Likewise.
3695 * features/mips-dsp-linux.c: Likewise.
3696 * features/mips-linux.c: Likewise.
3697 * features/mips64-dsp-linux.c: Likewise.
3698 * features/mips64-linux.c: Likewise.
3699 * features/s390-linux32.c: Likewise.
3700 * features/s390-linux32v1.c: Likewise.
3701 * features/s390-linux32v2.c: Likewise.
3702 * features/s390-linux64.c: Likewise.
3703 * features/s390-linux64v1.c: Likewise.
3704 * features/s390-linux64v2.c: Likewise.
3705 * features/s390x-linux64.c: Likewise.
3706 * features/s390x-linux64v1.c: Likewise.
3707 * features/s390x-linux64v2.c: Likewise.
3708 * features/tic6x-c62x-linux.c: Likewise.
3709 * features/tic6x-c62x.c: Likewise.
3710 * features/tic6x-c64x-linux.c: Likewise.
3711 * features/tic6x-c64x.c: Likewise.
3712 * features/tic6x-c64xp-linux.c: Likewise.
3713 * features/tic6x-c64xp.c: Likewise.
3714 * target-descriptions.c: Only generate `field_type' and `type'
3715 variables when needed.
3716
3717 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
3718
3719 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
3720
3721 2012-04-25 Doug Evans <dje@google.com>
3722
3723 Initial pass at Go language support.
3724 * NEWS: Mention Go.
3725 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
3726 go-valprint.c.
3727 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
3728 (YYFILES): Add go-exp.c.
3729 (YYOBJ): Add go-exp.o.
3730 (local-maintainer-clean): Delete go-exp.c.
3731 * defs.h (enum language): Add language_go.
3732 * dwarf2read.c: #include "go-lang.h".
3733 (fixup_go_packaging): New function.
3734 (process_full_comp_unit): Call it when processing Go CUs.
3735 (dwarf2_physname): Add Go support.
3736 (read_file_scope): Handle missing language spec for GNU Go.
3737 (set_cu_language): Handle DW_LANG_Go.
3738 * go-exp.y: New file.
3739 * go-lang.h: New file.
3740 * go-lang.c: New file.
3741 * go-typeprint.c: New file.
3742 * go-valprint.c: New file.
3743 * symtab.c: #include "go-lang.h".
3744 (symbol_set_language): Handle language_go.
3745 (symbol_find_demangled_name, symbol_set_names): Ditto.
3746 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
3747
3748 2012-04-24 Jim Meyering <meyering@redhat.com>
3749
3750 avoid a few strncpy-induced buffer overruns
3751 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
3752 fname and psargs before trying to concatenate.
3753 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
3754 "name" before applying strchr.
3755
3756 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
3757
3758 * CONTRIBUTE: Use unified diff instead of context diff when
3759 generating patches.
3760
3761 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
3762
3763 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
3764 code. Handle JR.HB correctly.
3765
3766 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
3767
3768 * mips-tdep.c
3769 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
3770 with the other MIPS16 helpers.
3771
3772 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
3773
3774 * observer.sh: Conditionally declare `args', thus cleaning up
3775 unused instances of this variable.
3776
3777 2012-04-24 Yao Qi <yao@codesourcery.com>
3778
3779 Revert this patch to allow breakpoint always-inserted
3780 in record target.
3781 2011-12-05 Pedro Alves <pedro@codesourcery.com>
3782 * breakpoint.c: Include record.h.
3783 (breakpoints_always_inserted_mode): Return false when the record
3784 target is in use.
3785
3786 * breakpoint.c (iterate_over_bp_locations): New.
3787 * breakpoint.h: Declare.
3788 New typedef walk_bp_location_callback.
3789 * record.c (record_open): Call record_init_record_breakpoints.
3790 (record_sync_record_breakpoints): New.
3791 (record_init_record_breakpoints): New.
3792 * NEWS: Mention supporting breakpoint always-inserted mode in
3793 record target.
3794
3795 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
3796
3797 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
3798 any thread.
3799
3800 2012-04-24 Yao Qi <yao@codesourcery.com>
3801
3802 * breakpoint.c (ep_is_catchpoint): Renamed to ...
3803 (is_catchpoint): ... it.
3804 (print_one_breakpoint_location): Caller update.
3805 * breakpoint.h: Update declaration.
3806
3807 2012-04-23 David S. Miller <davem@davemloft.net>
3808
3809 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
3810
3811 2012-04-23 Tom Tromey <tromey@redhat.com>
3812
3813 * buildsym.c (add_free_pendings): Remove.
3814 * buildsym.h (add_free_pendings): Remove.
3815
3816 2012-04-23 Doug Evans <dje@google.com>
3817
3818 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
3819 attr.u.unsnd instead of attr.u.addr.
3820 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
3821 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
3822 DW_FORM_ref_udata.
3823 (dump_die_shallow): Update cases DW_FORM_ref_addr,
3824 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
3825 DW_FORM_ref_udata.
3826 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
3827
3828 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
3829
3830 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
3831 (mips_o32_return_value): Likewise.
3832 (mips_o64_return_value): Likewise.
3833
3834 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
3835
3836 * ada-lang.c (ada_evaluate_subexp): Add cases for
3837 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
3838 their treatment in eval.c.
3839
3840 2012-04-21 David S. Miller <davem@davemloft.net>
3841
3842 * sparc-tdep.c (X_DISP10): Define.
3843 (sparc_analyze_control_transfer): Handle compare-and-branch.
3844
3845 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
3846
3847 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
3848 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
3849
3850 2012-04-20 Nigel Stephens <nigel@mips.com>
3851 Maciej W. Rozycki <macro@codesourcery.com>
3852
3853 * mips-tdep.c (mips_float_register_p): New function.
3854 (mips_convert_register_float_case_p): Use mips_float_register_p.
3855 (mips_register_type): Likewise.
3856 (mips_print_register): Likewise.
3857 (print_gp_register_row): Likewise.
3858 (mips_print_registers_info): Likewise.
3859
3860 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
3861
3862 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
3863 of mips16 symbols.
3864
3865 2012-04-20 Andrew Pinski <apinski@cavium.com>
3866
3867 * MAINTAINERS (Write After Approval): Add myself to the list.
3868
3869 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3870
3871 * MAINTAINERS: Update my e-mail address.
3872
3873 2012-04-20 Pedro Alves <palves@redhat.com>
3874
3875 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3876 $srcdir.
3877 * configure: Regenerate.
3878
3879 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3880
3881 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
3882 declaration.
3883 * gdb_vecs.h: Declare `const_char_ptr' VEC.
3884
3885 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3886
3887 Fix compilation compatibility with python-2.4
3888 * python/py-type.c (convert_field): Cast ADDRSTRING for
3889 PyObject_SetAttrString as non-const. New comment.
3890
3891 2012-04-19 Tom Tromey <tromey@redhat.com>
3892
3893 * top.c (quit_target): Use all_cleanups.
3894 * main.c (captured_command_loop): Use all_cleanups.
3895 * exceptions.c (throw_exception): Use all_cleanups.
3896
3897 2012-04-19 Pedro Alves <palves@redhat.com>
3898
3899 * Makefile.in (GNULIB_BUILDDIR): New.
3900 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3901 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3902 (CLEANDIRS). Remove gnulib/import.
3903 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3904 (all-lib): Ditto.
3905 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3906 (gnulib/import/Makefile): Replace gnulib/import with
3907 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3908 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3909 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3910 acx_configure_dir.m4.
3911 * acinclude.m4: Include acx_configure_dir.m4.
3912 * acx_configure_dir.m4: New file.
3913 * aclocal.m4: Regenerate.
3914 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3915 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3916 (GNULIB): New variable.
3917 (GNULIB_STDINT_H): Adjust.
3918 (AC_OUTPUT): Don't output gnulib/Makefile.
3919 * gdb/defs.h: Include build-gnulib/config.h.
3920 * aclocal.m4: Regenerate.
3921 * config.in: Regenerate.
3922 * configure: Regenerate.
3923
3924 * gnulib/Makefile.in: New file.
3925 * gnulib/configure.ac: New file.
3926 * gnulib/aclocal.m4: New file.
3927 * gnulib/config.in: New file.
3928 * gnulib/configure: New file.
3929 * gnulib/: Re-run gnulib-tool to adjust.
3930
3931 2012-04-19 Doug Evans <dje@google.com>
3932
3933 * cleanups.h (struct cleanup): Move to cleanups.c.
3934 (make_cleanup_dtor_ftype): New typedef.
3935 (make_cleanup_dtor): Use it.
3936 (ALL_CLEANUPS): Replace with ...
3937 (all_cleanups): ... this. Declare. All uses updated.
3938 * cleanups.c: #include "gdb_assert.h".
3939 (sentinel_cleanup): New static global.
3940 (SENTINEL_CLEANUP): Define.
3941 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3942 (make_my_cleanup2): Assert result is non-NULL.
3943 (all_cleanups): New function.
3944 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3945 of NULL.
3946
3947 2012-04-19 Pedro Alves <palves@redhat.com>
3948
3949 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3950 Adjust paths to gnulib imported files.
3951
3952 2012-04-19 Pedro Alves <palves@redhat.com>
3953
3954 * gnulib/: Move whole directory ...
3955 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3956 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3957 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3958 (aclocal_m4_deps): Adjust.
3959 * aclocal.m4: Regenerate.
3960 * configure: Regenerate.
3961 * configure.ac: Adjust AC_OUTPUT output.
3962
3963 2012-04-19 Yao Qi <yao@codesourcery.com>
3964
3965 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3966 (vec.o): New rule.
3967 * vec.c: Move it ...
3968 * common/vec.c: ... here.
3969 * vec.h: Move it ...
3970 * common/vec.h: ... here.
3971
3972 2012-04-19 Yao Qi <yao@codesourcery.com>
3973
3974 * gdb-code-style.el: New.
3975
3976 2012-04-18 Pedro Alves <palves@redhat.com>
3977
3978 Update gnulib from latest git.
3979 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3980
3981 * gnulib/Makefile.am: Update.
3982 * gnulib/dummy.c: Update.
3983 * gnulib/extra/arg-nonnull.h: Update.
3984 * gnulib/extra/c++defs.h: Update.
3985 * gnulib/extra/update-copyright: Update.
3986 * gnulib/extra/warn-on-use.h: Update.
3987 * gnulib/inttypes.in.h: Update.
3988 * gnulib/m4/00gnulib.m4: Update.
3989 * gnulib/m4/extensions.m4: Update.
3990 * gnulib/m4/gnulib-cache.m4: Update.
3991 * gnulib/m4/gnulib-common.m4: Update.
3992 * gnulib/m4/gnulib-comp.m4: Update.
3993 * gnulib/m4/gnulib-tool.m4: Update.
3994 * gnulib/m4/include_next.m4: Update.
3995 * gnulib/m4/inttypes-pri.m4: Update.
3996 * gnulib/m4/inttypes.m4: Update.
3997 * gnulib/m4/longlong.m4: Update.
3998 * gnulib/m4/memchr.m4: Update.
3999 * gnulib/m4/memmem.m4: Update.
4000 * gnulib/m4/mmap-anon.m4: Update.
4001 * gnulib/m4/multiarch.m4: Update.
4002 * gnulib/m4/onceonly.m4: Update.
4003 * gnulib/m4/stddef_h.m4: Update.
4004 * gnulib/m4/stdint.m4: Update.
4005 * gnulib/m4/string_h.m4: Update.
4006 * gnulib/m4/warn-on-use.m4: Update.
4007 * gnulib/m4/wchar_h.m4: Update.
4008 * gnulib/m4/wchar_t.m4: Update.
4009 * gnulib/m4/wint_t.m4: Update.
4010 * gnulib/memchr.c: Update.
4011 * gnulib/memmem.c: Update.
4012 * gnulib/stddef.in.h: Update.
4013 * gnulib/stdint.in.h: Update.
4014 * gnulib/str-two-way.h: Update.
4015 * gnulib/string.in.h: Update.
4016 * gnulib/wchar.in.h: Update.
4017
4018 * gnulib/extra/arg-nonnull.h: Delete.
4019 * gnulib/extra/c++defs.h: Delete.
4020 * gnulib/extra/warn-on-use.h: Delete.
4021 * gnulib/m4/wchar_h.m4: Delete.
4022 * gnulib/m4/wint_t.m4: Delete.
4023 * gnulib/wchar.in.h: Delete.
4024
4025 * gnulib/extra/snippets/arg-nonnull.h: New.
4026 * gnulib/extra/snippets/c++defs.h: New.
4027 * gnulib/extra/snippets/warn-on-use.h: New.
4028
4029 * aclocal.m4: Regenerate.
4030 * config.in: Regenerate.
4031 * configure: Regenerate.
4032 * gnulib/Makefile.in: Regenerate.
4033
4034 2012-04-18 Pedro Alves <palves@redhat.com>
4035
4036 Reimport the update-copyright module from gnulib
4037 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4038
4039 * configure: Regenerate.
4040 * gnulib/Makefile.am: Update.
4041 * gnulib/Makefile.in: Regenerate.
4042 * gnulib/extra/update-copyright: Update.
4043 * gnulib/m4/gnulib-cache.m4: Update.
4044 * gnulib/m4/gnulib-comp.m4: Update.
4045
4046 2012-04-18 Tristan Gingold <gingold@adacore.com>
4047
4048 * configure.ac (aix): Put -lpthread into libs.
4049 * configure: Regenerate.
4050
4051 2012-04-18 Tom Tromey <tromey@redhat.com>
4052
4053 * linespec.c (convert_linespec_to_sals): Don't use
4054 SYMBOL_OBJ_SECTION.
4055 (compare_msymbols): Arguments are minsym_and_objfile, not
4056 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4057
4058 2012-04-18 Pedro Alves <palves@redhat.com>
4059
4060 Revert gnulib/ part of:
4061 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4062 Copyright year update in most files (performed by copyright.sh).
4063
4064 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4065
4066 Fix 64-bit constants on 32-bit hosts.
4067 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4068 from unsigned long to ULONGEST.
4069 (read_signed_leb128): Change declaration return type from long to
4070 LONGEST.
4071 (dwarf2_const_value_attr): Change declaration parameter value from long
4072 to LONGEST.
4073 (dwarf2_compute_name): Change variable value from long to LONGEST.
4074 (read_unsigned_leb128): Change return type, variable result and some
4075 casts from unsigned long to ULONGEST.
4076 (read_signed_leb128): Change return type, variable result and some
4077 casts from long to LONGEST.
4078 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4079 value from long to LONGEST.
4080 (dwarf2_const_value): Change variable value from long to LONGEST.
4081 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4082 plongest and hex_string.
4083 * symtab.h (struct general_symbol_info): Change ivalue from long to
4084 LONGEST, remove the comment.
4085 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4086 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4087
4088 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4089
4090 PR symtab/7259:
4091 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4092 * ada-lang.c (ada_discrete_type_high_bound)
4093 (ada_discrete_type_low_bound): Fix function comment. Use
4094 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4095 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4096 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4097 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4098 Use TYPE_FIELD_ENUMVAL.
4099 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4100 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4101 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4102 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4103 TYPE_CODE_ENUM.
4104 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4105 * dwarf2read.c (process_enumeration_scope): Likewise.
4106 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4107 field.bitpos.
4108 (class StructMainTypePrettyPrinter): Support also
4109 FIELD_LOC_KIND_ENUMVAL.
4110 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4111 TYPE_CODE_ENUM.
4112 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4113 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4114 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4115 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4116 field enumval.
4117 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4118 accommodate enumval.
4119 (struct call_site): Adjust loc_kind to accommodate enumval.
4120 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4121 (TYPE_FIELD_ENUMVAL): New macros.
4122 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4123 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4124 TYPE_CODE_ENUM.
4125 * p-typeprint.c (pascal_type_print_base): Likewise.
4126 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4127 enumval.
4128 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4129 * python/py-type.c (convert_field): New variable addrstring. Use
4130 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4131 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4132 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4133 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4134 TYPE_CODE_ENUM.
4135 * valprint.c (generic_val_print): Likewise.
4136
4137 2012-04-17 Doug Evans <dje@google.com>
4138
4139 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4140
4141 * dwarf2read.c: Whitespace fixes.
4142 (lookup_signatured_type): Tweak comment.
4143 (get_die_type_at_offset): Fix comment.
4144
4145 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4146
4147 * xcoffread.c (xcoff_secnum_to_sections): New function.
4148 (secnum_to_section, secnum_to_bfd_section): Reimplement
4149 using xcoff_secnum_to_sections. Rename "secnum" parameter
4150 into "n_scnum".
4151 (RECORD_MINIMAL_SYMBOL): Delete.
4152 (record_minimal_symbol): New function.
4153 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4154 by call to record_minimal_symbol and set misc_func_recorded
4155 to 1. Set last_csect_sec to the XCOFF section index instead
4156 of GDB's section_offset index. Update calls to
4157 prim_record_minimal_symbol_and_info to pass the BFD section
4158 as well.
4159
4160 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4161
4162 * xcoffread.c (read_xcoff_symtab): Delete variables
4163 last_csect_val and last_csect_sec and associated code.
4164
4165 2012-04-17 Doug Evans <dje@google.com>
4166
4167 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4168 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4169 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4170 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4171
4172 * cleanups.h: New file.
4173 * cleanups.c: New file.
4174 * Makefile.in (SFILES): Add cleanups.c.
4175 (HFILES_NO_SRCDIR): Add cleanups.h.
4176 (COMMON_OBS): Add cleanups.o.
4177 * defs.h (struct cleanup): Moved to cleanups.h.
4178 (do_cleanups,do_final_cleanups): Ditto.
4179 (discard_cleanups,discard_final_cleanups): Ditto
4180 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4181 (save_cleanups,save_final_cleanups): Ditto.
4182 (restore_cleanups,restore_final_cleanups): Ditto.
4183 (null_cleanup): Ditto.
4184 (make_my_cleanup,make_my_cleanup2): Ditto.
4185 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4186 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4187 (do_cleanups,do_final_cleanups): Ditto.
4188 (discard_cleanups,discard_final_cleanups): Ditto
4189 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4190 (save_cleanups,save_final_cleanups): Ditto.
4191 (restore_cleanups,restore_final_cleanups): Ditto.
4192 (null_cleanup): Ditto.
4193 (make_my_cleanup,make_my_cleanup2): Ditto.
4194 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4195
4196 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4197 make_my_cleanup.
4198 (make_cleanup_dyn_string_delete): Ditto.
4199 (make_cleanup_ui_file_delete): Ditto.
4200 (make_cleanup_ui_out_redirect_pop): Ditto.
4201 (make_cleanup_free_section_addr_info): Ditto.
4202 (make_cleanup_restore_integer): Ditto.
4203 (make_cleanup_unpush_target): Ditto.
4204 (make_cleanup_value_free_to_mark): Ditto.
4205 (make_cleanup_value_free): Ditto.
4206 (make_cleanup_free_so): Ditto.
4207
4208 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4209
4210 New option "set debug auto-load".
4211 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4212 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4213 (auto_load_safe_path_vec_update)
4214 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4215 if DEBUG_AUTO_LOAD.
4216 (file_is_auto_load_safe): New parameters debug_fmt and ....
4217 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4218 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4219 caller by explanatory string.
4220 (_initialize_auto_load): Register "set debug auto-load".
4221 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4222 and ....
4223 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4224 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4225 by explanatory string.
4226 * main.c (captured_main): Likewise.
4227 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4228 (source_section_scripts): Likewise.
4229
4230 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4231
4232 New option "set auto-load safe-path".
4233 * NEWS: New commands "set auto-load safe-path"
4234 and "show auto-load safe-path".
4235 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4236 (auto_load_safe_path, auto_load_safe_path_vec)
4237 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4238 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4239 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4240 (source_gdb_script_for_objfile): New variable is_safe. Call
4241 file_is_auto_load_safe. Return if it is not.
4242 (struct loaded_script): New field loaded.
4243 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4244 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4245 output "Missing" to "No".
4246 (_initialize_auto_load): New variable cmd. Initialize
4247 auto_load_safe_path. Register "set auto-load safe-path",
4248 "show auto-load safe-path" and "add-auto-load-safe-path".
4249 * auto-load.h (maybe_add_script): Add parameter loaded.
4250 (file_is_auto_load_safe): New declaration.
4251 * config.in: Regenerate.
4252 * configure: Regenerate.
4253 * configure.ac: New parameters --with-auto-load-safe-path
4254 and --without-auto-load-safe-path.
4255 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4256 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4257 * main.c (captured_main): Check file_is_auto_load_safe for
4258 LOCAL_GDBINIT.
4259 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4260 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4261 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4262 not.
4263
4264 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4265
4266 auto-load: Implementation.
4267 * NEWS: New descriptions for "info auto-load",
4268 "info auto-load gdb-scripts", "info auto-load python-scripts",
4269 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4270 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4271 and "show auto-load-scripts". New description for "set auto-load",
4272 "show auto-load", "set auto-load gdb-scripts",
4273 "show auto-load gdb-scripts", "set auto-load python-scripts",
4274 "show auto-load python-scripts", "set auto-load local-gdbinit",
4275 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4276 "show auto-load libthread-db".
4277 * auto-load.c: Remove include python/python-internal.h. Add includes
4278 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4279 cli/cli-setshow.h.
4280 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4281 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4282 (gdbpy_global_auto_load): Rename to ...
4283 (global_auto_load): ... here.
4284 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4285 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4286 (script_language_gdb, source_gdb_script_for_objfile): New.
4287 (struct loaded_script): New field language.
4288 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4289 LANGUAGE.
4290 (maybe_add_script): Add parameter language. Drop redundant
4291 entry.full_path initialization. Initialize entry.language and
4292 (*slot)->language.
4293 (auto_load_objfile_script): Change parameter suffix to language.
4294 Remove the call of maybe_add_script.
4295 Call language->source_script_for_objfile.
4296 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4297 New.
4298 (collect_matching_scripts): Adjust it for
4299 struct collect_matching_scripts_data.
4300 (auto_load_info_scripts_pattern_nl): New variable.
4301 (info_auto_load_scripts): Rename to ...
4302 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4303 for struct collect_matching_scripts_data.
4304 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4305 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4306 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4307 (auto_load_info_cmdlist_get): New.
4308 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4309 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4310 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4311 "info auto-load local-gdbinit".
4312 * auto-load.h (struct script_language): New.
4313 (gdbpy_global_auto_load): Rename to ...
4314 (global_auto_load): ... here.
4315 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4316 (auto_load_local_gdbinit_loaded): New declarations.
4317 (maybe_add_script): New parameter language.
4318 (auto_load_objfile_script): Change parameter suffix to language.
4319 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4320 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4321 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4322 declarations.
4323 * linux-thread-db.c: Include auto-load.h and ctype.h.
4324 (auto_load_thread_db, show_auto_load_thread_db): New.
4325 (struct thread_db_info): New field filename.
4326 (delete_thread_db_info): Call xfree for FILENAME.
4327 (try_thread_db_load): Initialize FILENAME.
4328 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4329 if !AUTO_LOAD_THREAD_DB.
4330 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4331 (_initialize_thread_db): Install auto_load_thread_db
4332 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4333 as "info auto-load libthread-db".
4334 * main.c (captured_main): Rename gdbpy_global_auto_load to
4335 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4336 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4337 (print_gdb_help): Extend the help for 'local init file'.
4338 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4339 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4340 (auto_load_scripts): Rename to ...
4341 (auto_load_python_scripts): ... here, update the comment.
4342 (gdbpy_load_auto_script_for_objfile): New declaration.
4343 (show_auto_load_python_scripts, script_language_python)
4344 (gdbpy_load_auto_script_for_objfile): New.
4345 (source_section_scripts): Refactor the code.
4346 (load_auto_scripts_for_objfile): Rename to ...
4347 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4348 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4349 (info_auto_load_python_scripts): New.
4350 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4351 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4352 Register "set auto-load-scripts" as its deprecated alias. Register
4353 "info auto-load python-scripts". Register "info auto-load-scripts" as
4354 its deprecated alias.
4355 (load_auto_scripts_for_objfile): Rename to ...
4356 (gdbpy_load_auto_scripts_for_objfile): ... here.
4357 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4358 (gdbpy_load_auto_scripts_for_objfile): ... here.
4359
4360 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4361
4362 auto-load: Move files.
4363 * Makefile.in (SFILES): Add auto-load.c.
4364 (HFILES_NO_SRCDIR): Add auto-load.h.
4365 (COMMON_OBS): Add auto-load.o.
4366 (distclean): Change .gdbinit for gdb-gdb.gdb.
4367 * auto-load.c: New file, with parts from python/py-auto-load.c.
4368 * auto-load.h: New file, with parts from python/python.h.
4369 * configure: Regenerate.
4370 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4371 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4372 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4373 * main.c: Include auto-load.h.
4374 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4375 command.h, observer.h and progspace.h to auto-load.c. Add include
4376 auto-load.h.
4377 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4378 (struct loaded_script, auto_load_pspace_data)
4379 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4380 (hash_loaded_script_entry, eq_loaded_script_entry)
4381 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4382 (maybe_add_script): Move to auto-load.c.
4383 (source_section_scripts): Change maybe_add_script parameters passing,
4384 use script_not_found_warning_print.
4385 (clear_section_scripts, auto_load_objfile_script)
4386 (auto_load_new_objfile, loaded_script_ptr)
4387 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4388 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4389 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4390 auto_load_new_objfile and info_auto_load_scripts initizations to
4391 auto-load.c.
4392 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4393
4394 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4395
4396 Code cleanup.
4397 * charset.c (find_charset_names): Remove variables ix and elt.
4398 Use free_char_ptr_vec.
4399 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4400 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4401 debugdir_end. New variable debugdir_len.
4402 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4403 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4404 declarations.
4405 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4406 and elt. Use free_char_ptr_vec.
4407 * source.c (add_path): Remove variables argv, arg and argv_index.
4408 New variables dir_vec, back_to, ix and name.
4409 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4410 make_cleanup_freeargv. Remove variable separator. Simplify the code
4411 no longer expecting DIRNAME_SEPARATOR.
4412 (openp): Remove variable p, p1 and len. New variables dir_vec,
4413 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4414 no longer expecting DIRNAME_SEPARATOR.
4415 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4416 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4417 debugdir_end.
4418 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4419 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4420 (dirnames_to_char_ptr_vec): New functions.
4421
4422 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4423
4424 Code cleanup.
4425 * source.c (add_path): Remove always true conditional 'p == 0' and
4426 unindent its code block.
4427
4428 2012-04-17 Pedro Alves <palves@redhat.com>
4429
4430 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4431 (FIELD_BITPOS_LVAL): ... this.
4432 (FIELD_BITPOS): New.
4433 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4434 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4435 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4436 SET_FIELD_BITPOS.
4437 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4438 SET_FIELD_BITPOS.
4439 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4440 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4441 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4442 SET_FIELD_BITPOS.
4443
4444 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4445
4446 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4447 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4448 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4449 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4450 * jv-lang.c (java_link_class_type): Likewise, once.
4451 * stabsread.c (read_enum_type): Likewise.
4452
4453 2012-04-16 Yao Qi <yao@codesourcery.com>
4454
4455 * common/agent.c (agent_run_command): Add one more parameter `len'.
4456 Update callers.
4457 * common/agent.h: Update declaration.
4458 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4459 Update.
4460 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4461
4462 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4463
4464 PR mi/13393
4465 * value.c (value_actual_type): New function.
4466 * value.h (value_actual_type): New declaration.
4467 * varobj.c (update_type_if_necessary): New function.
4468 (varobj_create): Call value_actual_type instead of
4469 value_type.
4470 (install_dynamic_child): distinct changed and type changed MI variable
4471 objects.
4472 (update_dynamic_varobj_children): Updated for install_dynamic_child
4473 change. All callers updated.
4474 (varobj_update): Support for MI variable object type change if
4475 the value changed and RTTI is used to determine the type.
4476 (create_child_with_value): Call value_actual_type instead of
4477 value_type.
4478 (adjust_value_for_child_access): Extended with a new parameter which
4479 specify whether the given value should be casted to enclosing type.
4480 All callers updated.
4481
4482 2012-04-14 Yao Qi <yao@codesourcery.com>
4483
4484 Import gnulib module inttypes from git
4485 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4486 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4487 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4488 gnulib/m4/inttypes-pri.m4
4489 * aclocal.m4, config.in, configure: Regenerated.
4490 * gnulib/Makefile.am: Update.
4491 * gnulib/Makefile.in: Update.
4492 * gnulib/m4/gnulib-cache.m4: Update.
4493 * gnulib/m4/gnulib-comp.m4: Update.
4494 * gnulib/inttypes.in.h: New.
4495 * gnulib/m4/inttypes-pri.m4: New.
4496 * gnulib/m4/inttypes.m4: New.
4497
4498 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4499
4500 * infrun.c (resume): Update PC address to the real PC after
4501 preparing to do displaced stepping.
4502
4503 2012-04-12 Doug Evans <dje@google.com>
4504
4505 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4506 All callers updated.
4507
4508 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4509
4510 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4511
4512 2012-04-12 Doug Evans <dje@google.com>
4513
4514 * dwarf2read.c (create_all_type_units): Renamed from
4515 create_debug_types_hash_table. All callers updated.
4516
4517 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4518 local type_sig to sig_type, type_offset to type_offset_in_tu.
4519 (hash_signatured_type): Renamed from hash_type_signature,
4520 all callers updated.
4521 (eq_signatured_type): Renamed from eq_type_signature,
4522 all callers updated.
4523 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4524 (process_enumeration_scope): Ditto.
4525 (lookup_signatured_type_at_offset): Ditto.
4526 (load_full_type_unit, read_signatured_type): Ditto.
4527
4528 2012-04-12 Yao Qi <yao@codesourcery.com>
4529
4530 * remote.c (async_remote_interrupt): Correct function name in
4531 debug message.
4532 (async_remote_interrupt_twice): Ditto.
4533
4534 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
4535
4536 * source.c (find_and_open_source): Consistently pass resulting
4537 full path through xfullpath.
4538
4539 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4540
4541 Provide more specific displaced-stepping memory error message.
4542 * infrun.c (displaced_step_prepare): New variable status. Call
4543 target_read_memory instead of read_memory, provide more specific
4544 error message.
4545
4546 2012-04-11 Tristan Gingold <gingold@adacore.com>
4547
4548 PR gdb/13901
4549 * darwin-nat.c (darwin_execvp): Revert previous patch.
4550
4551 2012-04-11 Tristan Gingold <gingold@adacore.com>
4552
4553 PR gdb/13901
4554 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4555 in case of change.
4556
4557 2012-04-11 Tristan Gingold <gingold@adacore.com>
4558
4559 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4560 warning.
4561
4562 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
4563
4564 New command 'explore' which helps explore values and types in
4565 scope.
4566 * NEWS: Add an entry about the new 'explore' command.
4567 * data-directory/Makefile.in: Add gdb/command/explore.py
4568 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
4569 command using the GDB Python API.
4570
4571 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4572
4573 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4574 extension in jump target calculation.
4575
4576 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4577
4578 * mips-tdep.c (mips32_next_pc): Handle JALX.
4579
4580 2012-04-10 Yao Qi <yao@codesourcery.com>
4581
4582 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4583
4584 2012-04-10 Yao Qi <yao@codesourcery.com>
4585
4586 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4587 and gnulib/m4/gnulib-tool.m4.
4588
4589 2012-04-10 Doug Evans <dje@google.com>
4590
4591 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
4592 (load_partial_dies): Clarify comment.
4593 (find_partial_die): Support rereading type units.
4594 Clarify CU handling, if we know offset is in CU, don't search for the
4595 containing CU. Add comment regarding memory waste.
4596
4597 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
4598
4599 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
4600 i386/x32-avx and i386/x32-avx-linux.
4601 (i386/x32-expedite): New.
4602 (i386/x32-linux-expedite): Likewise.
4603 (i386/x32-avx-expedite): Likewise.
4604 (i386/x32-avx-linux-expedite): Likewise.
4605 ($(outdir)/i386/x32.dat): Likewise.
4606 ($(outdir)/i386/x32-linux.dat): Likewise.
4607 ($(outdir)/i386/x32-avx.dat): Likewise.
4608 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
4609
4610 * features/i386/x32-avx-linux.xml: New file.
4611 * features/i386/x32-avx.xml: Likewise.
4612 * features/i386/x32-core.xml: Likewise.
4613 * features/i386/x32-linux.xml: Likewise.
4614 * features/i386/x32.xml: Likewise.
4615
4616 * features/i386/x32-avx-linux.c: New. Generated.
4617 * features/i386/x32-avx.c: Likewise.
4618 * features/i386/x32-linux.c: Likewise.
4619 * features/i386/x32.c: Likewise.
4620 * regformats/i386/x32-avx-linux.dat: Likewise.
4621 * regformats/i386/x32-avx.dat: Likewise.
4622 * regformats/i386/x32-linux.dat: Likewise.
4623 * regformats/i386/x32.dat: Likewise.
4624
4625 2012-04-10 Tristan Gingold <gingold@adacore.com>
4626
4627 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
4628 code to kill the inferior.
4629
4630 2012-04-09 Mark Kettenis <kettenis@gnu.org>
4631
4632 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4633 defines.
4634 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4635 defines.
4636 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
4637 (yyvsp): New defines.
4638 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4639 defines.
4640 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4641 defines.
4642 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4643 defines.
4644 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4645 defines.
4646 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4647 defines.
4648
4649 2012-04-09 Mark Kettenis <kettenis@gnu.org>
4650
4651 * sparc64-tdep.c (sparc64_store_arguments)
4652 (sparc64_store_arguments): Fix coding style.
4653
4654 2012-04-07 Mark Kettenis <kettenis@gnu.org>
4655
4656 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
4657 complex floats, adjust some related comments and tighten a related
4658 assertion.
4659 (sparc64_extract_return_value): Handle complex floats.
4660
4661 2012-04-07 Doug Evans <dje@google.com>
4662
4663 * dwarf2read.c (load_partial_dies): Change condition to assert.
4664
4665 2012-04-06 Doug Evans <dje@google.com>
4666
4667 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
4668 "mov %rsp,%rbp".
4669
4670 2012-04-05 Kevin Buettner <kevinb@redhat.com>
4671
4672 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
4673 fencepost error.
4674 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
4675 (v850_gdbarch_init): Set `num_regs' as appropriate for the
4676 architecture.
4677
4678 2012-04-05 Keith Seitz <keiths@redhat.com>
4679
4680 * linespec.c (decode_compound): Remove.
4681 (enum offset_relative_sign): New enum.
4682 (struct line_offset): New struct.
4683 (struct linespec): New struct.
4684 (struct linespec_state): Move file_symtabs,
4685 user_filename, and user_function into struct linespec.
4686 Make result an anonymous struct holding vectors of
4687 symbolp and minsym_and_objfile_d.
4688 Add language member.
4689 (enum ls_token_type): New enum.
4690 (linespec_keywords): New array.
4691 (struct ls_token): New struct.
4692 (struct ls_parser): New struct.
4693 (linespec_lexer_lex_number): New function.
4694 (linespec_lexer_lex_keyword): New function.
4695 (is_ada_operator): New function.
4696 (skip_quote_char): New function.
4697 (copy_token_string): New function.
4698 (is_closing_quote_enclosed): New function.
4699 (find_parameter_list_end): New function.
4700 (linespec_lexer_lex_string): New function.
4701 (linespec_lexer_lex_one): New function.
4702 (linespec_lexer_consume_token): New function.
4703 (linespec_lexer_peek_token): New function.
4704 (cplusplus_error): Remove unused function.
4705 (find_methods): Update comment.
4706 (find_toplevel_char): Return const.
4707 (is_objc_method_format): Remove unused function.
4708 (find_toplevel_string): New function.
4709 (is_linespec_boundary): Remove.
4710 (symbol_not_found_error): New function.
4711 (find_method_overload_end): Remove function.
4712 (unexpected_linespec_error): New function.
4713 (keep_name_info): Remove.
4714 (linespec_parse_line_offset): New function.
4715 (linespec_parse_basic): New function.
4716 (canonicalize_linespec): New function.
4717 (decode_line_internal): Remove.
4718 (create_sals_line_offset): New function adapted from
4719 decode_all_digits.
4720 (convert_linespec_to_sals): New function.
4721 (parse_linespec): New function.
4722 (linespec_parser_new): New function.
4723 (linespec_state_destructor): Change parameter type to
4724 struct linespec_state *.
4725 Add language parameter.
4726 Remove freeing of moved members.
4727 (linespec_parser_delete): New function.
4728 (decode_line_full): Use parse_linespec and linespec_parser_new.
4729 (decode_line_1): Likewise.
4730 (decode_indirect): Rename to ...
4731 (linespec_expression_to_pc): ... this and rewrite
4732 to simply find CORE_ADDR, storing this result for later
4733 conversion to SALs.
4734 (locate_first_half): Remove.
4735 (deocde_objc): Add parameter LS.
4736 Initialize new struct collect_info members.
4737 Handle minimal symbols, too.
4738 (decode_compound): Delete.
4739 (lookup_prefix_sym): Rewrite.
4740 (compare_msymbols): New function.
4741 (find_method): Rewrite.
4742 Do not call cplusplus_error.
4743 (symtabs_from_filename): Rewrite.
4744 (collect_function_symbols): Delete.
4745 (find_function_symbols): Rewrite without ARGPTR-style
4746 processing.
4747 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
4748 (decode_dollar): Adapted and renamed to ...
4749 (linespec_parse_variable): ... this.
4750 (find_linespec_symbols): New function.
4751 (decode_label): Adapted and renamed to ...
4752 (find_label_symbols): ... this.
4753 (decode_digits_list_mode): Add and use LS argument.
4754 (decode_digits_ordinary): Likewise.
4755 (collect_symbols): Do not collect SALs, just symbols and msymbols.
4756 If in list mode, allow any symbol class. Otherwise, only
4757 permit LOC_BLOCK symbols.
4758 (minsym_found): Update comments.
4759 (search_minsyms_for_name): Do not convert the matching symbol
4760 into a SAL. Simply push the symbol and objfile into the
4761 result vector.
4762 (decode_variable): Delete. Contents adapted into
4763 find_linespec_symbols.
4764
4765 * cp-support.c (SKIP_SPACE): Remove.
4766 (operator_tokens): Remove unused global.
4767 (cp_validate_operator): Remove.
4768 * cp-support.h (cp_validate_operator): Remove declaration.
4769
4770 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4771
4772 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
4773 for TYPE_VPTR_FIELDNO.
4774 * valprint.c (valprint_check_validity): Make it global, move the
4775 function comment ...
4776 * value.h (valprint_check_validity): ... to this new declaration.
4777
4778 2012-04-02 Tristan Gingold <gingold@adacore.com>
4779
4780 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
4781 the STATE32 api for i386 state.
4782 (i386_darwin_store_inferior_registers): Likewise.
4783
4784 2012-04-02 Tristan Gingold <gingold@adacore.com>
4785
4786 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
4787 SS offset.
4788 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4789 format_string.
4790
4791 2012-04-02 Tristan Gingold <gingold@adacore.com>
4792
4793 PR gdb/13901
4794 * darwin-nat.c (darwin_execvp): Set binary preference.
4795
4796 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4797
4798 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
4799
4800 2012-03-30 Tom Tromey <tromey@redhat.com>
4801
4802 * python/python.c (gdbpy_decode_line): Move cleanup creation out
4803 of TRY_CATCH. Fix error handling.
4804 * python/py-value.c (convert_value_from_python): Move 'old'
4805 declaration to innermost scope.
4806
4807 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4808 Andrey Smirnov <andrew.smirnov@gmail.com>
4809
4810 -Wshadow warning fix.
4811 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
4812 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
4813 Adjust code accordingly.
4814
4815 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4816
4817 * ada-lang.c (symbol_completion_add): Rename parameter
4818 "encoded" into "encoded_p". Ajust code and documentation
4819 accordingly.
4820
4821 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4822 Andrey Smirnov <andrew.smirnov@gmail.com>
4823
4824 -Wshadow warning fix.
4825 * ada-lang.c (symbol_completion_add): Rename parameter
4826 "wild_match" into wild_match_p. Update code and documentation
4827 accordingly.
4828
4829 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4830
4831 * ada-lang.c (symbol_completion_match): Rename parameter
4832 "encoded" into "encoded_p". Ajust code and documentation
4833 accordingly.
4834
4835 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4836 Andrey Smirnov <andrew.smirnov@gmail.com>
4837
4838 -Wshadow warning fix.
4839 * ada-lang.c (symbol_completion_match): Rename parameter
4840 "wild_match" into "wild_match_p". Adjust code and function
4841 documentation accordingly.
4842
4843 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4844 Andrey Smirnov <andrew.smirnov@gmail.com>
4845
4846 -Wshadow warning fix.
4847 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
4848 "symbol_info" into "info". Adjust code accordingly.
4849 (ada_lookup_symbol): Likewise.
4850
4851 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4852
4853 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
4854 of this function's documentation.
4855
4856 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4857 Andrey Smirnov <andrew.smirnov@gmail.com>
4858
4859 -Wshadow warning fix.
4860 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
4861 variable into "wild_match_p". Adjust code accordingly.
4862
4863 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4864 Andrey Smirnov <andrew.smirnov@gmail.com>
4865
4866 -Wshadow warning fix.
4867 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
4868 parameter into "wild_match_p". Adjust code accordingly.
4869 Document this parameter in the function description.
4870
4871 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4872 Andrey Smirnov <andrew.smirnov@gmail.com>
4873
4874 -Wshadow warning fix.
4875 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4876 "wild_match" parameter to "wild_match_p" (-Wshadow).
4877
4878 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4879
4880 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4881 in function documentation.
4882
4883 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4884 Andrey Smirnov <andrew.smirnov@gmail.com>
4885
4886 -Wshadow warning fix.
4887 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4888 variable into wild_match_p. Adjust code accordingly.
4889
4890 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4891 Andrey Smirnov <andrew.smirnov@gmail.com>
4892
4893 * ada-valprint.c (ada_val_print_1): Move the code handling
4894 TYPE_CODE_ENUM inside its own lexical block. Declare
4895 variables len and val there, instead of in the function's
4896 top level block. Avoid declaring deref_val again in a way
4897 that shadows another variable of the same name declared
4898 in one of the up-level blocks. Just re-use the up-level
4899 variable instead.
4900
4901 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4902
4903 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4904 Replace block_found argument by symbol_info. Adjust
4905 implementation accordingly. Add function documentation.
4906 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4907 Fix documentation.
4908 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4909 * ada-exp.y (write_object_renaming): Adjust to new
4910 ada_lookup_encoded_symbol API.
4911
4912 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4913
4914 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4915 documentation.
4916
4917 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
4918
4919 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4920 (v850_register_name): Add the mpu and fpu register names.
4921 (v850e_register_name): Add the mpu and fpu register names.
4922 (v850e2_register_name): New function.
4923 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
4924 bfd_mach_v850e2v3.
4925
4926 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4927
4928 * NEWS: Add entry for Ada varobj support.
4929
4930 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4931
4932 * varobj.c (default_value_is_changeable_p): New function,
4933 extracted from varobj_value_is_changeable_p. Add declaration.
4934 (ada_value_is_changeable_p): New function, extracted from
4935 varobj_value_is_changeable_p. Add declaration.
4936 (struct language_specific): New field "value_is_changeable_p".
4937 (languages): Add entries for new field.
4938 (varobj_create): Set language before calling install_new_value.
4939 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4940 "value_is_changeable_p" language callback.
4941
4942 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4943
4944 * ada-varobj.h, ada-varobj.c: New files.
4945 * Makefile.in (SFILES): Add ada-varobj.c.
4946 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4947 (COMMON_OBS): Add ada-varobj.o.
4948
4949 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4950
4951 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4952 (struct language_specific): New field "value_has_mutated".
4953 (languages): Set field "value_has_mutated" in each entry of array.
4954 (varobj_value_has_mutated): New function.
4955 (varobj_udpdate): Add handling of type mutation.
4956 (value_of_root): Add handling of type mutation.
4957 (ada_value_has_mutated): New function.
4958
4959 2012-03-28 Pedro Alves <palves@redhat.com>
4960
4961 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4962 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4963
4964 2012-03-28 Tom Tromey <tromey@redhat.com>
4965
4966 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4967 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4968 before returning.
4969
4970 2012-03-28 Tom Tromey <tromey@redhat.com>
4971
4972 * .dir-locals.el: New file.
4973
4974 2012-03-28 Pedro Alves <palves@redhat.com>
4975
4976 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4977
4978 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4979
4980 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4981 handling for r0.
4982
4983 2012-03-27 Pedro Alves <palves@redhat.com>
4984
4985 Eliminate struct ui_stream.
4986
4987 * ui-out.h (struct ui_stream): Delete.
4988 (ui_out_field_stream): Adjust prototype.
4989 (ui_out_stream_new, ui_out_stream_delete)
4990 (make_cleanup_ui_out_stream_delete): Delete declarations.
4991 * ui-out.c (ui_out_field_stream): Change prototype to take a
4992 ui_file instead of a ui_stream. Adjust.
4993 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4994 (make_cleanup_ui_out_stream_delete): Delete.
4995 * breakpoint.c (print_breakpoint_location)
4996 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4997 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4998 * disasm.c (dump_insns): Ditto.
4999 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5000 prototype.
5001 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5002 ui_stream/ui_out_stream_new.
5003 * infcmd.c (print_return_value): Ditto.
5004 * osdata.c (info_osdata_command): Don't allocate a local
5005 ui_stream.
5006 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5007 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5008 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5009 allocate a local ui_stream.
5010 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5011 instead of ui_stream/ui_out_stream_new.
5012 (list_args_or_locals): Don't allocate a local ui_stream.
5013 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5014 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5015 ui_stream/ui_out_stream_new.
5016 * cli/cli-setshow.c (do_setshow_command): Ditto.
5017
5018 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5019
5020 * arm-linux-tdep.c (arm_linux_init_abi): Call
5021 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5022 * arm-tdep.c (arm_process_record): New function.
5023 (deallocate_reg_mem): New function.
5024 (decode_insn): New function.
5025 (thumb_record_branch): New function.
5026 (thumb_record_ldm_stm_swi(): New function.
5027 (thumb_record_misc): New function.
5028 (thumb_record_ld_st_stack): New function.
5029 (thumb_record_ld_st_imm_offset): New function.
5030 (thumb_record_ld_st_reg_offset(): New function.
5031 (thumb_record_add_sub_cmp_mov): New function.
5032 (thumb_record_shift_add_sub): New function.
5033 (arm_record_coproc_data_proc): New function.
5034 (arm_record_coproc): New function.
5035 (arm_record_b_bl): New function.
5036 (arm_record_ld_st_multiple): New function.
5037 (arm_record_ld_st_reg_offset): New function.
5038 (arm_record_ld_st_imm_offset): New function.
5039 (arm_record_data_proc_imm): New function.
5040 (arm_record_data_proc_misc_ld_str): New function.
5041 (arm_record_extension_space): New function.
5042 (arm_record_strx): New function.
5043 (sbo_sbz): New function.
5044 (struct insn_decode_record): New structure for arm insn record.
5045 (REG_ALLOC): New macro for reg allocations.
5046 (MEM_ALLOC): New macro for memory allocations.
5047 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5048
5049 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5050
5051 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5052 (store_register): Likewise.
5053
5054 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5055
5056 * MAINTAINERS (Write After Approval): Add myself to the list.
5057
5058 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5059
5060 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5061 Describe also the option "auto".
5062
5063 2012-03-22 Richard Henderson <rth@redhat.com>
5064
5065 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5066 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5067
5068 2012-03-22 Richard Henderson <rth@redhat.com>
5069
5070 * jit.c (jit_read_code_entry): Compute alignment and offset of
5071 int64_t member before computing entry_size.
5072
5073 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5074
5075 Python scripting: Add new method Value.referenced_value to
5076 gdb.Value which can dereference pointer as well as reference
5077 values.
5078 * NEWS: Add entry under 'Python scripting' about the new method
5079 Value.referenced_value on gdb.Value objects.
5080 * python/py-value.c (valpy_referenced_value): New function
5081 defining a new method on gdb.Value objects which can dereference
5082 pointer and reference values.
5083
5084 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5085
5086 * MAINTAINERS (Write After Approval): Add myself to the list.
5087
5088 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5089
5090 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5091 in addition to "main".
5092
5093 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5094
5095 * expression.h (op_name): Add declaration.
5096 * expprint.c (op_name): Remove declaration. Make non-static.
5097 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5098
5099 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5100
5101 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5102 of struct siginfo.
5103 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5104 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5105 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5106 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5107 (linux_nat_get_siginfo): Likewise.
5108 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5109 (linux_nat_get_siginfo): Likewise.
5110 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5111 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5112 * procfs.c (gdb_siginfo_t): Likewise.
5113
5114 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5115
5116 * .gitignore: Ignore more files.
5117
5118 2012-03-20 Pedro Alves <palves@redhat.com>
5119
5120 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5121 returns.
5122
5123 2012-03-20 Yao Qi <yao@codesourcery.com>
5124
5125 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5126 comment.
5127
5128 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5129
5130 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5131 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5132 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5133 sect_offset.
5134 * dwarf2expr.h (cu_offset, sect_offset): New types.
5135 (struct dwarf_expr_context_funcs) <dwarf_call>
5136 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5137 sect_offset.
5138 (struct dwarf_expr_context) <len>: Improve the comment.
5139 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5140 cu_offset and sect_offset.
5141 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5142 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5143 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5144 * dwarf2loc.h: Include dwarf2expr.h.
5145 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5146 and sect_offset.
5147 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5148 Improve the comment.
5149 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5150 (struct signatured_type, struct line_header, struct partial_die_info)
5151 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5152 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5153 (get_die_type_at_offset, create_cus_from_index)
5154 (create_signatured_type_table_from_index, dw2_get_file_names)
5155 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5156 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5157 (create_debug_types_hash_table, process_psymtab_comp_unit)
5158 (load_partial_comp_unit, create_all_comp_units)
5159 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5160 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5161 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5162 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5163 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5164 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5165 (find_partial_die, read_attribute_value, lookup_die_type)
5166 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5167 (is_ref_attr): New function comment.
5168 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5169 Use cu_offset and sect_offset.
5170 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5171 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5172 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5173 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5174 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5175 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5176 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5177 sect_offset.
5178
5179 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5180
5181 Code cleanup.
5182 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5183 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5184 with xfree.
5185 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5186
5187 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5188
5189 * NEWS: Describe new options --init-command=FILE, -ix and
5190 --init-eval-command=COMMAND, -iex.
5191 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5192 CMDARG_INIT_COMMAND.
5193 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5194 "init-command", "init-eval-command", "ix" and "iex" to the variable
5195 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5196 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5197 (print_gdb_help): Describe --init-command=FILE, -ix and
5198 --init-eval-command=COMMAND, -iex.
5199
5200 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5201
5202 Code cleanup.
5203 * main.c (struct cmdarg): Move it here from main. Add more comments.
5204 (cmdarg_s, VEC (cmdarg_s)): New.
5205 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5206 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5207 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5208 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5209 of CMDARG.
5210
5211 2012-03-19 Tom Tromey <tromey@redhat.com>
5212
5213 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5214
5215 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5216
5217 PR symtab/13777
5218 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5219 GCC >=4.5.
5220
5221 2012-03-16 Chris January <chris.january@allinea.com>
5222
5223 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5224 of clear.
5225
5226 2012-03-16 Chris January <chris.january@allinea.com>
5227
5228 * source.c (add_path): Use memmove instead of strcpy because the
5229 strings overlap.
5230
5231 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5232
5233 * value.h (set_value_parent): Add declaration.
5234 * value.c (set_value_parent): New function.
5235 (value_address): If VALUE->PARENT is not NULL, then use it as
5236 the base address instead of VALUE->LOCATION.address.
5237 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5238 the same as OBJ's address. Adjust V's offset accordingly.
5239 Set V's parent.
5240
5241 2012-03-16 Gary Benson <gbenson@redhat.com>
5242
5243 PR breakpoints/10738
5244 * dwarf2read.c (use_deprecated_index_sections): New global.
5245 (struct partial_die_info): New member may_be_inlined.
5246 (read_partial_die): Set may_be_inlined where appropriate.
5247 (add_partial_subprogram): Add partial symbols for partial
5248 DIEs that may be inlined.
5249 (new_symbol_full): Add inlined subroutines to the current
5250 scope.
5251 (write_psymtabs_to_index): Bump version number.
5252 (dwarf2_read_index): Read only version 6 indices unless
5253 use_deprecated_index_sections is set.
5254 * linespec.c (symbol_and_data_callback): New structure.
5255 (iterate_inline_only): New function.
5256 (iterate_over_all_matching_symtabs): New argument
5257 "include_inline". If nonzero, also call the callback for
5258 symbols representing inlined subroutines.
5259 (lookup_prefix_sym): Pass extra argument to the above.
5260 (find_function_symbols): Likewise.
5261 (add_matching_symbols_to_info): Likewise.
5262 * NEWS: Mention that GDB can now set breakpoints on inlined
5263 functions.
5264
5265 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5266
5267 * p-typeprint.c (pascal_type_print_method_args):
5268 Fix display of parameter of methods.
5269
5270 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5271
5272 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5273 Add missing prototype.
5274
5275 2012-03-16 Yao Qi <yao@codesourcery.com>
5276 Jan Kratochvil <jan.kratochvil@redhat.com>
5277
5278 Fix false compilation warning.
5279 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5280
5281 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5282 Pedro Alves <pedro@codesourcery.com>
5283
5284 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5285 (arm_register_g_packet_guesses): New function.
5286 (arm_gdbarch_init): Don't force a target description with
5287 registers when the executable is detected as M-profile. Instead
5288 set gdbarch->tdep->is_m. Register `g' packet guesses.
5289 (_initialize_arm_tdep): Initialize the new target description.
5290 * features/arm-with-m-fpa-layout.xml: New description.
5291 * features/arm-with-m-fpa-layout.c: New, generated.
5292
5293 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5294
5295 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5296 Update function description.
5297 (insert_bp_location): Do not wipe bl->target_info out.
5298 * mem-break.c: #include "gdb_string.h".
5299 (default_memory_insert_breakpoint): Do not call target_read_memory
5300 with a pointer to the breakpoint's shadow_contents buffer. Use
5301 a local buffer instead.
5302 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5303
5304 2012-03-15 Tom Tromey <tromey@redhat.com>
5305
5306 * NEWS: Mention "info vtbl", not "info vtable".
5307 * cp-support.c (info_vtbl_command): Fix comment.
5308 (_initialize_cp_support): Fix text.
5309
5310 2012-03-15 Tom Tromey <tromey@redhat.com>
5311
5312 * cp-valprint.c (cp_print_value_fields): Use
5313 print_function_pointer_address for vtable slot.
5314
5315 2012-03-15 Tom Tromey <tromey@redhat.com>
5316
5317 * gnu-v3-abi.c (struct value_and_voffset): New.
5318 (hash_value_and_voffset, eq_value_and_voffset)
5319 (compare_value_and_voffset, compute_vtable_size)
5320 (print_one_vtable, gnuv3_print_vtable): New functions.
5321 (init_gnuv3_ops): Initialize 'print_vtable' field.
5322 * cp-support.c (info_vtbl_command): New function.
5323 (_initialize_cp_support): Add "info vtbl".
5324 * cp-abi.h (cplus_print_vtable): Declare.
5325 (struct cp_abi_ops) <print_vtable>: New field.
5326 * cp-abi.c (cplus_print_vtable): New function.
5327 * NEWS: Update.
5328
5329 2012-03-15 Tom Tromey <tromey@redhat.com>
5330
5331 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5332 iterate_over_symbols.
5333
5334 2012-03-14 Doug Evans <dje@google.com>
5335
5336 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5337 DW_OP_GNU_parameter_ref.
5338
5339 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5340
5341 Fix double prompt of 'interpreter-exec mi'.
5342 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5343 (mi_interpreter_resume): use it.
5344 (mi_execute_command_input_handler): New function.
5345 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5346 mi_execute_command_input_handler.
5347
5348 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5349
5350 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5351 prototype.
5352 (darwin_debug_port_info): Make static.
5353 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5354 * machoread.c (_initialize_machoread): Add prototype.
5355 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5356 (i386_darwin_set_control, i386_darwin_get_control)
5357 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5358 i386_darwin_get_status, i386_darwin_get_control):
5359 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5360
5361 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5362
5363 * ax-gdb.c (gen_usual_unary): Remove special handling of
5364 enum and bool types.
5365
5366 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5367
5368 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5369
5370 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5371
5372 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5373
5374 2012-03-13 Chris January <chris.january@allinea.com>
5375
5376 * aix-thread.c (fill_sprs): Store the floating point registers
5377 at the correct offsets into vals.
5378
5379 2012-03-13 Doug Evans <dje@google.com>
5380
5381 * NEWS: Mention symbol-reloading has been deleted.
5382 * symfile.c (symbol_reloading): Delete.
5383 (show_symbol_reloading): Delete.
5384 (_initialize_symfile): Delete set/show symbol-reloading.
5385
5386 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5387 read_in_chain until we have successfully read it in.
5388 (load_full_comp_unit): Ditto.
5389 (read_signatured_type): Add comment.
5390
5391 2012-03-13 Chris January <chris.january@allinea.com>
5392
5393 * stabsread.c (fix_common_block): Change type of valu argument
5394 to CORE_ADDR.
5395
5396 2012-03-13 Chris January <chris.january@allinea.com>
5397
5398 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5399 instruction.
5400
5401 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5402
5403 * common/linux-procfs.c (linux_proc_get_int): New, from
5404 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5405 field.
5406 (linux_proc_get_tgid): Only call linux_proc_get_int.
5407 (linux_proc_get_tracerpid): New.
5408 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5409 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5410 linux_proc_pid_has_state.
5411 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5412 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5413 (linux_ptrace_attach_warnings): New.
5414 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5415 New declaration.
5416 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5417 (linux_nat_attach): New variables ex, buffer, message and message_s.
5418 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5419
5420 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5421
5422 * Makefile.in (linux-ptrace.o): New.
5423 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5424 from linux-nat.c.
5425 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5426 * common/linux-ptrace.c: New file.
5427 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5428 * config/arm/linux.mh: Likewise.
5429 * config/i386/linux.mh: Likewise.
5430 * config/i386/linux64.mh: Likewise.
5431 * config/ia64/linux.mh: Likewise.
5432 * config/m32r/linux.mh: Likewise.
5433 * config/m68k/linux.mh: Likewise.
5434 * config/mips/linux.mh: Likewise.
5435 * config/pa/linux.mh: Likewise.
5436 * config/powerpc/linux.mh: Likewise.
5437 * config/powerpc/ppc64-linux.mh: Likewise.
5438 * config/powerpc/spu-linux.mh: Likewise.
5439 * config/s390/s390.mh: Likewise.
5440 * config/sparc/linux.mh: Likewise.
5441 * config/sparc/linux64.mh: Likewise.
5442 * config/xtensa/linux.mh: Likewise.
5443 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5444 common/linux-procfs.c.
5445 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5446
5447 2012-03-13 Hui Zhu <teawater@gmail.com>
5448 Pedro Alves <palves@redhat.com>
5449
5450 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5451 CREATE_BREAKPOINT_FLAGS_INSERTED.
5452 (create_breakpoint_sal, create_breakpoints_sal)
5453 (base_breakpoint_create_breakpoints_sal)
5454 (tracepoint_create_breakpoints_sal)
5455 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5456 down.
5457 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5458 (ftrace_command, strace_command): Adjust.
5459 (create_tracepoint_from_upload): Pass
5460 CREATE_BREAKPOINT_FLAGS_INSERTED.
5461 * breakpoint.h (enum breakpoint_create_flags): New.
5462 (create_breakpoint): New flags parameter.
5463 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5464 * python/py-breakpoint.c (bppy_init): Adjust.
5465 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5466 * spu-tdep.c (spu_catch_start): Adjust.
5467
5468 2012-03-13 Pedro Alves <palves@redhat.com>
5469 Hui Zhu <teawater@gmail.com>
5470 Yao Qi <yao@codesourcery.com>
5471
5472 * remote.c (struct remote_state): New field `starting_up'.
5473 (remote_start_remote): Set and clear it.
5474 (remote_can_download_tracepoint): If starting up, return false.
5475
5476 2012-03-13 Yao Qi <yao@codesourcery.com>
5477
5478 * inferior.h (struct inferior): Remove fields any_syscall_count,
5479 syscalls_counts and total_syscalls_count. Move them to new
5480 struct catch_syscall_inferior_data in breakpoint.c.
5481 * breakpoint.c: Call DEF_VEC_I(int).
5482 (struct catch_syscall_inferior_data): New.
5483 (get_catch_syscall_inferior_data): New.
5484 (catch_syscall_inferior_data_cleanup): New.
5485 (insert_catch_syscall): Update to access data in
5486 struct catch_syscall_inferior_data.
5487 (insert_catch_syscall): Likewise.
5488 (remove_catch_syscall): Likewise.
5489 (remove_catch_syscall): Likewise.
5490 (is_syscall_catchpoint_enabled): Likewise.
5491 (add_catch_command): Likewise.
5492 (_initialize_breakpoint): Register cleanup.
5493 * breakpoint.h: Removed DEF_VEC_I(int).
5494 * dwarf2loc.c: Call DEF_VEC_I(int).
5495 * mi/mi-main.c: Likewise.
5496
5497 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5498
5499 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5500
5501 2012-03-12 Chris January <chris.january@allinea.com>
5502
5503 * aix-thread.c (_initialize_aix_thread): Add prototype.
5504 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5505 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5506
5507 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5508
5509 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5510 include of "amd64-nat.h".
5511
5512 2012-03-12 Tom Tromey <tromey@redhat.com>
5513
5514 * buildsym.c (record_pending_block): Now static.
5515 * buildsym.h: (record_pending_block): Remove.
5516
5517 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5518
5519 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5520
5521 2012-03-09 Tom Tromey <tromey@redhat.com>
5522
5523 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5524 producer_is_gxx_lt_4_6>: New fields.
5525 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5526
5527 2012-03-09 Tom Tromey <tromey@redhat.com>
5528
5529 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5530
5531 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5532
5533 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5534 prototype.
5535
5536 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5537
5538 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5539
5540 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5541
5542 Fix -Wmissing-prototypes build.
5543 * arm-linux-nat.c (get_thread_id): Make it static.
5544 * xtensa-linux-nat.c (get_thread_id): Likewise.
5545
5546 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5547
5548 * server.c (process_point_options): If a conditional expression
5549 is found, only print a message if remote_debug is nonzero.
5550
5551 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
5552
5553 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5554 of internal error for unknown/unsupported types.
5555
5556 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5557
5558 Fix CU relative vs. absolute DIE offsets.
5559 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
5560 offset to offset_in_cu.
5561 * dwarf2read.c (process_enumeration_scope): Add CU offset to
5562 TYPE_OFFSET.
5563 (dwarf2_fetch_die_location_block): Rename parameter offset to
5564 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
5565
5566 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5567
5568 * libunwind-frame.c: Rename to ...
5569 * ia64-libunwind-tdep.c: ... here.
5570 * libunwind-frame.h: Rename to ...
5571 * ia64-libunwind-tdep.h: ... here.
5572 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5573 ia64-libunwind-tdep.h.
5574 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5575 * README (--with-libunwind): Rename to ...
5576 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5577 * config.in: Regenerate.
5578 * configure: Regenerate.
5579 * configure.ac: New option --with-libunwind-ia64, make the
5580 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
5581 Remove AC_DEFINE for HAVE_LIBUNWIND.
5582 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5583 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5584 Rename libunwind-frame in the general comment.
5585 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
5586 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
5587 Move forward declarations inside #ifndef. Rename libunwind-frame in
5588 the general comment.
5589 * ia64-tdep.c: Rename libunwind-frame.h #include to
5590 ia64-libunwind-tdep.h.
5591 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
5592 (ia64_libunwind_descr): Rename libunwind-frame to
5593 ia64-libunwind-tdep in these function comments.
5594 * ia64-tdep.h: Rename libunwind-frame.h #include to
5595 ia64-libunwind-tdep.h.
5596 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
5597 ia64-libunwind-tdep in that data comment.
5598
5599 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5600
5601 * libunwind-frame.h (struct frame_unwind): New declaration.
5602
5603 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5604
5605 * breakpoint.c (_initialize_breakpoint): Fix error in help of
5606 "set breakpoint condition-evaluation" command.
5607
5608 2012-03-08 Tristan Gingold <gingold@adacore.com>
5609
5610 * sparc-stub.c: Move to stubs/
5611 * sh-stub.c: Likewise.
5612 * m68k-stub.c: Likewise.
5613 * m32r-stub.c: Likewise.
5614 * i386-stub.c: Likewise.
5615
5616 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
5617
5618 * m68klinux-tdep.c (m68k_linux_init_abi): Register
5619 linux_get_siginfo_type.
5620
5621 * m68klinux-nat.c: Include "gdb_proc_service.h".
5622 (PTRACE_GET_THREAD_AREA): Define.
5623 (ps_get_thread_area): New function.
5624
5625 2012-03-08 Yao Qi <yao@codesourcery.com>
5626
5627 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
5628 `xsnprintf'.
5629 (remote_query_attached): Likewise.
5630 (remote_static_tracepoint_marker_at): Likewise.
5631 (remote_set_permissions): Likewise.
5632 (remote_detach_1, extended_remote_attach_1): Likewise.
5633 (send_g_packet, remote_vkill): Likewise.
5634 (extended_remote_disable_randomization): Likewise.
5635 (remote_add_target_side_condition): Likewise.
5636 (remote_insert_breakpoint): Likewise.
5637 (remote_remove_breakpoint): Likewise.
5638 (remote_insert_watchpoint): Likewise.
5639 (remote_remove_watchpoint): Likewise.
5640 (remote_insert_hw_breakpoint): Likewise.
5641 (remote_insert_hw_breakpoint): Likewise.
5642 (remote_remove_hw_breakpoint): Likewise.
5643 (remote_download_command_source): Likewise.
5644 (remote_download_tracepoint): Likewise.
5645 (remote_download_trace_state_variable): Likewise.
5646 (remote_disable_tracepoint): Likewise.
5647 (remote_trace_set_readonly_regions): Likewise.
5648 (remote_get_tracepoint_status): Likewise.
5649 (remote_trace_find): Likewise.
5650 (remote_get_trace_state_variable_value): Likewise.
5651 (remote_set_disconnected_tracing): Likewise.
5652 (remote_set_circular_trace_buffer): Likewise.
5653 (remote_get_min_fast_tracepoint_insn_len): Likewise.
5654 (remote_use_agent): Likewise.
5655 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
5656 Update callers.
5657
5658 2012-03-07 Pedro Alves <palves@redhat.com>
5659
5660 * NEWS: Mention QProgramSignals.
5661 * inferior.h (update_signals_program_target): Declare.
5662 * infrun.c: (update_signals_program_target): New.
5663 (handle_command): Update the target of the new program signals
5664 array changes.
5665 * remote.c (PACKET_QProgramSignals): New enum.
5666 (last_program_signals_packet): New global.
5667 (remote_program_signals): New.
5668 (remote_start_remote): Update the target with the program signals
5669 list.
5670 (remote_protocol_features): Add entry for QPassSignals.
5671 (remote_open_1): Free anc clear last_program_signals_packet.
5672 (init_remote_ops): Install remote_program_signals.
5673 * target.c (update_current_target): Adjust.
5674 (target_program_signals): New.
5675 * target.h (struct target_ops) <to_program_signals>: New field.
5676 (target_program_signals): Declare.
5677
5678 2012-03-07 Pedro Alves <palves@redhat.com>
5679
5680 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
5681 extensions.
5682
5683 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
5684
5685 * m68klinux-nat.c (getregs_supplies): Make static.
5686 (getfpregs_supplies): Likewise.
5687 (have_ptrace_getregs): Likewise.
5688
5689 2012-03-06 Joel Brobecker <brobecker@adacore.com>
5690
5691 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
5692 in call to get_die_type_at_offset.
5693
5694 2012-03-06 Stan Shebs <stan@codesourcery.com>
5695
5696 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
5697 * mi/mi-cmd-disas.c: Ditto.
5698 * mi/mi-cmd-env.c: Ditto.
5699 * mi/mi-cmd-file.c: Ditto.
5700 * mi/mi-cmd-stack.c: Ditto.
5701 * mi/mi-cmd-target.c: Ditto.
5702 * mi/mi-cmd-var.c: Ditto.
5703 * mi/mi-cmds.c: Ditto.
5704 * mi/mi-cmds.h: Ditto.
5705 * mi/mi-console.c: Ditto.
5706 * mi/mi-getopt.c: Ditto.
5707 * mi/mi-getopt.h: Ditto.
5708 * mi/mi-interp.c: Ditto.
5709 * mi/mi-main.c: Ditto.
5710 * mi/mi-out.c: Ditto.
5711 * mi/mi-parse.c: Ditto.
5712 * mi/mi-parse.h: Ditto.
5713 * mi/mi-symbol-cmds.c: Ditto.
5714
5715 * mi/mi-getopt.h: Move mi_opt struct up.
5716 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
5717 return.
5718 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
5719
5720 2012-03-06 Tom Tromey <tromey@redhat.com>
5721
5722 * proc-service.c (ps_pglobal_lookup): Set the current program
5723 space.
5724
5725 2012-03-06 Pedro Alves <palves@redhat.com>
5726
5727 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
5728
5729 2012-03-05 Joel Brobecker <brobecker@adacore.com>
5730
5731 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
5732
5733 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5734
5735 Code cleanup.
5736 * common/linux-osdata.c (linux_common_core_of_thread): New function
5737 comment.
5738 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
5739 call by linux_common_core_of_thread.
5740 (linux_nat_core_of_thread_1): Remove.
5741 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
5742 * linux-thread-db.c: Include linux-osdata.h.
5743 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
5744 linux_common_core_of_thread.
5745
5746 2012-03-05 Tom Tromey <tromey@redhat.com>
5747
5748 * value.c (value_primitive_field): Don't fetch contents for
5749 non-virtual bases.
5750
5751 2012-03-05 Tom Tromey <tromey@redhat.com>
5752
5753 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
5754
5755 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5756
5757 * s390-nat.c: Include "gregset.h".
5758
5759 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5760
5761 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
5762 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
5763 (libunwind_load): New variable so_error, use it for dlerror. Try to
5764 load also LIBUNWIND_SO_7.
5765
5766 2012-03-05 Pedro Alves <palves@redhat.com>
5767
5768 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
5769 is not NULL, and remove resulting dead code.
5770
5771 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
5772
5773 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
5774 prologue to sh_analyze_prologue.
5775 (sh_analyze_prologue): Make better use of such an upper limit, and
5776 generally be more cautious about accessing memory.
5777
5778 2012-03-05 Tom Tromey <tromey@redhat.com>
5779
5780 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
5781 _initialize_ia64_hpux_tdep.
5782
5783 2012-03-05 Pedro Alves <palves@redhat.com>
5784
5785 PR gdb/13766
5786
5787 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
5788 the register state is clear, supply explicit zero, instead of
5789 marking the register unavailable.
5790
5791 2012-03-05 Tristan Gingold <gingold@adacore.com>
5792
5793 * NEWS: Mention OpenVMS ia64 new target.
5794
5795 2012-03-05 Tristan Gingold <gingold@adacore.com>
5796
5797 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
5798 (ia64_unw_accessors, ia64_unw_rse_accessors)
5799 (ia64_libunwind_descr): Declare.
5800 * ia64-vms-tdep.c: New file.
5801 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
5802 (ia64_libunwind_descr): Make them public.
5803 * configure.tgt: Add ia64-*-*vms*.
5804 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
5805 (ALLDEPFILES): Add ia64-vms-tdep.c
5806
5807 2012-03-05 Tristan Gingold <gingold@adacore.com>
5808
5809 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
5810 * remote.c (PACKET_qXfer_uib): New enum value.
5811 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
5812 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
5813 (_initialize_remote): Call add_packet_config_cmd for
5814 xfer:uib packet.
5815
5816 2012-03-05 Tristan Gingold <gingold@adacore.com>
5817
5818 * osabi.c (gdb_osabi_names): Add OpenVMS.
5819 (generic_elf_osabi_sniffer): Likewise.
5820 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
5821
5822 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5823
5824 Removed unused code.
5825 * libunwind-frame.c (libunwind_frame_unwind)
5826 (libunwind_frame_base_address): Remove.
5827 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
5828
5829 2012-03-04 Yao Qi <yao@codesourcery.com>
5830
5831 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
5832 remove trailing new line.
5833 (agent_run_command, agent_run_command): Add _ markup.
5834 (agent_capability_check): Likewise.
5835
5836 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5837
5838 * breakpoint.c (set_condition_evaluation_mode): Set
5839 CONDITION_EVALUATION_MODE unconditionally.
5840
5841 2012-03-03 Yao Qi <yao@codesourcery.com>
5842
5843 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
5844 * common/agent.h: Update declaration.
5845 * inf-child.c (inf_child_use_agent): New.
5846 (inf_child_can_use_agent): New.
5847 (inf_child_target): Initialize fields `to_use_agent'
5848 and `to_can_use_agent'.
5849 * agent.c (agent_new_objfile): New.
5850 (_initialize_agent): Add agent_new_objfile to new_objfile
5851 observer.
5852
5853 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5854 New.
5855 (linux_target_install_ops): Initialize field
5856 `to_static_tracepoint_markers_by_strid'.
5857 * remote.c (free_current_marker): Move it to ...
5858 * tracepoint.c (free_current_marker): ... here. New.
5859 (cleanup_target_stop): New.
5860 * tracepoint.h: Declare free_current_marker.
5861 * NEWS: Add one entry about `info static-tracepoint-marker'.
5862
5863 2012-03-03 Yao Qi <yao@codesourcery.com>
5864
5865 * common/agent.c (agent_loaded_p): New.
5866 (agent_look_up_symbols): New global.
5867 * common/agent.h: Declare agent_loaded_p.
5868
5869 2012-03-03 Yao Qi <yao@codesourcery.com>
5870
5871 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5872 (agent_capability_check, agent_capability_invalidate): New.
5873 (symbol_list): New array element.
5874 * common/agent.h (enum agent_capa): New.
5875 * target.c (target_pre_inferior): Call agent_capability_invalidate.
5876
5877 2012-03-03 Yao Qi <yao@codesourcery.com>
5878
5879 * target.h (struct target_ops) <to_use_agent>: New field.
5880 (struct target_ops) <to_can_use_agent>: New field.
5881 (target_use_agent, target_can_use_agent): New macro.
5882 * target.c (update_current_target): Update.
5883 * remote.c: New enum `PACKET_QAgent'.
5884 (remote_protocol_features): Add a new element.
5885 (remote_use_agent, remote_can_use_agent): New.
5886 (init_remote_ops): Initialize field `can_use_agent' with
5887 remote_can_use_agent. Intiailize field `use_agent' with
5888 remote_use_agent.
5889 * common/agent.c (use_agent): New global.
5890 * common/agent.h: Declare it.
5891 * tracepoint.c (info_static_tracepoint_markers_command): Add
5892 comment.
5893 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5894 (COMMON_OBS): Add common/agent.o and agent.o
5895 (common-agent.o): New rule.
5896 * agent.c: New.
5897
5898 2012-03-03 Yao Qi <yao@codesourcery.com>
5899
5900 * common/agent.c: New.
5901 * common/agent.h: New.
5902 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5903 AC_CHECK_HEADERS.
5904 * configure, configh.in: Regenerated.
5905
5906 2012-03-02 Kevin Buettner <kevinb@redhat.com>
5907
5908 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5909 unless it exists for this architecture.
5910
5911 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5912
5913 * language.h (struct language_defn): New "method" la_read_var_value.
5914 * findvar.c: #include "language.h".
5915 (default_read_var_value): Renames read_var_value. Rewrite
5916 function description.
5917 (read_var_value): New function.
5918 * value.h (default_read_var_value): Add prototype.
5919 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5920 New functions.
5921 (ada_language_defn): Add entry for la_read_var_value.
5922 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5923 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5924 language_defn structures to add entry for new la_read_var_value
5925 field.
5926
5927 2012-03-02 Tom Tromey <tromey@redhat.com>
5928 Pedro Alves <palves@redhat.com>
5929
5930 PR breakpoints/13776:
5931 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5932 breakpoints.
5933 (delete_longjmp_breakpoint_at_next_stop): New.
5934 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5935 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5936 before deleting the inferior. Add comments.
5937 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5938 breakpoints immediately, but only on next stop. Move that code
5939 next to where we mark other breakpoints for deletion.
5940
5941 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5942
5943 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5944 marker.
5945 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5946 violation.
5947
5948 2012-03-02 Pedro Alves <palves@redhat.com>
5949
5950 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5951
5952 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5953
5954 Fix -Wmissing-prototypes build.
5955 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5956 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5957 (gdbsim_has_memory): Likewise.
5958
5959 2012-03-02 Yao Qi <yao@codesourcery.com>
5960
5961 Fix -Wmissing-prototypes build.
5962 * charset.c (phony_iconv_open): Make static.
5963 (phony_iconv_close, phony_iconv): Likewise.
5964 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5965 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5966 prototype.
5967 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5968 * ser-mingw.c (create_select_thread): Make static.
5969 * windows-termcap.c (tgetent): New prototype.
5970 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5971
5972 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5973
5974 Fix -Wmissing-prototypes build.
5975 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5976 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5977 (_initialize_loadable): New prototypes.
5978
5979 2012-03-02 Doug Evans <dje@google.com>
5980
5981 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5982 abbrev table, read_comp_unit will do it.
5983
5984 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5985
5986 Fix -Wmissing-prototypes build.
5987 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5988 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5989 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5990 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5991 (_initialize_arm_symbian_tdep): New prototype.
5992 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5993 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5994 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5995 static.
5996 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5997 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5998 prototype.
5999 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6000 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6001 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6002 static.
6003 * moxie-tdep.c (moxie_process_record): Likewise.
6004 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6005 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6006 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6007 (_initialize_rl78_tdep): New prototype.
6008 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6009 (_initialize_rx_tdep): New prototype.
6010 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6011 (_initialize_darwin_solib): New prototype.
6012 * solib-spu.c: Include solib-spu.h.
6013 (_initialize_spu_solib): New prototype.
6014 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6015 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6016 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6017 (tic6x_software_single_step): Make it static.
6018 (_initialize_tic6x_tdep): New prototype.
6019
6020 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6021
6022 Fix -Wmissing-prototypes build.
6023 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6024 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6025
6026 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6027
6028 Fix -Wmissing-prototypes build.
6029 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6030 (frv_have_stopped_data_address): Remove.
6031
6032 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6033
6034 Fix -Wmissing-prototypes build.
6035 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6036 * sh-tdep.c: Include sh64-tdep.h.
6037 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6038 * sh64-tdep.c: Include sh64-tdep.h.
6039 * sh64-tdep.h: New file.
6040
6041 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6042
6043 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6044
6045 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6046
6047 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6048 sp_regnum once the gdbarch_init_osabi hook has been called.
6049
6050 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6051
6052 * mips-tdep.c (mips32_bc1_pc): New function.
6053 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6054 BPOSGE32 and BPOSGE64 instructions.
6055 (deal_with_atomic_sequence): Likewise.
6056 (mips32_instruction_has_delay_slot): Likewise.
6057
6058 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6059 Chris Dearman <chris@mips.com>
6060 Maciej W. Rozycki <macro@codesourcery.com>
6061 Joseph Myers <joseph@codesourcery.com>
6062
6063 * features/mips-dsp.xml: New file.
6064 * features/mips64-dsp.xml: New file.
6065 * features/mips-dsp-linux.xml: New file.
6066 * features/mips64-dsp-linux.xml: New file.
6067 * features/Makefile (WHICH): Add mips-dsp-linux and
6068 mips64-dsp-linux.
6069 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6070 * features/mips-dsp-linux.c: New file.
6071 * features/mips64-dsp-linux.c: New file.
6072 * regformats/mips-dsp-linux.dat: New file.
6073 * regformats/mips64-dsp-linux.dat: New file.
6074 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6075 registers.
6076 (mips64_linux_register_addr): Likewise.
6077 (mips64_linux_regsets_fetch_registers): Likewise.
6078 (mips64_linux_regsets_store_registers): Likewise.
6079 (mips64_linux_fetch_registers): Update call to
6080 mips64_linux_regsets_fetch_registers.
6081 (mips64_linux_store_registers): Update call to
6082 mips64_linux_regsets_store_registers.
6083 (mips_linux_read_description): Probe for DSP registers.
6084 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6085 and initialize_tdesc_mips64_dsp_linux.
6086 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6087 Remove padding of no longer used embedded register slots.
6088 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6089 (MIPS_RESTART_REGNUM): Redefine enum value.
6090 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6091 strings.
6092 (mips_tx39_reg_names): Likewise.
6093 (mips_linux_reg_names): New array of register names for Linux
6094 targets.
6095 (mips_register_name): Check for a null pointer in
6096 mips_processor_reg_names and return an empty string.
6097 (mips_register_type): Exclude embedded registers for the IRIX
6098 and Linux ABIs.
6099 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6100 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6101 DSP registers.
6102 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6103 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6104 (mips_gdbarch_init): Likewise. Initialize internal register
6105 indices for the Linux ABI. Use dynamic numbers to refer to
6106 registers, as applicable, while parsing the target description.
6107 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6108
6109 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6110
6111 * frame.h (read_frame_register_unsigned): Fix typo in function
6112 description.
6113
6114 2012-03-01 Pedro Alves <palves@redhat.com>
6115
6116 * jit-reader.in [!__cplusplus]
6117 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6118
6119 2012-03-01 Pedro Alves <palves@redhat.com>
6120
6121 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6122 * configure: Regenerate.
6123
6124 2012-03-01 Pedro Alves <palves@redhat.com>
6125
6126 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6127 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6128 (ftrace_command, strace_command): Make static.
6129 * d-lang.c (_initialize_d_language): Declare.
6130 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6131 * dwarf2loc.c (_initialize_dwarf2loc):
6132 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6133 * exec.c (exec_get_section_table): Make static.
6134 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6135 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6136 * inferior.c (remove_inferior_command, add_inferior_command)
6137 (clone_inferior_command): Make static.
6138 * linux-nat.c (linux_nat_thread_address_space)
6139 (linux_nat_core_of_thread): Make static.
6140 * linux-tdep.c (_initialize_linux_tdep): Declare.
6141 * objc-lang.c (_initialize_objc_lang): Declare.
6142 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6143 Make static.
6144 (_initialize_opencl_language): Declare.
6145 * record.c (_initialize_record): Declare.
6146 * remote.c (demand_private_info, remote_get_tib_address)
6147 (remote_supports_cond_tracepoints)
6148 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6149 Make static.
6150 * skip.c (_initialize_step_skip): Declare.
6151 * symtab.c (skip_prologue_using_lineinfo): Make static.
6152 * tracepoint.c (delete_trace_state_variable)
6153 (trace_variable_command, delete_trace_variable_command)
6154 (get_uploaded_tsv, find_matching_tracepoint_location)
6155 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6156 Make static.
6157 * value.c (pack_unsigned_long): Make static.
6158 * varobj.c (varobj_ensure_python_env): Make static.
6159 * windows-tdep.c (_initialize_windows_tdep): Declare.
6160 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6161
6162 2012-03-01 Pedro Alves <palves@redhat.com>
6163
6164 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6165 gdbarch parameter.
6166 (linux_init_abi): Install it as has_shared_address_space gdbarch
6167 callback.
6168
6169 2012-03-01 Pedro Alves <palves@redhat.com>
6170
6171 * observer.c (observer_test_first_notification_function)
6172 (observer_test_second_notification_function)
6173 (observer_test_third_notification_function): Add declarations.
6174
6175 2012-03-01 Pedro Alves <palves@redhat.com>
6176
6177 * common/signals.c (default_target_signal_to_host)
6178 (default_target_signal_from_host): Move ...
6179 * arch-utils.c: ... here.
6180 * arch-utils.h (default_target_signal_to_host)
6181 (default_target_signal_from_host): Declare.
6182
6183 * common/signals.c (target_signal_from_command): Move ...
6184 * infrun.c: ... here.
6185 * inferior.h (target_signal_from_command): Declare.
6186 * target.h (target_signal_from_command)
6187 (default_target_signal_from_host, default_target_signal_to_host):
6188 Delete declarations.
6189
6190 * common/signals.c (_initialize_signals): Delete.
6191
6192 2012-03-01 Pedro Alves <palves@redhat.com>
6193
6194 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6195 both __cplusplus and !__cplusplus.
6196
6197 2012-03-01 Pedro Alves <palves@redhat.com>
6198
6199 * psymtab.c (find_and_open_source): Delete declaration.
6200 * source.c (find_and_open_source): Move comment ...
6201 * source.h (find_and_open_source): ... to this new declaration.
6202
6203 2012-03-01 Pedro Alves <palves@redhat.com>
6204
6205 * inline-frame.c: Include inline-frame.h.
6206
6207 2012-03-01 Pedro Alves <palves@redhat.com>
6208
6209 * tui/tui-data.c (set_gen_win_origin): Delete.
6210 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6211 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6212
6213 2012-03-01 Pedro Alves <palves@redhat.com>
6214
6215 * remote.c (encode_actions): Delete declaration.
6216 * tracepoint.c (encode_actions): Make extern.
6217 * tracepoint.h (encode_actions): Declare.
6218
6219 2012-03-01 Pedro Alves <palves@redhat.com>
6220
6221 * python/py-breakpoint.c: Include python.h.
6222 * python/py-continueevent.c (create_continue_event_object): Make
6223 static.
6224 * python/py-lazy-string.c (stpy_get_type): Make static.
6225 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6226 Make static.
6227 * python/py-utils.c (unicode_to_target_python_string): Make
6228 static.
6229 * python/py-value.c: Include python.h.
6230
6231 2012-03-01 Pedro Alves <palves@redhat.com>
6232
6233 * inferior.c (delete_threads_of_inferior): Delete.
6234
6235 2012-03-01 Pedro Alves <palves@redhat.com>
6236
6237 Import fallback definitions from glibc.
6238
6239 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6240 ps_prochandle): Forward declare.
6241 (ps_err_e): Use glibc's comments.
6242 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6243 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6244 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6245 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6246 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6247 (struct ps_prochandle): Adjust comment.
6248
6249 2012-03-01 Pedro Alves <palves@redhat.com>
6250
6251 * ada-lang.c (ada_modulus_from_name): Delete.
6252 * ada-lex.l (lexer_init): Make static.
6253
6254 2012-03-01 Pedro Alves <palves@redhat.com>
6255
6256 PR gdb/13767
6257
6258 * frame.c (read_frame_register_unsigned): New.
6259 * frame.h (read_frame_register_unsigned): Declare.
6260 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6261 Handle it.
6262 (print_i387_control_word): New parameter `control_p'. Handle it.
6263 (i387_print_float_info): Handle unavailable float registers.
6264
6265 2012-03-01 Keith Seitz <keiths@redhat.com>
6266
6267 * linespec.c (decode_line_2): Sort the list of methods
6268 alphabetically before presenting the user with a selection
6269 menu.
6270
6271 2012-03-01 Doug Evans <dje@google.com>
6272
6273 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6274 has_namespace_info.
6275 (dwarf2_read_abbrevs): Remove corresponding initialization.
6276
6277 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6278
6279 * NEWS: Mention new python command class gdb.COMMAND_USER.
6280 * cli/cli-cmds.c (show_user): Print error when used on a python
6281 command.
6282 (init_cli_cmds): Update documentation strings for "show user" and
6283 "set/show max-user-call-depth" to clarify that it does not apply to
6284 python commands.
6285 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6286 error check.
6287 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6288 gdb python api.
6289 * top.c (execute_command): Only execute a user-defined command as a
6290 legacy macro if c->user_commands is set.
6291
6292 2012-03-01 Tom Tromey <tromey@redhat.com>
6293
6294 * valprint.h (struct generic_val_print_decorations): New.
6295 (generic_val_print): Declare.
6296 * valprint.c (generic_val_print): New function.
6297 * p-valprint.c (p_decorations): New global.
6298 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6299 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6300 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6301 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6302 * m2-valprint.c (m2_decorations): New global.
6303 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6304 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6305 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6306 TYPE_CODE_ERROR>: Call generic_val_print.
6307 * f-valprint.c (f_decorations): New global.
6308 (f_val_print): Use print_function_pointer_address.
6309 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6310 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6311 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6312 generic_val_print.
6313 * c-valprint.c (c_decorations): New global.
6314 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6315 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6316 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6317 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6318 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6319 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6320 case.
6321
6322 2012-03-01 Tom Tromey <tromey@redhat.com>
6323
6324 * valprint.c (val_print): Update.
6325 * p-valprint (pascal_val_print): Return void.
6326 * p-lang.h (pascal_val_print): Return void.
6327 * m2-valprint.c (m2_val_print): Return void.
6328 * m2-lang.h (m2_val_print): Return void.
6329 * language.h (struct language_defn) <la_val_print>: Return void.
6330 * language.c (unk_lang_val_print): Return void.
6331 * jv-valprint.c (java_val_print): Return void.
6332 * jv-lang.h (java_val_print): Return void.
6333 * f-valprint.c (f_val_print): Return void.
6334 * f-lang.h (f_val_print): Return void.
6335 * d-valprint.c (d_val_print): Return void.
6336 (dynamic_array_type): Update.
6337 * d-lang.h (d_val_print): Return void.
6338 * c-valprint.c (c_val_print): Return void.
6339 * c-lang.h (c_val_print): Return void.
6340 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6341 void.
6342 * ada-lang.h (ada_val_print): Return void.
6343
6344 2012-03-01 Tom Tromey <tromey@redhat.com>
6345
6346 * value.h (val_print): Return void.
6347 * valprint.c (val_print): Return void.
6348
6349 2012-03-01 Tom Tromey <tromey@redhat.com>
6350
6351 * value.h (common_val_print): Return void.
6352 * valprint.c (common_val_print): Return void.
6353
6354 2012-03-01 Tom Tromey <tromey@redhat.com>
6355
6356 * value.h (value_print): Return void.
6357 * valprint.c (value_print): Return void.
6358 * p-valprint.c (pascal_value_print): Return void.
6359 * p-lang.h (pascal_value_print): Return void.
6360 * language.h (struct language_defn) <la_value_print>: Return
6361 void.
6362 * language.c (unk_lang_value_print): Return void.
6363 * jv-valprint.c (java_value_print): Return void.
6364 * jv-lang.h (java_value_print): Return void.
6365 * f-valprint.c (c_value_print): Don't declare.
6366 Include c-lang.h.
6367 * c-valprint.c (c_value_print): Return void.
6368 * c-lang.h (c_value_print): Return void.
6369 * ada-valprint.c (ada_value_print): Return void.
6370 * ada-lang.h (ada_value_print): Return void.
6371
6372 2012-03-01 Tom Tromey <tromey@redhat.com>
6373
6374 * value.c (value_primitive_field): Handle virtual base classes.
6375
6376 2012-03-01 Tom Tromey <tromey@redhat.com>
6377
6378 * gdbtypes.h (struct vbase): Remove.
6379
6380 2012-03-01 Tom Tromey <tromey@redhat.com>
6381
6382 * c-valprint.c (print_function_pointer_address): Move...
6383 * valprint.c: ... here. Make non-static.
6384 * m2-valprint.c (print_function_pointer_address): Remove.
6385 * valprint.h (print_function_pointer_address): Declare.
6386
6387 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6388
6389 * NEWS: Document the fact that one can provide a condition when
6390 creating an Ada exception catchpoint.
6391
6392 2012-03-01 Tom Tromey <tromey@redhat.com>
6393
6394 * valprint.c (val_print_type_code_flags): Fix placement of
6395 trailing brace.
6396
6397 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6398
6399 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6400 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6401 environment variable before calling update-copyright.
6402
6403 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6404
6405 * gnulib/extra/update-copyright: Update to the latest from
6406 gnulib's git repository.
6407 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6408 variable to 2 instead of 1.
6409
6410 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6411
6412 * varobj.c (c_value_of_variable): Remove dead code.
6413
6414 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6415
6416 * ada-lex.p (processId): Do not modify already encoded IDs.
6417 Update function documentation.
6418
6419 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6420
6421 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6422 "name" with "struct symbol *name_sym".
6423 * ada-exp.y (write_var_or_type): Update call to
6424 ada_find_renaming_symbol.
6425 "name" with "struct symbol *name_sym". Adjust Implementation
6426 accordingly. Adjust the function documentation.
6427
6428 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6429
6430 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6431 * ada-lang.c (ada_find_any_type): Add advance declaration.
6432 Make static. Replace ada_find_any_symbol by
6433 ada_find_any_type_symbol.
6434 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6435 Improve function description. Make static.
6436 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6437 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6438
6439 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6440
6441 * ada-lang.c (struct tag_args): Delete.
6442 (ada_get_tsd_type): Function body moved up in source file.
6443 (ada_tag_name_1, ada_tag_name_2): Delete.
6444 (ada_get_tsd_from_tag): New function.
6445 (ada_tag_name_from_tsd): New function.
6446 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6447 to determine the tag name.
6448
6449 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6450
6451 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6452 declaration.
6453 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6454 function.
6455
6456 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6457
6458 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6459
6460 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6461
6462 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6463 full searches.
6464
6465 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6466
6467 * ada-lang.c (constrained_packed_array_type): If there is a
6468 parallel XA type, use it to determine the array index type.
6469
6470 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6471
6472 * ada-valprint.c (ada_val_print_1): If our value is a reference
6473 to an array descriptor, dereference it before converting it
6474 to a simple array.
6475
6476 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6477
6478 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6479 creating fixed value.
6480 (ada_value_ind, ada_coerce_ref, assign_component)
6481 (ada_evaluate_subexp): Remove call to unwrap_value before
6482 call to ada_to_fixed_value.
6483
6484 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6485
6486 * ada-lang.c (to_fixed_array_type): Set result's type name.
6487
6488 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6489
6490 * ada-lang.c (catch_ada_exception_command_split): Add new
6491 argument cond_string. Add support for condition at end of
6492 "catch exception" commands.
6493 (ada_decode_exception_location): Add new argument cond_string.
6494 Update call to catch_ada_exception_command_split.
6495 (create_ada_exception_catchpoint): Add new argument cond_string.
6496 Set the breakpoint condition if needed.
6497 (catch_ada_exception_command): Update call to
6498 ada_decode_exception_location.
6499 (ada_decode_assert_location): Add function documentation.
6500 Add support for condition at end of "catch assert" command.
6501 (catch_assert_command): Update calls to ada_decode_assert_location
6502 and create_ada_exception_catchpoint.
6503
6504 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6505
6506 Fix disp-step-syscall.exp: fork: single step over fork.
6507 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6508 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6509 comment, change parameters gdbarch and ptid to regcache. Remove
6510 parameter regcache, initialize gdbarch from regcache here.
6511 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6512 New functions.
6513 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6514 instead.
6515 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6516 'syscall'. Make the 'int' check more strict.
6517
6518 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6519
6520 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6521 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6522 (i386_linux_intx80_sysenter_syscall_record): ... here.
6523 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6524 Use the renamed function name.
6525
6526 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6527
6528 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6529 * breakpoint.c (until_break_command): Likewise.
6530 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6531 * infcall.c (call_function_by_hand): Likewise.
6532 * infcmd.c (finish_forward): Likewise.
6533 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6534
6535 2012-02-28 Tristan Gingold <gingold@adacore.com>
6536
6537 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6538 avoid variable assignments inside condition.
6539
6540 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6541
6542 Fix static analysis issue found by cppcheck.
6543 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6544 uninitialized BUF for size 2.
6545
6546 2012-02-27 Chris Dearman <chris@mips.com>
6547 Nathan Froyd <froydnj@codesourcery.com>
6548 Maciej W. Rozycki <macro@codesourcery.com>
6549
6550 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6551 (mips16_instruction_has_delay_slot): Likewise.
6552 (mips_segment_boundary): Likewise.
6553 (mips_adjust_breakpoint_address): Likewise.
6554 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6555
6556 2012-02-27 Maciej W. Rozycki <macro@mips.com>
6557 Maciej W. Rozycki <macro@codesourcery.com>
6558
6559 * infrun.c (handle_inferior_event): Don't proceed through
6560 shared library trampolines if stepping at the machine
6561 instruction level.
6562
6563 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
6564
6565 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
6566 too.
6567
6568 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
6569
6570 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6571 (sh_stub_unwind_sniffer): New functions.
6572 (sh_stub_unwind): New variable.
6573 (sh_gdbarch_init): Wire everything.
6574
6575 2012-02-27 Pedro Alves <palves@redhat.com>
6576
6577 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6578 (linux_nat_post_attach_wait): Adjust to use
6579 linux_proc_pid_is_stopped.
6580 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6581 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6582 based on pid_is_stopped from both linux-nat.c and
6583 gdbserver/linux-low.c, and renamed.
6584
6585 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6586
6587 * remote.c (remote_watchpoint_addr_within_range): New function.
6588 (init_remote_ops): Use it.
6589
6590 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6591
6592 * target.h (target_watchpoint_addr_within_range): Document macro.
6593
6594 2012-02-24 Pedro Alves <palves@redhat.com>
6595
6596 * stack.c (set_last_displayed_sal): Issue internal_error instead
6597 of warning, and issue it after clearing the last displayed sal.
6598
6599 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6600 Pedro Alves <palves@redhat.com>
6601
6602 * breakpoint.c (until_break_command): Install breakpoints after
6603 all frame manipulations.
6604
6605 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6606
6607 * remote.c (remote_supports_cond_breakpoints): New forward
6608 declaration.
6609 (remote_add_target_side_condition): New function.
6610 (remote_insert_breakpoint): Add target-side breakpoint
6611 conditional if supported.
6612 (remote_insert_hw_breakpoint): Likewise.
6613 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
6614 hook.
6615
6616 * target.c (update_current_target): Inherit
6617 to_supports_evaluation_of_breakpoint_conditions.
6618 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
6619
6620 * target.h (struct target_ops)
6621 <to_supports_evaluation_of_breakpoint_conditions>: New field.
6622 (target_supports_evaluation_of_breakpoint_conditions): New #define.
6623
6624 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
6625 (condition_evaluation_both, condition_evaluation_auto,
6626 condition_evaluation_host, condition_evaluation_target,
6627 condition_evaluation_enums, condition_evaluation_mode_1,
6628 condition_evaluation_mode): New static globals.
6629 (translate_condition_evaluation_mode): New function.
6630 (breakpoint_condition_evaluation_mode): New function.
6631 (gdb_evaluates_breakpoint_condition_p): New function.
6632 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
6633 (mark_breakpoint_modified): New function.
6634 (mark_breakpoint_location_modified): New function.
6635 (set_condition_evaluation_mode): New function.
6636 (show_condition_evaluation_mode): New function.
6637 (bp_location_compare_addrs): New function.
6638 (get_first_location_gte_addr): New helper function.
6639 (set_breakpoint_condition): Free condition bytecode if locations
6640 has become unconditional. Call mark_breakpoint_modified (...).
6641 (condition_command): Call update_global_location_list (1) for
6642 breakpoints.
6643 (breakpoint_xfer_memory): Use is_breakpoint (...).
6644 (is_breakpoint): New function.
6645 (parse_cond_to_aexpr): New function.
6646 (build_target_condition_list): New function.
6647 (insert_bp_location): Handle target-side conditional
6648 breakpoints and call build_target_condition_list (...).
6649 (update_inserted_breakpoint_locations): New function.
6650 (insert_breakpoint_locations): Handle target-side conditional
6651 breakpoints.
6652 (bpstat_check_breakpoint_conditions): Add comment.
6653 (bp_condition_evaluator): New function.
6654 (bp_location_condition_evaluator): New function.
6655 (print_breakpoint_location): Print information on where the condition
6656 will be evaluated.
6657 (print_one_breakpoint_location): Likewise.
6658 (init_bp_location): Call mark_breakpoint_location_modified (...) for
6659 breakpoint location.
6660 (force_breakpoint_reinsertion): New functions.
6661 (update_global_location_list): Handle target-side breakpoint
6662 conditions.
6663 Reinsert locations that are already inserted if conditions have
6664 changed.
6665 (bp_location_dtor): Free agent expression bytecode.
6666 (disable_breakpoint): Call mark_breakpoint_modified (...).
6667 Call update_global_location_list (...) with parameter 1 for breakpoints.
6668 (disable_command): Call mark_breakpoint_location_modified (...).
6669 Call update_global_location_list (...) with parameter 1 for breakpoints.
6670 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
6671 (enable_command): mark_breakpoint_location_modified (...).
6672 (_initialize_breakpoint): Update documentation and add
6673 condition-evaluation breakpoint subcommand.
6674
6675 * breakpoint.h: Include ax.h.
6676 (condition_list): New data structure.
6677 (condition_status): New enum.
6678 (bp_target_info) <cond_list>: New field.
6679 (bp_location) <condition_changed, cond_bytecode>: New fields.
6680 (is_breakpoint): New prototype.
6681
6682 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6683
6684 * remote.c (remote_state) <cond_breakpoints>: New field.
6685 (PACKET_ConditionalBreakpoints): New enum.
6686 (remote_cond_breakpoint_feature): New function.
6687 (remote_protocol_features): Add new ConditionalBreakpoints entry.
6688 (remote_supports_cond_breakpoints): New function.
6689 (_initialize_remote): Add new packet configuration for
6690 target-side conditional breakpoints.
6691
6692 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6693
6694 * NEWS: Mention target-side conditional breakpoint support,
6695 new condition-evaluation breakpoint subcommand and remote
6696 packet extensions.
6697
6698 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6699
6700 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
6701 number.
6702
6703 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
6704
6705 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
6706 (after_prologue): Remove.
6707
6708 2012-02-23 Tom Tromey <tromey@redhat.com>
6709
6710 * jv-valprint.c (java_val_print): Remove dead code.
6711
6712 2012-02-23 Tristan Gingold <gingold@adacore.com>
6713
6714 * ada-tasks.c (struct ada_tasks_inferior_data): Add
6715 known_tasks_element and known_tasks_length fields.
6716 (read_known_tasks_array): Change argument type. Use pointer type
6717 and number of elements from DATA. Adjust.
6718 (read_known_tasks_list): Likewise.
6719 (get_known_tasks_addr): Remove.
6720 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
6721 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
6722 type and array length. Merge former get_known_tasks_addr code.
6723
6724 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6725
6726 PR backtrace/13716
6727 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
6728 it after set_momentary_breakpoint.
6729
6730 2012-02-22 Sterling Augustine <saugustine@google.com>
6731
6732 PR 13689:
6733 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
6734
6735 2012-02-22 Gary Benson <gbenson@redhat.com>
6736
6737 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
6738 (find_slot_in_mapped_hash): Likewise.
6739
6740 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6741
6742 PR build/13638
6743 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
6744 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
6745 * configure: Regenerate.
6746
6747 2012-02-21 Tristan Gingold <gingold@adacore.com>
6748 Pedro Alves <palves@redhat.com>
6749
6750 * ia64-tdep.c: Do not include libunwind-ia64.h.
6751 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
6752 Include libunwind-ia64.h instead of libunwind.h.
6753 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
6754 for libunwind.h existence.
6755 * configure, config.in: Regenerate.
6756
6757 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
6758
6759 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
6760 instead of value_rtti_target_type.
6761 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
6762 instead of value_rtti_target_type.
6763 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
6764 value_rtti_target_type.
6765 * valops.c (value_ind): Extract function readjust_indirect_value_type.
6766 (value_rtti_target_type): Rename to ...
6767 (value_rtti_indirect_type): ... here and make it indirect. Update
6768 function comment.
6769 * value.c (readjust_indirect_value_type): New function.
6770 (coerce_ref): Support for enclosing type setting for references
6771 with readjust_indirect_value_type.
6772 * value.h (readjust_value_type): New declaration.
6773 (value_rtti_target_type): Rename to ...
6774 (value_rtti_indirect_type): ... here.
6775
6776 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
6777
6778 * MAINTAINERS (Write After Approval): Add myself to the list.
6779
6780 2012-02-20 Doug Evans <dje@google.com>
6781
6782 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
6783 Rename objfile_p_char parameter to objfilep.
6784 (build_objfile_section_table): Result is now void. All callers
6785 updated.
6786 * objfiles.h (struct objfile): Tweak comments, whitespace.
6787 (build_objfile_section_table): Update.
6788
6789 * elfread.c (elf_symfile_segments): Fix warning text.
6790
6791 2012-02-20 Tom Tromey <tromey@redhat.com>
6792
6793 PR gdb/13498:
6794 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
6795 particular set of file names once.
6796 (dw2_map_symbol_filenames): Likewise.
6797
6798 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6799
6800 Code cleanup.
6801 * main.c (write_files): Remove the declaration.
6802 (external_editor_command): Move the declaration ...
6803 [GDBTK] (external_editor_command): ... here. Fix the comment.
6804
6805 2012-02-20 Tom Tromey <tromey@redhat.com>
6806
6807 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
6808 extraneous block.
6809
6810 2012-02-20 Tristan Gingold <gingold@adacore.com>
6811
6812 * darwin-nat.h (enum darwin_msg_state): Add comments.
6813
6814 2012-02-20 Tristan Gingold <gingold@adacore.com>
6815
6816 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
6817 value.
6818
6819 2012-20-18 Joel Brobecker <brobecker@adacore.com>
6820
6821 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
6822 between function description and implementation.
6823
6824 2012-02-17 Tom Tromey <tromey@redhat.com>
6825
6826 PR python/12070:
6827 * python/py-event.c (event_object_getset): New global.
6828 (event_object_type): Reference it.
6829 * python/py-type.c (field_object_getset): New global.
6830 (field_object_type): Reference it.
6831 * python/python-internal.h (gdb_py_generic_dict): Declare.
6832 * python/py-utils.c (gdb_py_generic_dict): New function.
6833
6834 2012-02-17 Tristan Gingold <gingold@adacore.com>
6835
6836 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6837
6838 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
6839
6840 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
6841 TYPE_CALLING_CONVENTION annotation.
6842
6843 2012-02-16 Kevin Buettner <kevinb@redhat.com>
6844
6845 * MAINTAINERS: Add rx to target ISA section.
6846 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
6847 (ALLDEPFILES): Add rx-tdep.c.
6848
6849 2012-02-16 Tom Tromey <tromey@redhat.com>
6850
6851 * symfile.c (symbol_file_add_main_1): Use inferior's
6852 symfile_flags.
6853 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
6854 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
6855 inferior.
6856 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
6857 inferior.
6858 (follow_exec): Use inferior's symfile_flags.
6859 * inferior.h (struct inferior) <symfile_flags>: New field.
6860
6861 2012-02-16 Mike Frysinger <vapier@gentoo.org>
6862
6863 PR gdb/9734:
6864 * remote-sim.c (gdbsim_create_inferior): Call error() when
6865 sim_create_inferior() fails.
6866
6867 2012-02-16 Josh Matthews <josh@joshmatthews.net>
6868
6869 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
6870
6871 2012-02-16 Tom Tromey <tromey@redhat.com>
6872
6873 PR c++/13653:
6874 * thread.c (struct current_thread_cleanup) <was_removable>: New
6875 field.
6876 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6877 (make_cleanup_restore_current_thread): Initialize new field.
6878
6879 2012-02-15 Kevin Buettner <kevinb@redhat.com>
6880
6881 * MAINTAINERS: Add rl78 to target ISA section.
6882 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6883 (ALLDEPFILES): Add rl78-tdep.c.
6884 * NEWS: Mention rl78 as a new target.
6885
6886 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
6887
6888 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6889 data.
6890 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6891
6892 2012-02-15 Tom Tromey <tromey@redhat.com>
6893
6894 PR gdb/12659:
6895 * infcmd.c (registers_info): Print just the current register's
6896 name.
6897
6898 2012-02-15 Tom Tromey <tromey@redhat.com>
6899
6900 * python/py-symbol.c (sympy_value): Use _().
6901
6902 2012-02-15 Pedro Alves <palves@redhat.com>
6903
6904 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6905 output to be like native targets'.
6906 (remote_pid_to_str): Special case the null ptid.
6907
6908 2012-02-14 Stan Shebs <stan@codesourcery.com>
6909
6910 * NEWS: Mention enable count command.
6911 * breakpoint.h (struct breakpoint): New field enable_count.
6912 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6913 (enable_breakpoint): Add arg to call.
6914 (struct disp_data): New struct.
6915 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6916 (do_map_enable_once_breakpoint): Create a struct and pass it.
6917 (do_map_enable_delete_breakpoint): Ditto.
6918 (do_map_enable_count_breakpoint): New function.
6919 (enable_count_command): New function.
6920 (bpstat_stop_status): Decrement enable_count.
6921 (print_one_breakpoint_location): Report enable count.
6922 (_initialize_breakpoint): Add enable count command.
6923
6924 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6925
6926 * rl78-tdep.c (reggroups.h): Include.
6927 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6928 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6929 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6930 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6931 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6932 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6933 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6934 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6935 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6936 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6937 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6938 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6939 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6940 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6941 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6942 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6943 beginning of register list.
6944 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6945 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6946 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6947 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6948 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6949 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6950 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6951 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6952 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6953 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6954 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6955 the pseudo registers. Rearrange other pseudo registers too so
6956 that the bank registers appear at the end.
6957 (rl78_register_type): Account for the fact that the byte sized
6958 bank registers are now pseudo-registers.
6959 (rl78_register_name): Rearrange the register name array. Make
6960 initial set of raw banked registers inaccessible.
6961 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6962 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6963 case for copying bytes back and forth between raw and pseudo
6964 versions of the banked registers. Update other cases to reflect
6965 the changed names.
6966 (rl78_return_value): Update to account for changed names of
6967 raw registers.
6968 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6969 rl78_register_sim_regno().
6970
6971 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6972
6973 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6974 the name parameter being passed to find_pc_partial_function().
6975
6976 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6977
6978 * MAINTAINERS: Step down from being ia64 target maintainer.
6979
6980 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6981
6982 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6983 compilation warning.
6984
6985 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6986
6987 Fix crash on loaded shlibs without loaded exec_bfd.
6988 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6989 (set_section_command): Replace exec_bfd by p->bfd.
6990
6991 2012-02-10 Tom Tromey <tromey@redhat.com>
6992
6993 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6994 when we have a C++ qualified name.
6995
6996 2012-02-10 Pedro Alves <palves@redhat.com>
6997
6998 * inferior.c (inferior_pid_to_str): New.
6999 (print_inferior, inferior_command): Use it.
7000
7001 2012-02-10 Pedro Alves <palves@redhat.com>
7002
7003 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7004 the test CFLAGS.
7005 * configure: Regenerate.
7006
7007 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7008
7009 * linespec.c (decode_line_internal): Fix comment correctness.
7010
7011 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7012
7013 PR gdb/12953
7014 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7015 * amd64bsd-nat.c: Add support for debug registers (adapted from
7016 i386bsd-nat.c).
7017 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7018 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7019 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7020 (amd64bsd_dr_get_control): New functions.
7021 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7022 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7023 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7024 watchpoints initialization.
7025 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7026
7027 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7028
7029 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7030 flds_bnds.fields.
7031 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7032
7033 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7034
7035 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7036
7037 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7038
7039 * language.h (symbol_name_cmp_ftype): Renames
7040 symbol_name_match_p_ftype.
7041 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7042 la_get_symbol_name_match_p.
7043 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7044 ada_get_symbol_name_match_p. Update comment.
7045 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7046 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7047 Renames symbol_name_match_p. Update field type.
7048 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7049 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7050 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7051 "la_get_symbol_name_cmp" in comments.
7052 * language.c: Likewise.
7053
7054 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7055
7056 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7057 %eflags offset.
7058 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7059 (amd64_sol2_gregset32_reg_offs): Likewise.
7060
7061 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7062
7063 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7064 of the returned BFD is allocated by GDB.
7065
7066 2012-02-07 Tom Tromey <tromey@redhat.com>
7067
7068 PR python/12027:
7069 * python/python-internal.h (frame_object_type): Declare.
7070 * python/py-symbol.c (sympy_needs_frame): New function.
7071 (sympy_value): New function.
7072 (symbol_object_getset): Add "needs_frame".
7073 (symbol_object_methods): Add "value".
7074 * python/py-frame.c (frame_object_type): No longer static.
7075
7076 2012-02-07 Tom Tromey <tromey@redhat.com>
7077
7078 PR python/13599:
7079 * python/py-symbol.c (sympy_line): New function.
7080 (symbol_object_getset): Add "line".
7081
7082 2012-02-07 Tom Tromey <tromey@redhat.com>
7083
7084 * charset.c (find_charset_names): Check 'in' against NULL.
7085
7086 2012-02-06 Doug Evans <dje@google.com>
7087
7088 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7089 and fields.name members from char * to const char *. All uses updated.
7090 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7091 from char * to const char *. All uses updated.
7092 (type_name_no_tag): Update.
7093 (lookup_unsigned_typename, lookup_signed_typename): Update.
7094 * gdbtypes.c (type_name_no_tag): Change result type
7095 from char * to const char *. All callers updated.
7096 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7097 name parameter from char * to const char *.
7098 * symtab.h (struct cplus_specific): Change type of demangled_name
7099 member from char * to const char *. All uses updated.
7100 (struct general_symbol_info): Change type of name and
7101 mangled_lang.demangled_name members from char * to const char *.
7102 All uses updated.
7103 (symbol_get_demangled_name, symbol_natural_name): Update.
7104 (symbol_demangled_name, symbol_search_name): Update.
7105 * symtab.c (symbol_get_demangled_name): Change result type
7106 from char * to const char *. All callers updated.
7107 (symbol_natural_name, symbol_demangled_name): Ditto.
7108 (symbol_search_name): Ditto.
7109 (completion_list_add_name): Change type of symname,sym_text,
7110 text,word parameters from char * to const char *.
7111 (completion_list_objc_symbol): Change type of sym_text,
7112 text,word parameters from char * to const char *.
7113 * ada-lang.c (find_struct_field): Change type of name parameter
7114 from char * to const char *.
7115 (encoded_ordered_before): Similarly for N0,N1 parameters.
7116 (old_renaming_is_invisible): Similarly for function_name parameter.
7117 (ada_type_name): Change result type from char * to const char *.
7118 All callers updated.
7119 * ada-lang.h (ada_type_name): Update.
7120 * buildsym.c (hashname): Change type of name parameter
7121 from char * to const char *.
7122 * buildsym.h (hashname): Update.
7123 * dbxread.c (end_psymtab): Change type of include_list parameter
7124 from char ** to const char **.
7125 * dwarf2read.c (determine_prefix): Change result type
7126 from char * to const char *. All callers updated.
7127 * f-lang.c (find_common_for_function): Change type of name, funcname
7128 parameters from char * to const char *.
7129 * f-lang.c (find_common_for_function): Update.
7130 * f-valprint.c (list_all_visible_commons): Change type of funcname
7131 parameters from char * to const char *.
7132 * gdbarch.sh (static_transform_name): Change type of name parameter
7133 and result from char * to const char *.
7134 * gdbarch.c: Regenerate.
7135 * gdbarch.h: Regenerate.
7136 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7137 of name parameter from char * to const char *.
7138 * jv-lang.c (java_primitive_type_from_name): Ditto.
7139 (java_demangled_signature_length): Similarly for signature parameter.
7140 (java_demangled_signature_copy): Ditto.
7141 (java_demangle_type_signature): Ditto.
7142 * jv-lang.h (java_primitive_type_from_name): Update.
7143 (java_demangle_type_signature): Update.
7144 * objc-lang.c (specialcmp): Change type of a,b parameters
7145 from char * to const char *.
7146 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7147 from char * to const char *. All callers updated.
7148 * p-lang.h (is_pascal_string_type): Update.
7149 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7150 of name parameter from char * to const char *.
7151 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7152 * utils.c (fprintf_symbol_filtered): Ditto.
7153 * defs.h (fprintf_symbol_filtered): Update.
7154 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7155 * stabsread.h (end_psymtab): Update.
7156 * stack.c (find_frame_funname): Change type of funname parameter
7157 from char ** to const char **.
7158 * stack.h (find_frame_funname): Update.
7159 * typeprint.c (type_print): Change type of varstring parameter
7160 from char * to const char *.
7161 * value.h (type_print): Update.
7162 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7163 from char * to const char *. All callers updated.
7164 (xcoff_end_psymtab): Change type of include_list parameter
7165 from char ** to const char **. All callers updated.
7166 (swap_sym): Similarly for name parameter. All callers updated.
7167 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7168 Use xstrdup.
7169 (process_coff_symbol): Use xstrdup.
7170 * stabsread.c (stabs_method_name_from_physname): Renamed from
7171 update_method_name_from_physname. Change result type from void
7172 to char *. All callers updated.
7173 (read_member_functions): In has_destructor case, store name in objfile
7174 obstack instead of malloc space. In !has_stub case, fix mem leak.
7175
7176 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7177
7178 * configure: Rebuild.
7179 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7180 LDFLAGS.
7181
7182 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7183
7184 * configure.tgt (rl78-*-elf): New target.
7185 * rl78-tdep.c: New file.
7186
7187 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7188
7189 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7190 and continue the loop. Add QUIT statement.
7191
7192 2012-02-03 Tom Tromey <tromey@redhat.com>
7193
7194 PR gdb/13596:
7195 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7196 bfd_lookup_symbol_from_symtab.
7197 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7198 gdb_bfd_lookup_symbol_from_symtab.
7199
7200 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7201
7202 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7203 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7204 symbol. Add assertion that sym2 is never NULL.
7205
7206 2012-02-02 Doug Evans <dje@google.com>
7207
7208 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7209 "name" parameter to const char ** from char **. All callers updated.
7210 (find_pc_partial_function): Ditto.
7211 (cache_pc_function_name): Change type to const char * from char *.
7212 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7213 (find_pc_partial_function): Update.
7214 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7215 type of "name" parameter to const char * from char *.
7216 All uses updated.
7217 * arch-utils.c (generic_in_solib_return_trampoline): Change
7218 type of "name" parameter to const char * from char *.
7219 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7220 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7221 type of "name" parameter to const char * from char *.
7222 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7223 * gdbarch.c: Regenerate.
7224 * gdbarch.h: Regenerate.
7225 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7226 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7227 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7228 type of "name" parameter to const char * from char *.
7229 * skip.c (skip_function_pc): Ditto.
7230 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7231 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7232 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7233 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7234 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7235 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7236 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7237 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7238 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7239
7240 2012-02-02 Pedro Alves <palves@redhat.com>
7241
7242 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7243 the current inferior has no execution. Make sure the current
7244 remote process matches gdb's current inferior.
7245
7246 2012-02-02 Tom Tromey <tromey@redhat.com>
7247
7248 PR gdb/13405:
7249 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7250 read-only memory.
7251
7252 2012-02-02 Tom Tromey <tromey@redhat.com>
7253
7254 PR gdb/9307:
7255 * symtab.c (lookup_language_this): Set block_found.
7256
7257 2012-02-01 Tom Tromey <tromey@redhat.com>
7258
7259 PR gdb/13431:
7260 * jit.c (struct jit_inferior_data): Rewrite.
7261 (struct jit_objfile_data): New.
7262 (get_jit_objfile_data): New function.
7263 (add_objfile_entry): Update.
7264 (jit_read_descriptor): Return int. Replace descriptor_addr
7265 argument with inf_data. Update. Don't call error.
7266 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7267 descriptor here.
7268 (jit_inferior_init): Don't look up descriptor. Don't call error.
7269 (jit_reset_inferior_data_and_breakpoints)
7270 (jit_inferior_created_observer): Remove.
7271 (jit_inferior_exit_hook): Update.
7272 (jit_executable_changed_observer): Remove.
7273 (jit_event_handler): Update.
7274 (free_objfile_data): Reset inferior data if needed.
7275 (_initialize_jit): Update.
7276
7277 2012-02-01 Tom Tromey <tromey@redhat.com>
7278
7279 * jit.c (bfd_open_from_target_memory): Move higher in file.
7280
7281 2012-02-01 Tristan Gingold <gingold@adacore.com>
7282
7283 * libunwind-frame.c (libunwind_load): Display message if dlopen
7284 failed.
7285
7286 2012-02-01 Gary Benson <gbenson@redhat.com>
7287
7288 * symtab.h (symbol_found_callback_ftype): New typedef.
7289 (iterate_over_symbols): Use the above.
7290 * symtab.c (iterate_over_symbols): Likewise.
7291 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7292 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7293 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7294 (iterate_name_matcher): Document return values.
7295 (collect_one_symbol): Likewise.
7296 (collect_function_symbols): Likewise.
7297 (collect_symbols): Likewise.
7298
7299 2012-02-01 Tom Tromey <tromey@redhat.com>
7300
7301 * ada-lang.c (resolve_subexp): Update.
7302 (ada_lookup_symbol_list): Add 'full_search' argument.
7303 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7304 ada_lookup_symbol_list.
7305 (ada_lookup_encoded_symbol): Update.
7306 (get_var_value): Update.
7307 * ada-exp.y (block_lookup): Update.
7308 (write_var_or_type): Update.
7309 (write_name_assoc): Update.
7310 * ada-lang.h (ada_lookup_symbol_list): Update.
7311
7312 2012-01-31 Tom Tromey <tromey@redhat.com>
7313
7314 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7315 comment.
7316
7317 2012-01-31 Doug Evans <dje@google.com>
7318
7319 * symtab.h: Remove outdated comment.
7320 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7321
7322 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7323
7324 Fix build error in Darwin port.
7325 * i386-darwin-nat.c: Include i386-nat.h.
7326
7327 2012-01-30 Tom Tromey <tromey@redhat.com>
7328
7329 PR breakpoints/13568:
7330 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7331 argument. Check for recursive includes.
7332 (dwarf_decode_macros): Create an include hash.
7333
7334 2012-01-30 Michael Eager <eager@eagercon.com>
7335
7336 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7337 * ppc-linux-tdep.c: Include glibc-tdep.h.
7338 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7339 (powerpc_linux_in_plt_stub): New function.
7340 (powerpc_linux_in_dynsym_resolve_code): New function.
7341 (ppc_skip_trampoline_code): New function.
7342 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7343 Use glibc_skip_solib_resolver.
7344
7345 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7346
7347 Code cleanup: Make 1440 bytes of data segment read-only.
7348 * arch-utils.c (endian_enum): Make it const char *const [].
7349 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7350 Likewise.
7351 * breakpoint.c (always_inserted_enums): Likewise.
7352 * cli/cli-cmds.c (script_ext_enums): Likewise.
7353 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7354 enumlist parameter const char *const *.
7355 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7356 const char *const *.
7357 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7358 parameter const char *const *.
7359 * cris-tdep.c (cris_modes): Make it const char *const [].
7360 * filesystem.c (target_file_system_kinds): Likewise.
7361 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7362 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7363 (can_use_displaced_stepping_enum, scheduler_enums)
7364 (exec_direction_names): Likewise.
7365 * language.c (_initialize_language): Make the type_or_range_names and
7366 case_sensitive_names variables const char *const [].
7367 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7368 * python/python.c (python_excp_enums): Likewise.
7369 * remote.c (interrupt_sequence_modes): Likewise.
7370 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7371 * serial.c (logbase_enums): Likewise.
7372 * sh-tdep.c (sh_cc_enum): Likewise.
7373 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7374 Likewise.
7375 * symtab.c (multiple_symbols_modes): Likewise.
7376 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7377 Likewise.
7378 * utils.c (internal_problem_modes): Likewise.
7379
7380 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7381
7382 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7383 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7384 result.
7385
7386 2012-01-27 Doug Evans <dje@google.com>
7387
7388 * configure.ac (with_python): Fix absolute path handling for win32.
7389 * configure: Regenerate.
7390
7391 2012-01-26 Doug Evans <dje@google.com>
7392
7393 * symtab.c: Whitespace cleanup, no code changes.
7394
7395 * symtab.c (lookup_symbol_in_language): Improve comment.
7396 (lookup_symbol_aux): Fix comment.
7397
7398 * psymtab.c (add_psymbol_to_list): Result is now "void".
7399 * psympriv.h (add_psymbol_to_list): Update.
7400
7401 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7402
7403 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7404
7405 Do not open script filenames twice.
7406 * cli/cli-cmds.c (source_script_from_stream): Pass to
7407 source_python_script also STREAM.
7408 * python/py-auto-load.c (source_section_scripts): Pass to
7409 source_python_script_for_objfile also STREAM.
7410 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7411 also INPUT.
7412 * python/python-internal.h (source_python_script_for_objfile): New
7413 parameter file, rename parameter file to filename.
7414 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7415 instead if !_WIN32. Update the function comment.
7416 (source_python_script, source_python_script_for_objfile)
7417 (source_python_script): New parameter file, rename parameter file to
7418 filename. Pass FILENAME to python_run_simple_file.
7419 * python/python.h (source_python_script): New parameter file, rename
7420 parameter file to filename.
7421
7422 2012-01-26 Pedro Alves <palves@redhat.com>
7423
7424 * corelow.c (core_has_fake_pid): Delete.
7425 (core_close): Delete references to `core_has_fake_pid'.
7426 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7427 (core_open): Delete references to `core_has_fake_pid'.
7428 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7429 the removed global.
7430
7431 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7432
7433 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7434 Remove language parameter from name_matcher. Adjust the comment.
7435 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7436 Remove language parameter.
7437 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7438 * linespec.c (iterate_name_matcher): Likewise.
7439 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7440 name_matcher. Adjust call accordingly.
7441 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7442 (maintenance_check_symtabs): Adjust type of parameter "fun".
7443 * psymtab.h (maintenance_check_symtabs): Likewise.
7444
7445 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7446
7447 * language.h (symbol_name_match_p_ftype): New typedef.
7448 (struct language_defn): Replace field la_symbol_name_compare
7449 by la_get_symbol_name_match_p.
7450 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7451 (ada_language_defn): Use it.
7452 * linespec.c (struct symbol_matcher_data): New type.
7453 (iterate_name_matcher): Rewrite.
7454 (iterate_over_all_matching_symtabs): Pass a pointer to
7455 a symbol_matcher_data struct to expand_symtabs_matching
7456 instead of just the lookup name.
7457 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7458 opencl-lang.c, p-lang.c, language.c: Delete field
7459 la_symbol_name_compare, and replace by NULL for new field
7460 la_get_symbol_name_match_p.
7461 * symfile.h (struct quick_symbol_functions): Update comment.
7462
7463 2012-01-25 Tom Tromey <tromey@redhat.com>
7464
7465 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7466 dereferencing.
7467
7468 2012-01-24 Tom Tromey <tromey@redhat.com>
7469
7470 PR symtab/12406:
7471 * solib.c (update_solib_list): Update the program space's
7472 added_solibs and deleted_solibs fields.
7473 * progspace.h (struct program_space) <added_solibs,
7474 deleted_solibs>: New fields.
7475 (clear_program_space_solib_cache): Declare.
7476 * progspace.c (release_program_space): Call
7477 clear_program_space_solib_cache.
7478 (clear_program_space_solib_cache): New function.
7479 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7480 bpstat_stop_status. Use handle_solib_event.
7481 * breakpoint.c: Include gdb_regex.h.
7482 (print_solib_event): New function.
7483 (bpstat_print): Use print_solib_event.
7484 (bpstat_stop_status): Add special case for bp_shlib_event.
7485 (handle_solib_event): New function.
7486 (bpstat_what): Use handle_solib_event.
7487 (struct solib_catchpoint): New.
7488 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7489 (breakpoint_hit_catch_solib, check_status_catch_solib)
7490 (print_it_catch_solib, print_one_catch_solib)
7491 (print_mention_catch_solib, print_recreate_catch_solib): New
7492 functions.
7493 (catch_solib_breakpoint_ops): New global.
7494 (catch_load_or_unload, catch_load_command_1)
7495 (catch_unload_command_1): New functions.
7496 (internal_bkpt_check_status): Add special case for
7497 bp_shlib_event.
7498 (internal_bkpt_print_it): Use print_solib_event.
7499 (initialize_breakpoint_ops): Initialize
7500 catch_solib_breakpoint_ops.
7501 (_initialize_breakpoint): Register "catch load" and "catch
7502 unload".
7503 * breakpoint.h (handle_solib_event): Declare.
7504 * NEWS: Add entry for "catch load" and "catch unload".
7505
7506 2012-01-24 Tom Tromey <tromey@redhat.com>
7507
7508 * ada-lang.c: Include gdb_vecs.h.
7509 * charset.c: Include gdb_vecs.h.
7510 * tracepoint.h: Include gdb_vecs.h.
7511 * gdb_vecs.h: New file.
7512
7513 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7514
7515 * breakpoint.c (breakpoint_hit_catch_fork)
7516 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7517 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7518 * infrun.c (inferior_has_forked, inferior_has_vforked)
7519 (inferior_has_execd, inferior_has_called_syscall): Delete.
7520 (handle_syscall_event): Get syscall_number from the execution
7521 control state's wait status.
7522 (wait_for_inferior): Don't clear syscall_number.
7523
7524 2012-01-24 Pedro Alves <palves@redhat.com>
7525
7526 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7527 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7528 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7529 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7530 `ws' parameter.
7531 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7532 false for events other than TARGET_SIGNAL_TRAP.
7533 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7534 Add `ws' parameter.
7535 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7536 events other than TARGET_SIGNAL_TRAP.
7537 (tracepoint_breakpoint_hit): Add `ws' parameter.
7538 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7539 parameter.
7540 (bpstat_stop_status): Same.
7541 (pc_at_non_inline_function): Same.
7542 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7543 to pass the current event's waitstatus to bpstat_stop_status
7544 and pc_at_non_inline_function.
7545
7546 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7547
7548 Code cleanup.
7549 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7550 Update the function comment for it.
7551 (source_script_with_search): Call make_cleanup_fclose for STREAM.
7552 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7553 for STREAM.
7554
7555 2012-01-24 Pedro Alves <palves@redhat.com>
7556
7557 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7558 outside `bs->stop' block.
7559 (bpstat_what): Rework bp_shlib_event handling.
7560 (internal_bkpt_check_status): If the breakpoint is a
7561 bp_shlib_event, then set bs->stop and bs->print if
7562 stop_on_solib_events is set.
7563
7564 2012-01-24 Gary Benson <gbenson@redhat.com>
7565
7566 Delete #if 0'd out code.
7567 * stack.c (print_frame_label_vars): Remove.
7568 (catch_info): Likewise.
7569 (_initialize_stack): Remove "info catch" command.
7570 * NEWS: Mention the above.
7571
7572 2012-01-24 Pedro Alves <palves@redhat.com>
7573
7574 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
7575 it.
7576 (remote_notice_new_inferior): If the remote end doesn't support
7577 the multiprocess extensions, then the PID is fake.
7578 (add_current_inferior_and_thread): New.
7579 (remote_start_remote): Use it.
7580 (extended_remote_attach_1): Adjust.
7581 (extended_remote_create_inferior_1): Use
7582 add_current_inferior_and_thread.
7583
7584 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7585
7586 Fix watchpoints to be specific for each inferior.
7587 * breakpoint.c (watchpoint_in_thread_scope): Verify also
7588 current_program_space.
7589 * i386-nat.c (i386_inferior_data_cleanup): New.
7590 (i386_inferior_data_get): Replace variable inf_data_local by an
7591 inferior_data call.
7592 (i386_use_watchpoints): Initialize i386_inferior_data.
7593 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
7594 specific iterate_over_lwps.
7595
7596 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7597
7598 Fix watchpoints across inferior fork.
7599 * amd64-linux-nat.c (update_debug_registers_callback): Update the
7600 comment for linux_nat_iterate_watchpoint_lwps.
7601 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7602 linux_nat_iterate_watchpoint_lwps.
7603 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
7604 * i386-linux-nat.c (update_debug_registers_callback): Update the
7605 comment for linux_nat_iterate_watchpoint_lwps.
7606 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7607 linux_nat_iterate_watchpoint_lwps.
7608 (i386_linux_prepare_to_resume): New comment on Linux kernel.
7609 * i386-nat.c: Include inferior.h.
7610 (dr_mirror): Remove.
7611 (i386_inferior_data, struct i386_inferior_data)
7612 (i386_inferior_data_get): New.
7613 (i386_debug_reg_state): Use i386_inferior_data_get.
7614 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
7615 (i386_insert_watchpoint, i386_remove_watchpoint)
7616 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7617 (i386_remove_hw_breakpoint): New variable state, use
7618 i386_debug_reg_state instead of DR_MIRROR.
7619 * linux-nat.c (delete_lwp): New declaration.
7620 (num_lwps): Move here from downwards.
7621 (delete_lwp_cleanup): New.
7622 (linux_child_follow_fork): Create new child_lp, call
7623 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
7624 PTRACE_DETACH.
7625 (num_lwps): Move upwards.
7626 (linux_nat_iterate_watchpoint_lwps): New.
7627 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
7628 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
7629
7630 2012-01-24 Joel Brobecker <brobecker@adacore.com>
7631
7632 GDB 7.4 released.
7633
7634 2012-01-23 Pedro Alves <palves@redhat.com>
7635
7636 * top.c (caution): Rename to ...
7637 (confirm): ... this.
7638 (show_caution): Rename to ...
7639 (show_confirm): ... this.
7640 (quit_cover): Adjust.
7641 (init_main): Adjust.
7642 * top.h (caution): Rename to ...
7643 (confirm): ... this.
7644 * utils.c (internal_vproblem, defaulted_query): Adjust.
7645
7646 2012-01-23 Pedro Alves <palves@redhat.com>
7647
7648 * top.c (caution): Update comment.
7649 (execute_command): Don't consider the current value of `caution'.
7650
7651 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7652
7653 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
7654
7655 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
7656
7657 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7658 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
7659 * target.c (target_fileio_pwrite): Remove buffer address from
7660 debug output.
7661 (target_fileio_pread): Likewise.
7662
7663 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7664
7665 * NEWS: Document remote "info proc" and "generate-core-file".
7666
7667 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7668
7669 * gdbarch.sh (find_memory_regions): New callback.
7670 * gdbarch.c, gdbarch.h: Regenerate.
7671
7672 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
7673 callback before falling back to target method.
7674
7675 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
7676 (linux_target_install_ops): No longer install it.
7677
7678 * linux-tdep.c (linux_find_memory_regions): New function.
7679 (linux_init_abi): Install it.
7680
7681 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7682
7683 * gdbarch.sh (make_corefile_notes): New architecture callback.
7684 * gdbarch.c: Regenerate.
7685 * gdbarch.h: Likewise.
7686
7687 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
7688 before target_make_corefile_notes. If NULL is returned, the
7689 target does not support core file generation.
7690
7691 * linux-nat.c: Include "linux-tdep.h".
7692 (find_signalled_thread, find_stop_signal): Remove.
7693 (linux_nat_do_thread_registers): Likewise.
7694 (struct linux_nat_corefile_thread_data): Likewise.
7695 (linux_nat_corefile_thread_callback): Likewise.
7696 (iterate_over_spus): Likewise.
7697 (struct linux_spu_corefile_data): Likewise.
7698 (linux_spu_corefile_callback): Likewise.
7699 (linux_spu_make_corefile_notes): Likewise.
7700 (linux_nat_collect_thread_registers): New function.
7701 (linux_nat_make_corefile_notes): Replace contents by call to
7702 linux_make_corefile_notes passing linux_nat_collect_thread_registers
7703 as native-only callback.
7704
7705 * linux-tdep.h: Include "bfd.h".
7706 (struct regcache): Add forward declaration.
7707 (linux_collect_thread_registers_ftype): New typedef.
7708 (linux_make_corefile_notes): Add prototype.
7709 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
7710 "regset.h", and "elf-bfd.h".
7711 (find_signalled_thread, find_stop_signal): New functions.
7712 (linux_spu_make_corefile_notes): Likewise.
7713 (linux_collect_thread_registers): Likewise.
7714 (struct linux_corefile_thread_data): New data structure.
7715 (linux_corefile_thread_callback): New funcion.
7716 (linux_make_corefile_notes): Likewise.
7717 (linux_make_corefile_notes_1): Likewise.
7718 (linux_init_abi): Install it.
7719
7720 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7721
7722 * gdbarch.sh (info_proc): New callback.
7723 * gdbarch.c, gdbarch.h: Regenerate.
7724
7725 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
7726 before falling back to the target info_proc callback.
7727
7728 * linux-nat.c: Do not include "cli/cli-utils.h".
7729 (linux_nat_info_proc): Remove.
7730 (linux_target_install_ops): No longer install it.
7731
7732 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
7733 (read_mapping): New function.
7734 (linux_info_proc): Likewise.
7735 (linux_init_abi): Install it.
7736
7737 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7738
7739 * defs.h (enum info_proc_what): Moved here from linux-nat.c
7740 * infcmd.c: (info_proc_cmd_1): New function.
7741 (info_proc_cmd): New function, moved here from equivalent routine
7742 orignally in linux-nat.c.
7743 (info_proc_cmd_mappings): Likewise.
7744 (info_proc_cmd_stat): Likewise.
7745 (info_proc_cmd_status): Likewise.
7746 (info_proc_cmd_cwd): Likewise.
7747 (info_proc_cmd_cmdline): Likewise.
7748 (info_proc_cmd_exe): Likewise.
7749 (info_proc_cmd_all): Likewise.
7750 (_initialize_infcmd): Install "info proc" command and subcommands.
7751
7752 * target.h (struct target_ops): Add to_info_proc.
7753 (target_info_proc): Add prototype.
7754 * target.c (target_info_proc): New function.
7755
7756 * procfs.c (procfs_info_proc): Add prototype.
7757 (info_proc_cmd): Rename into ...
7758 (procfs_info_proc): ... this. Update argument types as appropriate
7759 for a to_info_proc implementation. Handle "what" argument.
7760 (procfs_target): Install procfs_info_proc.
7761 (_initialize_procfs): No longer install "info proc" command.
7762
7763 * linux-nat.c: (enum info_proc_what): Remove.
7764 (linux_nat_info_proc_cmd_1): Rename into ...
7765 (linux_nat_info_proc): ... this. Update argument types as appropriate
7766 for a to_info_proc implementation.
7767 (linux_nat_info_proc_cmd): Remove.
7768 (linux_nat_info_proc_cmd_mappings): Likewise.
7769 (linux_nat_info_proc_cmd_stat): Likewise.
7770 (linux_nat_info_proc_cmd_status): Likewise.
7771 (linux_nat_info_proc_cmd_cwd): Likewise.
7772 (linux_nat_info_proc_cmd_cmdline): Likewise.
7773 (linux_nat_info_proc_cmd_exe): Likewise.
7774 (linux_nat_info_proc_cmd_all): Likewise.
7775 (linux_target_install_ops): Install linux_nat_info_proc.
7776 (_initialize_linux_nat): No longer install "info proc" command
7777 and subcommands.
7778
7779 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7780
7781 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
7782 * config.in, configure: Regenerate.
7783
7784 * target.h (struct target_ops): Add to_fileio_readlink.
7785 (target_fileio_readlink): Add prototype.
7786 * target.c (target_fileio_readlink): New function.
7787
7788 * inf-child.c: Conditionally include <sys/param.h>.
7789 (inf_child_fileio_readlink): New function.
7790 (inf_child_target): Install it.
7791
7792 * remote.c (PACKET_vFile_readlink): New enum value.
7793 (remote_hostio_readlink): New function.
7794 (init_remote_ops): Install it.
7795 (_initialize_remote): Handle vFile:readlink packet type.
7796
7797 2012-01-20 Pedro Alves <palves@redhat.com>
7798 Ulrich Weigand <ulrich.weigand@linaro.org>
7799
7800 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
7801 * config.in, configure: Regenerate.
7802
7803 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
7804 to_fileio_pread, to_fileio_close, to_fileio_unlink.
7805 (target_fileio_open): Add prototype.
7806 (target_fileio_pwrite): Likewise.
7807 (target_fileio_pread): Likewise.
7808 (target_fileio_close): Likewise.
7809 (target_fileio_unlink): Likewise.
7810 (target_fileio_read_alloc): Likewise.
7811 (target_fileio_read_stralloc): Likewise.
7812
7813 * target.c: Include "gdb/fileio.h".
7814 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
7815 (default_fileio_target): New function.
7816 (target_fileio_open): Likewise.
7817 (target_fileio_pwrite): Likewise.
7818 (target_fileio_pread): Likewise.
7819 (target_fileio_close): Likewise.
7820 (target_fileio_unlink): Likewise.
7821 (target_fileio_close_cleanup): Likewise.
7822 (target_fileio_read_alloc_1): Likewise.
7823 (target_fileio_read_alloc): Likewise.
7824 (target_fileio_read_stralloc): Likewise.
7825
7826 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
7827 <fcntl.h>, and <unistd.h>.
7828 (inf_child_fileio_open_flags_to_host): New function.
7829 (inf_child_errno_to_fileio_error): Likewise.
7830 (inf_child_fileio_open): Likewise.
7831 (inf_child_fileio_pwrite): Likewise.
7832 (inf_child_fileio_pread): Likewise.
7833 (inf_child_fileio_close): Likewise.
7834 (inf_child_fileio_unlink): Likewise.
7835 (inf_child_target): Install to_fileio routines.
7836
7837 * remote.c (init_remote_ops): Install to_fileio routines.
7838
7839 2012-01-20 Pedro Alves <palves@redhat.com>
7840 Ulrich Weigand <ulrich.weigand@linaro.org>
7841
7842 * remote.c (remote_multi_process_p): Only check for multi-process
7843 protocol feature, do not check for extended protocol.
7844 (remote_supports_multi_process): Check for extended protocol here.
7845 (set_general_process): Likewise.
7846 (extended_remote_kill): Likewise.
7847 (remote_pid_to_str): Likewise.
7848 (remote_query_supported): Always query multiprocess mode.
7849
7850 2012-01-20 Pedro Alves <palves@redhat.com>
7851 Ulrich Weigand <ulrich.weigand@linaro.org>
7852
7853 * inferior.h (struct inferior): Add fake_pid_p.
7854 * inferior.c (exit_inferior_1): Clear fake_pid_p.
7855 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
7856 magic_null_ptid since the remote side doesn't provide a real PID.
7857
7858 2012-01-19 Tom Tromey <tromey@redhat.com>
7859
7860 * NEWS: Combine the two Python sections.
7861
7862 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7863
7864 * target.h (target_close): Update comment on the target's unpush state.
7865
7866 2012-01-19 Pedro Alves <palves@redhat.com>
7867
7868 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
7869 linux_nat_async directly instead of going through the target
7870 vector.
7871 * target.c (unpush_target): Close target after unpushing it, not
7872 before.
7873
7874 2012-01-19 Gary Benson <gbenson@redhat.com>
7875
7876 * mdebugread.c (sort_blocks): Replace integer constants with ones
7877 derived from FIRST_LOCAL_BLOCK.
7878
7879 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7880 Jan Kratochvil <jan.kratochvil@redhat.com>
7881
7882 PR gdb/9538
7883 * symfile.c (find_separate_debug_file): New function.
7884 (terminate_after_last_dir_separator): Likewise.
7885 (find_separate_debug_file_by_debuglink): Also try realpath.
7886 * configure.ac (AC_CHECK_FUNCS): Add lstat.
7887 * configure: Regenerate.
7888 * config.in: Regenerate.
7889
7890 2012-01-18 Doug Evans <dje@google.com>
7891
7892 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7893 (main.o): Remove rule.
7894 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7895 (--with-sysroot): Rewrite.
7896 * configure: Regenerate.
7897 * config.in: Regenerate.
7898
7899 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7900
7901 * parse.c (initialize_expout): New function.
7902 (reallocate_expout): Likewise.
7903 (parse_exp_in_context): Use `initialize_expout' and
7904 `reallocate_expout' when appropriate.
7905
7906 2012-01-18 Pedro Alves <palves@redhat.com>
7907
7908 * record.c (struct record_breakpoint, record_breakpoint_p)
7909 (record_breakpoints): New.
7910 (record_insert_breakpoint, record_remove_breakpoint): Manage
7911 record breakpoints list. Only remove breakpoints from the
7912 inferior if they had been inserted there in the first place.
7913
7914 2012-01-17 Doug Evans <dje@google.com>
7915
7916 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7917 if we know we don't have a file name to look for.
7918
7919 2012-01-17 Pedro Alves <palves@redhat.com>
7920
7921 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7922 the frame's stop reason is UNWIND_UNAVAILABLE.
7923
7924 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7925
7926 Fix compilation error.
7927 * m2-exp.y (yyerror): Use ANSI C prototype.
7928
7929 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7930
7931 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7932 (growbuf_by_size): Likewise.
7933 (yyerror): Likewise.
7934 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7935 (modblock): Remove variable (was #if 0'ed).
7936 (parse_number): Convert prototype from K&R to ANSI C.
7937 (yyerror): Likewise.
7938 * objc-exp.y (parse_number): Likewise.
7939 (yyerror): Likewise.
7940 (yylex): Remove #if 0'ed code.
7941 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7942 (yyerror): Likewise.
7943
7944 2012-01-16 Tom Tromey <tromey@redhat.com>
7945
7946 * NEWS: Add item.
7947 * symtab.h (compare_filenames_for_search): Declare.
7948 * symtab.c (compare_filenames_for_search): New function.
7949 (iterate_over_some_symtabs): Use it.
7950 * symfile.h (struct quick_symbol_functions)
7951 <map_symtabs_matching_filename>: Change spec.
7952 * psymtab.c (partial_map_symtabs_matching_filename): Use
7953 compare_filenames_for_search. Update for new spec.
7954 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7955 compare_filenames_for_search. Update for new spec.
7956 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7957
7958 2012-01-16 Tom Tromey <tromey@redhat.com>
7959
7960 PR python/13281:
7961 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7962 (struct main_type) <flag_flag_enum>: New field.
7963 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7964 * NEWS: Add entries.
7965 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7966 enums.
7967 * python/lib/gdb/printing.py (_EnumInstance): New class.
7968 (FlagEnumerationPrinter): Likewise.
7969
7970 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7971
7972 * breakpoint.c (create_sals_from_address_default): New function.
7973 (create_breakpoints_sal_default): Likewise.
7974 (decode_linespec_default): Likewise.
7975 (is_marker_spec): Removed.
7976 (strace_marker_p): New function.
7977 (init_breakpoint_sal): Using `strace_marker_p' instead of
7978 `is_marker_spec'.
7979 (create_breakpoint): Call method `create_sals_from_address' from
7980 breakpoint_ops, replacing code that created SALs conditionally
7981 on the type of the breakpoint. Call method `create_breakpoints_sal',
7982 replacing code that created breakpoints conditionally on the type
7983 wanted.
7984 (base_breakpoint_create_sals_from_address): New function.
7985 (base_breakpoint_create_breakpoints_sal): Likewise.
7986 (base_breakpoint_decode_linespec): Likewise.
7987 (base_breakpoint_ops): Add methods
7988 `base_breakpoint_create_sals_from_address',
7989 `base_breakpoint_create_breakpoints_sal' and
7990 `base_breakpoint_decode_linespec'.
7991 (bkpt_create_sals_from_address): New function.
7992 (bkpt_create_breakpoints_sal): Likewise.
7993 (bkpt_decode_linespec): Likewise.
7994 (tracepoint_create_sals_from_address): Likewise.
7995 (tracepoint_create_breakpoints_sal): Likewise.
7996 (tracepoint_decode_linespec): Likewise.
7997 (strace_marker_create_sals_from_address): Likewise.
7998 (strace_marker_create_breakpoints_sal): Likewise.
7999 (strace_marker_decode_linespec): Likewise.
8000 (strace_marker_breakpoint_ops): New variable.
8001 (addr_string_to_sals): Remove `marker_spec'. Call method
8002 `decode_linespec' from breakpoint_ops, replacing code that decoded
8003 an address string into a SAL. Use `strace_marker_p' instead of
8004 `marker_spec'.
8005 (strace_command): Decide whether we are dealing with a static
8006 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8007 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8008 * breakpoint.h (linespec_result, linespec_sals): New forward
8009 declarations.
8010 (breakpoint_ops) <create_sals_from_address>,
8011 <create_breakpoints_sal>, <decode_linespec>: New methods.
8012
8013 2012-01-14 Doug Evans <dje@google.com>
8014
8015 * NEWS: Update text for "maint set python print-stack".
8016 It is deprecated in gdb 7.4 and deleted in 7.5.
8017
8018 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8019
8020 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8021 including curses.h.
8022
8023 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8024
8025 * configure: Regenerate.
8026 * config.in: Regenerate.
8027
8028 2012-01-12 Keith Seitz <keiths@redhat.com>
8029
8030 PR mi/10586
8031 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8032 (ANONYMOUS_UNION_NAME): Define.
8033 (is_path_expr_parent): New function.
8034 (get_path_expr_parent): New function.
8035 (is_anonymous_child): New function.
8036 (create_child_with_value): If the child is anonymous and without
8037 a name, assign an object name to it.
8038 (c_describe_child): Use get_path_expr_parent to determine
8039 the parent expression.
8040 If there field represents an anonymous struct or union and
8041 has no name, set an appropriate display name and expression.
8042 (cplus_describe_child): Likewise.
8043
8044 2012-01-12 Pedro Alves <palves@redhat.com>
8045
8046 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8047 available when %ebp is found to be zero (outermost).
8048
8049 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8050
8051 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8052 an internal gdb_static_assert.
8053 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8054
8055 2012-01-11 Tom Tromey <tromey@redhat.com>
8056
8057 PR gdb/9598:
8058 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8059 catch" and "catch throw".
8060
8061 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8062
8063 * blockframe.c (block_innermost_frame): Start search from selected
8064 frame, if present, or otherwise the current frame.
8065
8066 * c-exp.y (variable): Update innermost_block for
8067 'block COLONCOLON NAME' clause.
8068 * m2-exp.y (variable): Ditto.
8069 * objc-exp.y (variable): Ditto.
8070
8071 2012-01-10 Tom Tromey <tromey@redhat.com>
8072
8073 PR python/13199:
8074 * python/python.c (finish_python_initialization): Set sys.argv.
8075
8076 2012-01-10 Doug Evans <dje@google.com>
8077
8078 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8079 "want_line_info". All callers updated.
8080 (dwarf_decode_lines_1): New function.
8081 (handle_DW_AT_stmt_list): Add function comment.
8082 New arg "want_line_info". All callers updated.
8083 (read_file_scope,read_type_unit_scope): Move comment from
8084 handle_DW_AT_stmt_list to here.
8085
8086 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8087
8088 Fix regression after libiberty/ update for GCC PR 6057 and others.
8089 * c-exp.y (operator) <OPERATOR DELETE>
8090 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8091 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8092 (make_builtin_type, make_name): New variable i, add gdb_assert.
8093 (operator) <OPERATOR NEW>: Update ARGS to 3.
8094 (operator) <OPERATOR DELETE>: Add trailing space.
8095 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8096 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8097 * cp-support.c (cp_canonicalize_string): Check NULL from
8098 cp_comp_to_string, call warning and return.
8099
8100 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8101
8102 Fix duplicate .o files after omitting libbfd.a.
8103 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8104 (SFILES): Add corelow.c.
8105 (COMMON_OBS): Add corelow.o.
8106 (ALLDEPFILES): Remove corelow.c.
8107 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8108 * config/alpha/alpha-osf3.mh: Likewise.
8109 * config/alpha/fbsd.mh: Likewise.
8110 * config/arm/nbsdaout.mh: Likewise.
8111 * config/arm/nbsdelf.mh: Likewise.
8112 * config/i386/i386gnu.mh: Likewise.
8113 * config/ia64/hpux.mh: Likewise.
8114 * config/ia64/linux.mh: Likewise.
8115 * config/m32r/linux.mh: Likewise.
8116 * config/m68k/linux.mh: Likewise.
8117 * config/mips/irix5.mh: Likewise.
8118 * config/mips/irix6.mh: Likewise.
8119 * config/pa/hpux.mh: Likewise.
8120 * config/pa/linux.mh: Likewise.
8121 * config/powerpc/aix.mh: Likewise.
8122 * config/sparc/linux.mh: Likewise.
8123 * config/sparc/linux64.mh: Likewise.
8124 * config/sparc/sol2.mh: Likewise.
8125 * config/vax/vax.mh: Likewise.
8126 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8127 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8128 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8129 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8130 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8131 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8132 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8133 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8134 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8135 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8136 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8137 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8138 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8139 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8140 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8141 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8142 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8143 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8144 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8145 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8146 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8147 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8148 corelow.o from gdb_target_obs.
8149 * corefile.c (core_target): Update the comment on NULL value.
8150 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8151 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8152 MATCHES. Drop YUMMY set on NULL.
8153 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8154 reclaim CORE_DATA if it is already NULL.
8155
8156 2012-01-09 Doug Evans <dje@google.com>
8157
8158 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8159 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8160
8161 2012-01-09 Keith Seitz <keiths@redhat.com>
8162
8163 * breakpoint.c (wrapper.h): Don't include.
8164
8165 2012-01-09 Keith Seitz <keiths@redhat.com>
8166
8167 * Makefile.in (SFILES): Remove wrapper.c.
8168 (HFILES_NO_SRCDIR): Remove wrapper.h.
8169 (COMMON_OBS): Remove wrapper.o.
8170 * cli/cli-interp.c: Don't inlude wrapper.h.
8171 * corelow.c: Likewise.
8172 (core_open): Replace gdb_target_find_new_threads with
8173 TRY_CATCH around target_find_new_threads.
8174 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8175 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8176 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8177 evaluate_expression.
8178 (varobj_set_value): Likewise for evaluate_expression and
8179 value_assign.
8180 (install_new_variable): Likewise for value_fetch_lazy.
8181 (adjust_value_for_child_access): Likewise for value_ind.
8182 (c_describe_child): Likewise for value_subscript and
8183 value_ind.
8184 (c_value_of_root): Likewise for evaluate_expression.
8185 * wrapper.c: Remove.
8186 * wrapper.h: Remove.
8187
8188 2012-01-09 Doug Evans <dje@google.com>
8189
8190 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8191 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8192 "abfd" args with "section". All callers updated.
8193 Error checking code moved ...
8194 (error_check_comp_unit_head): ... here. New function.
8195 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8196 Delete arg "abfd". New arg "type_offset". All callers updated.
8197 (create_debug_types_hash_table): Simplify by using
8198 read_and_check_type_unit_head.
8199
8200 * parser-defs.h (namecopy): Delete.
8201 * parse.c (namecopy, namecopy_size): Move into copy_name.
8202
8203 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8204
8205 Partially fix duplicate .o files after omitting libbfd.a.
8206 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8207 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8208 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8209 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8210 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8211 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8212 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8213
8214 2012-01-09 Pedro Alves <palves@redhat.com>
8215
8216 * MAINTAINERS: Update my email address.
8217
8218 2012-01-08 Doug Evans <dje@google.com>
8219
8220 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8221 n_type_units. Rename type_comp_units to all_type_units.
8222 All uses updated.
8223 (add_signatured_type_cu_to_table): Renamed from
8224 add_signatured_type_cu_to_list. All callers updated.
8225
8226 * gdbtypes.h (struct cplus_struct_type): Delete member
8227 nfn_fields_total. All uses removed.
8228
8229 2012-01-06 Doug Evans <dje@google.com>
8230
8231 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8232 to top of file.
8233 (dwarf2_find_comp_unit): Delete.
8234 (process_psymtab_comp_unit): Make result "void".
8235 Delete args buffer, info_ptr, buffer_size, and replace with
8236 "section". All callers updated.
8237 (dwarf2_build_psymtabs_hard): Simplify.
8238
8239 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8240 Thiago Jung Bauermann <bauerman@br.ibm.com>
8241
8242 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8243 before `struct gdb_exception'.
8244 * breakpoint.c (update_global_location_list_nothrow)
8245 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8246 * cp-abi.c (value_rtti_type): Likewise.
8247 * cp-support.c (cp_validate_operator): Likewise.
8248 * infrun.c (insert_exception_resume_breakpoint)
8249 (check_exception_resume, keep_going): Likewise.
8250 * mi-interp.c (mi_breakpoint_created)
8251 (mi_breakpoint_modified): Likewise.
8252 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8253 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8254 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8255
8256 2012-01-05 Doug Evans <dje@google.com>
8257
8258 * dwarf2read.c (statement_prologue): Delete, unused.
8259
8260 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8261 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8262
8263 * dwarf2read.c (comp_unit_header): Delete, unused.
8264
8265 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8266
8267 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8268 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8269
8270 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8271
8272 * infrun.c (normal_stop): Don't skip calling the normal_stop
8273 observers if the thread was doing a multi-step, but stopped for
8274 some reason other than stepping.
8275
8276 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8277
8278 * cli/cli-decode.h: Add comments.
8279 (CMD_LIST_AMBIGUOUS): Moved to command.h
8280 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8281 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8282 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8283 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8284 (add_com, add_com_alias, add_info, add_info_alias)
8285 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8286 declarations.
8287 * command.h: Add and adjust comments.
8288 (CMD_LIST_AMBIGUOUS): Moved here.
8289 (help_cmd, help_cmd_list): Delete declarations.
8290
8291 2012-01-04 Doug Evans <dje@google.com>
8292
8293 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8294 All callers updated.
8295 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8296 Replace all arguments with "per_cu". All callers updated.
8297
8298 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8299
8300 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8301 New arg "per_cu". All callers updated.
8302
8303 Delete #if 0'd out code.
8304 * language.c (binop_result_type): Delete.
8305 (simple_type, ordered_type, same_type, integral_type): Delete.
8306 (numeric_type, character_type, string_type, boolean_type): Delete.
8307 (float_type, structured_type): Delete.
8308 * language.h: Update.
8309
8310 2012-01-04 Tom Tromey <tromey@redhat.com>
8311
8312 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8313
8314 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8315
8316 * corefile.c (close_exec_file): Delete.
8317 (reopen_exec_file): Remove commented out code that seems related
8318 to close_exec_file, which is being deleted here.
8319 * inferior.h (close_exec_file): Delete.
8320 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8321
8322 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8323
8324 * ada-lang.c: #include "cli/cli-utils.h".
8325 (get_selections): Use skip_spaces.
8326 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8327 (catch_ada_exception_command_split): Use skip_spaces.
8328 (ada_decode_assert_location): Likewise.
8329
8330 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8331
8332 * linespec.c (decode_line_internal): Check for C++ or Java
8333 compound constructs only if the current language is C, C++
8334 or Java.
8335
8336 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8337
8338 Revert:
8339 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8340 Joel Brobecker <brobecker@adacore.com>
8341 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8342 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8343 3 times.
8344 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8345 fall through into AT_ENTRY_POINT.
8346 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8347 DUMMY_ADDR with it.
8348 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8349 PPC_INSN_SIZE skip to 3 times.
8350
8351 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8352
8353 * linespec.c (add_minsym): Preserve function descriptors.
8354
8355 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8356
8357 * breakpoint.c (all_locations_are_pending): Consider locations
8358 in program spaces executing during startup pending as well.
8359
8360 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8361
8362 Copyright year update in most files of the GDB Project.
8363
8364 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8365
8366 * copyright.sh: Delete.
8367 * copyright.py: Rewrite.
8368
8369 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8370
8371 * gnulib/extra/update-copyright: New file, imported from gnulib.
8372
8373 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8374
8375 * README (Copyright and License Notices): New section.
8376
8377 2012-01-03 Tom Tromey <tromey@redhat.com>
8378
8379 PR python/12533:
8380 * python/py-value.c (valpy_dereference, valpy_get_address
8381 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8382 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8383 (valpy_absolute, valpy_richcompare): Free intermediate values.
8384
8385 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8386
8387 * ada-lang.c: Reformat the copyright notice.
8388
8389 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8390
8391 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8392 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8393 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8394 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8395 Revert this part of:
8396 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8397 Build gdb directly from *.o files not using libgdb.a.
8398 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8399
8400 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8401
8402 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8403 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8404 Reformat the copyright header.
8405
8406 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8407
8408 Revert this part of:
8409 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8410 Remove the gdbtui binary.
8411 * gdb.c (main): Remove args.interpreter_p initialization.
8412 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8413 * main.h (struct captured_main_args): Remove interpreter_p.
8414
8415 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8416
8417 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8418
8419 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8420
8421 * top.c (print_gdb_version): Update copyright year.
8422
8423 2012-01-02 Yao Qi <yao@codesourcery.com>
8424
8425 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8426
8427 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8428 Joel Brobecker <brobecker@adacore.com>
8429
8430 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8431 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8432 3 times.
8433 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8434 fall through into AT_ENTRY_POINT.
8435 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8436 DUMMY_ADDR with it.
8437 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8438 PPC_INSN_SIZE skip to 3 times.
8439
8440 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8441
8442 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8443 the return value.
8444 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8445
8446 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8447
8448 Build gdb directly from *.o files not using libgdb.a.
8449 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8450 (COMMON_OBS): Remove solib-target.o.
8451 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8452 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8453 (LIBGDB_OBS, libgdb.a): Move it above.
8454 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8455 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8456 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8457 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8458 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8459 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8460 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8461 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8462 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8463 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8464 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8465 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8466 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8467 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8468 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8469 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8470 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8471 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8472 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8473 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8474 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8475 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8476 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8477 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8478 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8479 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8480 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8481
8482 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8483
8484 Remove the gdbtui binary.
8485 * .gitignore (/gdbtui): Remove.
8486 * Makefile.in (TUI): Remove.
8487 (SUBDIR_TUI_OBS): Remove tui-main.o.
8488 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8489 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8490 (tui-main.o): Remove.
8491 (all_object_files): Remove tui-main.o.
8492 * NEWS: New note for the gdbtui removal.
8493 * configure: Rebuilt.
8494 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8495 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8496 CONFIG_UNINSTALL respectively.
8497 * gdb.c (main): Remove args.interpreter_p initialization.
8498 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8499 * main.h (struct captured_main_args): Remove interpreter_p.
8500 * tui/tui-main.c: Remove.
8501
8502 2012-01-01 Doug Evans <dje@google.com>
8503
8504 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8505 (dwarf2_physname, read_import_statement): Ditto.
8506 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8507 (process_structure_scope read_subroutine_type): Ditto.
8508 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8509 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8510 (dwarf2_fetch_die_location_block): Ditto.
8511 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8512
8513 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8514 All callers updated.
8515 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8516 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8517 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8518
8519 * dwarf2read.c (load_cu): Move assert to more useful location.
8520
8521 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8522 All callers updated.
8523
8524 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8525 (dwarf2_elf_names): Minor reformat.
8526 (dwarf2_per_cu_data): Tweak comment.
8527 (dwarf2_read_section): Fix comment.
8528 (create_all_comp_units): Fix comment.
8529 (load_full_comp_unit): Fix comment.
8530 (process_full_comp_unit): Fix comment.
8531 (read_signatured_type): Fix comment.
8532
8533 For older changes see ChangeLog-2011.
8534 \f
8535 Local Variables:
8536 mode: change-log
8537 left-margin: 8
8538 fill-column: 74
8539 version-control: never
8540 coding: utf-8
8541 End:
This page took 0.228932 seconds and 3 git commands to generate.