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