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