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