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