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