1 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Tom Tromey <tromey@redhat.com>
4 * dwarf2read.c (read_common_block): Rewrite.
5 (new_symbol_full): Handle DW_TAG_common_block.
6 * f-lang.c (head_common_list, find_common_for_function):
8 * f-lang.h (struct common_entry, struct saved_f77_common,
9 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
10 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
11 BLANK_COMMON_NAME_LOCAL): Remove.
12 (struct common_block): New.
13 * f-valprint.c (list_all_visible_commons): Remove.
14 (info_common_command_for_block): New function.
15 (info_common_command): Use it.
16 * stack.c (iterate_over_block_locals): Special case for
18 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
20 (struct general_symbol_info) <value.common_block>: New field.
21 (SYMBOL_VALUE_COMMON_BLOCK): New define.
23 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
24 Tom Tromey <tromey@redhat.com>
26 * f-lang.c (allocate_saved_bf_node,
27 allocate_saved_function_node, allocate_saved_f77_common_node,
28 allocate_common_entry_node, tail_common_list, current_common,
29 saved_bf_list, saved_bf_list_end, current_head_bf_list,
30 tmp_bf_ptr, add_common_block, add_common_entry,
31 find_first_common_named, patch_common_entries,
32 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
33 global_remote_debug, get_bf_for_fcn, saved_function_list,
34 saved_function_list_end, clear_function_list, struct saved_fcn,
35 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
36 SAVED_BF, SAVED_BF_PTR): Remove.
37 * f-lang.h (tail_common_list, current_common,
38 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
39 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
40 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
41 real_main_c_value): Remove.
42 * f-valprint.c (there_is_a_visible_common_named): Remove.
44 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
46 * breakpoint.c (update_global_location_list): Ignore previous
47 duplicate status of a breakpoint when starting a new scan for
48 duplicate breakpoints.
50 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
52 * arm-tdep.c (arm_skip_prologue): Extending producer check to
53 support LLVM compiler.
55 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
57 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
58 * bfin-tdep.c (bfin_extract_return_value): Likewise.
59 (bfin_store_return_value): Likewise.
60 * cris-tdep.c (cris_store_return_value): Likewise.
61 (cris_extract_return_value): Likewise.
62 * h8300-tdep.c (h8300_extract_return_value): Likewise.
63 * hppa-tdep.c (hppa64_return_value): Likewise.
64 * lm32-tdep.c (lm32_store_return_value): Likewise.
65 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
66 * spu-tdep.c (spu_value_from_register): Likewise.
67 * vax-tdep.c (vax_return_value): Likewise.
69 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
71 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
72 parameter LEN to ssize_t.
74 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
76 * ada-valprint.c (ada_val_print_1): Eliminate single-use
78 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
80 (alpha_store_return_value): Likewise.
81 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
82 (amd64_push_arguments): Likewise.
83 * ax-gdb.c (gen_trace_static_fields): Likewise.
84 (gen_traced_pop): Likewise.
85 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
86 * breakpoint.c (update_watchpoint): Likewise.
87 * findcmd.c (parse_find_args): Use local variable for type
89 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
90 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
91 (h8300_store_return_value): Likewise.
92 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
93 Use i386_darwin_arg_type_alignment directly.
94 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
95 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
96 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
97 (m68hc11_extract_return_value): Likewise.
98 * mep-tdep.c (mep_push_dummy_call): Likewise.
99 * printcmd.c (float_type_from_length): Likewise.
100 * s390-tdep.c (s390_value_from_register): Likewise.
101 * stack.c (read_frame_arg): Likewise.
102 * tracepoint.c (encode_actions_1): Likewise.
103 * valops.c (value_fetch_lazy): Use local variable for type
104 instead of length. Use TYPE_LENGTH directly.
105 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
107 2012-09-25 Joel Brobecker <brobecker@adacore.com>
109 * symtab.c (skip_prologue_sal): Fix typo in comment.
111 2012-09-25 Joel Brobecker <brobecker@adacore.com>
113 * linespec.c (create_sals_line_offset): Fix typo in comment.
115 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
117 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
118 use plongest to print the array size.
120 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
122 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
123 * p-valprint.c (pascal_type_print_base): Likewise.
125 2012-09-22 Yao Qi <yao@codesourcery.com>
127 * remote.c (remote_get_trace_status): Remove setting default
128 values of fields of 'ts'.
130 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
132 Fix internal error on canonicalization of clang types.
133 * cp-name-parser.y (operator): New comment at make_operator call for
134 new, delete, new[] and delete[].
135 (exp): Use "sizeof ". Add new comment at make_operator call.
137 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
139 Fix disassemble without parameters in tailcall frame.
140 * cli/cli-cmds.c (disassemble_current_function): Use
141 get_frame_address_in_block.
143 2012-09-21 Tom Tromey <tromey@redhat.com>
145 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
146 TYPE_CODE_UNION>: Unify, removing a goto.
148 2012-09-21 Tom Tromey <tromey@redhat.com>
150 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
152 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
154 * findvar.c (read_frame_register_value): Mark the result value as
155 optimized out if any of the input registers have been optimized out.
157 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
159 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
161 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
163 * eval.c (evaluate_subexp_standard): Eliminate single-use
166 2012-09-21 Yao Qi <yao@codesourcery.com>
168 * mi/mi-interp.c: Declare mi_record_changed.
169 (mi_interpreter_init): Call observer_attach_record_changed.
170 (mi_record_changed): New.
171 * record.c (record_open): Call observer_notify_record_changed.
172 (cmd_record_stop): Call observer_notify_record_changed.
175 2012-09-20 Tom Tromey <tromey@redhat.com>
178 * python/python.c (finalize_python): New function.
179 (_initialize_python): Make a final cleanup.
181 2012-09-19 Doug Evans <dje@google.com>
183 * buildsym.h (param_symbols): Delete, unused.
184 (context_stack): Delete member "params", unused.
185 * buildsym.c (push_context): Update.
186 * dwarf2read.c (read_func_scope): Update.
188 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
190 * sh-tdep.c (sh_register_convert_to_virtual)
191 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
192 all callers. Just do a memcpy if not the little-endian case.
194 * h8300-tdep.c (h8300_gdbarch_init): Invoke
195 set_gdbarch_double_format and set_gdbarch_long_double_format.
196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
197 set_gdbarch_double_format.
198 * sh-tdep.c (sh_gdbarch_init): Likewise.
200 * NEWS: Document the removal of SH's 'regs' command.
201 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
204 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
206 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
209 2012-09-18 Joel Brobecker <brobecker@adacore.com>
211 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
212 language when iterating over symbols.
214 2012-09-18 Yao Qi <yao@codesourcery.com>
216 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
217 (mi_interpreter_init): Call observer_attach_tsv_created and
218 observer_attach_tsv_deleted.
219 (mi_tsv_created, mi_tsv_deleted): New.
220 * tracepoint.c (delete_trace_state_variable): Call
221 observer_notify_tsv_deleted.
222 (trace_variable_command): Call observer_notify_tsv_created.
223 (delete_trace_variable_command): Call
224 observer_notify_tsv_deleted.
225 (create_tsv_from_upload): Call observer_notify_tsv_created.
228 2012-09-18 Yao Qi <yao@codesourcery.com>
230 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
231 if traceframe changed.
232 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
234 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
235 (mi_interpreter_init): Hook mi_traceframe_changed to observer
236 'traceframe_changed'.
237 (mi_traceframe_changed): New.
238 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
240 * NEWS: Mention the new MI notification.
242 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
244 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
246 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
248 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
249 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
250 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
251 Extend code also for PaX support. Convert all gdb_assert to warning
254 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
256 Implement auto-load user conveniences suggested by Doug Evans.
257 * auto-load.c: Include top.h.
258 (file_is_auto_load_safe): New variable advice_printed. Print advice.
259 (_initialize_auto_load): New variable scripts_directory_help. Mention
260 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
261 scripts-directory. Document in online help one can use also files for
262 set auto-load safe-path.
263 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
264 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
266 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
268 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
271 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
273 * m2-valprint.c (m2_print_array_contents): Eliminate variable
274 ELTLEN and use TYPE_LENGTH directly.
275 (m2_val_print): Likewise.
276 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
277 variable LEN and use TYPE_LENGTH directly.
278 (m68k_svr4_store_return_value): Likewise.
279 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
280 ARGLEN and use TYPE_LENGTH directly.
281 (mips_o64_push_dummy_call): Likewise.
282 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
283 variable LENGTH and use TYPE_LENGTH directly.
284 (s390_function_arg_float): Likewise.
285 (s390_function_arg_integer): Likewise.
286 (s390_push_dummy_call): Likewise.
287 (s390_return_value_convention): Likewise.
288 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
289 TYPE_LENGTH directly.
291 2012-09-17 Yao Qi <yao@codesourcery.com>
293 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
294 Update comment to add_setshow_integer_cmd.
295 * cli/cli-setshow.c (do_set_command): Handle case
296 'var_zuinteger_unlimited'.
297 (do_show_command): Likewise.
298 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
299 for command 'remotetimeout'.
300 * command.h (enum var_types): New zuinteger_unlimited. Update comment
302 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
303 for command 'set listsize'.
305 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
307 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
310 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
313 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
314 (frame_pop): Drop also TAILCALL_FRAME frames.
315 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
317 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
318 Pedro Alves <palves@redhat.com>
321 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
322 function start if we are already at function start. Both for
323 reverse-next and for reverse-step into function without line number
326 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
328 Code cleanup - rename 'inline' depth to 'artificial' depth.
329 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
330 frame_id_artificial_p, extend the comment.
331 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
332 * frame.c (fprint_frame_id): Rename at a user, change debug output
333 text to "artificial=".
334 (skip_inlined_frames): Rename to ...
335 (skip_artificial_frames): ... here. Extend the comment.
336 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
337 (frame_id_inlined_p): Rename to ...
338 (frame_id_artificial_p): ... here. Rename at a user.
339 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
340 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
342 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
344 (frame_id_inlined_p): Rename to ...
345 (frame_id_artificial_p): ... here.
346 * inline-frame.c (inline_frame_this_id): Rename at a user.
348 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
350 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
351 vector variables using vector_size syntax rather than array
354 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
356 * valarith.c (value_concat): Replace unsafe ALLOCA with
359 2012-09-14 Pedro Alves <palves@redhat.com>
361 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
363 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
365 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
366 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
367 data-directory as appropriate.
369 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
371 * printcmd.c (ui_printf): Eliminate single-use variable
374 2012-09-14 Yao Qi <yao@codesourcery.com>
375 Pedro Alves <palves@redhat.com>
377 * valops.c (value_assign): Move observer_notify_target_changed
378 below to replace reinit_frame_cache.
380 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
382 Refactor Python "gdb" module into a proper Python package, by
383 introducing a new "_gdb" module for code implemented in C, and
384 using reload/__import__ instead of exec.
385 * python/lib/gdb/__init__.py: Import * from _gdb.
386 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
387 prompt_hook, sys.argv): Moved from finish_python_initialization.
388 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
389 (packages, auto_load_packages): New list and function replacing
390 module_dict and auto-loading code, using __file__ instead of
391 gdb.PYTHONDIR and reload/__import__ instead of exec.
392 (GdbSetPythonDirectory): Replacing function of the same name
393 from finish_python_initialization, using reload/__import__ instead
394 of exec, as well as call auto_load_packages.
395 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
396 gdb_python_module and not gdb_module.
397 * python/python-internal.h (gdb_python_module): Declare.
398 * python/python.c (gdb_python_module): New global.
399 (before_prompt_hook): Check gdb_python_module and not gdb_module.
400 (_initialize_python): Rename gdb module to _gdb.
401 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
402 (finish_python_initialization): Move Python code to
403 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
406 2012-09-13 Pedro Alves <palves@redhat.com>
408 * Makefile.in (COMMON_OBS): Add registry.o.
409 * registry.c: New file.
410 * registry.h (struct registry_container): Declare.
411 (registry_data_callback): New typedef.
412 (struct registry_data, struct registry_data_registration, struct
413 registry_data_registry): New type.
414 (register_data_with_cleanup, registry_alloc_data)
415 (registry_callback_adaptor, registry_clear_data)
416 (registry_container_free_data, registry_set_data, registry_data):
418 (DEFINE_REGISTRY): Refactor structures and functions as shims over
419 the new common structures and functions.
420 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
423 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
425 * remote.c (remote_insert_hw_breakpoint): Throw exception if
426 there is an error inserting hardware breakpoints and use the
427 error message from the target.
429 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
430 Catch this exception and print the error message contained within. Do not
431 print the default hardware error breakpoint message in this case.
433 2012-09-12 Doug Evans <dje@google.com>
435 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
438 2012-09-11 Doug Evans <dje@google.com>
440 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
441 .gdb_index symbol attributes if there are none.
443 2012-09-11 Joel Brobecker <brobecker@adacore.com>
445 * symtab.h (struct minimal_symbol) [has_size]: New field.
446 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
447 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
448 * printcmd.c (build_address_symbolic): Only filter out zero-sized
449 minimal symbols if the symbol's size is actually known.
450 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
451 of msymbol's size field. Add comment.
452 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
453 SET_MSYMBOL_SIZE to set the minimal symbol size.
455 2012-09-11 Joel Brobecker <brobecker@adacore.com>
457 * minsyms.c (install_minimal_symbols): Use memset to fill entire
458 minimal_symbol struct object, rather than setting some of its
461 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
463 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
464 passed_a_ptr flag when displaying typedef types.
466 2012-09-10 Joel Brobecker <brobecker@adacore.com>
468 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
469 the optimized_out flag is preserved.
471 2012-09-10 Anthony Green <green@moxielogic.com>
473 * moxie-tdep.c (moxie_analyze_prologue): Update for function
474 prologue changes in GCC.
476 2012-09-10 Keith Seitz <keiths@redhat.com>
479 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
480 (BOOL_CONVERSION_BADNESS): ... this.
481 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
482 (rank_one_type): Allow all boolean conversions
483 permitted by the standard.
485 2012-09-06 Tom Tromey <tromey@redhat.com>
487 * python/py-newobjfileevent.c (create_new_objfile_event_object):
488 Don't decref py_objfile.
490 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
492 Do not enable -lmcheck by default when Python is enabled with
494 * configure.ac: (python_has_threads) New variable, by testing
495 if WITH_THREAD is defined in Python.h.
496 Move --enable-lmcheck after --with-python.
497 Do not enable -lmcheck by default if python_has_threads=yes.
498 Warn if --enable-lmcheck and python_has_threads=yes.
499 * configure: Regenerate.
501 2012-08-31 Yao Qi <yao@codesourcery.com>
503 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
504 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
505 Update some commands.
506 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
507 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
510 2012-08-31 Yao Qi <yao@codesourcery.com>
512 * mi/mi-cmds.c (mi_cmds): Add 'static'.
514 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
516 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
518 2012-08-29 Doug Evans <dje@google.com>
520 * main.c (print_gdb_help): Remove reference to
521 --use-deprecated-index-sections.
523 2012-08-28 Yao Qi <yao@codesourcery.com>
525 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
526 (init_cmds): Call add_setshow_uinteger_cmd for command
527 'max-user-call-depth'.
528 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
529 declaration of 'max_user_call_depth'.
530 * frame.c (backtrace_limit): Add 'unsigned'.
531 (_initialize_frame): Call add_setshow_uinteger_cmd for command
533 * remote.c (remoteaddresssize): Add 'unsigned'.
534 (remote_address_masked): Change local var 'address_size' to
536 (_initialize_remote): Call add_setshow_uinteger_cmd for
538 * top.c (history_size): Add 'unsigned'.
539 (show_commands): Change local variables to 'unsigned'.
540 (set_history_size_command): Don't check history_size is negative.
541 Adjust the condition to call unstifle_history and set history_size
544 2012-08-28 Pedro Alves <palves@redhat.com>
548 * infcmd.c (default_print_one_register_info): New, factored out
549 from default_print_registers_info.
550 (default_print_registers_info): Use it. Mark value unavailable if
552 (registers_info): Print user registers with
553 default_print_one_register_info.
555 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
558 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
559 is not NULL before referencing it.
561 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
563 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
564 variable pc. Call find_pc_line instead of find_pc_overlay, restore
567 2012-08-27 Eli Zaretskii <eliz@gnu.org>
568 Jan Kratochvil <jan.kratochvil@redhat.com>
570 * auto-load.c (auto_load_objfile_script): Rename to ...
571 (auto_load_objfile_script_1): ... here, change variable realname to
572 parameter realname, document it, add return value, add variable retval.
573 (auto_load_objfile_script): New function.
575 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
577 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
578 followed by a whitespace.
580 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
583 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
584 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
585 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
588 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
590 * memattr.c (create_mem_region): Fix memory region overlapping
593 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
595 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
596 with xmalloc/cleanup.
597 * mt-tdep.c (mt_push_dummy_call): Likewise.
598 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
599 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
601 2012-08-24 Yao Qi <yao@codesourcery.com>
603 * jv-exp.y (push_expression_name): Add "." at the end of error
606 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
608 Document how to return from "python-interactive" to GDB.
609 * python/python.c (_initialize_python): Update documentation.
611 2012-08-23 Pedro Alves <palves@redhat.com>
613 * infrun.c (_initialize_infrun) <handle command help text>:
614 Mention that multiple signals are supported.
616 2012-08-23 Pedro Alves <palves@redhat.com>
618 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
621 2012-08-23 Yao Qi <yao@codesourcery.com>
623 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
624 (tfind_1): Don't call registers_changed, set_traceframe_num,
625 and clear_traceframe_info.
626 Call set_current_traceframe.
627 (set_current_traceframe): call set_traceframe_num.
629 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
631 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
632 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
634 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
636 Enable readline in Python in a GDB-specific way and block the
637 standard Python readline module to prevent conflicts with GDB.
638 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
639 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
640 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
641 * python/py-gdb-readline.c: New file.
642 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
644 * python/python.c (_initialize_python): Call
645 gdbpy_initialize_gdb_readline.
647 2012-08-22 Keith Seitz <keiths@redhat.com>
649 * defs.h: Include build-gnulib/config.h
651 2012-08-22 Joseph Myers <joseph@codesourcery.com>
653 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
656 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
658 Add a new "python-interactive" command that starts a standard
659 Python interactive prompt with "pi" as alias, and add "py" as
660 an alias to "python".
661 * NEWS: Mention the new commands.
662 * python/python.c (eval_python_command): New function.
663 (python_interactive_command): For "python-interactive" with
664 arguments, call eval_python_command. For "python-interactive"
665 without arguments, call PyRun_InteractiveLoop.
666 (_initialize_python): Add "python-interactive" command with
667 "pi" as alias, and add "py" as an alias to "python".
669 2012-08-22 Tom Tromey <tromey@redhat.com>
671 * defs.h (quit_flag): Don't declare.
672 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
673 (QUIT): Use new functions.
674 * event-top.c (command_handler): Use clear_quit_flag.
675 (handle_sigint): Use set_quit_flag.
676 (async_request_quit): Use check_quit_flag. Don't check
678 * exceptions.c (throw_exception): Use clear_quit_flag.
679 * main.c (captured_main): Use clear_quit_flag.
680 * python/python.c (clear_quit_flag, set_quit_flag)
681 (check_quit_flag): New functions.
682 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
684 * remote.c (remote_wait_as): Use check_quit_flag,
686 (remote_start_remote): Call QUIT.
687 * symfile.c (load_progress): Use check_quit_flag.
688 * top.c (command_loop): Use clear_quit_flag.
689 (command_line_input): Call QUIT.
690 * utils.c (quit_flag): Conditionally define.
691 (clear_quit_flag, check_quit_flag, set_quit_flag): New
693 (prompt_for_continue): Call QUIT. Use quit, not
695 * remote-mips.c (mips_expect_timeout): Call QUIT.
696 * monitor.c (monitor_expect): Call QUIT.
698 2012-08-22 Tom Tromey <tromey@redhat.com>
700 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
701 (async_init_signals): Update.
702 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
703 (SIGWINCH_HANDLER_BODY): Remove.
705 2012-08-22 Tom Tromey <tromey@redhat.com>
707 * jit.c (jit_object_close_impl): Don't malloc the objfile
709 * objfiles.c (allocate_objfile): Don't malloc the objfile
711 (free_objfile): Don't free the objfile name.
712 * objfiles.h (struct objfile) <name>: Update comment.
713 * symfile.c (reread_symbols): Fix reference counting. Don't
716 2012-08-22 Tom Tromey <tromey@redhat.com>
718 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
719 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
720 (symfile_bfd_open): Likewise.
721 (generic_load): Likewise.
722 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
723 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
725 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
727 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
728 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
729 (pmon_load_fast): Likewise.
730 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
731 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
732 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
733 (macho_check_dsym): Likewise.
734 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
735 (m32r_upload_command): Likewise.
736 * gdb_bfd.h (gdb_bfd_cache): Declare.
737 * gdb_bfd.c (struct gdb_bfd_data): New.
738 (gdb_bfd_cache): New global.
739 (struct gdb_bfd_cache_search): New.
740 (hash_bfd): New function.
742 (gdb_bfd_open): Likewise.
743 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
744 (gdb_bfd_unref): Remove closed BFD from cache. Update for
746 * exec.c (exec_file_attach): Use gdb_bfd_open.
747 * dsrec.c (load_srec): Use gdb_bfd_open.
749 2012-08-22 Tom Tromey <tromey@redhat.com>
751 * dwarf2read.c (macro_start_file): Update.
752 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
753 (free_objfile_per_bfd_storage): Destroy macro_cache.
754 (allocate_objfile, free_objfile): Update.
755 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
757 (struct objfile) <macro_cache>: Remove.
758 * symfile.c (reread_symbols): Update.
759 * symmisc.c (print_symbol_bcache_statistics): Update.
760 (print_objfile_statistics): Update.
762 2012-08-22 Tom Tromey <tromey@redhat.com>
764 * elfread.c (elf_symtab_read): Update.
765 * objfiles.c (objfiles_bfd_data): New global.
766 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
767 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
768 (allocate_objfile, free_objfile): Update.
769 (_initialize_objfiles): Initialize objfiles_bfd_data.
770 * objfiles.h (struct objfile_per_bfd_storage): New.
771 (struct objfile) <per_bfd>: New field.
772 <filename_cache>: Remove.
773 (set_objfile_per_bfd): Declare.
774 * symfile.c (reread_symbols): Update. Call
776 (allocate_symtab): Update.
777 * symmisc.c (print_symbol_bcache_statistics): Update.
778 (print_objfile_statistics): Print the size of the BFD obstack.
780 2012-08-22 Tom Tromey <tromey@redhat.com>
782 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
783 * gdb_bfd.c: Use DEFINE_REGISTRY.
784 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
785 (gdb_bfd_ref): Call bfd_alloc_data.
786 (gdb_bfd_unref): Call bfd_free_data.
788 2012-08-22 Tom Tromey <tromey@redhat.com>
790 * registry.h (struct registry_fields): New.
791 (REGISTRY_FIELDS): Redefine.
792 (REGISTRY_ACCESS_FIELD): New macro.
793 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
796 2012-08-22 Tom Tromey <tromey@redhat.com>
798 * auto-load.c (_initialize_auto_load): Update.
799 * solib-svr4.c (_initialize_svr4_solib): Update
800 * solib-dsbt.c (_initialize_dsbt_solib): Update.
801 * solib-darwin.c (_initialize_darwin_solib): Update.
802 * registry.h: New file.
803 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
804 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
805 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
806 (register_program_space_data_with_cleanup)
807 (register_program_space_data, program_space_alloc_data)
808 (clear_program_space_data, set_program_space_data)
809 (program_space_data): Don't declare.
810 * progspace.c: Use DEFINE_REGISTRY.
811 (struct program_space_data, struct
812 program_space_data_registration, struct
813 program_space_data_registry, program_space_data_registry)
814 (register_program_space_data_with_cleanup)
815 (register_program_space_data, program_space_alloc_data)
816 (program_space_free_data, clear_program_space_data)
817 (set_program_space_data, program_space_data): Remove.
818 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
819 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
820 (register_objfile_data_with_cleanup, register_objfile_data)
821 (clear_objfile_data, set_objfile_data, objfile_data): Don't
823 * objfiles.c: Use DEFINE_REGISTRY.
824 (struct objfile_data, struct objfile_data_registration, struct
825 objfile_data_registry, objfile_data_registry)
826 (register_objfile_data_with_cleanup, register_objfile_data)
827 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
828 (set_objfile_data, objfile_data): Remove.
829 (_initialize_objfiles): Update.
830 * jit.c (_initialize_jit): Update.
831 * inflow.c (_initialize_inflow): Update.
832 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
833 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
834 (register_inferior_data_with_cleanup, register_inferior_data)
835 (clear_inferior_data, set_inferior_data, inferior_data): Don't
837 * inferior.c: Use DEFINE_REGISTRY.
838 (struct inferior_data, struct inferior_data_registration, struct
839 inferior_data_registry, inferior_data_registry)
840 (register_inferior_data_with_cleanup, register_inferior_data)
841 (inferior_alloc_data, inferior_free_data clear_inferior_data)
842 (set_inferior_data, inferior_data): Remove.
843 * auxv.c (_initialize_auxv): Update.
844 * ada-lang.c (_initialize_ada_language): Update.
845 * breakpoint.c (_initialize_breakpoint): Update.
846 * i386-nat.c (i386_use_watchpoints): Update.
848 2012-08-22 Tom Tromey <tromey@redhat.com>
850 * exec.c (exec_close, exec_file_attach): Update.
851 (add_to_section_table): Initialize 'key' field.
852 (add_target_sections, remove_target_sections): Add 'key' argument.
853 * exec.h (add_target_sections, remove_target_sections): Add
855 * solib.c (solib_map_sections, update_solib_list, clear_solib)
856 (reload_shared_libraries_1): Update.
857 * target.h (struct target_section) <key>: New field.
859 2012-08-22 Tom Tromey <tromey@redhat.com>
861 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
863 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
865 * symfile.c (allocate_symtab): Use host_address_to_string
866 function instead of cast of pointer to long which is not
867 compatible with x86_64-w64-mingw32 build.
869 2012-08-19 Andrew Pinski <apinski@cavium.com>
871 * mips-tdep.c (is_octeon): New function.
872 (is_octeon_bbit_op): New function.
873 (mips32_next_pc): Handle Octeon's bbit instructions.
874 (mips32_instruction_has_delay_slot): Likewise.
876 2012-08-19 Andrew Pinski <apinski@cavium.com>
878 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
881 2012-08-19 Andrew Pinski <apinski@cavium.com>
883 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
885 2012-08-19 Keith Seitz <keiths@redhat.com>
888 * c-typeprint.c (c_type_print_varspec_prefix): Pass
889 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
891 2012-08-18 Eli Zaretskii <eliz@gnu.org>
893 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
894 The typo broke "make TAGS".
896 2012-08-17 Joel Brobecker <brobecker@adacore.com>
900 2012-08-17 Keith Seitz <keiths@redhat.com>
903 * gdbtypes.c (strict_type_checking): New variable.
904 (show_strict_type_checking): New function.
905 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
906 if strict type checking is disabled.
907 (_initialize_gdbtypes): Add "check type" subcommand.
908 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
910 2012-08-17 Keith Seitz <keiths@redhat.com>
912 * language.h (type_mode): Remove.
913 (type_check): Remove.
914 (struct language_defn): Remove la_type_check.
915 (STRICT_TYPE): Remove unused macro.
916 (type_error): Remove.
917 * language.c (set_type_range_case): Renamed to ...
918 (set_range_case): ... this. Update all callers.
919 Remove type_mode/type_check.
921 (type_check): Remove.
922 (show_type_command): Remove.
923 (set_type_command): Remove.
924 (language_info): Remove type checking output.
925 (type_error): Remove unused function.
926 (range_error): Update comment.
927 (unknown_language_defn): Remove la_type_check.
928 (auto_language_defn): Likewise.
929 (local_language_defn): Likewise.
930 (_initialize_language): Remove "check type" subcommand.
931 * ada-lang.c (ada_language_defn): Remove la_type_check.
932 * c-lang.c (c_language_defn): Likewise.
933 (cplus_language_defn): Likewise.
934 (asm_language_defn): Likewise.
935 (minimal_language_defn): Likewise.
936 * d-lang.c (d_language_defn): Likewise.
937 * f-lang.c (f_language_defn): Likewise.
938 * go-lang.c (go_language_defn): Likewise.
939 * jv-lang.c (java_language_defn): Likewise.
940 * m2-lang.c (m2_language_defn): Likewise.
941 * objc-lang.c (objc_language_defn): Likewise.
942 * opencl-lang.c (opencl_language_defn): Likewise.
943 * p-lang.c (pascal_language_defn): Likewise.
945 2012-08-16 Mike Frysinger <vapier@gentoo.org>
947 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
949 2012-08-16 Joel Brobecker <brobecker@adacore.com>
951 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
953 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
954 using the regache. Use ia64_hpux_get_register_from_save_state_t
955 to access the bsp and bspstore registers if not.
957 2012-08-16 Joel Brobecker <brobecker@adacore.com>
959 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
960 * breakpoint.c (detach_breakpoints): Change pid parameter into
961 a ptid. Adjust code accordingly.
962 * infrun.c (handle_inferior_event): Delete variable child_pid.
963 Update call to detach_breakpoints to pass the child ptid for
965 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
966 assert that inferior_ptid's lwp is zero.
967 (linux_handle_extended_wait): Update call to detach_breakpoints.
968 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
971 2012-08-16 Joel Brobecker <brobecker@adacore.com>
973 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
974 parent, only call detach_breakpoints if tts.tts_event ==
977 2012-08-16 Joel Brobecker <brobecker@adacore.com>
979 * dwarf2-frame.c (dwarf2_frame_cache): Use
980 get_frame_address_in_block instead of get_frame_pc as
981 the bound for executing the frame's FDE.
983 2012-08-16 Yao Qi <yao@codesourcery.com>
985 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
986 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
987 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
988 (c_type_print_varspec_suffix): Likewise.
989 * eval.c (evaluate_subexp_standard): Likewise.
990 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
991 (f_type_print_varspec_suffix): Likewise.
992 * gdbtypes.c (is_scalar_type): Likewise.
993 (recursive_dump_type): Likewise.
994 * infcall.c (value_arg_coerce): Likewise.
995 * m2-valprint.c (m2_val_print): Likewise.
996 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
997 (pascal_type_print_varspec_suffix): Likewise.
998 (pascal_type_print_base): Likewise.
999 * p-valprint.c (pascal_val_print): Likewise.
1000 (pascal_val_print): Likewise.
1001 * valops.c (value_slice): Likewise.
1002 * valprint.c (scalar_type_p): Likewise.
1003 * valarith.c (value_bitstring_subscript): Remove.
1004 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1005 Remove comment on TYPE_CODE_BITSTRING.
1007 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1008 TYPE_CODE_BITSTRING.
1010 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1013 2012-08-16 Yao Qi <yao@codesourcery.com>
1015 * tracepoint.c (trace_find_none_command): Remove.
1016 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1018 2012-08-16 Yao Qi <yao@codesourcery.com>
1020 * remote.c (handle_notification): Remove parameter 'length'.
1021 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1023 2012-08-15 Keith Seitz <keiths@redhat.com>
1025 * gdbtypes.c (opaque_type_resolution): Make static.
1026 Add missing comment.
1027 (overload_debug): Add missing comment.
1028 (show_opaque_type_resolution): Likewise.
1029 (show_overload_debug): Likewise.
1030 (print_bit_vector): Remove unnecessary forward declaration.
1031 (print_arg_types): Likewise.
1032 (dump_fn_fieldlists): Likewise.
1033 (print_cplus_stuff): Likewise.
1035 2012-08-15 Tom Tromey <tromey@redhat.com>
1037 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1038 (gdb_bfd_ref): Initialize new field.
1039 (gdb_bfd_unref): Unref the archive BFD.
1040 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1043 2012-08-15 Tom Tromey <tromey@redhat.com>
1046 * python/py-bpevent.c (create_breakpoint_event_object): Update
1048 * python/py-event.c (evpy_add_attribute): Update comment.
1049 * python/py-exitedevent.c (create_exited_event_object): Fix
1050 reference counting and error handling.
1051 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1052 Fix reference counting.
1053 * python/py-signalevent.c (create_signal_event_object): Fix
1054 reference counting and error handling.
1055 * python/py-stopevent.c (emit_stop_event): Fix reference
1057 * python/py-threadevent.c (get_event_thread): Return a
1059 * python/py-type.c (convert_field): Fix reference counting.
1061 2012-08-15 Tom Tromey <tromey@redhat.com>
1063 * dwarf2read.c (dwarf_decode_macro_bytes)
1064 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1067 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1069 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1070 stepi, nexti, finish, next, step, jump, and continue commands.
1071 * infrun.c (_initialize_infrun): Update help text for the handle
1074 2012-08-14 Doug Evans <dje@google.com>
1076 * gdbtypes.c (struct extra): Delete, unused.
1078 * gdbtypes.c: Whitespace cleanup.
1079 (address_space_name_to_int): Remove "extern" from definition.
1080 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1082 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1083 TYPE_POINTER_TYPE (type).
1085 2012-08-14 Gary Benson <gbenson@redhat.com>
1087 * solib-svr4.c (svr4_free_library_list): Use free_so.
1089 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1091 * .gitignore: Add go-exp.c.
1093 2012-08-13 Doug Evans <dje@google.com>
1095 * value.c (show_convenience): Tweak comment.
1096 (_initialize_values): Mention convenience functions in the help text
1097 for "show convenience".
1099 2012-08-13 Yao Qi <yao@codesourcery.com>
1101 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1102 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1104 * eval.c (evaluate_subexp_standard): Likewise.
1105 * expprint.c (print_subexp_standard): Likewise.
1106 (dump_subexp_body_standard): Likewise.
1107 * parse.c (operator_length_standard): Likewise.
1109 2012-08-13 Yao Qi <yao@codesourcery.com>
1111 * std-operator.def: Remove OP_BITSTRING.
1112 * breakpoint.c (watchpoint_exp_is_const): Update.
1113 * eval.c (evaluate_subexp_standard): Remove handling to
1115 * expprint.c (print_subexp_standard): Likewise.
1116 (dump_subexp_body_standard): Likewise.
1117 * parse.c (operator_length_standard): Likewise.
1118 * valops.c (value_bitstring): Remove.
1119 * value.h: Remove the declaration of 'value_bitstring'.
1121 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1123 * linespec.c (find_methods): Remove unused variables `i1' and
1125 (decode_line_full): Likewise for `arg_start'.
1127 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1129 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1130 (zlib_decompress_section): Likewise for `section_data'.
1131 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1133 2012-08-10 Doug Evans <dje@google.com>
1135 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1136 * NEWS: Document them.
1137 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1139 * python/py-type.c (typy_array_1): New function.
1140 (typy_array): Call it.
1141 (typy_vector): New function.
1142 (type_object_methods): Add "vector".
1143 * python/lib/gdb/function/__init__.py: New file.
1144 * python/lib/gdb/function/strfns.py: New file.
1146 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1148 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1149 for TYPE_FIELD_BITPOS.
1150 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1152 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1155 * common/vec.h (VEC_merge): Define.
1156 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1157 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1158 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1159 * completer.c: Include gdb_signals.h.
1160 (signal_completer): Define.
1161 * completer.h (signal_completer): Add prototype.
1162 * infcmd.c (_initialize_infcmd): Assign the command
1163 completer for "signal" to handle_completer.
1164 * infrun.c: Include completer.h.
1165 (handle_completer): Define.
1166 (_initialize_infrun): Declare a new local variable c. Store the
1167 result of add_com("handle") to it. Assign the command
1168 completer for "handle" to handle_completer.
1170 2012-08-09 Yao Qi <yao@codesourcery.com>
1172 * cli/cli-decode.c (set_cmd_prefix): New.
1173 (lookup_cmd_for_prefixlist): New.
1174 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1175 of each cmd_list_element in *prefixlist.
1176 (add_setshow_cmd_full): set_cmd_prefix.
1177 (add_alias_cmd): Likewise.
1178 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1179 Declare 'auto_boolean_enums'.
1180 * cli/cli-setshow.c: Include "observer.h".
1181 (notify_command_param_changed_p): New.
1182 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1184 (do_setshow_command): Split it to ...
1185 (do_set_command, do_show_command): ... them. New.
1186 (do_set_command): Call observer_notify_command_param_changed if
1187 notify_command_param_changed_p returns true.
1188 (cmd_show_list): Caller update.
1189 * auto-load.c (set_auto_load_cmd): Likewise.
1190 * remote.c (show_remote_cmd): Likewise.
1191 * cli/cli-setshow.h: Update declarations.
1192 * top.c (execute_command): Call do_set_command and do_show_command.
1194 * NEWS: Mention new MI notification.
1195 * mi/mi-interp.c: Declare mi_command_param_changed.
1196 (mi_interpreter_init): Attach mi_command_param_changed to
1197 observer command_param_changed.
1198 (mi_command_param_changed): New.
1199 Remove mi_suppress_breakpoint_notifications.
1200 Define global variable mi_suppress_notification.
1201 (mi_breakpoint_created): Update.
1202 (mi_breakpoint_deleted): Likewise.
1203 (mi_breakpoint_modified): Likewise.
1204 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1205 'gdb-set' and set mi_suppress_notification.
1206 * mi/mi-main.h: (mi_suppress_notification): New struct.
1208 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1209 Jan Kratochvil <jan.kratochvil@redhat.com>
1211 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1213 2012-08-09 Yao Qi <yao@codesourcery.com>
1215 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1216 (skiplist): Move it to skip.c.
1217 (init_cmd_lists): Remove code setting enablebreaklist and
1219 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1220 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1222 * gdbcmd.h: Likewise.
1223 * skip.c (_initialize_step_skip): Move 'skiplist' from
1226 2012-08-09 Yao Qi <yao@codesourcery.com>
1228 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1229 * gnu-nat.c, symfile.c: Likewise.
1231 2012-08-08 Aaron Gamble <agamble@google.com>
1233 * utils.c (prompt_for_continue_wait_time): New static global.
1234 (make_command_stats_cleanup): Initialize it.
1235 (report_command_stats): Subtract time waiting for user.
1236 (prompt_for_continue): Track time waiting for user.
1237 (defaulted_query): Track time waiting for user.
1239 2012-08-08 Doug Evans <dje@google.com>
1241 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1243 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1244 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1245 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1246 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1247 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1248 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1250 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1251 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1252 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1253 (dump_prefix_expression): Handle OP_TYPE.
1255 2012-08-08 Keith Seitz <keiths@redhat.com>
1257 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1260 2012-08-08 Doug Evans <dje@google.com>
1262 * linux-thread-db.c: #include "gdb_vecs.h".
1263 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1265 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1266 (thread_db_load_search): Use a vector to iterate over path elements.
1267 Handle text appearing after "$pdir".
1269 * gdb_string.h: Moved to ...
1270 * common/gdb_string.h: ... here.
1271 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1272 gdb_string.h and gdb_assert.h.
1274 2012-08-08 Yao Qi <yao@codesourcery.com>
1276 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1277 (tic6x_value_to_register): Likewise.
1278 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1279 and set_gdbarch_value_to_register.
1281 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1282 Jean-Marc Saffroy <saffroy@gmail.com>
1285 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1286 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1287 * gcore.c (gcore_create_callback): New function comment. Add modified
1288 parameter. Only write modified regions. Set SEC_READONLY exactly
1289 according to MODIFIED.
1290 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1291 the passed modified value to FUNC.
1292 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1293 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1294 first. New variables modified and has_anonymous. Parse the lines of
1295 smaps file. Add the passed MODIFIED value to FUNC.
1296 * procfs.c (find_memory_regions_callback): Add the passed modified
1299 2012-08-06 Tom Tromey <tromey@redhat.com>
1301 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1302 (dwarf2_frame_cache): Use it.
1303 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1304 cache initialization constraint.
1306 2012-08-06 Tom Tromey <tromey@redhat.com>
1309 * varobj.c (update_dynamic_varobj_children): Don't call
1312 2012-08-06 Tom Tromey <tromey@redhat.com>
1315 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1317 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1319 * NEWS: New entry for 'cd' default parameters.
1320 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1322 2012-08-03 Tom Tromey <tromey@redhat.com>
1324 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1327 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1329 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1330 to attempting lseek/write.
1331 (inf_child_fileio_pread): Likewise for pread.
1333 2012-08-02 Yao Qi <yao@codesourcery.com>
1335 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1336 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1337 add_setshow_zinteger_cmd.
1338 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1339 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1340 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1341 instead of add_setshow_zinteger_cmd.
1342 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1343 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1344 instead of add_setshow_zinteger_cmd.
1345 * frame.c (frame_debug): Add 'unsigned'.
1346 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1347 add_setshow_zinteger_cmd.
1348 * frame.h: Update the declaration of 'frame_debug'.
1349 * gdbtypes.c (overload_debug): Add 'unsigned'.
1350 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1351 add_setshow_zinteger_cmd.
1352 * inferior.h: Update declaration of 'debug_infrun'.
1353 * infrun.c (debug_infrun): Add 'unsigned'.
1354 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1355 add_setshow_zinteger_cmd.
1356 * jit.c (jit_debug): Add 'unsigned'.
1357 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1358 add_setshow_zinteger_cmd.
1359 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1360 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1361 instead of add_setshow_zinteger_cmd.
1362 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1363 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1364 add_setshow_zinteger_cmd.
1365 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1366 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1367 instead of add_setshow_zinteger_cmd.
1368 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1369 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1370 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1371 intead of add_setshow_zinteger_cmd.
1372 * mips-tdep.c (mips_debug): Add 'unsigned'.
1373 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1374 instead of add_setshow_zinteger_cmd.
1375 * monitor.c (monitor_debug): Add 'unsigned'.
1376 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1377 add_setshow_zinteger_cmd.
1378 * observer.c (observer_debug): Add 'unsigned'.
1379 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1380 add_setshow_zinteger_cmd.
1381 * parse.c (expressiondebug): Add 'unsigned'.
1382 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1383 add_setshow_zinteger_cmd.
1384 * record.c (record_debug): Add 'unsigned'.
1385 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1386 add_setshow_zinteger_cmd.
1387 * record.h: Update the declaration of 'record_debug'.
1388 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1389 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1390 add_setshow_zinteger_cmd.
1391 * serial.c (global_serial_debug_p): Add 'unsigned'.
1392 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1393 add_setshow_zinteger_cmd.
1394 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1395 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1396 add_setshow_zinteger_cmd.
1397 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1398 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1399 add_setshow_zinteger_cmd.
1400 * target.c (targetdebug): Add 'unsigned'.
1401 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1402 add_setshow_zinteger_cmd.
1403 * valops.c (overload_debug): Add 'unsigned'.
1404 * varobj.c (varobjdebug): Add 'unsigned'.
1405 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1406 add_setshow_zinteger_cmd.
1407 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1408 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1409 instead of add_setshow_zinteger_cmd.
1411 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1412 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1413 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1414 instead of add_setshow_zinteger_cmd.
1415 * gdbarch.c, gdbarch.h: Re-generated.
1417 2012-08-02 Yao Qi <yao@codesourcery.com>
1419 * nto-tdep.c: Don't include cli/cli-decode.h and
1421 (_initialize_nto_tdep): Remove.
1422 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1424 Remove macro nto_internal_debugging.
1426 2012-08-01 Richard Henderson <rth@redhat.com>
1428 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1429 (mep-*-*) [gdb_target_obs]: Likewise.
1431 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1433 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1434 linux_get_siginfo_type.
1436 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1438 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1440 (call_function_by_hand) <ON_STACK>: Call write_memory with
1441 gdbarch_breakpoint_from_pc, if possible.
1442 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1445 2012-07-31 Yao Qi <yao@codesourcery.com>
1447 * tracepoint.c: Add 'static' for some variables.
1449 2012-07-31 Yao Qi <yao@codesourcery.com>
1451 * go32-nat.c: Declare _initialize_go32_nat.
1452 * ser-go32.c: Declare _initialize_ser_dos.
1453 * top.c (do_chdir_cleanup): Add 'static'.
1455 2012-07-30 Keith Seitz <keiths@redhat.com>
1457 * linespec.c (linespec_lex_number): A number followed
1458 by quotes is a valid number, too.
1460 2012-07-30 Tom Tromey <tromey@redhat.com>
1462 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1464 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1466 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1467 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1469 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1471 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1472 invalid or reevaluated to prevent prevent references to possibly
1473 delete'd type objects being left in the varobj.
1475 2012-07-27 Tom Tromey <tromey@redhat.com>
1476 Jan Kratochvil <jan.kratochvil@redhat.com>
1478 * copying.awk: Print buffer-read-only and vi ro markers.
1479 * copying.c: Rebuild.
1480 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1481 * gdbarch.c, gdbarch.h: Rebuild.
1482 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1483 buffer-read-only and vi ro markers.
1484 * features/arm-with-iwmmxt.c: Rebuild.
1485 * features/arm-with-m-fpa-layout.c: Rebuild.
1486 * features/arm-with-m-vfp-d16.c: Rebuild.
1487 * features/arm-with-m.c: Rebuild.
1488 * features/arm-with-neon.c: Rebuild.
1489 * features/arm-with-vfpv2.c: Rebuild.
1490 * features/arm-with-vfpv3.c: Rebuild.
1491 * features/i386/amd64-avx-linux.c: Rebuild.
1492 * features/i386/amd64-avx.c: Rebuild.
1493 * features/i386/amd64-linux.c: Rebuild.
1494 * features/i386/amd64.c: Rebuild.
1495 * features/i386/i386-avx-linux.c: Rebuild.
1496 * features/i386/i386-avx.c: Rebuild.
1497 * features/i386/i386-linux.c: Rebuild.
1498 * features/i386/i386-mmx-linux.c: Rebuild.
1499 * features/i386/i386-mmx.c: Rebuild.
1500 * features/i386/i386.c: Rebuild.
1501 * features/i386/x32-avx-linux.c: Rebuild.
1502 * features/i386/x32-avx.c: Rebuild.
1503 * features/i386/x32-linux.c: Rebuild.
1504 * features/i386/x32.c: Rebuild.
1505 * features/mips-dsp-linux.c: Rebuild.
1506 * features/mips-linux.c: Rebuild.
1507 * features/mips64-dsp-linux.c: Rebuild.
1508 * features/mips64-linux.c: Rebuild.
1509 * features/rs6000/powerpc-32.c: Rebuild.
1510 * features/rs6000/powerpc-32l.c: Rebuild.
1511 * features/rs6000/powerpc-403.c: Rebuild.
1512 * features/rs6000/powerpc-403gc.c: Rebuild.
1513 * features/rs6000/powerpc-405.c: Rebuild.
1514 * features/rs6000/powerpc-505.c: Rebuild.
1515 * features/rs6000/powerpc-601.c: Rebuild.
1516 * features/rs6000/powerpc-602.c: Rebuild.
1517 * features/rs6000/powerpc-603.c: Rebuild.
1518 * features/rs6000/powerpc-604.c: Rebuild.
1519 * features/rs6000/powerpc-64.c: Rebuild.
1520 * features/rs6000/powerpc-64l.c: Rebuild.
1521 * features/rs6000/powerpc-7400.c: Rebuild.
1522 * features/rs6000/powerpc-750.c: Rebuild.
1523 * features/rs6000/powerpc-860.c: Rebuild.
1524 * features/rs6000/powerpc-altivec32.c: Rebuild.
1525 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1526 * features/rs6000/powerpc-altivec64.c: Rebuild.
1527 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1528 * features/rs6000/powerpc-cell32l.c: Rebuild.
1529 * features/rs6000/powerpc-cell64l.c: Rebuild.
1530 * features/rs6000/powerpc-e500.c: Rebuild.
1531 * features/rs6000/powerpc-e500l.c: Rebuild.
1532 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1533 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1534 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1535 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1536 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1537 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1538 * features/rs6000/powerpc-vsx32.c: Rebuild.
1539 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1540 * features/rs6000/powerpc-vsx64.c: Rebuild.
1541 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1542 * features/rs6000/rs6000.c: Rebuild.
1543 * features/s390-linux32.c: Rebuild.
1544 * features/s390-linux32v1.c: Rebuild.
1545 * features/s390-linux32v2.c: Rebuild.
1546 * features/s390-linux64.c: Rebuild.
1547 * features/s390-linux64v1.c: Rebuild.
1548 * features/s390-linux64v2.c: Rebuild.
1549 * features/s390x-linux64.c: Rebuild.
1550 * features/s390x-linux64v1.c: Rebuild.
1551 * features/s390x-linux64v2.c: Rebuild.
1552 * features/tic6x-c62x-linux.c: Rebuild.
1553 * features/tic6x-c62x.c: Rebuild.
1554 * features/tic6x-c64x-linux.c: Rebuild.
1555 * features/tic6x-c64x.c: Rebuild.
1556 * features/tic6x-c64xp-linux.c: Rebuild.
1557 * features/tic6x-c64xp.c: Rebuild.
1559 2012-07-27 Tom Tromey <tromey@redhat.com>
1561 * c-exp.y (classify_name): Avoid assignment in condition.
1563 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1565 * amd64-windows-tdep.c: Include "frame.h".
1566 (amd64_windows_skip_trampoline_code): New function.
1567 (amd64_windows_init_abi): Add trampoline registration.
1569 2012-07-27 Yao Qi <yao@codesourcery.com>
1571 * tracepoint.c (cur_traceframe_number): Remove.
1572 (set_tfile_traceframe): Remove.
1573 (tfile_trace_find, tfile_fetch_registers): Update callers.
1574 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1575 (tfile_open, tfile_trace_find): Likewise.
1577 2012-07-27 Yao Qi <yao@codesourcery.com>
1579 * thread.c (switch_to_thread): Don't call registers_changed.
1581 2012-07-26 Tom Tromey <tromey@redhat.com>
1583 * Makefile.in (SFILES): Remove objc-exp.y.
1584 (YYFILES): Remove objc-exp.c.
1585 (YYOBJ): Remove objc-exp.o.
1586 (local-maintainer-clean): Don't mention objc-exp.c.
1587 * c-exp.y: Include objc-lang.h.
1588 (%union) <class>: New field.
1589 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1590 (exp): Clone subscript production for OBJC_LBRAC. Add various
1591 Objective C productions.
1592 (msglist, msgarglist, msgarg): New productions.
1593 (array_mod, func_mod, operator): Clone productions for
1595 (parse_string_or_char): Handle '@' strings.
1596 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1597 (classify_name): Check la_name_of_this. Recognize ObjC class
1599 * objc-exp.y: Remove.
1600 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1601 * objc-lang.h (objc_parse, objc_error): Don't declare.
1603 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1605 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1607 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1609 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1612 2012-07-26 Tom Tromey <tromey@redhat.com>
1614 * copying.c: Rebuild.
1615 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1618 2012-07-26 Tom Tromey <tromey@redhat.com>
1620 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1622 (print_objfile_statistics): Likewise.
1623 (maintenance_print_symbols): Likewise.
1624 (maintenance_print_msymbols): Likewise.
1625 (maintenance_print_objfiles): Likewise.
1626 * psymtab.c (print_partial_symbols): Call QUIT.
1627 (maintenance_print_psymbols): Likewise. Don't modify
1629 * copying.c (show_copying_command): Don't modify immediate_quit.
1630 (show_warranty_command): Likewise.
1631 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1633 2012-07-26 Keith Seitz <keiths@redhat.com>
1635 * linespec.c (linespec_lexer_lex_number): The input
1636 is also a valid number if the next character is a comma
1639 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1641 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1644 2012-07-26 Tristan Gingold <gingold@adacore.com>
1646 * machoread.c: Include gdb_bfd.h.
1648 2012-07-26 Tristan Gingold <gingold@adacore.com>
1650 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1653 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1655 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1657 (dwarf2_evaluate_loc_desc): Likewise.
1658 (dwarf2_loc_desc_needs_frame): Likewise.
1659 (locexpr_describe_location_1): Likewise.
1660 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1662 (struct dwarf2_loclist_baton): Likewise.
1663 * dwarf2read.c (struct dwarf_block): Likewise.
1664 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1665 (decode_locdesc): Expand SIZE and I to size_t.
1667 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1669 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1671 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1673 * doublest.c (convert_doublest_to_floatformat): If the exponent
1674 is too small, treat the value as zero. If the exponent is too
1675 large, treat the value as infinity.
1677 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1679 * configure.ac: Add --enable-lmcheck configure option.
1680 * configure: Regenerate.
1682 2012-07-25 Tom Tromey <tromey@redhat.com>
1684 * NEWS: Mention maint info bfds.
1685 * gdb_bfd.c (all_bfds): New global.
1686 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1687 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1690 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1692 * configure.tgt: Add v850*-*-rtems*.
1694 2012-07-25 Tom Tromey <tromey@redhat.com>
1696 * macrotab.c (macro_bcache_str): Remove cast.
1698 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1700 * linespec.c (linespec_lexer_lex_number): Update comments,
1701 change the return and add check to make sure the input is
1702 the decimal numbers.
1703 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1704 false, call linespec_lexer_lex_string.
1706 2012-07-24 Tom Tromey <tromey@redhat.com>
1708 * symfile.c (symbol_file_add): Don't open BFD twice.
1710 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1712 * breakpoint.c (create_breakpoint): Store condition for pending
1715 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1717 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1718 (m68k_return_value): Handle complex types like structures.
1719 (m68k_svr4_return_value): Likewise.
1721 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1723 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1724 parameters to bfd_get_section_name.
1726 2012-07-24 Yao Qi <yao@codesourcery.com>
1728 * cli/cli-setshow.c: Handle case 'var_uinteger'
1729 and 'var_zuninteger' together. Handle case 'var_integer' and
1730 'var_zinteger' together.
1732 2012-07-23 Keith Seitz <keiths@redhat.com>
1734 * linespec.c (convert_linespec_to_sal): Don't add
1735 any symbols to the result vector if symbol_to_sal
1738 2012-07-23 Keith Seitz <keiths@redhat.com>
1740 * linespec.c (decode_objc): Record the function name
1743 2012-07-23 Tom Tromey <tromey@redhat.com>
1745 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1747 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1748 (map_vmap): Acquire a reference to the BFD.
1750 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1752 * p-valprint.c (pascal_object_print_value): Replace potentially
1753 unsafe alloca with xmalloc/xfree.
1754 * valops.c (search_struct_method): Likewise.
1756 2012-07-23 Tom Tromey <tromey@redhat.com>
1758 * solib-svr4.c (enable_break): Update.
1759 * bfd-target.h (target_bfd_reopen): Update documentation.
1761 2012-07-23 Tom Tromey <tromey@redhat.com>
1763 * symfile.c (separate_debug_file_exists): Update.
1764 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1765 (reread_symbols): Update.
1766 * elfread.c (build_id_verify): Update.
1767 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1768 bfd_open_maybe_remote.
1770 2012-07-23 Tom Tromey <tromey@redhat.com>
1772 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1774 2012-07-23 Tom Tromey <tromey@redhat.com>
1776 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1778 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1780 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1781 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1783 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1784 * objfiles.c (allocate_objfile): Acquire a new reference.
1785 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1786 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1787 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1788 a cleanup for 'nbfd'.
1789 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1791 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1792 make a cleanup for 'abfd'.
1793 (symbol_file_add): Make a BFD cleanup.
1795 2012-07-23 Tom Tromey <tromey@redhat.com>
1797 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1798 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1799 * corelow.c (core_open): Use gdb_bfd_fopen.
1800 * dsrec.c (load_srec): Use gdb_bfd_openr.
1801 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1802 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1803 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1804 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1805 (gdb_bfd_fdopenr): New functions.
1806 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1807 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1808 (gdb_bfd_fdopenr): Declare.
1809 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1810 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1811 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1812 gdb_bfd_openr_next_archived_file.
1813 (macho_check_dsym): Use gdb_bfd_openr.
1814 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1815 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1816 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1817 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1819 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1820 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1821 gdb_bfd_openr_next_archived_file.
1822 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1824 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1826 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1827 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1828 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1829 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1830 (symfile_bfd_open): Use gdb_bfd_fopen.
1831 (generic_load): Use gdb_bfd_openr.
1832 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1834 2012-07-23 Tom Tromey <tromey@redhat.com>
1836 * bfd-target.c (target_bfd_reopen): Update.
1837 * cli/cli-dump.c (bfd_openr_with_cleanup)
1838 (bfd_openw_with_cleanup): Update.
1839 * corelow.c (core_open): Update.
1840 * dsrec.c (load_srec): Update.
1841 * exec.c (exec_file_attach): Update.
1842 * gcore.c (create_gcore_bfd): Update.
1843 * gdb_bfd.c (gdb_bfd_ref): Return void.
1844 (gdb_bfd_open): Update.
1845 * gdb_bfd.h (gdb_bfd_ref): Return void.
1847 * jit.c (jit_bfd_try_read_symtab): Update.
1848 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1849 * machoread.c (macho_symfile_read_all_oso): Update.
1850 (macho_check_dsym): Update.
1851 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1852 * remote-m32r-sdi.c (m32r_load): Update.
1853 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1854 * rs6000-nat.c (add_vmap): Update.
1855 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1857 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1858 * solib-spu.c (spu_bfd_open): Update.
1859 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1860 * spu-linux-nat.c (spu_bfd_open): Update.
1861 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1862 (generic_load): Update.
1863 * windows-nat.c (windows_make_so): Update.
1865 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1867 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1869 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1871 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1872 SIGTRAMP_FRAME unwinding.
1874 2012-07-20 Doug Evans <dje@google.com>
1876 * NEWS: Document new options "set/show use-deprecated-index-sections",
1877 and delete reference to --use-deprecated-index-sections.
1878 * symfile.h (use_deprecated_index_sections): Delete.
1879 * dwarf2read.c (use_deprecated_index_sections): Make static.
1880 (read_index_from_section): Update wording of how to load
1881 deprecated index sections.
1882 (_initialize_dwarf2_read): New options
1883 "set/show use-deprecated-index-sections".
1884 * main.c (captured_main): Delete --use-deprecated-index-sections.
1886 2012-07-20 Pedro Alves <palves@redhat.com>
1891 * infrun.c (handle_inferior_event) <new thread>: Don't special
1892 case minus_one_ptid.
1893 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1894 * linux-thread-db.c (thread_get_info_callback): Don't return early
1895 if the thread is zombie.
1896 (thread_from_lwp): Change return type to void. Rewrite stale
1898 (attach_thread): Don't return early if the thread is zombie,
1899 instead set its "dying" flag.
1900 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1901 (find_new_threads_callback): Don't return early if the thread is
1904 2012-07-20 Pedro Alves <palves@redhat.com>
1906 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1907 * target.c (target_wait): Likewise.
1908 (str_comma_list_concat_elem, do_option, target_options_to_string):
1910 * target.h (target_options_to_string): Declare.
1912 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1913 Tom Tromey <tromey@redhat.com>
1915 * dwarf2read.c (dwarf_decode_macros)
1916 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1917 DW_MACRO_GNU_transparent_include_alt>: New cases.
1918 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1919 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1921 2012-07-20 Tom Tromey <tromey@redhat.com>
1923 * dwarf2read.c (try_open_dwo_file): Don't call
1924 gdb_bfd_stash_filename.
1926 2012-07-20 Pedro Alves <palves@redhat.com>
1928 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1929 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1930 (i386_process_record): Tweak description comments.
1932 2012-07-20 Pedro Alves <palves@redhat.com>
1934 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1935 (i386_process_record): Use record_read_memory.
1936 * record.c (record_read_memory): New function.
1937 (record_arch_list_add_mem, record_exec_insn): Use
1939 * record.h (record_read_memory): Declare.
1941 2012-07-20 Yao Qi <yao@codesourcery.com>
1943 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1946 2012-07-19 Pedro Alves <palves@redhat.com>
1948 * record.c (record_resume): Ask the target beneath to report all
1951 2012-07-19 Doug Evans <dje@google.com>
1953 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1954 there's no section at address zero.
1955 (dwarf2_record_block_ranges): Ditto.
1957 2012-07-19 Yao Qi <yao@codesourcery.com>
1959 * command.h, remote.c: Fix a typo in comment.
1961 2012-07-19 Tom Tromey <tromey@redhat.com>
1964 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1965 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1966 OP_DECLTYPE>: New cases.
1967 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1968 (type_exp): Add new productions.
1969 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1971 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1973 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1974 OP_DECLTYPE>: New case.
1975 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1977 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1978 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1980 2012-07-19 Tom Tromey <tromey@redhat.com>
1982 * c-exp.y (enum token_flags): New.
1983 (struct token) <cxx_only>: Remove.
1985 (tokentab3, tokentab2, ident_tokens): Update.
1986 (lex_one_token): Update. Handle FLAG_SHADOW.
1988 2012-07-19 Tom Tromey <tromey@redhat.com>
1990 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1991 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1992 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1993 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1994 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1995 type_exp production where appropriate.
1996 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1997 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1998 <UNOP_MEMVAL_TYPE>: New case.
1999 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2000 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2001 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2002 <UNOP_MEMVAL_TYPE>: New case.
2003 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2004 UNOP_REINTERPRET_CAST>: Update.
2005 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2006 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2007 UNOP_REINTERPRET_CAST>: Update.
2008 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2009 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2010 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2013 2012-07-19 Yao Qi <yao@codesourcery.com>
2014 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2017 and case 'var_optional_filename' together.
2018 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2019 instead of add_setshow_optional_filename_cmd for setshow command
2020 'args'. Set completer for 'set args'.
2022 2012-07-18 Doug Evans <dje@google.com>
2024 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2025 * common/gdb_vecs.c: New file, contents from utils.c.
2026 * common/host-defs.h: New file, contents from defs.h.
2027 * utils.h: New file, contents from defs.h.
2028 * defs.h: Move all declarations of objects defined in utils.c
2029 to utils.h (except QUIT() and related).
2030 #include "utils.h", "host-defs.h".
2031 * probe.h (probe_p): Move here from gdb_vecs.h.
2032 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2033 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2034 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2035 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2036 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2037 (COMMON_OBS): Add gdb_vecs.o.
2038 (gdb_vecs.o): New rule.
2040 2012-07-18 Keith Seitz <keiths@redhat.com>
2042 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2043 parameter. If non-zero, use SYMNAME as the canonical name
2046 (convert_linespec_to_sals): Use add_sal_to_sals for
2048 (decode_line_full): No need to "fill in missing canonical names"
2049 anymore. Simply make cleanups for the allocated names.
2051 2012-07-18 Keith Seitz <keiths@redhat.com>
2053 * linespec.c (struct linespec): Constify expression,
2054 source_filename, function_name, and label_name.
2055 (symbol_not_found_error): Make all parameters const.
2056 (linespec_parser_delete): No need to check for NULL
2057 when using xfree. Cast const char * to char * for xfree.
2059 2012-07-18 Keith Seitz <keiths@redhat.com>
2061 * breakpoint.c (invalid_thread_id_error): New function.
2062 (find_condition_and_thread): Use invalid_thread_id_error.
2063 (watch_command_1): Likewise.
2065 2012-07-18 Tom Tromey <tromey@redhat.com>
2067 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2068 * contrib/cc-with-tweaks.sh: New file.
2070 2012-07-18 Tom Tromey <tromey@redhat.com>
2072 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2073 (locate_dwz_sections): Recognize .gdb_index.
2074 (create_cus_from_index_list): New function.
2075 (create_cus_from_index): Use it. Handle .dwz data.
2076 (read_index_from_section): New function, extracted from
2078 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2081 2012-07-18 Tom Tromey <tromey@redhat.com>
2083 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2084 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2085 <is_dwz>: New field.
2086 (struct dwz_file): New.
2087 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2088 (locate_dwz_sections, dwarf2_get_dwz_file)
2089 (get_abbrev_section_for_cu): New functions.
2090 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2091 (read_and_check_type_unit_head): Add abbrev_section argument.
2092 (create_debug_types_hash_table): Update.
2093 (init_cutu_and_read_dies): Use proper abbrev section.
2094 (init_cutu_and_read_dies_no_follow): Likewise.
2095 (set_partial_user): Do nothing if PST==NULL.
2096 (read_comp_units_from_section): New function.
2097 (create_all_comp_units): Use it.
2098 (scan_partial_symbols, partial_die_parent_scope): Update.
2099 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2100 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2101 (find_partial_die): Add offset_in_dwz argument. Update.
2102 (guess_partial_die_structure_name, fixup_partial_die): Update.
2103 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2104 DW_FORM_GNU_strp_alt.
2105 (read_indirect_string_from_dwz): New function.
2106 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2107 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2108 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2109 (follow_die_offset): Add offset_in_dwz argument.
2110 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2111 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2112 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2113 Handle new macro forms.
2114 (dwarf_decode_macros): Update.
2115 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2116 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2117 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2118 (create_debug_types_hash_table): Use correct abbrev section.
2119 (get_debug_line_section): New function.
2120 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2121 (process_full_comp_unit): Pass 'required' argument to
2122 end_symtab_get_static_block.
2123 * buildsym.h (end_symtab_get_static_block): Update.
2124 * buildsym.c (end_symtab_get_static_block): Add 'required'
2126 (end_symtab, end_expandable_symtab): Update.
2128 2012-07-18 Tom Tromey <tromey@redhat.com>
2130 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2132 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2133 (zlib_decompress_section): Remove.
2134 (dwarf2_read_section): Use gdb_bfd_map_section.
2135 (munmap_section_buffer): Remove.
2136 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2137 munmap_section_buffer.
2138 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2139 (struct gdb_bfd_section_data): New.
2140 (free_one_bfd_section): New function.
2141 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2142 (get_section_descriptor, zlib_decompress_section)
2143 (gdb_bfd_map_section): New functions.
2144 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2146 2012-07-18 Tom Tromey <tromey@redhat.com>
2148 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2150 2012-07-18 Tom Tromey <tromey@redhat.com>
2152 * gdb_bfd.c (struct gdb_bfd_data): New.
2153 (gdb_bfd_cache): New global.
2154 (struct gdb_bfd_cache_search): New.
2155 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2156 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2157 * gdb_bfd.h (gdb_bfd_open): Declare.
2159 2012-07-18 Tom Tromey <tromey@redhat.com>
2161 * utils.c (make_cleanup_bfd_unref): Rename from
2162 make_cleanup_bfd_close.
2163 * defs.h (make_cleanup_bfd_unref): Rename from
2164 make_cleanup_bfd_close.
2165 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2166 (bfd_openw_with_cleanup): Update.
2167 * corelow.c (core_open): Update.
2168 * dsrec.c (load_srec): Update.
2169 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2170 * remote-m32r-sdi.c (m32r_load): Update.
2171 * remote-mips.c (mips_load_srec): Update.
2172 (pmon_load_fast): Update.
2173 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2175 (darwin_bfd_open): Update.
2176 * solib.c (solib_bfd_fopen): Update.
2177 * symfile-mem.c (symbol_file_add_from_memory): Update.
2178 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2179 (symfile_bfd_open): Update.
2180 (generic_load): Update.
2182 2012-07-18 Tom Tromey <tromey@redhat.com>
2184 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2185 (pmon_load_fast): Likewise.
2186 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2187 (m32r_upload_command): Likewise.
2188 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2189 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2190 Use make_cleanup_bfd_close.
2192 2012-07-18 Tom Tromey <tromey@redhat.com>
2194 * symfile.c (symfile_bfd_open): Don't copy name. Call
2195 gdb_bfd_stash_filename.
2196 (load_command): Open the new BFD before freeing the old.
2197 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2198 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2199 Call gdb_bfd_stash_filename.
2200 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2201 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2202 gdb_bfd_stash_filename.
2203 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2204 Free found_pathname.
2205 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2206 gdb_bfd_stash_filename.
2207 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2208 * machoread.c (macho_add_oso_symfile): Call
2209 gdb_bfd_stash_filename.
2210 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2211 gdb_bfd_stash_filename.
2212 (macho_check_dsym): Don't copy filename. Call
2213 gdb_bfd_stash_filename.
2214 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2215 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2216 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2217 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2218 * exec.c (exec_close): Don't free the BFD's filename.
2219 (exec_file_attach): Don't copy the filename. Call
2220 gdb_bfd_stash_filename.
2221 * corelow.c (core_close): Don't free the BFD's filename.
2222 (core_open): Call gdb_bfd_stash_filename.
2223 * corefile.c (reopen_exec_file): Remove #if 0 code.
2224 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2226 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2228 2012-07-18 Tom Tromey <tromey@redhat.com>
2230 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2232 (free_dwo_file): Use gdb_bfd_unref.
2233 * cli/cli-dump.c: Include gdb_bfd.h.
2234 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2235 (bfd_openr_with_cleanup): Likewise.
2236 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2238 * utils.c: Include gdb_bfd.h.
2239 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2240 * symfile.c: Include gdb_bfd.h.
2241 (separate_debug_file_exists): Use gdb_bfd_unref.
2242 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2243 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2244 (generic_load): Use gdb_bfd_ref.
2245 (reread_symbols): Use gdb_bfd_unref.
2246 * symfile-mem.c: Include gdb_bfd.h.
2247 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2248 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2249 * solib.c: Include gdb_bfd.h.
2250 (solib_bfd_fopen): Use gdb_bfd_ref.
2251 (solib_bfd_open): Use gdb_bfd_unref.
2252 (free_so_symbols): Use gdb_bfd_unref.
2253 (reload_shared_libraries_1): Use gdb_bfd_unref.
2254 * solib-spu.c: Include gdb_bfd.h.
2255 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2256 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2258 * solib-frv.c: Include gdb_bfd.h.
2259 (enable_break2): Use gdb_bfd_unref.
2260 * solib-dsbt.c: Include gdb_bfd.h.
2261 (enable_break2): Use gdb_bfd_unref.
2262 * solib-darwin.c: Include gdb_bfd.h.
2263 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2265 (darwin_bfd_open): Use gdb_bfd_unref.
2266 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2267 * remote-mips.c: Include gdb_bfd.h.
2268 (mips_load_srec): Use gdb_bfd_ref.
2269 (pmon_load_fast): Use gdb_bfd_ref.
2270 * remote-m32r-sdi.c: Include gdb_bfd.h.
2271 (m32r_load): Use gdb_bfd_ref.
2272 * record.c: Include gdb_bfd.h.
2273 (record_save_cleanups): Use gdb_bfd_unref.
2274 (cmd_record_save): Use gdb_bfd_unref.
2275 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2277 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2278 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2279 * objfiles.c: Include gdb_bfd.h.
2280 (free_objfile): Use gdb_bfd_unref.
2281 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2283 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2284 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2285 (macho_check_dsym): Likewise.
2286 * m32r-rom.c: Include gdb_bfd.h.
2287 (m32r_load): Use gdb_bfd_ref.
2288 (m32r_upload_command): Use gdb_bfd_ref.
2289 * jit.c: Include gdb_bfd.h.
2290 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2291 * gdb_bfd.h: New file.
2292 * gdb_bfd.c: New file.
2293 * gcore.c: Include gdb_bfd.h.
2294 (create_gcore_bfd): Use gdb_bfd_ref.
2295 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2296 (gcore_command): Use gdb_bfd_unref.
2297 * exec.c: Include gdb_bfd.h.
2298 (exec_close): Use gdb_bfd_unref.
2299 (exec_close_1): Use gdb_bfd_unref.
2300 (exec_file_attach): Use gdb_bfd_ref.
2301 * elfread.c: Include gdb_bfd.h.
2302 (build_id_verify): Use gdb_bfd_unref.
2303 * dsrec.c: Include gdb_bfd.h.
2304 (load_srec): Use gdb_bfd_ref.
2305 * corelow.c: Include gdb_bfd.h.
2306 (core_close): Use gdb_bfd_unref.
2307 (core_open): Use gdb_bfd_ref.
2308 * bfd-target.c: Include gdb_bfd.h.
2309 (target_bfd_xclose): Use gdb_bfd_unref.
2310 (target_bfd_reopen): Use gdb_bfd_ref.
2311 * Makefile.in (SFILES): Add gdb_bfd.c.
2312 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2313 (COMMON_OBS): Add gdb_bfd.o.
2315 2012-07-18 Keith Seitz <keiths@redhat.com>
2317 * breakpoint.c (find_condition_and_thread): Initialize
2319 (create_breakpiont): find_condition_and_thread will now
2320 initialize COND_STRING, THREAD, and REST (and TASK).
2321 (addr_string_to_sals): Likewise.
2323 2012-07-18 Pedro Alves <palves@redhat.com>
2325 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2326 Pull the single step breakpoints out of the target.
2328 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2330 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2331 * stap-probe.c (compile_probe_arg): Likewise.
2333 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2335 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2336 (elf_compile_to_ax): Likewise.
2337 * infrun.c (insert_exception_resume_from_probe): Likewise.
2338 (check_exception_resume): Remove `objfile' variable.
2339 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2340 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2341 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2342 (compare_entries): Rename to...
2343 (compare_probes): ...this. Adjust function to work with
2344 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2346 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2348 (print_ui_out_info): Adjust argument to be `struct probe *'.
2349 (info_probes_for_ops): Adjust internal computations to use
2351 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2352 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2353 gen_info_probes_table_values>: Remove `objfile' argument.
2354 (struct probe) <objfile>: New field.
2355 (find_probe_by_pc): Remove `objfile' argument.
2356 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2357 (stap_get_probe_argument_count): Likewise.
2358 (stap_get_arg): Likewise.
2359 (stap_evaluate_probe_argument): Likewise.
2360 (stap_compile_to_ax): Likewise.
2361 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2362 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2363 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2364 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2365 sym_compile_to_ax>: Likewise.
2367 2012-07-18 Terry Guo <terry.guo@arm.com>
2370 * defs.h (GDB_MI_MSG_WIDTH): New.
2371 * ser_base (ser_base_read_error_fd): New function.
2372 (do_ser_base_readchar): Poll error file descriptor as well as
2374 (generic_readchar): Refactor error handling.
2376 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2378 * NEWS: Create a new section for the next release branch.
2379 Rename the section of the current branch, now that it has
2382 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2384 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2385 * version.in: Bump version to 7.5.50.20120718-cvs.
2387 2012-07-17 Keith Seitz <keiths@redhat.com>
2389 * linespec.c (linespec_parse_line_offset): Make parameter
2392 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2395 * f-valprint.c (info_common_command): New variable frame_id.
2396 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2397 * printcmd.c (print_variable_and_value): Extend function comment.
2398 Add comment for invalidated FRAME.
2399 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2400 FI form FRAME_ID after each print_frame_local_vars.
2401 (struct print_variable_and_value_data): Change frame to frame_id.
2402 (do_print_variable_and_value): New variable frame, initialize it from
2403 p->frame_id. Add comment for invalidated FRAME.
2404 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2405 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2406 for invalidated FRAME.
2408 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2409 Pedro Alves <palves@redhat.com>
2411 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2414 2012-07-16 Tom Tromey <tromey@redhat.com>
2416 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2418 2012-07-15 Doug Evans <dje@google.com>
2420 * dwarf2read.c (stmt_list_hash): New struct.
2421 (type_unit_group): Embed "per_cu" member, remove pointer.
2422 New union member "t", move member "tus" into it, all uses updated.
2423 New member "hash", replaces member "line_offset, all uses updated.
2424 (quick_file_names): Replace member "offset" with "hash", all uses
2426 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2427 (hash_file_name_entry, eq_file_name_entry): Call them.
2428 (hash_type_unit_group, eq_type_unit_group): Ditto.
2429 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2430 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2431 (dw2_get_file_names): Update.
2432 (create_type_unit_group): Replace "per_cu" arg with "cu".
2433 All callers updated. Fix "quick" (.gdb_index) handling.
2434 (get_type_unit_group): Replace "per_cu" arg with "cu".
2435 All callers updated.
2436 (build_type_unit_groups): Don't reset tu_stats.
2438 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2439 "tab_cur_size". Change member "tab" to be a htab_t.
2440 (create_filename_seen_cache): Update.
2441 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2442 (filename_seen): Update.
2444 2012-07-13 Doug Evans <dje@google.com>
2446 * symtab.c (filename_seen): Update comment.
2448 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2449 Doug Evans <dje@google.com>
2451 * buildsym.c (end_symtab_1): Split it to ...
2452 (end_symtab_get_static_block): ... this ...
2453 (end_symtab_from_static_block): ... and this function.
2454 (end_symtab, end_expandable_symtab): Call them.
2455 * buildsym.h (end_symtab_get_static_block)
2456 (end_symtab_from_static_block): New declarations.
2457 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2458 Set its valid CU ranges.
2460 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2462 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2463 DW_OP_GNU_parameter_ref.
2465 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2467 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2468 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2470 2012-07-13 Doug Evans <dje@google.com>
2472 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2473 (filename_seen_cache): New struct.
2474 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2475 (create_filename_seen_cache): New function.
2476 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2477 (filename_seen): Delete arg "first". New arg "cache". All callers
2479 (output_source_filename_data): New struct.
2480 (output_source_filename): Delete arg "first". New arg "data".
2481 All callers updated.
2482 (sources_info): Delete local "first". New locals "data", "cleanups".
2483 Rewrite to use filename_seen_cache.
2484 (add_partial_filename_data): Delete member "first". New member
2485 "filename_seen_cache". All uses updated.
2486 (make_source_files_completion_list): Rewrite to use
2487 filename_seen_cache.
2489 2012-07-12 Doug Evans <dje@google.com>
2491 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2493 2012-07-10 Doug Evans <dje@google.com>
2496 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2497 all_type_unit_groups, type_unit_groups, tu_stats.
2498 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2499 All uses updated. Add type_unit_group to union "s".
2500 (type_unit_group): New struct.
2501 (IS_TYPE_UNIT_GROUP): New macro.
2502 (abbrev_table): Delete unused member "section".
2503 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2504 (dw2_get_cu): Assert not used with type_unit_group.
2505 (dw2_get_primary_cu): New function.
2506 (dw2_build_type_unit_groups_reader): New function.
2507 (dw2_build_type_unit_groups): New function.
2508 (dw2_get_file_names): Assert not called on type units.
2509 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2510 Redo loop to iterate over type unit groups instead of type units.
2511 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2512 (read_abbrev_offset): New function.
2513 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2515 (create_partial_symtab): New function.
2516 (process_psymtab_comp_unit_reader): Assert not used with type units.
2517 Call create_partial_symtab.
2518 (process_psymtab_type_unit): Delete.
2519 (hash_type_unit_group, eq_type_unit_group): New functions.
2520 (allocate_type_unit_groups_table): New function.
2521 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2522 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2523 (create_type_unit_group, get_type_unit_group): New functions.
2524 (tu_abbrev_offset): New struct.
2525 (sort_tu_by_abbrev_offset): New function.
2526 (add_type_unit_group_to_table): New function.
2527 (build_type_unit_groups): New function.
2528 (build_type_psymtabs_reader): New function.
2529 (build_type_psymtab_dependencies): New function.
2530 (build_type_psymtabs): Rewrite.
2531 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2532 is seen in a type unit.
2533 (process_queue): Move symtab expansion debugging printfs here.
2534 Call process_full_type_unit for type units.
2535 (compute_symtab_includes): Assert not called for type units.
2536 (process_cu_includes): Don't call compute_symtab_includes for
2538 (process_full_type_unit): New function.
2539 (process_imported_unit_die): Flag an error if called for type units.
2540 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2541 updated. Assert not called for type units.
2542 (read_file_scope): Call dwarf2_start_symtab.
2543 (setup_type_unit_groups): New function.
2544 (read_type_unit_scope): Rewrite.
2545 (abbrev_table_read_table): Initialize abbrev_table->offset.
2546 (abbrev_table_free_cleanup): New function.
2547 (dwarf2_start_symtab): New function.
2548 (load_full_type_unit): Assert not called for type unit groups.
2549 * buildsym.c (finish_block_internal): New arg "expandable".
2550 All callers updated.
2551 (start_symtab): Move most contents to ...
2552 (restart_symtab): ... here. New function.
2553 (reset_symtab_globals): New function.
2554 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2555 Call reset_symtab_globals.
2556 (end_symtab, end_expandable_symtab): New functions.
2557 (set_missing_symtab, augment_type_symtab): New functions.
2558 * buildsym.h (end_expandable_symtab): Declare.
2559 (augment_type_symtab, restart_symtab): Declare.
2560 * psympriv.h (struct partial_symtab): New member "anonymous".
2561 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2563 (read_psymtabs_with_filename): Ditto.
2564 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2565 (expand_symtabs_matching_via_partial): Ditto.
2566 (dump_psymtab): Update.
2567 * dictionary.c (dict_add_pending): New function.
2568 * dictionary.h (dict_add_pending): Declare.
2570 2012-07-09 Doug Evans <dje@google.com>
2572 * buildsym.c (start_subfile): Remove unnecessary check for
2575 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2577 * dwarf2read.c (load_full_type_unit): Simplify.
2579 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2580 to struct signatured_type **. All uses updated.
2582 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2583 All callers updated.
2585 2012-07-09 Tom Tromey <tromey@redhat.com>
2587 * c-exp.y (check_parameter_typelist): New function.
2588 (parameter_typelist): Call it.
2589 * eval.c (make_params): Handle '(void)' case.
2590 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2593 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2595 * common/linux-ptrace.c: Include gdb_assert.h.
2596 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2597 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2599 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2601 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2602 * linux-nat.c (linux_child_post_attach)
2603 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2605 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2607 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2608 nptl <2.7 bug workaround for core files.
2610 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2612 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2614 (save_siginfo): Remove.
2615 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2617 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2618 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2619 * linux-nat.h (struct lwp_info): Remove field siginfo.
2621 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2623 Code cleanup for the next patch.
2624 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2625 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2627 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2628 (ia64_linux_stopped_data_address):
2629 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2631 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2632 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2633 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2636 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2639 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2640 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2642 2012-07-06 Tom Tromey <tromey@redhat.com>
2644 * c-exp.y (DOTDOTDOT): New token.
2645 (func_mod, exp): Use parameter_typelist.
2646 (parameter_typelist): New production.
2647 (tokentab3): Add "..." token.
2648 * eval.c (make_params): Handle varargs.
2649 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2652 2012-07-06 Tom Tromey <tromey@redhat.com>
2655 * c-exp.y (%union) <tvec>: Change type.
2656 (func_mod): Now uses <tvec> type.
2657 (exp): Update for tvec change.
2658 (direct_abs_decl): Push the typelist.
2659 (func_mod): Return a typelist.
2660 (nonempty_typelist): Update for tvec change.
2661 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2662 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2663 * parse.c (pop_type_list): New function.
2664 (push_typelist): New function.
2665 (follow_types): Handle tp_function_with_arguments.
2666 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2667 (enum type_pieces) <tp_function_with_arguments>: New constant.
2668 (union type_stack_elt) <typelist_val>: New field.
2669 (push_typelist): Declare.
2671 2012-07-06 Tom Tromey <tromey@redhat.com>
2673 * c-exp.y (%union) <type_stack>: New field.
2674 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2675 (ptr_operator_ts): New production.
2677 * parse.c (type_stack_reserve): New function.
2678 (check_type_stack_depth): Use it.
2679 (pop_type_stack, append_type_stack, push_type_stack)
2680 (get_type_stack, type_stack_cleanup): New functions.
2681 (follow_types): Handle tp_type_stack.
2682 (_initialize_parse): Simplify initialization.
2683 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2685 (union type_stack_elt) <stack_val>: New field.
2686 (get_type_stack, append_type_stack, push_type_stack)
2687 (type_stack_cleanup): Declare.
2689 2012-07-06 Tom Tromey <tromey@redhat.com>
2691 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2693 (struct type_stack): New.
2694 * parse.c (type_stack, type_stack_size, type_stack_depth):
2696 (type_stack): New global.
2697 (parse_exp_in_context, check_type_stack_depth)
2698 (insert_into_type_stack, insert_type, push_type, push_type_int)
2699 (insert_type_address_space, pop_type, pop_type_int)
2700 (_initialize_parse): Update.
2702 2012-07-06 Tom Tromey <tromey@redhat.com>
2704 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2707 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2709 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2711 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2712 Jan Kratochvil <jan.kratochvil@redhat.com>
2714 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2715 alloca with xmalloc/xfree.
2717 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2719 * MAINTAINERS (Write After Approval): Add myself to the list.
2721 2012-07-05 Doug Evans <dje@google.com>
2723 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2725 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2727 * ax-gdb.c (cli/cli-utils.h): New include.
2728 (linespec.h): Ditto.
2729 (agent_eval_command_one): New function.
2730 (agent_command_1): Ditto.
2731 (agent_command): Call function agent_command_1.
2732 (agent_eval_command): Ditto.
2733 (_initialize_ax_gdb): Change help for "maint agent"
2734 and "maint agent-eval".
2736 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2738 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2739 * cli/cli-utils.c (check_for_argument): New function.
2740 * cli/cli-utils.h (check_for_argument): Ditto.
2742 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2744 * NEWS: Mention x32 ABI support.
2746 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2748 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2749 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2751 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2752 and pc_regnum_from_eax to -1. Update SP regnum from
2753 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2756 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2759 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2761 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2762 * dwarf2expr.h: Include gdbtypes.h.
2763 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2764 these forward declarations.
2765 (cu_offset, sect_offset): Move these ...
2766 * gdbtypes.h: Remove include dwarf2expr.h.
2767 (cu_offset, sect_offset): ... here.
2769 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2771 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2772 (amd64_linux_sigtramp_code): This.
2773 (amd64_x32_linux_sigtramp_code): New.
2774 (LINUX_SIGTRAMP_LEN): Updated.
2775 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2777 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2779 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2781 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2783 * config.in: Regenerate.
2784 * configure: Regenerate.
2785 * configure.ac: Remove check for gnu/libc-version.h.
2786 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2788 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2789 variables libc_version, libc_major and libc_minor. Replace sscanf by
2790 inferior_has_bug. Extend the comment.
2792 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2794 * linux-thread-db.c (inferior_has_bug): New function.
2795 (thread_db_find_new_threads_silently): Return boolean as checked by
2796 inferior_has_bug, describe it in the comments.
2797 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2798 earlier. Abort the initialization if it returned non-zero.
2799 (thread_db_new_objfile): Exclude debug files.
2800 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2803 2012-07-02 Doug Evans <dje@google.com>
2805 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2806 related to queue management.
2808 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2809 instead of "debug dwarf2-die" in debugging printfs.
2810 (create_debug_info_hash_table_reader): Ditto.
2811 (create_debug_info_hash_table): Ditto.
2812 (init_dwo_file): Ditto.
2813 (init_cutu_and_read_dies): Add debugging printf.
2814 (init_cutu_and_read_dies_no_follow): Ditto.
2815 (process_psymtab_comp_unit_reader): Ditto.
2817 2012-07-02 Stan Shebs <stan@codesourcery.com>
2819 Add target-side support for dynamic printf.
2820 * NEWS: Mention the additional style.
2821 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2822 (struct bp_location): New field cmd_bytecode.
2823 * breakpoint.c: Include format.h.
2824 (disconnected_dprintf): New global.
2825 (parse_cmd_to_aexpr): New function.
2826 (build_target_command_list): New function.
2827 (insert_bp_location): Call it.
2828 (remove_breakpoints_pid): Skip dprintf breakpoints.
2829 (print_one_breakpoint_location): Ditto.
2830 (dprintf_style_agent): New global.
2831 (dprintf_style_enums): Add dprintf_style_agent.
2832 (update_dprintf_command_list): Add agent case.
2833 (agent_printf_command): New function.
2834 (_initialize_breakpoint): Add new commands.
2835 * common/ax.def (printf): New bytecode.
2836 * ax.h (ax_string): Declare.
2837 * ax-gdb.h (gen_printf): Declare.
2838 * ax-gdb.c: Include cli-utils.h, format.h.
2839 (gen_printf): New function.
2840 (maint_agent_print_command): New function.
2841 (_initialize_ax_gdb): Add maint agent-printf command.
2842 * ax-general.c (ax_string): New function.
2843 (ax_print): Add printf disassembly.
2844 * Makefile.in (SFILES): Add format.c
2845 (COMMON_OBS): Add format.o.
2846 * common/format.h: New file.
2847 * common/format.c: New file.
2848 * printcmd.c: Include format.h.
2849 (ui_printf): Call parse_format_string.
2850 * remote.c (remote_state): New field breakpoint_commands.
2851 (PACKET_BreakpointCommands): New enum.
2852 (remote_breakpoint_commands_feature): New function.
2853 (remote_protocol_features): Add new BreakpointCommands entry.
2854 (remote_can_run_breakpoint_commands): New function.
2855 (remote_add_target_side_commands): New function.
2856 (remote_insert_breakpoint): Call it.
2857 (remote_insert_hw_breakpoint): Ditto.
2858 (_initialize_remote): Add new packet configuration for
2859 target-side breakpoint commands.
2860 * target.h (struct target_ops): New field
2861 to_can_run_breakpoint_commands.
2862 (target_can_run_breakpoint_commands): New macro.
2863 * target.c (update_current_target): Handle
2864 to_can_run_breakpoint_commands.
2866 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2868 Execute -ix and -iex only after system and user gdbinit files.
2869 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2870 processing down after gdbinit files.
2872 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2874 Add fnmatch-gnu module.
2875 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2876 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2877 * gnulib/aclocal.m4: Regenerate.
2878 * gnulib/config.in: Regenerate.
2879 * gnulib/configure: Regenerate.
2880 * gnulib/import/dummy.c: Remove.
2881 * gnulib/import/Makefile.am: Regenerate.
2882 * gnulib/import/Makefile.in: Likewise.
2883 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2884 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2885 * gnulib/import/alloca.c: New file.
2886 * gnulib/import/alloca.in.h: Likewise.
2887 * gnulib/import/config.charset: Likewise.
2888 * gnulib/import/fnmatch.c: Likewise.
2889 * gnulib/import/fnmatch.in.h: Likewise.
2890 * gnulib/import/fnmatch_loop.c: Likewise.
2891 * gnulib/import/localcharset.c: Likewise.
2892 * gnulib/import/localcharset.h: Likewise.
2893 * gnulib/import/m4/alloca.m4: Likewise.
2894 * gnulib/import/m4/codeset.m4: Likewise.
2895 * gnulib/import/m4/configmake.m4: Likewise.
2896 * gnulib/import/m4/fcntl-o.m4: Likewise.
2897 * gnulib/import/m4/fnmatch.m4: Likewise.
2898 * gnulib/import/m4/glibc21.m4: Likewise.
2899 * gnulib/import/m4/localcharset.m4: Likewise.
2900 * gnulib/import/m4/locale-fr.m4: Likewise.
2901 * gnulib/import/m4/locale-ja.m4: Likewise.
2902 * gnulib/import/m4/locale-zh.m4: Likewise.
2903 * gnulib/import/m4/mbrtowc.m4: Likewise.
2904 * gnulib/import/m4/mbsinit.m4: Likewise.
2905 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2906 * gnulib/import/m4/mbstate_t.m4: Likewise.
2907 * gnulib/import/m4/stdbool.m4: Likewise.
2908 * gnulib/import/m4/wchar_h.m4: Likewise.
2909 * gnulib/import/m4/wctype_h.m4: Likewise.
2910 * gnulib/import/m4/wint_t.m4: Likewise.
2911 * gnulib/import/mbrtowc.c: Likewise.
2912 * gnulib/import/mbsinit.c: Likewise.
2913 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2914 * gnulib/import/mbsrtowcs-state.c: Likewise.
2915 * gnulib/import/mbsrtowcs.c: Likewise.
2916 * gnulib/import/ref-add.sin: Likewise.
2917 * gnulib/import/ref-del.sin: Likewise.
2918 * gnulib/import/stdbool.in.h: Likewise.
2919 * gnulib/import/streq.h: Likewise.
2920 * gnulib/import/strnlen1.c: Likewise.
2921 * gnulib/import/strnlen1.h: Likewise.
2922 * gnulib/import/verify.h: Likewise.
2923 * gnulib/import/wchar.in.h: Likewise.
2924 * gnulib/import/wctype.in.h: Likewise.
2926 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2928 Support shell wildcards for 'set auto-load safe-path'.
2929 * auto-load.c: Include fnmatch.h.
2930 (filename_is_in_dir): Rename to ...
2931 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2932 it. Update function comment. Rename dir_len to pattern_len. New
2933 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2934 messages. Use gdb_filename_fnmatch.
2935 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2937 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2938 * defs.h (gdb_filename_fnmatch): New declaration.
2939 * utils.c: Include fnmatch.h.
2940 (gdb_filename_fnmatch): New function.
2942 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2944 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2945 `-probe' and `-probe-stap' options.
2947 2012-07-01 Yao Qi <yao@codesourcery.com>
2949 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2950 always_inserted_off, and always_inserted_enums.
2951 Change always_inserted_mode's type to 'enum auto_boolean'.
2952 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2954 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2955 of add_setshow_enum_cmd.
2956 * infrun.c: Remove can_use_displaced_stepping_auto,
2957 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2958 can_use_displaced_stepping_enum.
2959 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2960 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2961 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2962 add_setshow_enum_cmd.
2964 2012-06-30 Doug Evans <dje@google.com>
2966 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2967 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2968 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2970 2012-06-29 Doug Evans <dje@google.com>
2972 * linespec.c: #include "stack.h".
2973 (decode_line_with_current_source): Moved here from symtab.c and
2974 renamed from decode_line_spec. All callers updated.
2975 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2976 renamed from decode_line_spec_1. All callers updated.
2977 * linespec.h (decode_line_with_current_source): Move declaration here
2978 from symtab.h and renamed from decode_line_spec.
2979 (decode_line_with_last_displayed): Move declaration here from symtab.h
2980 and renamed from decode_line_spec_1.
2981 * macrocmd.c: #include "linespec.h".
2982 * symtab.c: Remove #include "linespec.h".
2984 2012-06-28 Doug Evans <dje@google.com>
2986 * dwarf2read.c (get_cu_length): New function.
2987 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2988 (create_debug_types_hash_table): Ditto.
2989 (init_cutu_and_read_dies): Ditto.
2990 (init_cutu_and_read_dies_no_follow): Ditto.
2992 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2994 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2995 (struct abbrev_table): Define.
2996 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2998 (init_cutu_and_read_dies): Update.
2999 (abbrev_table_alloc_abbrev): New function. Replaces
3000 dwarf_alloc_abbrev. All callers updated.
3001 (abbrev_table_add_abbrev): New function.
3002 (abbrev_table_lookup_abbrev): New function. Replaces
3003 dwarf2_lookup_abbrev. All callers updated.
3004 (abbrev_table_read_table): New function. Contents moved here from
3005 dwarf2_read_abbrevs.
3006 (dwarf2_read_abbrevs): Call it.
3007 (abbrev_table_free): New function.
3008 (dwarf2_free_abbrev_table): Call it.
3010 2012-06-28 Stan Shebs <stan@codesourcery.com>
3012 * osdata.c (info_osdata_command): Filter out "Title" columns
3014 * common/linux-osdata.c (struct osdata_type): Add title field.
3015 (osdata_table): Add titles to each entry.
3016 (linux_command_xfer_osdata): Add a column for title data.
3018 2012-06-28 Stan Shebs <stan@codesourcery.com>
3020 Make logging work for MI.
3022 * interps.h (interp_set_logging_ftype): New typedef.
3023 (struct interp_procs): New field set_logging_proc.
3024 (current_interp_set_logging): Declare.
3025 * interps.c (current_interp_set_logging): New function.
3026 * cli/cli-logging.c: Include interps.h.
3027 (set_logging_redirect): Call current_interp_set_logging.
3028 (pop_output_files): Ditto.
3029 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3030 * mi/mi-console.h (mi_console_set_raw): Declare.
3031 * mi/mi-console.c (mi_console_set_raw): New function.
3032 * mi/mi-interp.c (saved_raw_stdout): New global.
3033 (mi_set_logging): New function.
3034 (_initialize_mi_interp): Add it to interp procs.
3036 2012-06-28 Doug Evans <dje@google.com>
3038 * symtab.c (lookup_symbol_aux_objfile): Use
3039 ALL_OBJFILE_PRIMARY_SYMTABS.
3041 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3043 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3045 * common/buffer.c: Include inttypes.h and stdint.h.
3046 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3048 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3049 Pedro Alves <palves@redhat.com>
3051 * gdbthread.h (ALL_THREADS): New macro.
3052 (thread_list): Declare.
3053 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3054 going, but instead fall through to the stepping handling.
3055 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3056 the passed in signal. Adjust debug output.
3057 (resume_callback): Rename to ...
3058 (linux_nat_resume_callback): ... this. Pass the thread's last
3059 stop signal, if in "pass" state.
3060 (linux_nat_resume): Adjust to rename.
3061 (stop_wait_callback): New assertion. Don't respawn signals;
3062 instead let the LWP remain with SIGNALLED set.
3063 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3064 * remote.c (append_pending_thread_resumptions): New.
3065 (remote_vcont_resume): Call it.
3066 * target.h (target_resume): Extend comment.
3068 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3070 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3072 2012-06-27 Doug Evans <dje@google.com>
3074 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3075 Delete have_addr_base, unused. All uses updated.
3076 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3077 (dwarf2_get_pc_bounds): Add ranges_base.
3078 (dwarf2_record_block_ranges): Ditto.
3080 2012-06-27 Tom Tromey <tromey@redhat.com>
3083 * varobj.c (varobj_create): Update.
3084 (varobj_set_value): Update.
3085 * tracepoint.c (validate_actionline): Update.
3086 (encode_actions_1): Update.
3087 * parse.c (parse_exp_1): Add 'pc' argument.
3088 (parse_exp_in_context): Add 'pc' argument. Change how
3089 expression_context_pc is set.
3090 (parse_expression): Update.
3091 (parse_field_expression): Update.
3092 * expression.h (parse_exp_1): Update.
3093 * eval.c (parse_to_comma_and_eval): Update.
3094 * breakpoint.c (set_breakpoint_condition): Update.
3095 (update_watchpoint): Update.
3096 (init_breakpoint_sal): Update
3097 (find_condition_and_thread): Update.
3098 (watch_command_1): Update.
3099 (update_breakpoint_locations): Update.
3100 * ada-lang.c (ada_read_renaming_var_value): Update.
3101 (create_excep_cond_exprs): Update.
3103 2012-06-27 Doug Evans <dje@google.com>
3105 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3108 2012-06-26 Doug Evans <dje@google.com>
3110 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3112 (error_check_comp_unit_head): New arg abbrev_section. All callers
3114 (read_and_check_comp_unit_head): Ditto.
3115 (read_and_check_type_unit_head): Ditto.
3117 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3119 New attribute 'last' for gdb.Symtab_and_line.
3120 * NEWS (Python Scripting): Add entry about the new attribute.
3121 * python/py-symtab.c (salpy_get_last): New function which
3122 implements the get method for the 'last' attribute of
3123 gdb.Symtab_and_line.
3124 (sal_object_getset): Add entry for the 'last' attribute.
3126 2012-06-26 Doug Evans <dje@google.com>
3128 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3129 (dwo_sections): Add macinfo, macro.
3130 (dwarf2_locate_dwo_sections): Watch for macro sections.
3131 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3132 All callers updated. Handle DWO files.
3134 * NEWS: Mention new options "set debug dwarf2-read" and
3135 "set debug symtab-create".
3136 * dwarf2read.c (dwarf2_read_debug): New static global.
3137 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3138 (process_queue): Ditto.
3139 (process_full_comp_unit): Ditto.
3140 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3141 * elfread.c (elf_symfile_read): Add debugging printf.
3142 * minsyms.c (install_minimal_symbols): Ditto.
3143 * psymtab.c (allocate_psymtab): Ditto.
3144 * symfile.c (allocate_symtab): Ditto.
3145 * symtab.c (symtab_create_debug): New global.
3146 (_initialize_symtab): Add new option "set debug symtab-create".
3147 * symtab.h (symtab_create_debug): Declare.
3149 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3150 (lookup_dwo_type_unit): Ditto.
3152 2012-06-26 Roland McGrath <roland@hack.frob.com>
3153 H.J. Lu <hongjiu.lu@intel.com>
3155 * amd64-linux-nat.c: Include <sys/user.h>.
3156 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3157 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3158 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3160 * configure.ac: Check if the fs_base and gs_base members of
3161 `struct user_regs_struct' exist.
3162 * config.in: Regenerated.
3163 * configure: Likewise.
3165 2012-06-25 Michael Eager <eager@eagercon.com>
3168 * python/python.c (gdbpy_write): Check for interrupted output.
3170 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3172 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3173 register as a stack alignment in ARM mode.
3175 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3177 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3178 * gnulib/config.in: Regenerate.
3179 * gnulib/configure: Likewise.
3180 * gnulib/import/m4/extensions.m4: Update it.
3181 * gnulib/import/m4/gnulib-common.m4: Likewise.
3182 * gnulib/import/m4/memmem.m4: Likewise.
3183 * gnulib/import/m4/mmap-anon.m4: Likewise.
3184 * gnulib/import/m4/multiarch.m4: Likewise.
3185 * gnulib/import/stdint.in.h: Likewise.
3187 2012-06-24 Yao Qi <yao@codesourcery.com>
3189 * corefile.c (write_memory_with_notification): New.
3190 * gdbcore.h: Declare write_memory_with_notification.
3191 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3192 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3193 * valops.c (value_assign): Likewise.
3194 * python/py-inferior.c (infpy_write_memory): Call
3195 'write_memory_with_notification'.
3197 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3199 * cc-with-index.sh: Use also -ex "set auto-load no".
3201 2012-06-23 Doug Evans <dje@google.com>
3204 * NEWS: Document additions to .gdb_index.
3205 * dwarf2read.c: #include "gdb/gdb-index.h".
3206 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3207 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3208 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3209 (dwarf2_read_index): Recognize version 7.
3210 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3211 block_kind, domain): All callers updated.
3212 (dw2_find_symbol_file): Handle new index CU values.
3213 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3214 (add_index_entry): New args is_static, kind. All callers updated.
3215 (offset_type_compare, uniquify_cu_indices): New functions
3216 (symbol_kind): New function.
3217 (write_psymtabs_to_index): Remove duplicate CU values.
3218 (write_psymtabs_to_index): Write .gdb_index version 7.
3220 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3222 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3223 * configure: Regenerate.
3225 2012-06-20 Yao Qi <yao@codesourcery.com>
3227 * python/py-inferior.c: Update comments of infpy_read_memory
3228 and infpy_write_memory.
3230 2012-06-19 Tom Tromey <tromey@redhat.com>
3233 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3234 (push_type_address_space): Remove.
3235 * parse.c (insert_into_type_stack): New function.
3236 (insert_type): Likewise.
3237 (insert_type_address_space): Rename from push_type_address_space.
3238 Insert tp_space_identifier.
3239 * c-exp.y (ptr_operator): New production.
3240 (abs_decl): Use ptr_operator.
3241 (space_identifier): Call insert_type_address_space.
3242 (ptype): Don't use const_or_volatile_or_space_identifier.
3243 (const_or_volatile_noopt): Call insert_type.
3244 (conversion_type_id, conversion_declarator): New productions.
3245 (operator): Use conversion_type_id.
3247 2012-06-18 Doug Evans <dje@google.com>
3249 * symtab.h (minimal_symbol): New member created_by_gdb.
3250 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3252 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3253 (search_symbols): Call it instead of lookup_symbol.
3254 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3256 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3257 Adjust address for DW_OP_GNU_addr_index.
3258 * dwarf2expr.h (dwarf_expr_context): Update comment.
3259 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3260 all callers updated. Handle TLS vars described with
3261 DW_OP_GNU_const_index.
3262 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3263 and DW_OP_GNU_const_index.
3264 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3266 * block.c (find_block_in_blockvector): Make explicit the fact that we
3267 ignore GLOBAL_BLOCK.
3269 2012-06-18 Tom Tromey <tromey@redhat.com>
3271 * c-exp.y (operator): Remove trailing space after "delete" and
3274 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3275 Jan Kratochvil <jan.kratochvil@redhat.com>
3277 Switch i386 and derived targets to ON_STACK.
3278 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3279 (amd64_dicos_init_abi): Remove its installment.
3280 * dicos-tdep.c (dicos_init_abi): Remove the
3281 set_gdbarch_call_dummy_location call. Update the comment here.
3282 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3283 (i386_dicos_init_abi): Remove its installment.
3284 * i386-tdep.c (i386_push_dummy_code): New function.
3285 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3286 i386_push_dummy_code.
3288 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3290 Remove stale dummy frames.
3291 * breakpoint.c: Include dummy-frame.h.
3292 (longjmp_breakpoint_ops): New variable.
3293 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3294 bp_longjmp_call_dummy.
3295 (bpstat_what, bptype_string, print_one_breakpoint_location)
3296 (init_bp_location): Support bp_longjmp_call_dummy.
3297 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3298 (set_longjmp_breakpoint_for_call_dummy)
3299 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3301 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3302 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3303 FIXME comment and extend the other comment for bp_call_dummy.
3304 (set_longjmp_breakpoint_for_call_dummy)
3305 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3306 * dummy-frame.c: Include gdbthread.h.
3307 (pop_dummy_frame_bpt): New function.
3308 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3309 (dummy_frame_discard): New function.
3310 (cleanup_dummy_frames): Update the comment about longjmps.
3311 * dummy-frame.h (dummy_frame_discard): New declaration.
3312 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3313 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3314 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3315 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3316 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3317 keep_going if IS_LONGJMP and there is no other reason to stop.
3319 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3321 * remote-sim.c (sim_command_completer): Initialize
3324 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3326 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3327 * dwarf2loc.c (call_site_parameter_matches): Support
3328 CALL_SITE_PARAMETER_PARAM_OFFSET.
3329 (needs_dwarf_reg_entry_value): Push stub value.
3330 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3331 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3332 * gdbtypes.h (enum call_site_parameter_kind): New item
3333 CALL_SITE_PARAMETER_PARAM_OFFSET.
3334 (struct call_site.parameter.u): New field param_offset.
3336 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3338 Code cleanup: Generalize call_site.parameter key.
3339 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3340 variable dwarf_reg. New variable kind_u. Update parameters to
3341 push_dwarf_reg_entry_value.
3342 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3343 * dwarf2expr.h (enum call_site_parameter_kind)
3344 (union call_site_parameter_u): Forward declarations.
3345 (struct dwarf_expr_context_funcs): Update parameters and their
3346 description for push_dwarf_reg_entry_value.
3347 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3348 * dwarf2loc.c (call_site_parameter_matches): New function.
3349 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3350 description. Use call_site_parameter_matches.
3351 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3352 Update parameters and their description.
3353 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3354 New variable kind_u. Adjust the caller for updated parameters.
3355 (needs_dwarf_reg_entry_value): Update parameters.
3356 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3357 instead of attr. Update for the changed fields of struct
3358 call_site_parameter.
3359 * gdbtypes.h: Include dwarf2expr.h.
3360 (enum call_site_parameter_kind): New.
3361 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3362 fb_offset into new union u.
3364 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3366 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3367 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3370 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3372 * amd64-linux-nat.c (compat_x32_clock_t): New.
3373 (compat_x32_siginfo_t): Likewise.
3374 (compat_x32_siginfo_from_siginfo): Likewise.
3375 (siginfo_from_compat_x32_siginfo): Likewise.
3376 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3377 and siginfo_from_compat_x32_siginfo for x32.
3379 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3381 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3383 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3385 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3386 instead of gdbarch_ptr_bit.
3387 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3388 (amd64_supply_native_gregset): Likewise.
3389 (amd64_collect_native_gregset): Likewise.
3390 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3391 (amd64_supply_xsave): Likewise.
3392 (amd64_collect_fxsave): Likewise.
3393 (amd64_collect_xsave): Likewise.
3395 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3397 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3398 (amd64_linux_read_description): Check DS segment register for
3401 2012-06-15 Tom Tromey <tromey@redhat.com>
3403 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3404 init_cutu_and_read_dies.
3406 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3408 * MAINTAINERS (Write After Approval): Add myself to the list.
3410 2012-06-15 Tom Tromey <tromey@redhat.com>
3412 * valops.c (value_find_oload_method_list): Now static.
3413 * value.h (value_find_oload_method_list): Don't declare.
3415 2012-06-15 Tom Tromey <tromey@redhat.com>
3417 * valops.c (find_overload_match): Use value_ind.
3419 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3421 * infrun.c (handle_inferior_event): Correct indentation.
3423 2012-06-14 Doug Evans <dje@google.com>
3425 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3426 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3428 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3429 updated. Handle DEBUG_LOC_START_LENGTH.
3430 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3431 (loclist_describe_location): Ditto.
3433 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3436 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3437 after hiding inline functions.
3439 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3441 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3442 _initialize_inf_ttrace.
3444 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3446 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3447 _initialize_hppa_hpux_nat.
3449 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3451 * remote-sim.c (sim_command_completer): Change type of return
3452 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3454 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3455 Jan Kratochvil <jan.kratochvil@redhat.com>
3458 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3459 stack on a 16-byte boundary.
3461 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3463 * jit.c (finalize_symtab): Set function's return type to 'void' by
3466 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3467 H.J. Lu <hongjiu.lu@intel.com>
3469 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3470 Move bits common to both the classic LP64 and the new x32 ILP32
3472 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3473 (amd64_x32_linux_init_abi): New function.
3474 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3477 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3478 * i386-tdep.c (i386_pseudo_register_name): Make public.
3479 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3480 * amd64-tdep.c (amd64_dword_names): Add "eip".
3481 (amd64_x32_pseudo_register_type): New function
3482 (amd64_x32_init_abi): New function.
3484 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3487 * inferior.h (struct inferior_suspend_state): Comment out.
3488 (struct inferior): Comment out the field suspend.
3489 * infrun.c (struct infcall_suspend_state): Comment out the field
3491 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3494 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3496 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3497 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3498 function comment. Return ERROR for unresolved cases. Implement
3499 returning proper NAME.
3500 (yylex): Accept also NAME from classify_inner_name.
3501 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3502 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3504 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3506 2012-06-13 Tom Tromey <tromey@redhat.com>
3508 * breakpoint.c (condition_completer): New function.
3509 (_initialize_breakpoint): Use it.
3510 * value.c (complete_internalvar): New function.
3511 * value.h (complete_internalvar): Declare.
3513 2012-06-13 Tom Tromey <tromey@redhat.com>
3515 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3516 * breakpoint.c (catch_syscall_completer): Return a VEC.
3517 * cli/cli-cmds.c (complete_command): Update.
3518 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3519 (complete_on_enum): Likewise.
3520 * command.h: Include gdb_vecs.h.
3521 (completer_ftype): Change return type.
3522 (complete_on_cmdlist, complete_on_enum): Likewise.
3523 * completer.c (noop_completer, filename_completer)
3524 (location_completer): Return a VEC.
3525 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3527 (expression_completer, complete_line_internal, complete_line)
3528 (command_completer): Return a VEC.
3529 (gdb_completion_word_break_characters, line_completion_function):
3531 * completer.h: Include gdb_vecs.h.
3532 (complete_line, noop_completer, filename_completer)
3533 (expression_completer, location_completer, command_completer):
3535 * f-lang.c (f_word_break_characters): Return a VEC.
3536 * interps.c (interpreter_completer): Return a VEC.
3537 * language.h (struct language_defn)
3538 <la_make_symbol_completion_list>: Return a VEC.
3539 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3540 * symtab.c (free_completion_list): Take a VEC.
3541 (return_val_size, return_val_index): Remove.
3542 (return_val): Now a VEC.
3543 (completion_list_add_name): Update.
3544 (default_make_symbol_completion_list_break_on)
3545 (default_make_symbol_completion_list, make_symbol_completion_list)
3546 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3548 (add_filename_to_list): Update.
3549 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3551 (maybe_add_partial_symtab_filename): Update.
3552 (make_source_files_completion_list): Return a VEC.
3553 * symtab.h (default_make_symbol_completion_list_break_on)
3554 (default_make_symbol_completion_list, make_symbol_completion_list)
3555 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3556 (make_source_files_completion_list): Update.
3558 2012-06-13 Tom Tromey <tromey@redhat.com>
3560 * breakpoint.c (add_catch_command): Use completer_ftype.
3561 * breakpoint.h: Include command.h.
3562 (add_catch_command): Use completer_ftype.
3563 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3564 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3565 Use completer_ftype.
3566 * command.h (completer_ftype): New typedef.
3567 (set_cmd_completer): Use it.
3568 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3571 2012-06-13 Pedro Alves <palves@redhat.com>
3573 Partial revert of previous change.
3575 * serial.c (scb_base): New global.
3576 (serial_for_fd): New.
3577 (serial_open, serial_fdopen_ops): Link new serial in open serials
3579 (do_serial_close): Unlink serial from the open serials chain.
3581 2012-06-12 Pedro Alves <palves@redhat.com>
3583 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3585 (prepare_for_detach): No longer context switch here in non-stop
3587 (fetch_inferior_event): Ditto.
3588 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3589 to the event thread before removing breakpoints. Switch to the
3590 event thread before inserting breakpoints and resuming.
3591 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3592 event thread before resuming.
3593 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3594 Switch to the event thread before removing breakpoints.
3596 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3598 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3599 special characters correctly for the Windows shells. See
3600 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3602 [!__MINGW32__]: Remove extra double quote character from special
3605 2012-06-11 Stan Shebs <stan@codesourcery.com>
3607 * ui-out.h: Remove #if 0 declarations.
3608 * ui-out.c: Remove #if 0 functions.
3610 2012-06-11 Pedro Alves <palves@redhat.com>
3612 * ser-base.c (run_async_handler_and_reschedule): New.
3613 (fd_event, push_event): Use it.
3614 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3615 reference count to 1.
3616 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3618 (serial_is_open, serial_ref, serial_unref): New.
3619 * serial.h (serial_open): Adjust comment.
3620 (serial_is_open): Declare.
3621 (serial_close): Adjust comment.
3622 (serial_ref, serial_unref) Declare.
3623 (struct serial): New field 'refcnt'.
3625 2012-06-11 Pedro Alves <palves@redhat.com>
3627 Remove #if 0'd "connect" command, and unnecessary associated
3628 refcounting and serial reuse bits.
3630 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3631 * serial.c (last_serial_opened): Delete.
3633 (serial_open): Adjust.
3634 (serial_for_fd): Delete.
3635 (serial_fdopen_ops, do_serial_close): Adjust.
3636 (serial_fdopen_ops): Adjust.
3638 2012-06-11 Pedro Alves <palves@redhat.com>
3640 * serial.c (do_serial_close): Remove early return when SCB is
3643 2012-06-11 Tom Tromey <tromey@redhat.com>
3645 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3647 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 Fix regression by the "ambiguous linespec" series.
3650 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3651 get_last_displayed_symtab and get_last_displayed_line and depending
3654 2012-06-11 Tom Tromey <tromey@redhat.com>
3656 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3657 (dw2_find_symbol_file): Use it.
3659 2012-06-11 Michael Eager <eager@eagercon.com>
3661 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3662 * mips-linux-tdep.h (mips_signals): New
3664 2012-06-11 Tom Tromey <tromey@redhat.com>
3666 * infrun.c (handle_inferior_event)
3667 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3669 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3670 exception logic in all cases. Update comments.
3671 (insert_longjmp_resume_breakpoint): Set the exception resume
3674 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3676 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3678 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3680 * valarith.c (binop_types_user_defined_p): Fix a typo.
3682 2012-06-08 Yao Qi <yao@codesourcery.com>
3683 Chung-Lin Tang <cltang@codesourcery.com>
3685 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3686 * arch-utils.h: Declare.
3687 * gdbarch.sh: Add return_in_first_hidden_param_p.
3688 * gdbarch.c, gdbarch.h: Regenerated.
3689 * infcall.c (call_function_by_hand): Call
3690 gdbarch_return_in_first_hidden_param_p instead of
3691 language_pass_by_reference.
3693 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3694 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3695 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3696 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3697 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3698 `cplus_return_struct_by_reference'.
3699 (tic6x_return_value): Handle language cplusplus.
3700 (tic6x_return_in_first_hidden_param_p): New.
3701 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3703 2012-06-07 Doug Evans <dje@google.com>
3705 * dwarf2read.c (dwarf2_cu): Add comment.
3707 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3709 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3711 (mips_eabi_push_dummy_call): Likewise.
3712 (mips_n32n64_push_dummy_call): Likewise.
3713 (mips_o32_push_dummy_call): Likewise.
3714 (mips_o64_push_dummy_call): Likewise.
3716 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3718 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3720 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3722 * mips-tdep.c (mips_pseudo_register_type): Use
3723 mips_float_register_p.
3725 2012-06-06 Pedro Alves <palves@redhat.com>
3727 * infrun.c (handle_inferior_event): Remove calls to
3728 reinit_frame_cache that follow a context_switch call.
3730 2012-06-06 Pedro Alves <palves@redhat.com>
3732 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3733 context_switch and remove stale comment.
3735 2012-06-06 Pedro Alves <palves@redhat.com>
3737 * infrun.c (struct execution_control_state): Remove
3738 `new_thread_event' field.
3739 (handle_inferior_event): Simplify new threads handling; don't
3740 resume the inferior if we find a new thread.
3742 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3744 * NEWS: Document the deprecation of SH's 'regs' command.
3745 * inferior.h (all_registers_info): Add function declaration.
3746 * sh-tdep.c (sh_show_regs): Remove variable.
3747 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3748 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3749 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3750 (sh_show_regs_command): Remove functions.
3751 (sh_gdbarch_init): Don't set sh_show_regs.
3752 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3753 'info all-registers'.
3754 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3755 (sh64_show_regs): Remove functions.
3756 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3758 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3760 * configure.ac: Move development=true below AC_INIT.
3761 * configure: Regenerate.
3763 2012-06-05 Stan Shebs <stan@codesourcery.com>
3765 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3768 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3770 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3771 argument as ssize_t.
3772 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3773 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3774 * target.c (target_read_stack, target_write_memory)
3775 (target_write_raw_memory): Likewise.
3776 * target.h (target_read_stack, target_write_memory)
3777 (target_write_raw_memory): Likewise.
3779 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3781 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3782 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3783 * target.c (target_read_memory): Change LEN to ssize_t.
3784 * target.h (target_read_memory): Change LEN to ssize_t.
3786 2012-06-05 Pedro Alves <palves@redhat.com>
3790 * breakpoint.c (until_break_command): Only fetch the selected
3791 frame after decode_line_1.
3793 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3795 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3796 event breakpoint at _start, __start or main if a program
3797 interpreter is not found.
3799 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3801 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3803 * windows-tdep.c: #include "objfiles.h".
3804 (windows_iterate_over_objfiles_in_search_order): New function.
3805 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3806 iterate_over_objfiles_in_search_order gdbarch method to
3807 windows_iterate_over_objfiles_in_search_order.
3808 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3810 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3812 * gdbarch.sh: Add generation of
3813 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3814 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3815 (iterate_over_objfiles_in_search_order): New gdbarch method.
3816 * gdbarch.h, gdbarch.c: Regenerate.
3817 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3819 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3821 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3822 out of lookup_symbol_aux_symtabs.
3823 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3824 call to lookup_symbol_aux_objfile.
3825 (struct global_sym_lookup_data): New type.
3826 (lookup_symbol_global_iterator_cb): New function.
3827 (lookup_symbol_global): Search for symbol using
3828 gdbarch_iterate_over_objfiles_in_search_order and
3829 lookup_symbol_global_iterator_cb.
3830 * findvar.c (struct minsym_lookup_data): New type.
3831 (minsym_lookup_iterator_cb): New function.
3832 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3833 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3834 and minsym_lookup_iterator_cb.
3836 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3838 Revert the following patch:
3839 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3840 try locating the symbol in the symbol's own objfile first, before
3841 extending the search to all objfiles.
3842 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3843 out of lookup_symbol_aux_symtabs.
3844 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3845 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3846 Do not search EXCLUDE_OBJFILE.
3847 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3848 (lookup_symbol_global): Search for matches in the block's objfile
3849 first, before searching all other objfiles.
3851 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3853 * breakpoint.c (find_condition_and_thread): Stop parsing
3854 as soon as the first invalid keyword is found.
3856 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3858 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3860 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3862 * config/djgpp/djcheck.sh: Add copyright header.
3864 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3866 * copyright.py (update_files, main): Fix path to update-copyright
3869 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3871 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3872 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3873 for which a reminder to update by hand is printed.
3875 2012-06-04 Doug Evans <dje@google.com>
3877 * buildsym.c (make_blockvector): Add comment.
3879 2012-06-04 Pedro Alves <palves@redhat.com>
3881 * arch-utils.c (default_gdb_signal_from_target): Delete.
3882 * arch-utils.h (default_gdb_signal_from_target): Delete.
3883 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3884 gdbarch_gdb_signal_from_target_p.
3885 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3887 * gdbarch.h: Regenerate.
3888 * gdbarch.c: Regenerate.
3890 2012-06-04 Pedro Alves <palves@redhat.com>
3892 * gdbarch.sh (gdb_signal_from_target): Mention that the
3893 implementation of the method must be host independent.
3894 * gdbarch.h: Regenerate.
3896 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3898 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3900 (target_read_memory_bfd): New function.
3901 (symbol_file_add_from_memory): Use it.
3903 2012-06-03 Doug Evans <dje@google.com>
3905 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3907 (basic_lookup_transparent_type): Ditto.
3909 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3910 (ALL_PRIMARY_SYMTABS): Use it.
3911 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3912 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3913 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3914 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3915 (basic_lookup_transparent_type): Ditto.
3917 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3919 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3920 it to optimize resolution of demangled name.
3922 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3924 * configure.ac (development): Define new variable.
3925 Call AC_CHECK_LIB for mcheck if $development.
3926 (ERROR_ON_WARNING): Enable it by default only if $development.
3927 * config.in: Regenerate.
3928 * configure: Regenerate.
3930 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3932 * target.c (target_read_memory): Make LEN argument as size_t.
3933 * target.h (target_read_memory): Likewise.
3935 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3937 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3939 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3941 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3942 BookE interface for PowerPC server processors if not available
3943 in the Linux Kernel.
3945 2012-05-31 Keith Seitz <keiths@redhat.com>
3947 * linespec.c (decode_objc): Add cleanup to free
3949 (find_linespec_symbols): Add cleanup to free CLASSES.
3950 * symfile.c (find_separate_debug_file_by_debuglink): Add
3951 cleanup to free DEBUGLINK.
3952 * ui-out.c (clear_header_list): No need to check if
3953 HEADER_NEXT.COLHDR is NULL.
3954 Free HEADER_NEXT.COL_NAME.
3956 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3958 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3961 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3963 * configure.host (gdb_host_cpu): Handle tilegx*.
3964 (gdb_host): Handle tilegx-*-linux*.
3965 * tilegx-linux-nat.c: New file.
3966 * config/tilegx/linux.mh: New file.
3968 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3970 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3971 tilegx-linux-tdep.o.
3972 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3973 tilegx-linux-tdep.c.
3974 * configure.tgt: Handle tilegx-*-linux*.
3975 * tilegx-tdep.h: New file.
3976 * tilegx-tdep.c: New file.
3977 * tilegx-linux-tdep.c: New file.
3978 * regformats/reg-tilegx.dat: New file.
3980 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3982 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3983 accounting of hw watchpoints on ppc.
3985 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3987 * source.c (openp): Expand tilde in path entries.
3989 2012-05-29 Doug Evans <dje@google.com>
3991 * buildsym.c (block_compar): Fix comment.
3992 (end_symtab): Fix and clarify some comments.
3994 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3995 cleanup_undefined_types.
3996 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3997 All callers updated.
3999 2012-05-29 Tom Tromey <tromey@redhat.com>
4001 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4003 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4004 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4006 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4009 2012-05-29 Tristan Gingold <gingold@adacore.com>
4011 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4012 (struct darwin_info): ... New struct.
4013 (solib_darwin_pspace_data): New variable.
4014 (darwin_pspace_data_cleanup): New function.
4015 (get_darwin_info): Likewise.
4016 (darwin_dyld_version_ok, darwin_load_image_infos)
4017 (darwin_solib_get_all_image_info_addr_at_init)
4018 (darwin_solib_read_all_image_info_addr): Add info argument.
4020 (darwin_current_sos): Use per pspace structure.
4021 (darwin_solib_create_inferior_hook): Likewise.
4022 (darwin_clear_solib): Likewise.
4023 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4025 2012-05-28 Pedro Alves <palves@redhat.com>
4027 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4028 block that uses them. Clear ecss before handling each event.
4030 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4032 * solib-svr4.c (svr4_current_sos): New comment on
4033 svr4_current_sos_via_xfer_libraries fall back.
4035 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4037 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4038 it as a fallback for TYPE_IS_OPAQUE.
4039 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4040 symbols for lookup_symbol.
4042 2012-05-24 John Steele Scott <toojays@toojays.net>
4044 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4045 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4046 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4047 (check_producer): ... this new function, which also checks for ICC
4048 and caches the result.
4049 (producer_is_icc): New function.
4050 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4053 2012-05-24 Pedro Alves <palves@redhat.com>
4057 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4058 (default_gdb_signal_to_target): ... this. Add comment.
4059 (default_gdb_signal_from_host): Rename to ...
4060 (default_gdb_signal_from_target): ... this. Add comment.
4061 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4062 (default_gdb_signal_to_target): ... this.
4063 (default_gdb_signal_from_host): Rename to ...
4064 (default_gdb_signal_from_target): ... this.
4065 * corelow.c (core_open): Adjust to naming change. Replace comment.
4066 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4067 (gdb_signal_from_target): ... this. Adjust to
4068 default_gdb_signal_from_host naming change. Extend comment.
4069 (gdb_signal_to_host): Rename to ...
4070 (gdb_signal_to_target): ... this. Adjust to
4071 default_gdb_signal_to_host naming change.
4072 * gdbarch.h, gdbarch.c: Renegerate.
4074 2012-05-24 Pedro Alves <palves@redhat.com>
4078 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4080 2012-05-24 Pedro Alves <palves@redhat.com>
4084 Replace target_signal with gdb_signal throughout.
4086 2012-05-24 Pedro Alves <palves@redhat.com>
4090 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4091 string, instead of reusing the va_list argument.
4093 2012-05-24 Tom Tromey <tromey@redhat.com>
4095 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4098 2012-05-23 Doug Evans <dje@google.com>
4100 * symtab.c (search_symbols): Formatting fixes.
4101 (print_symbol_info): Formatting fixes.
4103 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4104 int64_t change to leb128 API.
4105 (read_encoded_value, decode_frame_entry_1): Ditto.
4106 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4107 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4108 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4109 (execute_stack_op): Ditto.
4110 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4111 (safe_read_uleb128, safe_read_sleb128): Ditto.
4112 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4113 (dwarf2_compile_expr_to_ax): Ditto.
4114 (locexpr_describe_location_piece): Ditto.
4115 (disassemble_dwarf_expression): Ditto.
4116 (locexpr_describe_location_1): Ditto.
4118 2012-05-23 Stan Shebs <stan@codesourcery.com>
4119 Kwok Cheung Yeung <kcy@codesourcery.com>
4121 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4122 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4123 (mi-cmd-info.o): New rule.
4124 * osdata.h (info_osdata_command): New declaration.
4125 * osdata.c (info_osdata_command): Change to non-static.
4126 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4127 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4128 * mi/mi-cmd-info.c: New file.
4130 2012-05-23 Doug Evans <dje@google.com>
4132 * symtab.c (search_symbols): Pass NULL for file_matcher to
4133 expand_symtabs_matching if there are no files to match.
4135 * gdbtypes.c (lookup_typename): Simplify.
4137 2012-05-23 Pedro Alves <palves@redhat.com>
4139 * arch-utils.h (default_target_signal_to_host): Delete.
4140 * arch-utils.c (default_target_signal_to_host): Delete.
4141 * gdbarch.sh (target_signal_to_host): Remove.
4142 * gdbarch.h, gdbarch.c: Regenerate.
4144 2012-05-22 Doug Evans <dje@google.com>
4146 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4148 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4149 (execute_cfa_program): Update to match API of leb128 functions.
4150 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4152 (read_unsigned_leb128, read_signed_leb128): Delete.
4153 (read_initial_length): Change type of buf argument to
4155 (read_encoded_value): Update to match API of leb128 functions.
4156 (decode_frame_entry): Change result to "const gdb_byte *", and
4157 similarly for "start" parameter.
4158 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4159 (dwarf2_build_frame_info): Change local frame_ptr to
4161 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4162 read_uleb128, read_sleb128. All callers updated.
4163 (safe_skip_leb128): New function.
4164 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4165 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4166 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4167 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4168 read_uleb128, read_sleb128.
4169 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4170 (execute_stack_op): Update to match API of leb128 functions.
4171 * dwarf2expr.h: #include "leb128.h".
4172 (read_uleb128, read_sleb128): Delete.
4173 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4174 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4175 * dwarf2loc.c (debug_loc_kind): New enum.
4176 (decode_debug_loc_addresses): New function.
4177 (decode_debug_loc_dwo_addresses): New function.
4178 (dwarf2_find_location_expression): Rewrite.
4179 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4180 (locexpr_describe_location_piece): Ditto.
4181 (disassemble_dwarf_expression): Ditto.
4182 (locexpr_describe_location_1): Ditto.
4183 (loclist_describe_location): Rewrite.
4184 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4185 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4186 (dwarf2_section_buffer_overflow_complaint): Renamed from
4187 dwarf2_macros_too_long_complaint. All callers updated.
4188 (skip_leb128): Delete.
4189 (init_cu_die_reader): Initialize reader->buffer_end.
4190 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4191 (skip_form_bytes): New arg buffer_end. All callers updated.
4192 Replace call to skip_leb128 with gdb_skip_leb128.
4193 (skip_unknown_opcode): New arg mac_end. All callers updated.
4194 (fill_in_loclist_baton): Initialize baton->from_dwo.
4196 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4198 * mips-linux-nat.c (mips_linux_read_description): Use a more
4199 verbose error message.
4201 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4203 * NEWS: Add MIPS/Linux DSP support.
4204 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4205 (SIGCONTEXT_DSPCTL): New macro.
4206 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4207 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4208 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4209 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4210 (N64_SIGCONTEXT_HI3): Likewise.
4211 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4212 (N64_SIGCONTEXT_LO3): Likewise.
4213 (N64_SIGCONTEXT_DSPCTL): Likewise.
4214 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4215 (mips_linux_o32_sigframe_init): Handle DSP registers.
4216 (mips_linux_n32n64_sigframe_init): Likewise.
4218 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4220 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4223 2012-05-22 Pedro Alves <palves@redhat.com>
4225 * target.h (store_waitstatus): Move declaration ...
4226 * inf-child.h (store_waitstatus): ... here.
4227 * target.c: Move inclusion of gdb_wait.h, and ...
4228 (store_waitstatus): ... this ...
4229 * inf-child.c: ... here.
4230 * linux-nat.c: Include inf-child.h.
4231 * rs6000-nat.c: Include inf-child.h.
4232 * spu-linux-nat.c: Include inf-child.h.
4234 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4236 * tracepoint.c (start_tracing): Add missing i18n markup.
4237 (stop_tracing, set_trace_user): Ditto.
4238 (set_trace_notes, set_trace_stop_notes): Ditto.
4240 2012-05-21 Tom Tromey <tromey@redhat.com>
4243 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4245 * value.h (value_cast_pointers): Update.
4246 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4247 (value_cast): Update.
4248 (update_search_result): New function.
4249 (do_search_struct_field): New, from search_struct_field. Check
4250 for ambiguous results.
4251 (search_struct_field): Rewrite.
4252 * infcall.c (value_arg_coerce): Update.
4253 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4254 value_cast_pointers.
4255 * ada-lang.c (ada_convert_actual): Update.
4257 2012-05-21 Tom Tromey <tromey@redhat.com>
4259 * macroexp.c (macro_stringify): Terminate the string.
4261 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4263 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4265 * auto-load.c (auto_load_expand_dir_vars): New function.
4266 (auto_load_safe_path_vec_update): Use it, remove the
4267 substitute_path_component call thanks to it.
4268 (auto_load_objfile_script): Remove the debug_file_directory processing.
4269 Use auto_load_expand_dir_vars, remove the substitute_path_component
4271 * configure: Regenerate.
4272 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4273 path. Escape $ also for $debugdir.
4274 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4275 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4277 2012-05-20 Doug Evans <dje@google.com>
4279 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4280 before use. Check for symtab->includes == NULL before scanning it.
4282 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4284 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4286 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4288 * NEWS: Add microMIPS support and "set mips compression",
4289 "show mips compression" commands.
4290 * mips-tdep.h (mips_isa): New enum.
4291 (gdbarch_tdep): Add mips_isa.
4292 (mips_pc_is_mips16): Update prototype.
4293 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4294 * mips-tdep.c (mips_compression_mips16): New variable.
4295 (mips_compression_micromips): Likewise.
4296 (mips_compression_strings): Likewise.
4297 (mips_compression_string): Likewise.
4298 (is_mips16_isa, is_micromips_isa): New functions.
4299 (is_mips16_addr): Rename to...
4300 (is_compact_addr): ... this.
4301 (unmake_mips16_addr): Likewise to...
4302 (unmake_compact_addr): ... this.
4303 (make_mips16_addr): Likewise to...
4304 (make_compact_addr): ... this.
4305 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4307 (mips_elf_make_msymbol_special): Handle microMIPS code.
4308 (msymbol_is_special): Rename to...
4309 (msymbol_is_mips16): ... this.
4310 (mips_make_symbol_special, mips_pc_is_mips16): Update
4312 (msymbol_is_mips, msymbol_is_micromips): New functions.
4313 (mips16_to_32_reg): Rename to...
4314 (mips_reg3_to_reg): ... this.
4315 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4316 (mips_pc_isa): Likewise.
4317 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4319 (mips_fetch_instruction): Pass return status instead of printing
4320 an error message if requested. Handle microMIPS code. Bail out
4322 (micromips_op): New macro.
4323 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4324 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4325 (b6s4_op, b7s3_reg): Likewise.
4326 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4327 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4328 (mips_insn_size): New function.
4329 (mips32_next_pc): Update mips_fetch_instruction call.
4330 (micromips_relative_offset7): New function.
4331 (micromips_relative_offset10): Likewise.
4332 (micromips_relative_offset16): Likewise.
4333 (micromips_pc_insn_size): Likewise.
4334 (micromips_bc1_pc): Likewise.
4335 (micromips_next_pc): Likewise.
4336 (unpack_mips16): Update mips_fetch_instruction call.
4337 (extended_mips16_next_pc): Update according to change to
4339 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4341 (mips16_scan_prologue): Update mips_fetch_instruction call.
4342 Update according to change to mips16_to_32_reg.
4343 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4344 (mips_insn16_frame_base_sniffer): Likewise.
4345 (micromips_decode_imm9): New function.
4346 (micromips_scan_prologue): Likewise.
4347 (mips_micro_frame_cache): Likewise.
4348 (mips_micro_frame_this_id): Likewise.
4349 (mips_micro_frame_prev_register): Likewise.
4350 (mips_micro_frame_sniffer): Likewise.
4351 (mips_micro_frame_unwind): New variable.
4352 (mips_micro_frame_base_address): New function.
4353 (mips_micro_frame_base): New variable.
4354 (mips_micro_frame_base_sniffer): New function.
4355 (mips32_scan_prologue): Update mips_fetch_instruction call.
4356 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4357 rather than for MIPS16.
4358 (mips_insn32_frame_base_sniffer): Likewise.
4359 (mips_addr_bits_remove): Handle microMIPS code.
4360 (deal_with_atomic_sequence): Rename to...
4361 (mips_deal_with_atomic_sequence): ... this. Update the type
4362 of the variable used to hold an instruction. Remove the ISA bit
4363 check. Update mips_fetch_instruction call.
4364 (micromips_deal_with_atomic_sequence): New function.
4365 (deal_with_atomic_sequence): Likewise.
4366 (mips_about_to_return): Handle microMIPS code. Update
4367 mips_fetch_instruction call.
4368 (heuristic_proc_start): Check for the standard MIPS ISA rather
4369 than for MIPS16. Update mips_pc_is_mips16 and
4370 mips_fetch_instruction calls. Handle microMIPS code.
4371 (mips_push_dummy_code): Handle microMIPS code.
4372 (mips_eabi_push_dummy_call): Likewise.
4373 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4374 (mips_o64_push_dummy_call): Handle microMIPS code.
4375 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4376 (is_delayed): Remove function.
4377 (mips_single_step_through_delay): Replace the call to is_delayed
4378 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4379 Handle microMIPS code.
4380 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4382 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4384 (micromips_in_function_epilogue_p): New function.
4385 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4387 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4389 (gdb_print_insn_mips): Likewise.
4390 (mips_breakpoint_from_pc): Likewise.
4391 (mips_remote_breakpoint_from_pc): New function.
4392 (mips32_instruction_has_delay_slot): Simplify making use of the
4393 updated mips_fetch_instruction interface.
4394 (micromips_instruction_has_delay_slot): New function.
4395 (mips16_instruction_has_delay_slot): Simplify making use of the
4396 updated mips_fetch_instruction interface.
4397 (mips_adjust_breakpoint_address): Check for the standard MIPS
4398 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4399 calls. Handle microMIPS code.
4400 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4401 (mips_skip_trampoline_code): Handle microMIPS code.
4402 (global_mips_compression): New function.
4403 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4404 file flags. Register the microMIPS remote breakpoint handler
4405 and heuristic frame unwinder.
4406 (show_mips_compression): New function.
4407 (_initialize_mips_tdep): Add the "set mips compression" and
4408 "show mips compression" commands.
4410 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4415 * amd64-darwin-tdep.c:
4416 * arm-symbian-tdep.c:
4420 * bfin-linux-tdep.c:
4427 * dwarf2-frame-tailcall.c:
4456 * microblaze-tdep.c:
4457 * mips-linux-tdep.c:
4465 * python/py-finishbreakpoint.c:
4466 * python/py-inferior.c:
4467 * python/py-infthread.c:
4471 * remote-m32r-sdi.c:
4475 * rs6000-aix-tdep.c:
4501 * amd64-darwin-tdep.c:
4502 * arm-symbian-tdep.c:
4503 * arm-tdep.c: Delete unused variables.
4505 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4507 Rename $ddir to $datadir.
4508 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4509 * auto-load.c (auto_load_safe_path_vec_update)
4510 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4511 * configure: Regenerate.
4512 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4513 Likewise. Remove the 'use $ddir' help string.
4515 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4517 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4518 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4520 2012-05-18 Tom Tromey <tromey@redhat.com>
4523 * valprint.h (struct value_print_options) <symbol_print>: New
4525 * valprint.c (user_print_options): Add default for symbol_print.
4526 (show_symbol_print): New function.
4527 (generic_val_print): Respect symbol_print.
4528 (_initialize_valprint): Add "print symbol" setting.
4529 * f-valprint.c (f_val_print): Respect symbol_print.
4530 * c-valprint.c (c_val_print): Respect symbol_print.
4532 * printcmd.c (print_address_symbolic): Return int. Ignore some
4534 (print_address_demangle): Return int.
4535 * defs.h: (print_address_symbolic): Return int.
4536 * value.h (print_address_demangle): Return int.
4538 2012-05-18 Tom Tromey <tromey@redhat.com>
4540 * valprint.c (val_print_string): Don't print leading space.
4541 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4542 print space before string or vtbl.
4543 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4545 * jv-valprint.c (java_value_print): Print space before string.
4546 * go-valprint.c (print_go_string): Print space before string.
4547 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4548 space before string.
4549 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4550 space before string or vtbl.
4551 * auxv.c (fprint_target_auxv): Print space after address.
4553 2012-05-18 Tom Tromey <tromey@redhat.com>
4555 * printcmd.c (print_address_demangle): Remove special case for 0.
4557 2012-05-18 Tom Tromey <tromey@redhat.com>
4559 * printcmd.c (print_address_demangle): Add 'opts' argument.
4560 * p-valprint.c (pascal_val_print): Update.
4561 * jv-valprint.c (java_val_print): Update.
4563 * valprint.c (generic_val_print): Update.
4564 (print_function_pointer_address): Add 'options' argument. Remove
4565 'addressprint' argument. Update.
4566 * m2-valprint.c (print_unpacked_pointer): Update.
4567 * gnu-v3-abi.c (print_one_vtable): Update.
4568 (gnuv3_print_method_ptr): Update.
4569 * f-valprint.c (f_val_print): Update.
4570 * cp-valprint.c (cp_print_value_fields): Update.
4571 * valprint.h (print_function_pointer_address): Update.
4572 * c-valprint.c (c_val_print): Update.
4574 2012-05-18 Tom Tromey <tromey@redhat.com>
4576 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4577 directly corresponding to the found psymtab.
4578 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4579 (dw2_find_pc_sect_symtab): Use it.
4580 * block.h (blockvector_contains_pc): Declare.
4581 * block.c (find_block_in_blockvector): New function.
4582 (blockvector_for_pc_sect): Use it.
4583 (blockvector_contains_pc): New function.
4585 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4587 * mips-tdep.h (mips_write_pc): New prototype.
4588 * mips-tdep.c (mips_write_pc): Make external, add description.
4589 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4592 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4594 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4596 (mips_unwind_pc, mips_write_pc): Likewise.
4597 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4600 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4602 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4603 proc_warn, proc_error, proc_get_status, proc_flags,
4604 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4605 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4606 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4607 proc_stop_process, proc_wait_for_stop, proc_run_process,
4608 proc_set_traced_signals, proc_set_traced_faults,
4609 proc_set_traced_sysentry, proc_set_traced_sysexit,
4610 proc_set_held_signals, proc_get_held_signals,
4611 proc_get_traced_signals, proc_get_traced_faults,
4612 proc_get_traced_sysentry, proc_get_traced_sysexit,
4613 proc_clear_current_fault, proc_set_current_signal,
4614 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4615 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4616 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4617 proc_get_current_thread, proc_get_current_thread,
4618 proc_get_current_thread, proc_update_threads,
4619 proc_update_threads, proc_update_threads, proc_update_threads,
4620 proc_iterate_over_threads, procfs_find_new_threads,
4621 procfs_pid_to_str): Make static. Remove advance declaration.
4622 (proc_cursig): Make static. Conditionalized defintion on
4623 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4624 (proc_syscall, proc_set_kill_on_last_close,
4625 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4626 proc_get_pending_signals, proc_get_signal_actions,
4627 proc_trace_signal, proc_ignore_signal): Delete.
4629 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4631 * coffread.c (cs_section_address): Passing proper argument for
4632 `bfd_get_section_vma'.
4633 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4634 `bfd_get_section_flags'.
4635 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4636 `bfd_get_section_vma'.
4638 2012-05-16 Tom Tromey <tromey@redhat.com>
4641 * macrotab.h: (macro_define_special): Declare.
4642 (enum macro_special_kind): New.
4643 (struct macro_definition) <argc, replacement>: Update comments.
4644 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4645 (macro_define_object_internal): New function.
4646 (macro_define_object): Use it.
4647 (macro_define_special): New function.
4648 (fixup_definition): New function.
4649 (macro_lookup_definition, foreach_macro_in_scope)
4650 (foreach_macro): Use fixup_definition.
4651 * macroexp.h (macro_stringify): Declare.
4652 * macroexp.c (free_buffer_return_text): New function.
4653 (stringify): Constify "arg".
4654 (macro_stringify): New function.
4655 * dwarf2read.c (macro_start_file): Call macro_define_special.
4657 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4658 Maciej W. Rozycki <macro@mips.com>
4660 * breakpoint.h (bp_location): Add related_address member.
4661 * inferior.h (get_return_value): Take a pointer to struct value
4662 instead of struct type for the function requested.
4663 * value.h (using_struct_return): Likewise.
4664 * gdbarch.sh (return_value): Take a pointer to struct value
4665 instead of struct type for the function requested.
4666 * breakpoint.c (set_breakpoint_location_function): Initialize
4667 related_address for bp_gnu_ifunc_resolver breakpoints.
4668 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4669 requested function's address to gdbarch_return_value.
4670 * eval.c (evaluate_subexp_standard): Pass the requested
4671 function's address to using_struct_return.
4672 * infcall.c (call_function_by_hand): Pass the requested
4673 function's address to using_struct_return and
4674 gdbarch_return_value.
4675 * infcmd.c (get_return_value): Take a pointer to struct value
4676 instead of struct type for the function requested.
4677 (print_return_value): Update accordingly.
4678 (finish_command_continuation): Likewise.
4679 * stack.c (return_command): Pass the requested function's
4680 address to using_struct_return and gdbarch_return_value.
4681 * value.c (using_struct_return): Take a pointer to struct value
4682 instead of struct type for the function requested. Pass the
4683 requested function's address to gdbarch_return_value.
4684 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4685 New function_value member, replacing function_type.
4686 (bpfinishpy_dealloc): Update accordingly.
4687 (bpfinishpy_pre_stop_hook): Likewise.
4688 (bpfinishpy_init): Likewise. Record the requested function's
4690 * mips-tdep.c (mips_fval_reg): New enum.
4691 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4692 words put in GP registers.
4693 (mips_o64_push_dummy_call): Update a comment.
4694 (mips_o32_return_value): Take a pointer to struct value instead
4695 of struct type for the function requested and use it to check if
4696 using the MIPS16 calling convention. Return the designated
4697 general purpose registers for floating-point values returned in
4699 (mips_o64_return_value): Likewise.
4700 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4701 (ppc_sysv_abi_broken_return_value): Likewise.
4702 (ppc64_sysv_abi_return_value): Likewise.
4703 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4704 value instead of struct type for the function requested.
4705 * amd64-tdep.c (amd64_return_value): Likewise.
4706 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4707 * arm-tdep.c (arm_return_value): Likewise.
4708 * avr-tdep.c (avr_return_value): Likewise.
4709 * bfin-tdep.c (bfin_return_value): Likewise.
4710 * cris-tdep.c (cris_return_value): Likewise.
4711 * frv-tdep.c (frv_return_value): Likewise.
4712 * h8300-tdep.c (h8300_return_value): Likewise.
4713 (h8300h_return_value): Likewise.
4714 * hppa-tdep.c (hppa32_return_value): Likewise.
4715 (hppa64_return_value): Likewise.
4716 * i386-tdep.c (i386_return_value): Likewise.
4717 * ia64-tdep.c (ia64_return_value): Likewise.
4718 * iq2000-tdep.c (iq2000_return_value): Likewise.
4719 * lm32-tdep.c (lm32_return_value): Likewise.
4720 * m32c-tdep.c (m32c_return_value): Likewise.
4721 * m32r-tdep.c (m32r_return_value): Likewise.
4722 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4723 * m68k-tdep.c (m68k_return_value): Likewise.
4724 (m68k_svr4_return_value): Likewise.
4725 * m88k-tdep.c (m88k_return_value): Likewise.
4726 * mep-tdep.c (mep_return_value): Likewise.
4727 * microblaze-tdep.c (microblaze_return_value): Likewise.
4728 * mn10300-tdep.c (mn10300_return_value): Likewise.
4729 * moxie-tdep.c (moxie_return_value): Likewise.
4730 * mt-tdep.c (mt_return_value): Likewise.
4731 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4732 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4733 (ppc_sysv_abi_broken_return_value): Likewise.
4734 (ppc64_sysv_abi_return_value): Likewise.
4735 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4736 * rl78-tdep.c (rl78_return_value): Likewise.
4737 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4738 * rx-tdep.c (rx_return_value): Likewise.
4739 * s390-tdep.c (s390_return_value): Likewise.
4740 * score-tdep.c (score_return_value): Likewise.
4741 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4742 (sh_return_value_fpu): Likewise.
4743 * sh64-tdep.c (sh64_return_value): Likewise.
4744 * sparc-tdep.c (sparc32_return_value): Likewise.
4745 * sparc64-tdep.c (sparc64_return_value): Likewise.
4746 * spu-tdep.c (spu_return_value): Likewise.
4747 * tic6x-tdep.c (tic6x_return_value): Likewise.
4748 * v850-tdep.c (v850_return_value): Likewise.
4749 * vax-tdep.c (vax_return_value): Likewise.
4750 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4751 * xtensa-tdep.c (xtensa_return_value): Likewise.
4752 * gdbarch.c: Regenerate.
4753 * gdbarch.h: Regenerate.
4755 2012-05-15 Tom Tromey <tromey@redhat.com>
4757 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4759 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4761 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4762 of command in two error message.
4764 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4766 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4768 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4770 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4772 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4774 * NEWS (show auto-load scripts-directory): Add forgotten command.
4776 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4778 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4781 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4783 * amd64-tdep.c: Include features/i386/x32.c and
4784 features/i386/x32-avx.c.
4785 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4786 initialize_tdesc_x32_avx.
4788 2012-05-14 Stan Shebs <stan@codesourcery.com>
4791 * breakpoint.h (enum bptype): New type bp_dprintf.
4792 (struct breakpoint): New field extra_string.
4793 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4794 (create_breakpoint): Add extra_string arg.
4795 * breakpoint.c (dprintf_breakpoint_ops): New.
4796 (is_breakpoint): Add bp_dprintf.
4797 (bpstat_what): Add dprintf case.
4798 (bptype_string): Ditto.
4799 (print_one_breakpoint_location): Ditto.
4800 (init_bp_location): Ditto.
4801 (bkpt_print_mention): Ditto.
4802 (dprintf_style_enums): New array.
4803 (dprintf_style): New global.
4804 (dprintf_function): New global.
4805 (dprintf_channel): New global.
4806 (update_dprintf_command_list): New function.
4807 (update_dprintf_commands): New function.
4808 (init_breakpoint_sal): Add extra_string argument, handle it.
4809 (create_breakpoint_sal): Add extra_string argument.
4810 (create_breakpoints_sal): Add extra_string argument, update callers.
4811 (find_condition_and_thread): Add extra argument.
4812 (create_breakpoint): Add extra_string argument, record it.
4813 (dprintf_command): New function.
4814 (break_command_1): Add arg to create_breakpoint call.
4815 (handle_gnu_v3_exceptions): Ditto.
4816 (trace_command): Ditto.
4817 (ftrace_command): Ditto.
4818 (strace_command): Ditto.
4819 (bkpt_print_mention): Add dprintf case.
4820 (create_breakpoint_sal_default): Add extra_string argument.
4821 (_initialize_breakpoint): Add new commands.
4822 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4823 * python/py-breakpoint.c (bppy_init): Ditto.
4824 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4826 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4828 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4830 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4832 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4835 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4837 Add a new function gdb.find_pc_line to the Python API.
4838 * NEWS (Python Scripting): Add entry about the new function.
4839 * python/python.c (gdbpy_find_pc_line): New function which
4840 implements gdb.find_pc_line.
4841 (GdbMethods): Add entry for the new function.
4843 2012-05-12 Pedro Alves <palves@redhat.com>
4845 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4846 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4848 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4850 * inferior.c: Include completer.h
4851 (initialize_inferiors): Set completer of add-inferior to
4854 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4856 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4857 gdbarch_ptr_bit for x32 core dump.
4859 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4861 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4862 and features/i386/x32-avx-linux.c.
4864 2012-05-11 Stan Shebs <stan@codesourcery.com>
4865 Kwok Cheung Yeung <kcy@codesourcery.com>
4867 * NEWS: Describe new info os commands.
4868 * common/linux-osdata.c (PID_T, TIME_T): Define.
4869 (MAX_PID_T_STRLEN): New.
4870 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4872 (command_from_pid): Add comment. Change to use PID_T.
4873 (commandline_from_pid): Change to use PID_T.
4874 (user_from_pid): Add comment.
4875 (get_process_owner): Add comment. Change to use PID_T and
4877 (get_number_of_cpu_cores): Add comment.
4878 (get_cores_used_by_process): Add comment. Change to use PID_T and
4880 (linux_xfer_osdata_processes): Change to use PID_T and
4882 (compare_processes): New function.
4883 (linux_xfer_osdata_processgroups): New function.
4884 (linux_xfer_osdata_threads): Change to use PID_T.
4885 (linux_xfer_osdata_fds): New function.
4886 (format_socket_state, print_sockets): New functions.
4887 (union socket_addr): New union.
4888 (linux_xfer_osdata_isockets): New function.
4889 (time_from_time_t, group_from_gid): New functions.
4890 (linux_xfer_osdata_shm): New function.
4891 (linux_xfer_osdata_sem): New function.
4892 (linux_xfer_osdata_msg): New function.
4893 (linux_xfer_osdata_modules): New function.
4894 (osdata_table): Add new entries.
4895 * common/buffer.c (buffer_xml_printf): Add support for long and
4896 long long format specifiers.
4898 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4900 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4901 (tdesc_x32_avx_linux): Likewise.
4903 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4905 Implement multi-component --with-auto-load-dir.
4906 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4908 (--with-auto-load-safe-path): Update the default value description.
4909 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4911 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4912 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4913 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4914 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4915 "set auto-load scripts-directory".
4916 * config.in: Regenerate.
4917 * configure: Regenerate.
4918 * configure.ac (--with-auto-load-dir): New configure option.
4919 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4921 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4923 Provide $ddir substitution for --with-auto-load-safe-path.
4924 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4926 * auto-load.c: Include observer.h.
4927 (auto_load_safe_path_vec_update): Call substitute_path_component for
4928 each component. New variable ddir_subst.
4929 (auto_load_gdb_datadir_changed): New function.
4930 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4931 AUTO_LOAD_SAFE_PATH. New comment.
4932 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4933 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4934 * config.in: Regenerate.
4935 * configure: Regenerate.
4936 * configure.ac (--auto-load-safe-path): Rename
4937 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4938 GDB_DATADIR/auto-load.
4939 * defs.h (substitute_path_component): New declaration.
4940 * top.c: Include observer.h.
4941 (set_gdb_datadir): New function.
4942 (init_main): Install it for "set data-directory".
4943 * utils.c (substitute_path_component): New function.
4945 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4947 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4948 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4949 DEBUG_FILE_DIRECTORY. Handle multiple components of
4950 DEBUG_FILE_DIRECTORY.
4952 2012-05-10 Tom Tromey <tromey@redhat.com>
4954 * dwarf2read.c (recursively_write_psymbols): New function.
4955 (write_psymtabs_to_index): Use it.
4957 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4959 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4960 (load_partial_comp_unit): Update.
4961 (queue_comp_unit): Add argument 'pretend_language'.
4962 (process_queue): Update.
4963 (psymtab_to_symtab_1): Skip dependencies that have a user.
4964 (load_partial_comp_unit_reader): Give meaning to the 'data'
4966 (load_full_comp_unit): Add 'pretend_language' argument.
4967 (process_full_comp_unit): Add 'pretend_language' argument. Set
4969 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4971 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4972 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4974 (prepare_one_comp_unit): Add 'pretend_language' argument.
4976 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4977 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4978 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4979 (dw2_do_instantiate_symtab): Check whether symtab was read in
4981 (dw2_instantiate_symtab): Add assertion. Call
4982 process_cu_includes.
4983 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4984 (partial_symtab_p): New typedef.
4985 (set_partial_user): New function.
4986 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4987 (scan_partial_symbols): Add imported CU to imported_symtabs.
4988 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4989 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4990 (get_symtab, recursively_compute_inclusions)
4991 (compute_symtab_includes, process_cu_includes)
4992 (process_imported_unit_die): New functions.
4993 (process_die) <DW_TAG_imported_unit>: New case.
4994 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4996 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4998 (struct partial_die_info) <locdesc>: Remove.
5000 (process_psymtab_comp_unit): Add 'read_partial' argument.
5002 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5003 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5004 (add_partial_symbol): Update.
5005 (process_die): Handle DW_TAG_partial_unit.
5006 (read_file_scope): Update comment.
5007 (load_partial_dies): Handle DW_TAG_imported_unit.
5008 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5009 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5011 2012-05-10 Tom Tromey <tromey@redhat.com>
5013 * cc-with-dwz.sh: New file.
5015 2012-05-10 Tom Tromey <tromey@redhat.com>
5017 * symtab.h (struct symtab) <includes, user>: New fields.
5018 * block.h (struct block_iterator) <d, idx, which>: New fields.
5019 * block.c (initialize_block_iterator, find_iterator_symtab)
5020 (block_iterator_step, block_iter_name_step)
5021 (block_iter_match_step): New functions.
5022 (block_iterator_first, block_iterator_next)
5023 (block_iter_name_first, block_iter_name_next)
5024 (block_iter_match_first, block_iter_match_next): Rewrite.
5025 (get_block_symtab): New function.
5027 2012-05-10 Tom Tromey <tromey@redhat.com>
5029 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5031 * jit.c (finalize_symtab): Use allocate_global_block,
5033 * buildsym.c (finish_block_internal): New function, from old
5035 (finish_block): Rewrite.
5036 (end_symtab): Use finish_block_internal, set_block_symtab.
5037 * block.h (struct global_block): New.
5038 (allocate_global_block, set_block_symtab): Declare.
5039 * block.c (allocate_global_block, set_block_symtab): New
5042 2012-05-10 Tom Tromey <tromey@redhat.com>
5044 * psymtab.c (partial_map_expand_apply): Add assertion.
5045 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5046 (psymtab_to_symtab): Find unshared psymtab.
5047 (dump_psymtab): Print including psymtabs.
5048 (recursively_search_psymtabs): New function.
5049 (expand_symtabs_matching_via_partial): Use it.
5050 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5052 (enum psymtab_search_status): New.
5054 2012-05-10 Tom Tromey <tromey@redhat.com>
5056 * tracepoint.c (scope_info): Update.
5057 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5058 (find_pc_sect_symtab, search_symbols)
5059 (default_make_symbol_completion_list_break_on)
5060 (make_file_symbol_completion_list): Update.
5061 * symmisc.c (dump_symtab_1): Update.
5062 * stack.c (print_frame_args, iterate_over_block_locals)
5063 (print_frame_labels, iterate_over_block_arg_vars): Update.
5064 * python/py-block.c (block_object) <dict>: Remove.
5066 <iter>: Change type.
5067 (blpy_iter): Update.
5068 (blpy_block_syms_iternext): Update.
5069 * psymtab.c (map_block): Use block iterators.
5070 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5071 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5072 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5073 * infrun.c (check_exception_resume): Update.
5074 * cp-support.c (make_symbol_overload_list_block): Update.
5075 * coffread.c (patch_opaque_types): Update.
5076 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5077 * block.h (struct block_iterator): New.
5078 (block_iterator_first, block_iterator_next, block_iter_name_first)
5079 (block_iter_name_next, block_iter_match_first)
5080 (block_iter_match_next): Declare.
5081 (ALL_BLOCK_SYMBOLS): Redefine.
5082 * block.c (block_iterator_first, block_iterator_next)
5083 (block_iter_name_first, block_iter_name_next)
5084 (block_iter_match_first, block_iter_match_next): New functions.
5085 * ada-lang.c (ada_add_block_symbols)
5086 (ada_make_symbol_completion_list): Use block iterator.
5088 2012-05-10 Tom Tromey <tromey@redhat.com>
5090 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5091 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5092 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5093 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5094 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5097 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5099 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5100 print-file-var-lib2.c, print-file-var-main.c and
5101 print-file-var.exp (located in gdb/testsuite/gdb.base).
5103 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5105 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5106 try locating the symbol in the symbol's own objfile first, before
5107 extending the search to all objfiles.
5108 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5109 out of lookup_symbol_aux_symtabs.
5110 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5111 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5112 Do not search EXCLUDE_OBJFILE.
5113 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5114 (lookup_symbol_global): Search for matches in the block's objfile
5115 first, before searching all other objfiles.
5117 2012-05-10 Tristan Gingold <gingold@adacore.com>
5119 * printcmd.c (set_command): Add pre/post inc/dec.
5121 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5123 * gdb.1: Document -ex option.
5125 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5127 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5128 * inferior.h (AT_SYMBOL): Delete.
5130 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5132 * mips-tdep.c (mips_push_dummy_code): New function.
5133 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5134 ON_STACK and install mips_push_dummy_code as our gdbarch
5135 push_dummy_code routine.
5137 2012-05-09 Pedro Alves <palves@redhat.com>
5139 * target.c (set_maintenance_target_async_permitted): Rename to ...
5140 (set_target_async_command): ... this.
5141 (show_maintenance_target_async_permitted): Rename to ...
5142 (show_target_async_command): ... this.
5143 (initialize_targets): Adjust.
5145 2012-05-08 Doug Evans <dje@google.com>
5147 * go-exp.y (classify_name): Add missing assignment of fields of
5150 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5152 Display the ">" prompt in interactive mode while reading canned
5153 commands, even when the current interpreter is MI.
5155 * interps.c (interp_set_temp): New function.
5157 * interps.h (interp_set_temp): Add prototype.
5159 * cli/cli-script.c (restore_interp): New cleanup function.
5160 (read_command_lines): Temporarily override the current interpreter
5161 with CLI and arrange for restoring the original one.
5163 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5165 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5167 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5169 * probe.c (parse_probes): Move conditional to check for
5170 debuginfo files from here...
5171 * stap-probe.c (stap_get_probes): ... to here.
5173 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5174 H.J. Lu <hongjiu.lu@intel.com>
5176 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5177 `movl %esp, %ebp' for the X32 ABI.
5179 2012-05-07 Tom Tromey <tromey@redhat.com>
5181 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5183 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5184 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5185 (dwarf_stack_op_name): Remove.
5186 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5187 (decode_locdesc): Use get_DW_OP_name.
5188 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5189 (dwarf2_compile_expr_to_ax): Likewise.
5190 (disassemble_dwarf_expression): Likewise.
5191 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5193 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5195 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5196 (sh_linux_sigtramp_cache): New function.
5197 (sh_linux_sigreturn_init): New function.
5198 (sh_linux_rt_sigreturn_init): New function.
5199 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5201 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5203 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5204 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5205 (sh_linux_init_abi): Add init calls to register new tramp_frame
5206 definitions under 32-bit SH, update comments.
5208 2012-05-07 Pedro Alves <palves@redhat.com>
5212 * amd64-linux-tdep.c: Include glibc-tdep.h.
5213 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5214 gdbarch_skip_solib_resolver callback.
5216 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5218 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5219 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5220 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5221 (add_auto_load_safe_path): Change the error message.
5222 (_initialize_auto_load): Change the "safe-path" help text.
5223 * configure: Regenerate
5224 * configure.ac (--without-auto-load-safe-path): Set
5225 WITH_AUTO_LOAD_SAFE_PATH to /.
5227 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5229 * stap-probe.h: Do not include unecessary `probe.h'.
5231 2012-05-05 Alan Modra <amodra@gmail.com>
5233 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5234 bfd_und_section_ptr.
5235 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5236 and bfd_com_section_ptr.
5238 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5240 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5242 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5244 * windows-nat.h (segment_register_p_ftype): New typedef.
5245 (windows_set_segment_register_p): Add declaration.
5246 * windows-nat.c (segment_register_p): New static global.
5247 (windows_set_segment_register_p): New function.
5248 (do_windows_fetch_inferior_registers): Add special handling
5249 for segment registers.
5250 * amd64-windows-nat.c: #include "amd64-tdep.h".
5251 (amd64_windows_segment_register_p): New function.
5252 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5253 * i386-windows-nat.c: #include "i386-tdep.h".
5254 (i386_windows_segment_register_p): New function.
5255 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5257 2012-05-04 Tristan Gingold <gingold@adacore.com>
5259 * printcmd.c (set_command): Emit a warning if the expression is not
5262 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5264 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5267 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5269 * stap-probe.c (stap_is_operator): Change declaration.
5270 (stap_get_opcode): Change return value.
5271 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5272 `stap_parse_argument_1'.
5274 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5276 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5279 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5281 Add two new methods global_block and static_block to gdb.Symtab
5283 * NEWS (Python scripting): Add entry about the new methods.
5284 * python/py-symtab.c (stpy_global_block): New function which
5285 implements the gdb.Symtab.global_block() method.
5286 (stpy_static_block): New function which implements the
5287 gdb.Symtab.static_block() method.
5288 (symtab_object_methods): Add entries for the two new methods.
5290 2012-05-03 Doug Evans <dje@google.com>
5292 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5295 2012-05-03 Yao Qi <yao@codesourcery.com>
5297 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5299 (i386_process_record): Ditto.
5301 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5303 * infcall.c (unwind_on_signal_p): Make static.
5305 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5307 * sol-thread.c (solaris_pid_to_str): Make static.
5308 (_initialize_sol_thread): Add prototype.
5310 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5312 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5314 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5316 * MAINTAINERS: Remove myself.
5318 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5320 Fix --without-auto-load-safe-path for MS-Windows host platform.
5321 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5323 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5325 * gdb_curses.h: Undefine KEY_EVENT before including curses
5326 headers. Move "#undef MOUSE_MOVED" before any curses header
5329 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5331 * features/i386/i386-mmx-linux.c: Regenerate.
5332 * features/rs6000/powerpc-32.c: Likewise.
5333 * features/rs6000/powerpc-32l.c: Likewise.
5334 * features/rs6000/powerpc-403.c: Likewise.
5335 * features/rs6000/powerpc-403gc.c: Likewise.
5336 * features/rs6000/powerpc-405.c: Likewise.
5337 * features/rs6000/powerpc-505.c: Likewise.
5338 * features/rs6000/powerpc-601.c: Likewise.
5339 * features/rs6000/powerpc-602.c: Likewise.
5340 * features/rs6000/powerpc-603.c: Likewise.
5341 * features/rs6000/powerpc-604.c: Likewise.
5342 * features/rs6000/powerpc-64.c: Likewise.
5343 * features/rs6000/powerpc-64l.c: Likewise.
5344 * features/rs6000/powerpc-750.c: Likewise.
5345 * features/rs6000/powerpc-860.c: Likewise.
5346 * features/rs6000/powerpc-e500.c: Likewise.
5347 * features/rs6000/powerpc-e500l.c: Likewise.
5348 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5349 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5350 * features/rs6000/rs6000.c: Likewise.
5352 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5354 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5356 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5357 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5358 (stap_parse_argument) <e>: Likewise.
5359 (handle_stap_probe) <byte_order>: Likewise.
5361 2012-04-30 Doug Evans <dje@google.com>
5363 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5364 init_and_read_dies_worker. All callers updated.
5365 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5366 replaced with init_cutu_and_read_dies.
5367 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5368 (find_partial_die): Remove FIXME. Don't free current CU.
5370 2012-04-30 Sterling Augustine <saugustine@google.com>
5372 * contrib: New directory.
5373 * contrib/test_pubnames_and_indexes.py: New file.
5375 2012-04-30 Doug Evans <dje@google.com>
5377 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5378 All callers updated.
5379 (init_cu_die_reader): Verify the section is non-empty.
5380 (dwarf_decode_line_header): Don't dereference section->asection
5381 until we know the section is present.
5383 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5385 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5388 2012-04-29 Yao Qi <yao@codesourcery.com>
5390 * gdb-code-style.el: New hook gdb-markup-hook
5391 and gdb-comment-hook.
5393 2012-04-28 Doug Evans <dje@google.com>
5395 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5396 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5398 * symfile.h (dwarf2_debug_sections): New member addr.
5399 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5400 (ctx_no_get_addr_index): New function.
5401 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5402 (ctx_no_get_addr_index): Declare.
5403 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5404 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5405 (dwarf_expr_ctx_funcs): Update.
5406 (needs_get_addr_index): New function.
5407 (needs_frame_ctx_funcs): Update.
5408 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5409 * dwarf2read.c: #include "gdbcore.h".
5410 (dwarf2_per_objfile): New members addr, dwo_files.
5411 (dwarf2_elf_names): Add entry for addr.
5412 (struct dwo_section_names): New type.
5413 (dwo_section_names): New static global.
5414 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5415 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5416 old debug_types_section member updated to use this.
5417 Rename member debug_types_section to info_or_types_section,
5419 (signatured_type): Rename member type_offset to type_offset_in_tu,
5420 all uses updated. New member type_offset_in_section.
5421 (struct dwo_sections): New type.
5422 (struct dwo_unit): New type.
5423 (struct dwo_file): New type.
5424 (die_reader_specs): New member dwo_file.
5425 (dwarf2_locate_sections): Watch for .debug_addr.
5426 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5427 (dwarf2_read_section): Get bfd of section from bfd's asection,
5429 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5430 (create_signatured_type_table_from_index): Initialize
5431 sig_type->info_or_types_section.
5432 (dw2_get_file_names): Statement lists for type units with DWO files
5433 live in the DWO file.
5434 (create_debug_types_hash_table): New function.
5435 (create_all_type_units): Rewrite.
5436 (init_cu_die_reader): New arg dwo_file, all callers updated.
5437 (init_and_read_dies_worker): Get section from
5438 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5439 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5440 continue reading the CU/TU from there.
5441 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5442 updated. Get section from this_cu->info_or_types_section.
5443 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5444 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5445 DW_FORM_GNU_str_index.
5446 (hash_dwo_file, eq_dwo_file): New functions.
5447 (allocate_dwo_file_hash_table): New function.
5448 (hash_dwo_unit, eq_dwo_unit): New functions.
5449 (allocate_dwo_unit_table): New function.
5450 (dwarf2_locate_dwo_sections): New function.
5451 (struct create_dwo_info_table_data): New type.
5452 (create_debug_info_hash_table_reader): New function.
5453 (create_debug_info_hash_table): New function.
5454 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5455 (lookup_dwo_file): New function.
5456 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5457 (free_dwo_file, free_dwo_file_cleanup): New functions.
5458 (free_dwo_file_from_slot, free_dwo_files): New functions.
5459 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5460 (dwarf2_record_block_ranges): Ditto.
5461 (read_partial_die): Ditto.
5462 (process_enumeration_scope): Update to use type_offset_in_section.
5463 (read_full_die_1): New function.
5464 (read_full_die): Rewrite.
5465 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5466 DW_FORM_GNU_str_index.
5467 (read_addr_index_1, read_addr_index): New functions.
5468 (read_addr_index_from_leb128): New function.
5469 (struct dwarf2_read_addr_index_data): New type.
5470 (dwarf2_read_addr_index_reader): New function.
5471 (dwarf2_read_addr_index): New function.
5472 (read_str_index): New function.
5473 (leb128_size): New function.
5474 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5475 If processing a type unit from a DWO file, get the line section
5477 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5478 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5479 DW_FORM_GNU_str_index.
5480 (lookup_die_type): Check whether section offset of type's die is
5481 known before looking it up. Remove assert. Condition can
5482 legimately happen for inter-cu type references.
5483 (dwarf_attr_name): Handle Fission attributes.
5484 (dwarf_form_name): Handle Fission forms.
5485 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5486 DW_FORM_GNU_str_index.
5487 (follow_die_sig): Update to use type_offset_in_section.
5488 (decode_locdesc): New case DW_OP_GNU_addr_index.
5489 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5490 DW_FORM_GNU_str_index.
5491 (cu_debug_loc_section): New function.
5492 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5493 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5494 Free DWO files if present.
5495 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5497 Refactor DIE reading.
5498 * dwarf2read.c (dwarf2_per_objfile): Replace members
5499 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5500 (die_reader_specs): New member "die_section". Temporarily make
5501 member "buffer" non-const, pending constifying all info_ptr uses.
5502 (die_reader_func_ftype): New typedef.
5503 (dw2_get_file_names_reader): New function.
5504 (dw2_get_file_names): Rewrite.
5505 (read_and_check_type_unit_head): Rename arg type_offset to
5507 (create_all_type_units): Improve debugging message.
5508 Improve dummy type unit check.
5509 (init_cu_die_reader): New arg "section". All callers updated.
5510 (init_and_read_dies_worker): New function.
5511 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5512 (init_cutu_and_read_dies_no_follow): New function.
5513 (init_cutu_and_read_dies_simple): New function.
5514 (process_psymtab_comp_unit_reader): New function.
5515 (process_psymtab_comp_unit): Delete args section,
5516 is_debug_types_section. Rewrite. All callers updated.
5517 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5518 All callers updated. Rewrite.
5519 (load_partial_comp_unit_reader): New function.
5520 (load_partial_comp_unit): Rewrite.
5521 (skip_children): New arg reader. Delete args buffer, cu.
5522 All callers updated.
5523 (skip_one_die): New arg reader. Delete args buffer, cu.
5524 All callers updated.
5525 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5526 All callers updated.
5527 (load_full_comp_unit_reader): New function.
5528 (load_full_comp_unit): Rewrite.
5529 (read_comp_unit): Delete.
5530 (read_die_and_children_1): Delete, contents moved ...
5531 (read_die_and_children): ... here.
5532 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5533 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5534 All callers updated.
5535 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5536 All callers updated.
5537 (find_partial_die): Rewrite load_all_dies support.
5538 (read_attribute_value): New arg reader. Delete args abfd, cu.
5539 All callers updated.
5540 (read_attribute): New arg reader. Delete args abfd, cu.
5541 All callers updated.
5542 (load_full_type_unit): Add assert.
5543 (read_signatured_type_reader): New function.
5544 (read_signatured_type): Rewrite.
5545 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5546 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5547 All callers updated. Set per_cu->cu = NULL after freeing it.
5548 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5549 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5550 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5551 (set_die_type): Update.
5552 (get_die_type_at_offset): Update.
5553 (read_file_scope): Call prepare_one_comp_unit.
5554 (read_type_unit_scope): Ditto.
5555 (prepare_one_comp_unit): Set producer if present.
5557 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5559 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5560 gettext function on `error'.
5562 2012-04-27 Doug Evans <dje@google.com>
5564 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5567 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5568 Tom Tromey <tromey@redhat.com>
5570 * breakpoint.c (struct breakpoint_objfile_data)
5571 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5572 <exception_probes>: New fields.
5573 (free_breakpoint_probes): New function.
5574 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5575 `_Unwind_DebugHook'.
5576 (create_exception_master_breakpoint): Likewise.
5577 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5578 * infrun.c: Including necessary header files for handling SystemTap
5580 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5581 via SystemTap probes.
5582 (check_exception_resume): Remove `func' argument. Handle exception
5583 unwinding breakpoint set via a SystemTap probe.
5584 (insert_exception_resume_from_probe): New function.
5586 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5587 Tom Tromey <tromey@redhat.com>
5588 Jan Kratochvil <jan.kratochvil@redhat.com>
5590 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5591 (COMMON_OBS): Likewise.
5592 (HFILES_NO_SRCDIR): Add `probe'.
5593 * NEWS: Mention support for static and SystemTap probes.
5594 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5595 SystemTap probes' arguments parser.
5596 * arm-linux-tdep.c: Including headers needed to perform the parsing
5597 of SystemTap probes' arguments.
5598 (arm_stap_is_single_operand): New function.
5599 (arm_stap_parse_special_token): Likewise.
5600 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5601 probes' arguments parser.
5602 * ax-gdb.c (require_rvalue): Removing static declaration.
5603 (gen_expr): Likewise.
5604 * ax-gdb.h (gen_expr): Declaring function.
5605 (require_rvalue): Likewise.
5606 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5607 (bkpt_probe_breakpoint_ops): New variable.
5608 (momentary_breakpoint_from_master): Set the `probe' value.
5609 (add_location_to_breakpoint): Likewise.
5610 (break_command_1): Using proper breakpoint_ops according to the
5611 argument passed by the user in the command line.
5612 (bkpt_probe_insert_location): New function.
5613 (bkpt_probe_remove_location): Likewise.
5614 (bkpt_probe_create_sals_from_address): Likewise.
5615 (bkpt_probe_decode_linespec): Likewise.
5616 (tracepoint_probe_create_sals_from_address): Likewise.
5617 (tracepoint_probe_decode_linespec): Likewise.
5618 (tracepoint_probe_breakpoint_ops): New variable.
5619 (trace_command): Using proper breakpoint_ops according to the
5620 argument passed by the user in the command line.
5621 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5622 static probes on breakpoints and tracepoints.
5623 * breakpoint.h (struct bp_location) <probe>: New field.
5624 * cli-utils.c (skip_spaces_const): New function.
5625 (extract_arg): Likewise.
5626 * cli-utils.h (skip_spaces_const): Likewise.
5627 (extract_arg): Likewise.
5628 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5629 * configure.ac: Append `stap-probe.o' to be generated when ELF
5631 * configure: Regenerate.
5632 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5633 * elfread.c: Include `probe.h' and `arch-utils.h'.
5634 (probe_key): New variable.
5635 (elf_get_probes): New function.
5636 (elf_get_probe_argument_count): Likewise.
5637 (elf_evaluate_probe_argument): Likewise.
5638 (elf_compile_to_ax): Likewise.
5639 (elf_symfile_relocate_probe): Likewise.
5640 (stap_probe_key_free): Likewise.
5641 (elf_probe_fns): New variable.
5642 (elf_sym_fns): Add `sym_probe_fns' value.
5643 (elf_sym_fns_lazy_psyms): Likewise.
5644 (elf_sym_fns_gdb_index): Likewise.
5645 (_initialize_elfread): Initialize objfile cache for static
5647 * gdb_vecs.h (struct probe): New forward declaration.
5648 (probe_p): New VEC declaration.
5649 * gdbarch.c: Regenerate.
5650 * gdbarch.h: Regenerate.
5651 * gdbarch.sh (stap_integer_prefix): New variable.
5652 (stap_integer_suffix): Likewise.
5653 (stap_register_prefix): Likewise.
5654 (stap_register_suffix): Likewise.
5655 (stap_register_indirection_prefix): Likewise.
5656 (stap_register_indirection_suffix): Likewise.
5657 (stap_gdb_register_prefix): Likewise.
5658 (stap_gdb_register_suffix): Likewise.
5659 (stap_is_single_operand): New function.
5660 (stap_parse_special_token): Likewise.
5661 (struct stap_parse_info): Forward declaration.
5662 * i386-tdep.c: Including headers needed to perform the parsing
5663 of SystemTap probes' arguments.
5664 (i386_stap_is_single_operand): New function.
5665 (i386_stap_parse_special_token): Likewise.
5666 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5667 probes' arguments parser.
5668 * i386-tdep.h (i386_stap_is_single_operand): New function.
5669 (i386_stap_parse_special_token): Likewise.
5670 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5671 * mipsread.c (ecoff_sym_fns): Likewise.
5672 * objfiles.c (objfile_relocate1): Support relocation for static
5674 * parse.c (prefixify_expression): Remove static declaration.
5675 (initialize_expout): Likewise.
5676 (reallocate_expout): Likewise.
5677 * parser-defs.h (initialize_expout): Declare function.
5678 (reallocate_expout): Likewise.
5679 (prefixify_expression): Likewise.
5680 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5681 of SystemTap probes' arguments.
5682 (ppc_stap_is_single_operand): New function.
5683 (ppc_stap_parse_special_token): Likewise.
5684 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5685 probes' arguments parser.
5686 * probe.c: New file, for generic statically defined probe support.
5687 * probe.h: Likewise.
5688 * s390-tdep.c: Including headers needed to perform the parsing of
5689 SystemTap probes' arguments.
5690 (s390_stap_is_single_operand): New function.
5691 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5692 probes' arguments parser.
5693 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5694 * stap-probe.c: New file, for SystemTap probe support.
5695 * stap-probe.h: Likewise.
5696 * symfile.h: Include `gdb_vecs.h'.
5697 (struct sym_probe_fns): New struct.
5698 (struct sym_fns) <sym_probe_fns>: New field.
5699 * symtab.c (init_sal): Initialize `probe' field.
5700 * symtab.h (struct probe): Forward declaration.
5701 (struct symtab_and_line) <probe>: New field.
5702 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5704 (stop_tracing): Likewise.
5705 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5707 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5708 Tom Tromey <tromey@redhat.com>
5710 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5711 and to compile agent expressions.
5712 * infrun.c (siginfo_make_value): New argument `ignore'.
5713 (siginfo_funcs): New struct.
5714 (_initialize_infrun): New argument when calling
5715 `create_internalvar_type_lazy'.
5716 * thread.c (thread_id_make_value): New argument `ignore'.
5717 (thread_funcs): New struct.
5718 (_initialize_thread): New argument when calling
5719 `create_internalvar_type_lazy'.
5720 * tracepoint.c (sdata_make_value): New argument `ignore'.
5721 (sdata_funcs): New struct.
5722 (_initialize_tracepoint): New argument when calling
5723 `create_internalvar_type_lazy'.
5724 * value.c (make_value): New struct.
5725 (create_internalvar_type_lazy): New argument `data'.
5726 (compile_internalvar_to_ax): New function.
5727 (value_of_internalvar): Properly handling `make_value' case.
5728 (clear_internalvar): Likewise.
5729 (show_convenience): Adding `TRY_CATCH' block.
5730 * value.h (internalvar_make_value): Delete, replace by...
5731 (struct internalvar_funcs): ... this.
5732 (create_internalvar_type_lazy) <fun>: Delete argument.
5733 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5734 (compile_internalvar_to_ax): New function.
5735 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5736 (tlb_funcs): New struct.
5737 (_initialize_windows_tdep): New argument when calling
5738 `create_internalvar_type_lazy'.
5740 2012-04-27 Mark Wielaard <mjw@redhat.com>
5742 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5743 see whether it is an address or a constant offset from DW_AT_low_pc.
5744 (dwarf2_record_block_ranges): Likewise.
5745 (read_partial_die): Likewise.
5747 2012-04-26 Mark Wielaard <mjw@redhat.com>
5749 * MAINTAINERS (Write After Approval): Add myself to the list.
5751 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5753 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5754 (proc_prettyprint_signal): Likewise.
5755 (proc_prettyprint_faultset): Likewise.
5756 (proc_prettyprint_fault): Likewise.
5757 (proc_prettyprint_actionset): Likewise.
5758 (proc_prettyprint_flags): Move to new proc-flags.c section.
5759 (proc_prettyfprint_flags): New prototype.
5760 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5761 (proc_syscall, proc_cursig): Likewise.
5762 (proc_set_kill_on_last_close): Likewise.
5763 (proc_unset_kill_on_last_close): Likewise.
5764 (proc_set_watchpoint): Make static.
5765 (proc_delete_dead_threads): Likewise.
5766 (procfs_set_watchpoint): Likewise.
5767 (_initialize_procfs): Add prototype.
5768 * proc-events.c: Include proc-utils.h.
5769 (init_syscall_table): Make static.
5770 * proc-api.c (_initialize_proc_api): Add prototype.
5771 * proc-flags.c: Include proc-utils.h.
5773 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5775 * configure.ac: Add AC_ARG_PROGRAM.
5776 * configure: Regenerate.
5778 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5780 Fix DW_AT_lower_bound defaults for DWARF-4+.
5781 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5782 high. New variable low_default_is_valid. Implement DWARF-4+
5783 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5784 no default by the DWARF standard.
5786 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5787 Maciej W. Rozycki <macro@codesourcery.com>
5789 * infrun.c (handle_inferior_event): Move the check for return
5790 trampolines ahead of the check for function trampolines.
5791 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5792 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5793 (mips_str_mips16_ret_stub): Likewise.
5794 (mips_str_call_fp_stub): Likewise.
5795 (mips_str_call_stub): Likewise.
5796 (mips_str_fn_stub): Likewise.
5797 (mips_str_pic): Likewise.
5798 (mips_in_frame_stub): New function.
5799 (mips_unwind_pc): Return the return address rather than the PC
5800 if the PC of an intermediate frame is inside a call thunk.
5801 (mips_is_stub_suffix): New function.
5802 (mips_is_stub_mode): Likewise.
5803 (mips_get_mips16_fn_stub_pc): Likewise.
5804 (mips_skip_mips16_trampoline_code): Update to handle all the
5805 currently generated stub types. Don't recurse into __fn_stub
5806 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5807 Use cooked register accesses.
5808 (mips_in_return_stub): Reintroduce function.
5809 (mips_skip_trampoline_code): Traverse trampolines recursively.
5810 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5812 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5816 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5818 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5819 * features/arm-with-m-vfp-d16.xml: New file. Describes
5820 Cortex-M with VFPv4-sp-d16 FPU register layout.
5821 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5822 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5823 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5824 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5825 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5827 2012-04-25 Doug Evans <dje@google.com>
5829 * cli/cli-decode.c (print_doc_line): Use stream instead of
5832 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5834 * features/arm-with-iwmmxt.c: Regenerate.
5835 * features/arm-with-m-fpa-layout.c: Likewise.
5836 * features/arm-with-m.c: Likewise.
5837 * features/arm-with-neon.c: Likewise.
5838 * features/arm-with-vfpv2.c: Likewise.
5839 * features/arm-with-vfpv3.c: Likewise.
5840 * features/mips-dsp-linux.c: Likewise.
5841 * features/mips-linux.c: Likewise.
5842 * features/mips64-dsp-linux.c: Likewise.
5843 * features/mips64-linux.c: Likewise.
5844 * features/s390-linux32.c: Likewise.
5845 * features/s390-linux32v1.c: Likewise.
5846 * features/s390-linux32v2.c: Likewise.
5847 * features/s390-linux64.c: Likewise.
5848 * features/s390-linux64v1.c: Likewise.
5849 * features/s390-linux64v2.c: Likewise.
5850 * features/s390x-linux64.c: Likewise.
5851 * features/s390x-linux64v1.c: Likewise.
5852 * features/s390x-linux64v2.c: Likewise.
5853 * features/tic6x-c62x-linux.c: Likewise.
5854 * features/tic6x-c62x.c: Likewise.
5855 * features/tic6x-c64x-linux.c: Likewise.
5856 * features/tic6x-c64x.c: Likewise.
5857 * features/tic6x-c64xp-linux.c: Likewise.
5858 * features/tic6x-c64xp.c: Likewise.
5859 * target-descriptions.c: Only generate `field_type' and `type'
5860 variables when needed.
5862 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5864 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5866 2012-04-25 Doug Evans <dje@google.com>
5868 Initial pass at Go language support.
5870 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5872 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5873 (YYFILES): Add go-exp.c.
5874 (YYOBJ): Add go-exp.o.
5875 (local-maintainer-clean): Delete go-exp.c.
5876 * defs.h (enum language): Add language_go.
5877 * dwarf2read.c: #include "go-lang.h".
5878 (fixup_go_packaging): New function.
5879 (process_full_comp_unit): Call it when processing Go CUs.
5880 (dwarf2_physname): Add Go support.
5881 (read_file_scope): Handle missing language spec for GNU Go.
5882 (set_cu_language): Handle DW_LANG_Go.
5883 * go-exp.y: New file.
5884 * go-lang.h: New file.
5885 * go-lang.c: New file.
5886 * go-typeprint.c: New file.
5887 * go-valprint.c: New file.
5888 * symtab.c: #include "go-lang.h".
5889 (symbol_set_language): Handle language_go.
5890 (symbol_find_demangled_name, symbol_set_names): Ditto.
5891 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5893 2012-04-24 Jim Meyering <meyering@redhat.com>
5895 avoid a few strncpy-induced buffer overruns
5896 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5897 fname and psargs before trying to concatenate.
5898 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5899 "name" before applying strchr.
5901 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5903 * CONTRIBUTE: Use unified diff instead of context diff when
5906 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5908 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5909 code. Handle JR.HB correctly.
5911 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5914 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5915 with the other MIPS16 helpers.
5917 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5919 * observer.sh: Conditionally declare `args', thus cleaning up
5920 unused instances of this variable.
5922 2012-04-24 Yao Qi <yao@codesourcery.com>
5924 Revert this patch to allow breakpoint always-inserted
5926 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5927 * breakpoint.c: Include record.h.
5928 (breakpoints_always_inserted_mode): Return false when the record
5931 * breakpoint.c (iterate_over_bp_locations): New.
5932 * breakpoint.h: Declare.
5933 New typedef walk_bp_location_callback.
5934 * record.c (record_open): Call record_init_record_breakpoints.
5935 (record_sync_record_breakpoints): New.
5936 (record_init_record_breakpoints): New.
5937 * NEWS: Mention supporting breakpoint always-inserted mode in
5940 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5942 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5945 2012-04-24 Yao Qi <yao@codesourcery.com>
5947 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5948 (is_catchpoint): ... it.
5949 (print_one_breakpoint_location): Caller update.
5950 * breakpoint.h: Update declaration.
5952 2012-04-23 David S. Miller <davem@davemloft.net>
5954 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5956 2012-04-23 Tom Tromey <tromey@redhat.com>
5958 * buildsym.c (add_free_pendings): Remove.
5959 * buildsym.h (add_free_pendings): Remove.
5961 2012-04-23 Doug Evans <dje@google.com>
5963 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5964 attr.u.unsnd instead of attr.u.addr.
5965 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5966 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5968 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5969 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5971 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5973 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5975 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5976 (mips_o32_return_value): Likewise.
5977 (mips_o64_return_value): Likewise.
5979 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5981 * ada-lang.c (ada_evaluate_subexp): Add cases for
5982 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5983 their treatment in eval.c.
5985 2012-04-21 David S. Miller <davem@davemloft.net>
5987 * sparc-tdep.c (X_DISP10): Define.
5988 (sparc_analyze_control_transfer): Handle compare-and-branch.
5990 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5992 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5993 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5995 2012-04-20 Nigel Stephens <nigel@mips.com>
5996 Maciej W. Rozycki <macro@codesourcery.com>
5998 * mips-tdep.c (mips_float_register_p): New function.
5999 (mips_convert_register_float_case_p): Use mips_float_register_p.
6000 (mips_register_type): Likewise.
6001 (mips_print_register): Likewise.
6002 (print_gp_register_row): Likewise.
6003 (mips_print_registers_info): Likewise.
6005 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6007 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6010 2012-04-20 Andrew Pinski <apinski@cavium.com>
6012 * MAINTAINERS (Write After Approval): Add myself to the list.
6014 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6016 * MAINTAINERS: Update my e-mail address.
6018 2012-04-20 Pedro Alves <palves@redhat.com>
6020 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6022 * configure: Regenerate.
6024 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6026 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6028 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6030 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6032 Fix compilation compatibility with python-2.4
6033 * python/py-type.c (convert_field): Cast ADDRSTRING for
6034 PyObject_SetAttrString as non-const. New comment.
6036 2012-04-19 Tom Tromey <tromey@redhat.com>
6038 * top.c (quit_target): Use all_cleanups.
6039 * main.c (captured_command_loop): Use all_cleanups.
6040 * exceptions.c (throw_exception): Use all_cleanups.
6042 2012-04-19 Pedro Alves <palves@redhat.com>
6044 * Makefile.in (GNULIB_BUILDDIR): New.
6045 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6046 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6047 (CLEANDIRS). Remove gnulib/import.
6048 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6050 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6051 (gnulib/import/Makefile): Replace gnulib/import with
6052 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6053 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6054 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6055 acx_configure_dir.m4.
6056 * acinclude.m4: Include acx_configure_dir.m4.
6057 * acx_configure_dir.m4: New file.
6058 * aclocal.m4: Regenerate.
6059 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6060 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6061 (GNULIB): New variable.
6062 (GNULIB_STDINT_H): Adjust.
6063 (AC_OUTPUT): Don't output gnulib/Makefile.
6064 * gdb/defs.h: Include build-gnulib/config.h.
6065 * aclocal.m4: Regenerate.
6066 * config.in: Regenerate.
6067 * configure: Regenerate.
6069 * gnulib/Makefile.in: New file.
6070 * gnulib/configure.ac: New file.
6071 * gnulib/aclocal.m4: New file.
6072 * gnulib/config.in: New file.
6073 * gnulib/configure: New file.
6074 * gnulib/: Re-run gnulib-tool to adjust.
6076 2012-04-19 Doug Evans <dje@google.com>
6078 * cleanups.h (struct cleanup): Move to cleanups.c.
6079 (make_cleanup_dtor_ftype): New typedef.
6080 (make_cleanup_dtor): Use it.
6081 (ALL_CLEANUPS): Replace with ...
6082 (all_cleanups): ... this. Declare. All uses updated.
6083 * cleanups.c: #include "gdb_assert.h".
6084 (sentinel_cleanup): New static global.
6085 (SENTINEL_CLEANUP): Define.
6086 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6087 (make_my_cleanup2): Assert result is non-NULL.
6088 (all_cleanups): New function.
6089 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6092 2012-04-19 Pedro Alves <palves@redhat.com>
6094 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6095 Adjust paths to gnulib imported files.
6097 2012-04-19 Pedro Alves <palves@redhat.com>
6099 * gnulib/: Move whole directory ...
6100 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6101 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6102 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6103 (aclocal_m4_deps): Adjust.
6104 * aclocal.m4: Regenerate.
6105 * configure: Regenerate.
6106 * configure.ac: Adjust AC_OUTPUT output.
6108 2012-04-19 Yao Qi <yao@codesourcery.com>
6110 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6112 * vec.c: Move it ...
6113 * common/vec.c: ... here.
6114 * vec.h: Move it ...
6115 * common/vec.h: ... here.
6117 2012-04-19 Yao Qi <yao@codesourcery.com>
6119 * gdb-code-style.el: New.
6121 2012-04-18 Pedro Alves <palves@redhat.com>
6123 Update gnulib from latest git.
6124 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6126 * gnulib/Makefile.am: Update.
6127 * gnulib/dummy.c: Update.
6128 * gnulib/extra/arg-nonnull.h: Update.
6129 * gnulib/extra/c++defs.h: Update.
6130 * gnulib/extra/update-copyright: Update.
6131 * gnulib/extra/warn-on-use.h: Update.
6132 * gnulib/inttypes.in.h: Update.
6133 * gnulib/m4/00gnulib.m4: Update.
6134 * gnulib/m4/extensions.m4: Update.
6135 * gnulib/m4/gnulib-cache.m4: Update.
6136 * gnulib/m4/gnulib-common.m4: Update.
6137 * gnulib/m4/gnulib-comp.m4: Update.
6138 * gnulib/m4/gnulib-tool.m4: Update.
6139 * gnulib/m4/include_next.m4: Update.
6140 * gnulib/m4/inttypes-pri.m4: Update.
6141 * gnulib/m4/inttypes.m4: Update.
6142 * gnulib/m4/longlong.m4: Update.
6143 * gnulib/m4/memchr.m4: Update.
6144 * gnulib/m4/memmem.m4: Update.
6145 * gnulib/m4/mmap-anon.m4: Update.
6146 * gnulib/m4/multiarch.m4: Update.
6147 * gnulib/m4/onceonly.m4: Update.
6148 * gnulib/m4/stddef_h.m4: Update.
6149 * gnulib/m4/stdint.m4: Update.
6150 * gnulib/m4/string_h.m4: Update.
6151 * gnulib/m4/warn-on-use.m4: Update.
6152 * gnulib/m4/wchar_h.m4: Update.
6153 * gnulib/m4/wchar_t.m4: Update.
6154 * gnulib/m4/wint_t.m4: Update.
6155 * gnulib/memchr.c: Update.
6156 * gnulib/memmem.c: Update.
6157 * gnulib/stddef.in.h: Update.
6158 * gnulib/stdint.in.h: Update.
6159 * gnulib/str-two-way.h: Update.
6160 * gnulib/string.in.h: Update.
6161 * gnulib/wchar.in.h: Update.
6163 * gnulib/extra/arg-nonnull.h: Delete.
6164 * gnulib/extra/c++defs.h: Delete.
6165 * gnulib/extra/warn-on-use.h: Delete.
6166 * gnulib/m4/wchar_h.m4: Delete.
6167 * gnulib/m4/wint_t.m4: Delete.
6168 * gnulib/wchar.in.h: Delete.
6170 * gnulib/extra/snippets/arg-nonnull.h: New.
6171 * gnulib/extra/snippets/c++defs.h: New.
6172 * gnulib/extra/snippets/warn-on-use.h: New.
6174 * aclocal.m4: Regenerate.
6175 * config.in: Regenerate.
6176 * configure: Regenerate.
6177 * gnulib/Makefile.in: Regenerate.
6179 2012-04-18 Pedro Alves <palves@redhat.com>
6181 Reimport the update-copyright module from gnulib
6182 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6184 * configure: Regenerate.
6185 * gnulib/Makefile.am: Update.
6186 * gnulib/Makefile.in: Regenerate.
6187 * gnulib/extra/update-copyright: Update.
6188 * gnulib/m4/gnulib-cache.m4: Update.
6189 * gnulib/m4/gnulib-comp.m4: Update.
6191 2012-04-18 Tristan Gingold <gingold@adacore.com>
6193 * configure.ac (aix): Put -lpthread into libs.
6194 * configure: Regenerate.
6196 2012-04-18 Tom Tromey <tromey@redhat.com>
6198 * linespec.c (convert_linespec_to_sals): Don't use
6200 (compare_msymbols): Arguments are minsym_and_objfile, not
6201 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6203 2012-04-18 Pedro Alves <palves@redhat.com>
6205 Revert gnulib/ part of:
6206 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6207 Copyright year update in most files (performed by copyright.sh).
6209 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6211 Fix 64-bit constants on 32-bit hosts.
6212 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6213 from unsigned long to ULONGEST.
6214 (read_signed_leb128): Change declaration return type from long to
6216 (dwarf2_const_value_attr): Change declaration parameter value from long
6218 (dwarf2_compute_name): Change variable value from long to LONGEST.
6219 (read_unsigned_leb128): Change return type, variable result and some
6220 casts from unsigned long to ULONGEST.
6221 (read_signed_leb128): Change return type, variable result and some
6222 casts from long to LONGEST.
6223 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6224 value from long to LONGEST.
6225 (dwarf2_const_value): Change variable value from long to LONGEST.
6226 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6227 plongest and hex_string.
6228 * symtab.h (struct general_symbol_info): Change ivalue from long to
6229 LONGEST, remove the comment.
6230 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6231 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6233 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6236 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6237 * ada-lang.c (ada_discrete_type_high_bound)
6238 (ada_discrete_type_low_bound): Fix function comment. Use
6239 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6240 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6241 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6242 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6243 Use TYPE_FIELD_ENUMVAL.
6244 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6245 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6246 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6247 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6249 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6250 * dwarf2read.c (process_enumeration_scope): Likewise.
6251 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6253 (class StructMainTypePrettyPrinter): Support also
6254 FIELD_LOC_KIND_ENUMVAL.
6255 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6257 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6258 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6259 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6260 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6262 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6263 accommodate enumval.
6264 (struct call_site): Adjust loc_kind to accommodate enumval.
6265 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6266 (TYPE_FIELD_ENUMVAL): New macros.
6267 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6268 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6270 * p-typeprint.c (pascal_type_print_base): Likewise.
6271 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6273 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6274 * python/py-type.c (convert_field): New variable addrstring. Use
6275 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6276 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6277 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6278 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6280 * valprint.c (generic_val_print): Likewise.
6282 2012-04-17 Doug Evans <dje@google.com>
6284 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6286 * dwarf2read.c: Whitespace fixes.
6287 (lookup_signatured_type): Tweak comment.
6288 (get_die_type_at_offset): Fix comment.
6290 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6292 * xcoffread.c (xcoff_secnum_to_sections): New function.
6293 (secnum_to_section, secnum_to_bfd_section): Reimplement
6294 using xcoff_secnum_to_sections. Rename "secnum" parameter
6296 (RECORD_MINIMAL_SYMBOL): Delete.
6297 (record_minimal_symbol): New function.
6298 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6299 by call to record_minimal_symbol and set misc_func_recorded
6300 to 1. Set last_csect_sec to the XCOFF section index instead
6301 of GDB's section_offset index. Update calls to
6302 prim_record_minimal_symbol_and_info to pass the BFD section
6305 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6307 * xcoffread.c (read_xcoff_symtab): Delete variables
6308 last_csect_val and last_csect_sec and associated code.
6310 2012-04-17 Doug Evans <dje@google.com>
6312 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6313 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6314 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6315 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6317 * cleanups.h: New file.
6318 * cleanups.c: New file.
6319 * Makefile.in (SFILES): Add cleanups.c.
6320 (HFILES_NO_SRCDIR): Add cleanups.h.
6321 (COMMON_OBS): Add cleanups.o.
6322 * defs.h (struct cleanup): Moved to cleanups.h.
6323 (do_cleanups,do_final_cleanups): Ditto.
6324 (discard_cleanups,discard_final_cleanups): Ditto
6325 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6326 (save_cleanups,save_final_cleanups): Ditto.
6327 (restore_cleanups,restore_final_cleanups): Ditto.
6328 (null_cleanup): Ditto.
6329 (make_my_cleanup,make_my_cleanup2): Ditto.
6330 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6331 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6332 (do_cleanups,do_final_cleanups): Ditto.
6333 (discard_cleanups,discard_final_cleanups): Ditto
6334 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6335 (save_cleanups,save_final_cleanups): Ditto.
6336 (restore_cleanups,restore_final_cleanups): Ditto.
6337 (null_cleanup): Ditto.
6338 (make_my_cleanup,make_my_cleanup2): Ditto.
6339 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6341 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6343 (make_cleanup_dyn_string_delete): Ditto.
6344 (make_cleanup_ui_file_delete): Ditto.
6345 (make_cleanup_ui_out_redirect_pop): Ditto.
6346 (make_cleanup_free_section_addr_info): Ditto.
6347 (make_cleanup_restore_integer): Ditto.
6348 (make_cleanup_unpush_target): Ditto.
6349 (make_cleanup_value_free_to_mark): Ditto.
6350 (make_cleanup_value_free): Ditto.
6351 (make_cleanup_free_so): Ditto.
6353 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6355 New option "set debug auto-load".
6356 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6357 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6358 (auto_load_safe_path_vec_update)
6359 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6361 (file_is_auto_load_safe): New parameters debug_fmt and ....
6362 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6363 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6364 caller by explanatory string.
6365 (_initialize_auto_load): Register "set debug auto-load".
6366 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6368 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6369 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6370 by explanatory string.
6371 * main.c (captured_main): Likewise.
6372 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6373 (source_section_scripts): Likewise.
6375 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6377 New option "set auto-load safe-path".
6378 * NEWS: New commands "set auto-load safe-path"
6379 and "show auto-load safe-path".
6380 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6381 (auto_load_safe_path, auto_load_safe_path_vec)
6382 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6383 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6384 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6385 (source_gdb_script_for_objfile): New variable is_safe. Call
6386 file_is_auto_load_safe. Return if it is not.
6387 (struct loaded_script): New field loaded.
6388 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6389 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6390 output "Missing" to "No".
6391 (_initialize_auto_load): New variable cmd. Initialize
6392 auto_load_safe_path. Register "set auto-load safe-path",
6393 "show auto-load safe-path" and "add-auto-load-safe-path".
6394 * auto-load.h (maybe_add_script): Add parameter loaded.
6395 (file_is_auto_load_safe): New declaration.
6396 * config.in: Regenerate.
6397 * configure: Regenerate.
6398 * configure.ac: New parameters --with-auto-load-safe-path
6399 and --without-auto-load-safe-path.
6400 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6401 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6402 * main.c (captured_main): Check file_is_auto_load_safe for
6404 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6405 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6406 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6409 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6411 auto-load: Implementation.
6412 * NEWS: New descriptions for "info auto-load",
6413 "info auto-load gdb-scripts", "info auto-load python-scripts",
6414 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6415 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6416 and "show auto-load-scripts". New description for "set auto-load",
6417 "show auto-load", "set auto-load gdb-scripts",
6418 "show auto-load gdb-scripts", "set auto-load python-scripts",
6419 "show auto-load python-scripts", "set auto-load local-gdbinit",
6420 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6421 "show auto-load libthread-db".
6422 * auto-load.c: Remove include python/python-internal.h. Add includes
6423 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6425 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6426 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6427 (gdbpy_global_auto_load): Rename to ...
6428 (global_auto_load): ... here.
6429 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6430 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6431 (script_language_gdb, source_gdb_script_for_objfile): New.
6432 (struct loaded_script): New field language.
6433 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6435 (maybe_add_script): Add parameter language. Drop redundant
6436 entry.full_path initialization. Initialize entry.language and
6438 (auto_load_objfile_script): Change parameter suffix to language.
6439 Remove the call of maybe_add_script.
6440 Call language->source_script_for_objfile.
6441 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6443 (collect_matching_scripts): Adjust it for
6444 struct collect_matching_scripts_data.
6445 (auto_load_info_scripts_pattern_nl): New variable.
6446 (info_auto_load_scripts): Rename to ...
6447 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6448 for struct collect_matching_scripts_data.
6449 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6450 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6451 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6452 (auto_load_info_cmdlist_get): New.
6453 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6454 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6455 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6456 "info auto-load local-gdbinit".
6457 * auto-load.h (struct script_language): New.
6458 (gdbpy_global_auto_load): Rename to ...
6459 (global_auto_load): ... here.
6460 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6461 (auto_load_local_gdbinit_loaded): New declarations.
6462 (maybe_add_script): New parameter language.
6463 (auto_load_objfile_script): Change parameter suffix to language.
6464 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6465 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6466 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6468 * linux-thread-db.c: Include auto-load.h and ctype.h.
6469 (auto_load_thread_db, show_auto_load_thread_db): New.
6470 (struct thread_db_info): New field filename.
6471 (delete_thread_db_info): Call xfree for FILENAME.
6472 (try_thread_db_load): Initialize FILENAME.
6473 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6474 if !AUTO_LOAD_THREAD_DB.
6475 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6476 (_initialize_thread_db): Install auto_load_thread_db
6477 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6478 as "info auto-load libthread-db".
6479 * main.c (captured_main): Rename gdbpy_global_auto_load to
6480 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6481 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6482 (print_gdb_help): Extend the help for 'local init file'.
6483 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6484 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6485 (auto_load_scripts): Rename to ...
6486 (auto_load_python_scripts): ... here, update the comment.
6487 (gdbpy_load_auto_script_for_objfile): New declaration.
6488 (show_auto_load_python_scripts, script_language_python)
6489 (gdbpy_load_auto_script_for_objfile): New.
6490 (source_section_scripts): Refactor the code.
6491 (load_auto_scripts_for_objfile): Rename to ...
6492 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6493 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6494 (info_auto_load_python_scripts): New.
6495 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6496 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6497 Register "set auto-load-scripts" as its deprecated alias. Register
6498 "info auto-load python-scripts". Register "info auto-load-scripts" as
6499 its deprecated alias.
6500 (load_auto_scripts_for_objfile): Rename to ...
6501 (gdbpy_load_auto_scripts_for_objfile): ... here.
6502 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6503 (gdbpy_load_auto_scripts_for_objfile): ... here.
6505 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6507 auto-load: Move files.
6508 * Makefile.in (SFILES): Add auto-load.c.
6509 (HFILES_NO_SRCDIR): Add auto-load.h.
6510 (COMMON_OBS): Add auto-load.o.
6511 (distclean): Change .gdbinit for gdb-gdb.gdb.
6512 * auto-load.c: New file, with parts from python/py-auto-load.c.
6513 * auto-load.h: New file, with parts from python/python.h.
6514 * configure: Regenerate.
6515 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6516 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6517 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6518 * main.c: Include auto-load.h.
6519 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6520 command.h, observer.h and progspace.h to auto-load.c. Add include
6522 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6523 (struct loaded_script, auto_load_pspace_data)
6524 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6525 (hash_loaded_script_entry, eq_loaded_script_entry)
6526 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6527 (maybe_add_script): Move to auto-load.c.
6528 (source_section_scripts): Change maybe_add_script parameters passing,
6529 use script_not_found_warning_print.
6530 (clear_section_scripts, auto_load_objfile_script)
6531 (auto_load_new_objfile, loaded_script_ptr)
6532 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6533 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6534 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6535 auto_load_new_objfile and info_auto_load_scripts initizations to
6537 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6539 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6542 * charset.c (find_charset_names): Remove variables ix and elt.
6543 Use free_char_ptr_vec.
6544 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6545 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6546 debugdir_end. New variable debugdir_len.
6547 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6548 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6550 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6551 and elt. Use free_char_ptr_vec.
6552 * source.c (add_path): Remove variables argv, arg and argv_index.
6553 New variables dir_vec, back_to, ix and name.
6554 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6555 make_cleanup_freeargv. Remove variable separator. Simplify the code
6556 no longer expecting DIRNAME_SEPARATOR.
6557 (openp): Remove variable p, p1 and len. New variables dir_vec,
6558 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6559 no longer expecting DIRNAME_SEPARATOR.
6560 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6561 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6563 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6564 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6565 (dirnames_to_char_ptr_vec): New functions.
6567 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6570 * source.c (add_path): Remove always true conditional 'p == 0' and
6571 unindent its code block.
6573 2012-04-17 Pedro Alves <palves@redhat.com>
6575 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6576 (FIELD_BITPOS_LVAL): ... this.
6577 (FIELD_BITPOS): New.
6578 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6579 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6580 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6582 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6584 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6585 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6586 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6589 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6591 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6592 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6593 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6594 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6595 * jv-lang.c (java_link_class_type): Likewise, once.
6596 * stabsread.c (read_enum_type): Likewise.
6598 2012-04-16 Yao Qi <yao@codesourcery.com>
6600 * common/agent.c (agent_run_command): Add one more parameter `len'.
6602 * common/agent.h: Update declaration.
6603 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6605 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6607 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6610 * value.c (value_actual_type): New function.
6611 * value.h (value_actual_type): New declaration.
6612 * varobj.c (update_type_if_necessary): New function.
6613 (varobj_create): Call value_actual_type instead of
6615 (install_dynamic_child): distinct changed and type changed MI variable
6617 (update_dynamic_varobj_children): Updated for install_dynamic_child
6618 change. All callers updated.
6619 (varobj_update): Support for MI variable object type change if
6620 the value changed and RTTI is used to determine the type.
6621 (create_child_with_value): Call value_actual_type instead of
6623 (adjust_value_for_child_access): Extended with a new parameter which
6624 specify whether the given value should be casted to enclosing type.
6625 All callers updated.
6627 2012-04-14 Yao Qi <yao@codesourcery.com>
6629 Import gnulib module inttypes from git
6630 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6631 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6632 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6633 gnulib/m4/inttypes-pri.m4
6634 * aclocal.m4, config.in, configure: Regenerated.
6635 * gnulib/Makefile.am: Update.
6636 * gnulib/Makefile.in: Update.
6637 * gnulib/m4/gnulib-cache.m4: Update.
6638 * gnulib/m4/gnulib-comp.m4: Update.
6639 * gnulib/inttypes.in.h: New.
6640 * gnulib/m4/inttypes-pri.m4: New.
6641 * gnulib/m4/inttypes.m4: New.
6643 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6645 * infrun.c (resume): Update PC address to the real PC after
6646 preparing to do displaced stepping.
6648 2012-04-12 Doug Evans <dje@google.com>
6650 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6651 All callers updated.
6653 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6655 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6657 2012-04-12 Doug Evans <dje@google.com>
6659 * dwarf2read.c (create_all_type_units): Renamed from
6660 create_debug_types_hash_table. All callers updated.
6662 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6663 local type_sig to sig_type, type_offset to type_offset_in_tu.
6664 (hash_signatured_type): Renamed from hash_type_signature,
6665 all callers updated.
6666 (eq_signatured_type): Renamed from eq_type_signature,
6667 all callers updated.
6668 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6669 (process_enumeration_scope): Ditto.
6670 (lookup_signatured_type_at_offset): Ditto.
6671 (load_full_type_unit, read_signatured_type): Ditto.
6673 2012-04-12 Yao Qi <yao@codesourcery.com>
6675 * remote.c (async_remote_interrupt): Correct function name in
6677 (async_remote_interrupt_twice): Ditto.
6679 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6681 * source.c (find_and_open_source): Consistently pass resulting
6682 full path through xfullpath.
6684 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6686 Provide more specific displaced-stepping memory error message.
6687 * infrun.c (displaced_step_prepare): New variable status. Call
6688 target_read_memory instead of read_memory, provide more specific
6691 2012-04-11 Tristan Gingold <gingold@adacore.com>
6694 * darwin-nat.c (darwin_execvp): Revert previous patch.
6696 2012-04-11 Tristan Gingold <gingold@adacore.com>
6699 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6702 2012-04-11 Tristan Gingold <gingold@adacore.com>
6704 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6707 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6709 New command 'explore' which helps explore values and types in
6711 * NEWS: Add an entry about the new 'explore' command.
6712 * data-directory/Makefile.in: Add gdb/command/explore.py
6713 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6714 command using the GDB Python API.
6716 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6718 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6719 extension in jump target calculation.
6721 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6723 * mips-tdep.c (mips32_next_pc): Handle JALX.
6725 2012-04-10 Yao Qi <yao@codesourcery.com>
6727 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6729 2012-04-10 Yao Qi <yao@codesourcery.com>
6731 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6732 and gnulib/m4/gnulib-tool.m4.
6734 2012-04-10 Doug Evans <dje@google.com>
6736 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6737 (load_partial_dies): Clarify comment.
6738 (find_partial_die): Support rereading type units.
6739 Clarify CU handling, if we know offset is in CU, don't search for the
6740 containing CU. Add comment regarding memory waste.
6742 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6744 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6745 i386/x32-avx and i386/x32-avx-linux.
6746 (i386/x32-expedite): New.
6747 (i386/x32-linux-expedite): Likewise.
6748 (i386/x32-avx-expedite): Likewise.
6749 (i386/x32-avx-linux-expedite): Likewise.
6750 ($(outdir)/i386/x32.dat): Likewise.
6751 ($(outdir)/i386/x32-linux.dat): Likewise.
6752 ($(outdir)/i386/x32-avx.dat): Likewise.
6753 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6755 * features/i386/x32-avx-linux.xml: New file.
6756 * features/i386/x32-avx.xml: Likewise.
6757 * features/i386/x32-core.xml: Likewise.
6758 * features/i386/x32-linux.xml: Likewise.
6759 * features/i386/x32.xml: Likewise.
6761 * features/i386/x32-avx-linux.c: New. Generated.
6762 * features/i386/x32-avx.c: Likewise.
6763 * features/i386/x32-linux.c: Likewise.
6764 * features/i386/x32.c: Likewise.
6765 * regformats/i386/x32-avx-linux.dat: Likewise.
6766 * regformats/i386/x32-avx.dat: Likewise.
6767 * regformats/i386/x32-linux.dat: Likewise.
6768 * regformats/i386/x32.dat: Likewise.
6770 2012-04-10 Tristan Gingold <gingold@adacore.com>
6772 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6773 code to kill the inferior.
6775 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6777 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6779 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6781 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6782 (yyvsp): New defines.
6783 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6785 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6787 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6789 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6791 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6794 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6796 * sparc64-tdep.c (sparc64_store_arguments)
6797 (sparc64_store_arguments): Fix coding style.
6799 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6801 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6802 complex floats, adjust some related comments and tighten a related
6804 (sparc64_extract_return_value): Handle complex floats.
6806 2012-04-07 Doug Evans <dje@google.com>
6808 * dwarf2read.c (load_partial_dies): Change condition to assert.
6810 2012-04-06 Doug Evans <dje@google.com>
6812 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6815 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6817 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6819 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6820 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6823 2012-04-05 Keith Seitz <keiths@redhat.com>
6825 * linespec.c (decode_compound): Remove.
6826 (enum offset_relative_sign): New enum.
6827 (struct line_offset): New struct.
6828 (struct linespec): New struct.
6829 (struct linespec_state): Move file_symtabs,
6830 user_filename, and user_function into struct linespec.
6831 Make result an anonymous struct holding vectors of
6832 symbolp and minsym_and_objfile_d.
6833 Add language member.
6834 (enum ls_token_type): New enum.
6835 (linespec_keywords): New array.
6836 (struct ls_token): New struct.
6837 (struct ls_parser): New struct.
6838 (linespec_lexer_lex_number): New function.
6839 (linespec_lexer_lex_keyword): New function.
6840 (is_ada_operator): New function.
6841 (skip_quote_char): New function.
6842 (copy_token_string): New function.
6843 (is_closing_quote_enclosed): New function.
6844 (find_parameter_list_end): New function.
6845 (linespec_lexer_lex_string): New function.
6846 (linespec_lexer_lex_one): New function.
6847 (linespec_lexer_consume_token): New function.
6848 (linespec_lexer_peek_token): New function.
6849 (cplusplus_error): Remove unused function.
6850 (find_methods): Update comment.
6851 (find_toplevel_char): Return const.
6852 (is_objc_method_format): Remove unused function.
6853 (find_toplevel_string): New function.
6854 (is_linespec_boundary): Remove.
6855 (symbol_not_found_error): New function.
6856 (find_method_overload_end): Remove function.
6857 (unexpected_linespec_error): New function.
6858 (keep_name_info): Remove.
6859 (linespec_parse_line_offset): New function.
6860 (linespec_parse_basic): New function.
6861 (canonicalize_linespec): New function.
6862 (decode_line_internal): Remove.
6863 (create_sals_line_offset): New function adapted from
6865 (convert_linespec_to_sals): New function.
6866 (parse_linespec): New function.
6867 (linespec_parser_new): New function.
6868 (linespec_state_destructor): Change parameter type to
6869 struct linespec_state *.
6870 Add language parameter.
6871 Remove freeing of moved members.
6872 (linespec_parser_delete): New function.
6873 (decode_line_full): Use parse_linespec and linespec_parser_new.
6874 (decode_line_1): Likewise.
6875 (decode_indirect): Rename to ...
6876 (linespec_expression_to_pc): ... this and rewrite
6877 to simply find CORE_ADDR, storing this result for later
6879 (locate_first_half): Remove.
6880 (deocde_objc): Add parameter LS.
6881 Initialize new struct collect_info members.
6882 Handle minimal symbols, too.
6883 (decode_compound): Delete.
6884 (lookup_prefix_sym): Rewrite.
6885 (compare_msymbols): New function.
6886 (find_method): Rewrite.
6887 Do not call cplusplus_error.
6888 (symtabs_from_filename): Rewrite.
6889 (collect_function_symbols): Delete.
6890 (find_function_symbols): Rewrite without ARGPTR-style
6892 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6893 (decode_dollar): Adapted and renamed to ...
6894 (linespec_parse_variable): ... this.
6895 (find_linespec_symbols): New function.
6896 (decode_label): Adapted and renamed to ...
6897 (find_label_symbols): ... this.
6898 (decode_digits_list_mode): Add and use LS argument.
6899 (decode_digits_ordinary): Likewise.
6900 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6901 If in list mode, allow any symbol class. Otherwise, only
6902 permit LOC_BLOCK symbols.
6903 (minsym_found): Update comments.
6904 (search_minsyms_for_name): Do not convert the matching symbol
6905 into a SAL. Simply push the symbol and objfile into the
6907 (decode_variable): Delete. Contents adapted into
6908 find_linespec_symbols.
6910 * cp-support.c (SKIP_SPACE): Remove.
6911 (operator_tokens): Remove unused global.
6912 (cp_validate_operator): Remove.
6913 * cp-support.h (cp_validate_operator): Remove declaration.
6915 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6917 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6918 for TYPE_VPTR_FIELDNO.
6919 * valprint.c (valprint_check_validity): Make it global, move the
6920 function comment ...
6921 * value.h (valprint_check_validity): ... to this new declaration.
6923 2012-04-02 Tristan Gingold <gingold@adacore.com>
6925 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6926 the STATE32 api for i386 state.
6927 (i386_darwin_store_inferior_registers): Likewise.
6929 2012-04-02 Tristan Gingold <gingold@adacore.com>
6931 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6933 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6936 2012-04-02 Tristan Gingold <gingold@adacore.com>
6939 * darwin-nat.c (darwin_execvp): Set binary preference.
6941 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6943 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6945 2012-03-30 Tom Tromey <tromey@redhat.com>
6947 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6948 of TRY_CATCH. Fix error handling.
6949 * python/py-value.c (convert_value_from_python): Move 'old'
6950 declaration to innermost scope.
6952 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6953 Andrey Smirnov <andrew.smirnov@gmail.com>
6955 -Wshadow warning fix.
6956 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6957 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6958 Adjust code accordingly.
6960 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6962 * ada-lang.c (symbol_completion_add): Rename parameter
6963 "encoded" into "encoded_p". Ajust code and documentation
6966 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6967 Andrey Smirnov <andrew.smirnov@gmail.com>
6969 -Wshadow warning fix.
6970 * ada-lang.c (symbol_completion_add): Rename parameter
6971 "wild_match" into wild_match_p. Update code and documentation
6974 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6976 * ada-lang.c (symbol_completion_match): Rename parameter
6977 "encoded" into "encoded_p". Ajust code and documentation
6980 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6981 Andrey Smirnov <andrew.smirnov@gmail.com>
6983 -Wshadow warning fix.
6984 * ada-lang.c (symbol_completion_match): Rename parameter
6985 "wild_match" into "wild_match_p". Adjust code and function
6986 documentation accordingly.
6988 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6989 Andrey Smirnov <andrew.smirnov@gmail.com>
6991 -Wshadow warning fix.
6992 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6993 "symbol_info" into "info". Adjust code accordingly.
6994 (ada_lookup_symbol): Likewise.
6996 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6998 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6999 of this function's documentation.
7001 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7002 Andrey Smirnov <andrew.smirnov@gmail.com>
7004 -Wshadow warning fix.
7005 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7006 variable into "wild_match_p". Adjust code accordingly.
7008 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7009 Andrey Smirnov <andrew.smirnov@gmail.com>
7011 -Wshadow warning fix.
7012 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7013 parameter into "wild_match_p". Adjust code accordingly.
7014 Document this parameter in the function description.
7016 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7017 Andrey Smirnov <andrew.smirnov@gmail.com>
7019 -Wshadow warning fix.
7020 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7021 "wild_match" parameter to "wild_match_p" (-Wshadow).
7023 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7025 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7026 in function documentation.
7028 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7029 Andrey Smirnov <andrew.smirnov@gmail.com>
7031 -Wshadow warning fix.
7032 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7033 variable into wild_match_p. Adjust code accordingly.
7035 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7036 Andrey Smirnov <andrew.smirnov@gmail.com>
7038 * ada-valprint.c (ada_val_print_1): Move the code handling
7039 TYPE_CODE_ENUM inside its own lexical block. Declare
7040 variables len and val there, instead of in the function's
7041 top level block. Avoid declaring deref_val again in a way
7042 that shadows another variable of the same name declared
7043 in one of the up-level blocks. Just re-use the up-level
7046 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7048 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7049 Replace block_found argument by symbol_info. Adjust
7050 implementation accordingly. Add function documentation.
7051 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7053 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7054 * ada-exp.y (write_object_renaming): Adjust to new
7055 ada_lookup_encoded_symbol API.
7057 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7059 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7062 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7064 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7065 (v850_register_name): Add the mpu and fpu register names.
7066 (v850e_register_name): Add the mpu and fpu register names.
7067 (v850e2_register_name): New function.
7068 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7071 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7073 * NEWS: Add entry for Ada varobj support.
7075 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7077 * varobj.c (default_value_is_changeable_p): New function,
7078 extracted from varobj_value_is_changeable_p. Add declaration.
7079 (ada_value_is_changeable_p): New function, extracted from
7080 varobj_value_is_changeable_p. Add declaration.
7081 (struct language_specific): New field "value_is_changeable_p".
7082 (languages): Add entries for new field.
7083 (varobj_create): Set language before calling install_new_value.
7084 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7085 "value_is_changeable_p" language callback.
7087 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7089 * ada-varobj.h, ada-varobj.c: New files.
7090 * Makefile.in (SFILES): Add ada-varobj.c.
7091 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7092 (COMMON_OBS): Add ada-varobj.o.
7094 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7096 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7097 (struct language_specific): New field "value_has_mutated".
7098 (languages): Set field "value_has_mutated" in each entry of array.
7099 (varobj_value_has_mutated): New function.
7100 (varobj_udpdate): Add handling of type mutation.
7101 (value_of_root): Add handling of type mutation.
7102 (ada_value_has_mutated): New function.
7104 2012-03-28 Pedro Alves <palves@redhat.com>
7106 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7107 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7109 2012-03-28 Tom Tromey <tromey@redhat.com>
7111 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7112 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7115 2012-03-28 Tom Tromey <tromey@redhat.com>
7117 * .dir-locals.el: New file.
7119 2012-03-28 Pedro Alves <palves@redhat.com>
7121 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7123 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7125 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7128 2012-03-27 Pedro Alves <palves@redhat.com>
7130 Eliminate struct ui_stream.
7132 * ui-out.h (struct ui_stream): Delete.
7133 (ui_out_field_stream): Adjust prototype.
7134 (ui_out_stream_new, ui_out_stream_delete)
7135 (make_cleanup_ui_out_stream_delete): Delete declarations.
7136 * ui-out.c (ui_out_field_stream): Change prototype to take a
7137 ui_file instead of a ui_stream. Adjust.
7138 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7139 (make_cleanup_ui_out_stream_delete): Delete.
7140 * breakpoint.c (print_breakpoint_location)
7141 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7142 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7143 * disasm.c (dump_insns): Ditto.
7144 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7146 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7147 ui_stream/ui_out_stream_new.
7148 * infcmd.c (print_return_value): Ditto.
7149 * osdata.c (info_osdata_command): Don't allocate a local
7151 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7152 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7153 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7154 allocate a local ui_stream.
7155 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7156 instead of ui_stream/ui_out_stream_new.
7157 (list_args_or_locals): Don't allocate a local ui_stream.
7158 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7159 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7160 ui_stream/ui_out_stream_new.
7161 * cli/cli-setshow.c (do_setshow_command): Ditto.
7163 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7165 * arm-linux-tdep.c (arm_linux_init_abi): Call
7166 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7167 * arm-tdep.c (arm_process_record): New function.
7168 (deallocate_reg_mem): New function.
7169 (decode_insn): New function.
7170 (thumb_record_branch): New function.
7171 (thumb_record_ldm_stm_swi(): New function.
7172 (thumb_record_misc): New function.
7173 (thumb_record_ld_st_stack): New function.
7174 (thumb_record_ld_st_imm_offset): New function.
7175 (thumb_record_ld_st_reg_offset(): New function.
7176 (thumb_record_add_sub_cmp_mov): New function.
7177 (thumb_record_shift_add_sub): New function.
7178 (arm_record_coproc_data_proc): New function.
7179 (arm_record_coproc): New function.
7180 (arm_record_b_bl): New function.
7181 (arm_record_ld_st_multiple): New function.
7182 (arm_record_ld_st_reg_offset): New function.
7183 (arm_record_ld_st_imm_offset): New function.
7184 (arm_record_data_proc_imm): New function.
7185 (arm_record_data_proc_misc_ld_str): New function.
7186 (arm_record_extension_space): New function.
7187 (arm_record_strx): New function.
7188 (sbo_sbz): New function.
7189 (struct insn_decode_record): New structure for arm insn record.
7190 (REG_ALLOC): New macro for reg allocations.
7191 (MEM_ALLOC): New macro for memory allocations.
7192 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7194 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7196 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7197 (store_register): Likewise.
7199 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7201 * MAINTAINERS (Write After Approval): Add myself to the list.
7203 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7205 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7206 Describe also the option "auto".
7208 2012-03-22 Richard Henderson <rth@redhat.com>
7210 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7211 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7213 2012-03-22 Richard Henderson <rth@redhat.com>
7215 * jit.c (jit_read_code_entry): Compute alignment and offset of
7216 int64_t member before computing entry_size.
7218 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7220 Python scripting: Add new method Value.referenced_value to
7221 gdb.Value which can dereference pointer as well as reference
7223 * NEWS: Add entry under 'Python scripting' about the new method
7224 Value.referenced_value on gdb.Value objects.
7225 * python/py-value.c (valpy_referenced_value): New function
7226 defining a new method on gdb.Value objects which can dereference
7227 pointer and reference values.
7229 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7231 * MAINTAINERS (Write After Approval): Add myself to the list.
7233 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7235 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7236 in addition to "main".
7238 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7240 * expression.h (op_name): Add declaration.
7241 * expprint.c (op_name): Remove declaration. Make non-static.
7242 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7244 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7246 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7248 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7249 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7250 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7251 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7252 (linux_nat_get_siginfo): Likewise.
7253 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7254 (linux_nat_get_siginfo): Likewise.
7255 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7256 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7257 * procfs.c (gdb_siginfo_t): Likewise.
7259 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7261 * .gitignore: Ignore more files.
7263 2012-03-20 Pedro Alves <palves@redhat.com>
7265 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7268 2012-03-20 Yao Qi <yao@codesourcery.com>
7270 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7273 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7275 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7276 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7277 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7279 * dwarf2expr.h (cu_offset, sect_offset): New types.
7280 (struct dwarf_expr_context_funcs) <dwarf_call>
7281 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7283 (struct dwarf_expr_context) <len>: Improve the comment.
7284 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7285 cu_offset and sect_offset.
7286 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7287 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7288 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7289 * dwarf2loc.h: Include dwarf2expr.h.
7290 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7292 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7293 Improve the comment.
7294 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7295 (struct signatured_type, struct line_header, struct partial_die_info)
7296 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7297 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7298 (get_die_type_at_offset, create_cus_from_index)
7299 (create_signatured_type_table_from_index, dw2_get_file_names)
7300 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7301 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7302 (create_debug_types_hash_table, process_psymtab_comp_unit)
7303 (load_partial_comp_unit, create_all_comp_units)
7304 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7305 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7306 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7307 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7308 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7309 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7310 (find_partial_die, read_attribute_value, lookup_die_type)
7311 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7312 (is_ref_attr): New function comment.
7313 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7314 Use cu_offset and sect_offset.
7315 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7316 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7317 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7318 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7319 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7320 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7321 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7324 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7327 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7328 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7330 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7332 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7334 * NEWS: Describe new options --init-command=FILE, -ix and
7335 --init-eval-command=COMMAND, -iex.
7336 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7337 CMDARG_INIT_COMMAND.
7338 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7339 "init-command", "init-eval-command", "ix" and "iex" to the variable
7340 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7341 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7342 (print_gdb_help): Describe --init-command=FILE, -ix and
7343 --init-eval-command=COMMAND, -iex.
7345 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7348 * main.c (struct cmdarg): Move it here from main. Add more comments.
7349 (cmdarg_s, VEC (cmdarg_s)): New.
7350 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7351 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7352 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7353 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7356 2012-03-19 Tom Tromey <tromey@redhat.com>
7358 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7360 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7363 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7366 2012-03-16 Chris January <chris.january@allinea.com>
7368 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7371 2012-03-16 Chris January <chris.january@allinea.com>
7373 * source.c (add_path): Use memmove instead of strcpy because the
7376 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7378 * value.h (set_value_parent): Add declaration.
7379 * value.c (set_value_parent): New function.
7380 (value_address): If VALUE->PARENT is not NULL, then use it as
7381 the base address instead of VALUE->LOCATION.address.
7382 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7383 the same as OBJ's address. Adjust V's offset accordingly.
7386 2012-03-16 Gary Benson <gbenson@redhat.com>
7388 PR breakpoints/10738
7389 * dwarf2read.c (use_deprecated_index_sections): New global.
7390 (struct partial_die_info): New member may_be_inlined.
7391 (read_partial_die): Set may_be_inlined where appropriate.
7392 (add_partial_subprogram): Add partial symbols for partial
7393 DIEs that may be inlined.
7394 (new_symbol_full): Add inlined subroutines to the current
7396 (write_psymtabs_to_index): Bump version number.
7397 (dwarf2_read_index): Read only version 6 indices unless
7398 use_deprecated_index_sections is set.
7399 * linespec.c (symbol_and_data_callback): New structure.
7400 (iterate_inline_only): New function.
7401 (iterate_over_all_matching_symtabs): New argument
7402 "include_inline". If nonzero, also call the callback for
7403 symbols representing inlined subroutines.
7404 (lookup_prefix_sym): Pass extra argument to the above.
7405 (find_function_symbols): Likewise.
7406 (add_matching_symbols_to_info): Likewise.
7407 * NEWS: Mention that GDB can now set breakpoints on inlined
7410 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7412 * p-typeprint.c (pascal_type_print_method_args):
7413 Fix display of parameter of methods.
7415 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7417 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7418 Add missing prototype.
7420 2012-03-16 Yao Qi <yao@codesourcery.com>
7421 Jan Kratochvil <jan.kratochvil@redhat.com>
7423 Fix false compilation warning.
7424 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7426 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7427 Pedro Alves <pedro@codesourcery.com>
7429 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7430 (arm_register_g_packet_guesses): New function.
7431 (arm_gdbarch_init): Don't force a target description with
7432 registers when the executable is detected as M-profile. Instead
7433 set gdbarch->tdep->is_m. Register `g' packet guesses.
7434 (_initialize_arm_tdep): Initialize the new target description.
7435 * features/arm-with-m-fpa-layout.xml: New description.
7436 * features/arm-with-m-fpa-layout.c: New, generated.
7438 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7440 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7441 Update function description.
7442 (insert_bp_location): Do not wipe bl->target_info out.
7443 * mem-break.c: #include "gdb_string.h".
7444 (default_memory_insert_breakpoint): Do not call target_read_memory
7445 with a pointer to the breakpoint's shadow_contents buffer. Use
7446 a local buffer instead.
7447 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7449 2012-03-15 Tom Tromey <tromey@redhat.com>
7451 * NEWS: Mention "info vtbl", not "info vtable".
7452 * cp-support.c (info_vtbl_command): Fix comment.
7453 (_initialize_cp_support): Fix text.
7455 2012-03-15 Tom Tromey <tromey@redhat.com>
7457 * cp-valprint.c (cp_print_value_fields): Use
7458 print_function_pointer_address for vtable slot.
7460 2012-03-15 Tom Tromey <tromey@redhat.com>
7462 * gnu-v3-abi.c (struct value_and_voffset): New.
7463 (hash_value_and_voffset, eq_value_and_voffset)
7464 (compare_value_and_voffset, compute_vtable_size)
7465 (print_one_vtable, gnuv3_print_vtable): New functions.
7466 (init_gnuv3_ops): Initialize 'print_vtable' field.
7467 * cp-support.c (info_vtbl_command): New function.
7468 (_initialize_cp_support): Add "info vtbl".
7469 * cp-abi.h (cplus_print_vtable): Declare.
7470 (struct cp_abi_ops) <print_vtable>: New field.
7471 * cp-abi.c (cplus_print_vtable): New function.
7474 2012-03-15 Tom Tromey <tromey@redhat.com>
7476 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7477 iterate_over_symbols.
7479 2012-03-14 Doug Evans <dje@google.com>
7481 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7482 DW_OP_GNU_parameter_ref.
7484 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7486 Fix double prompt of 'interpreter-exec mi'.
7487 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7488 (mi_interpreter_resume): use it.
7489 (mi_execute_command_input_handler): New function.
7490 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7491 mi_execute_command_input_handler.
7493 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7495 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7497 (darwin_debug_port_info): Make static.
7498 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7499 * machoread.c (_initialize_machoread): Add prototype.
7500 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7501 (i386_darwin_set_control, i386_darwin_get_control)
7502 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7503 i386_darwin_get_status, i386_darwin_get_control):
7504 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7506 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7508 * ax-gdb.c (gen_usual_unary): Remove special handling of
7509 enum and bool types.
7511 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7513 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7515 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7517 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7519 2012-03-13 Chris January <chris.january@allinea.com>
7521 * aix-thread.c (fill_sprs): Store the floating point registers
7522 at the correct offsets into vals.
7524 2012-03-13 Doug Evans <dje@google.com>
7526 * NEWS: Mention symbol-reloading has been deleted.
7527 * symfile.c (symbol_reloading): Delete.
7528 (show_symbol_reloading): Delete.
7529 (_initialize_symfile): Delete set/show symbol-reloading.
7531 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7532 read_in_chain until we have successfully read it in.
7533 (load_full_comp_unit): Ditto.
7534 (read_signatured_type): Add comment.
7536 2012-03-13 Chris January <chris.january@allinea.com>
7538 * stabsread.c (fix_common_block): Change type of valu argument
7541 2012-03-13 Chris January <chris.january@allinea.com>
7543 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7546 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7548 * common/linux-procfs.c (linux_proc_get_int): New, from
7549 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7551 (linux_proc_get_tgid): Only call linux_proc_get_int.
7552 (linux_proc_get_tracerpid): New.
7553 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7554 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7555 linux_proc_pid_has_state.
7556 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7557 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7558 (linux_ptrace_attach_warnings): New.
7559 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7561 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7562 (linux_nat_attach): New variables ex, buffer, message and message_s.
7563 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7565 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7567 * Makefile.in (linux-ptrace.o): New.
7568 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7570 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7571 * common/linux-ptrace.c: New file.
7572 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7573 * config/arm/linux.mh: Likewise.
7574 * config/i386/linux.mh: Likewise.
7575 * config/i386/linux64.mh: Likewise.
7576 * config/ia64/linux.mh: Likewise.
7577 * config/m32r/linux.mh: Likewise.
7578 * config/m68k/linux.mh: Likewise.
7579 * config/mips/linux.mh: Likewise.
7580 * config/pa/linux.mh: Likewise.
7581 * config/powerpc/linux.mh: Likewise.
7582 * config/powerpc/ppc64-linux.mh: Likewise.
7583 * config/powerpc/spu-linux.mh: Likewise.
7584 * config/s390/s390.mh: Likewise.
7585 * config/sparc/linux.mh: Likewise.
7586 * config/sparc/linux64.mh: Likewise.
7587 * config/xtensa/linux.mh: Likewise.
7588 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7589 common/linux-procfs.c.
7590 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7592 2012-03-13 Hui Zhu <teawater@gmail.com>
7593 Pedro Alves <palves@redhat.com>
7595 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7596 CREATE_BREAKPOINT_FLAGS_INSERTED.
7597 (create_breakpoint_sal, create_breakpoints_sal)
7598 (base_breakpoint_create_breakpoints_sal)
7599 (tracepoint_create_breakpoints_sal)
7600 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7602 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7603 (ftrace_command, strace_command): Adjust.
7604 (create_tracepoint_from_upload): Pass
7605 CREATE_BREAKPOINT_FLAGS_INSERTED.
7606 * breakpoint.h (enum breakpoint_create_flags): New.
7607 (create_breakpoint): New flags parameter.
7608 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7609 * python/py-breakpoint.c (bppy_init): Adjust.
7610 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7611 * spu-tdep.c (spu_catch_start): Adjust.
7613 2012-03-13 Pedro Alves <palves@redhat.com>
7614 Hui Zhu <teawater@gmail.com>
7615 Yao Qi <yao@codesourcery.com>
7617 * remote.c (struct remote_state): New field `starting_up'.
7618 (remote_start_remote): Set and clear it.
7619 (remote_can_download_tracepoint): If starting up, return false.
7621 2012-03-13 Yao Qi <yao@codesourcery.com>
7623 * inferior.h (struct inferior): Remove fields any_syscall_count,
7624 syscalls_counts and total_syscalls_count. Move them to new
7625 struct catch_syscall_inferior_data in breakpoint.c.
7626 * breakpoint.c: Call DEF_VEC_I(int).
7627 (struct catch_syscall_inferior_data): New.
7628 (get_catch_syscall_inferior_data): New.
7629 (catch_syscall_inferior_data_cleanup): New.
7630 (insert_catch_syscall): Update to access data in
7631 struct catch_syscall_inferior_data.
7632 (insert_catch_syscall): Likewise.
7633 (remove_catch_syscall): Likewise.
7634 (remove_catch_syscall): Likewise.
7635 (is_syscall_catchpoint_enabled): Likewise.
7636 (add_catch_command): Likewise.
7637 (_initialize_breakpoint): Register cleanup.
7638 * breakpoint.h: Removed DEF_VEC_I(int).
7639 * dwarf2loc.c: Call DEF_VEC_I(int).
7640 * mi/mi-main.c: Likewise.
7642 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7644 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7646 2012-03-12 Chris January <chris.january@allinea.com>
7648 * aix-thread.c (_initialize_aix_thread): Add prototype.
7649 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7650 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7652 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7654 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7655 include of "amd64-nat.h".
7657 2012-03-12 Tom Tromey <tromey@redhat.com>
7659 * buildsym.c (record_pending_block): Now static.
7660 * buildsym.h: (record_pending_block): Remove.
7662 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7664 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7666 2012-03-09 Tom Tromey <tromey@redhat.com>
7668 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7669 producer_is_gxx_lt_4_6>: New fields.
7670 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7672 2012-03-09 Tom Tromey <tromey@redhat.com>
7674 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7676 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7678 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7681 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7683 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7685 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7687 Fix -Wmissing-prototypes build.
7688 * arm-linux-nat.c (get_thread_id): Make it static.
7689 * xtensa-linux-nat.c (get_thread_id): Likewise.
7691 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7693 * server.c (process_point_options): If a conditional expression
7694 is found, only print a message if remote_debug is nonzero.
7696 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7698 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7699 of internal error for unknown/unsupported types.
7701 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7703 Fix CU relative vs. absolute DIE offsets.
7704 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7705 offset to offset_in_cu.
7706 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7708 (dwarf2_fetch_die_location_block): Rename parameter offset to
7709 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7711 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7713 * libunwind-frame.c: Rename to ...
7714 * ia64-libunwind-tdep.c: ... here.
7715 * libunwind-frame.h: Rename to ...
7716 * ia64-libunwind-tdep.h: ... here.
7717 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7718 ia64-libunwind-tdep.h.
7719 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7720 * README (--with-libunwind): Rename to ...
7721 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7722 * config.in: Regenerate.
7723 * configure: Regenerate.
7724 * configure.ac: New option --with-libunwind-ia64, make the
7725 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7726 Remove AC_DEFINE for HAVE_LIBUNWIND.
7727 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7728 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7729 Rename libunwind-frame in the general comment.
7730 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7731 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7732 Move forward declarations inside #ifndef. Rename libunwind-frame in
7733 the general comment.
7734 * ia64-tdep.c: Rename libunwind-frame.h #include to
7735 ia64-libunwind-tdep.h.
7736 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7737 (ia64_libunwind_descr): Rename libunwind-frame to
7738 ia64-libunwind-tdep in these function comments.
7739 * ia64-tdep.h: Rename libunwind-frame.h #include to
7740 ia64-libunwind-tdep.h.
7741 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7742 ia64-libunwind-tdep in that data comment.
7744 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7746 * libunwind-frame.h (struct frame_unwind): New declaration.
7748 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7750 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7751 "set breakpoint condition-evaluation" command.
7753 2012-03-08 Tristan Gingold <gingold@adacore.com>
7755 * sparc-stub.c: Move to stubs/
7756 * sh-stub.c: Likewise.
7757 * m68k-stub.c: Likewise.
7758 * m32r-stub.c: Likewise.
7759 * i386-stub.c: Likewise.
7761 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7763 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7764 linux_get_siginfo_type.
7766 * m68klinux-nat.c: Include "gdb_proc_service.h".
7767 (PTRACE_GET_THREAD_AREA): Define.
7768 (ps_get_thread_area): New function.
7770 2012-03-08 Yao Qi <yao@codesourcery.com>
7772 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7774 (remote_query_attached): Likewise.
7775 (remote_static_tracepoint_marker_at): Likewise.
7776 (remote_set_permissions): Likewise.
7777 (remote_detach_1, extended_remote_attach_1): Likewise.
7778 (send_g_packet, remote_vkill): Likewise.
7779 (extended_remote_disable_randomization): Likewise.
7780 (remote_add_target_side_condition): Likewise.
7781 (remote_insert_breakpoint): Likewise.
7782 (remote_remove_breakpoint): Likewise.
7783 (remote_insert_watchpoint): Likewise.
7784 (remote_remove_watchpoint): Likewise.
7785 (remote_insert_hw_breakpoint): Likewise.
7786 (remote_insert_hw_breakpoint): Likewise.
7787 (remote_remove_hw_breakpoint): Likewise.
7788 (remote_download_command_source): Likewise.
7789 (remote_download_tracepoint): Likewise.
7790 (remote_download_trace_state_variable): Likewise.
7791 (remote_disable_tracepoint): Likewise.
7792 (remote_trace_set_readonly_regions): Likewise.
7793 (remote_get_tracepoint_status): Likewise.
7794 (remote_trace_find): Likewise.
7795 (remote_get_trace_state_variable_value): Likewise.
7796 (remote_set_disconnected_tracing): Likewise.
7797 (remote_set_circular_trace_buffer): Likewise.
7798 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7799 (remote_use_agent): Likewise.
7800 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7803 2012-03-07 Pedro Alves <palves@redhat.com>
7805 * NEWS: Mention QProgramSignals.
7806 * inferior.h (update_signals_program_target): Declare.
7807 * infrun.c: (update_signals_program_target): New.
7808 (handle_command): Update the target of the new program signals
7810 * remote.c (PACKET_QProgramSignals): New enum.
7811 (last_program_signals_packet): New global.
7812 (remote_program_signals): New.
7813 (remote_start_remote): Update the target with the program signals
7815 (remote_protocol_features): Add entry for QPassSignals.
7816 (remote_open_1): Free anc clear last_program_signals_packet.
7817 (init_remote_ops): Install remote_program_signals.
7818 * target.c (update_current_target): Adjust.
7819 (target_program_signals): New.
7820 * target.h (struct target_ops) <to_program_signals>: New field.
7821 (target_program_signals): Declare.
7823 2012-03-07 Pedro Alves <palves@redhat.com>
7825 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7828 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7830 * m68klinux-nat.c (getregs_supplies): Make static.
7831 (getfpregs_supplies): Likewise.
7832 (have_ptrace_getregs): Likewise.
7834 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7836 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7837 in call to get_die_type_at_offset.
7839 2012-03-06 Stan Shebs <stan@codesourcery.com>
7841 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7842 * mi/mi-cmd-disas.c: Ditto.
7843 * mi/mi-cmd-env.c: Ditto.
7844 * mi/mi-cmd-file.c: Ditto.
7845 * mi/mi-cmd-stack.c: Ditto.
7846 * mi/mi-cmd-target.c: Ditto.
7847 * mi/mi-cmd-var.c: Ditto.
7848 * mi/mi-cmds.c: Ditto.
7849 * mi/mi-cmds.h: Ditto.
7850 * mi/mi-console.c: Ditto.
7851 * mi/mi-getopt.c: Ditto.
7852 * mi/mi-getopt.h: Ditto.
7853 * mi/mi-interp.c: Ditto.
7854 * mi/mi-main.c: Ditto.
7855 * mi/mi-out.c: Ditto.
7856 * mi/mi-parse.c: Ditto.
7857 * mi/mi-parse.h: Ditto.
7858 * mi/mi-symbol-cmds.c: Ditto.
7860 * mi/mi-getopt.h: Move mi_opt struct up.
7861 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7863 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7865 2012-03-06 Tom Tromey <tromey@redhat.com>
7867 * proc-service.c (ps_pglobal_lookup): Set the current program
7870 2012-03-06 Pedro Alves <palves@redhat.com>
7872 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7874 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7876 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7878 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7881 * common/linux-osdata.c (linux_common_core_of_thread): New function
7883 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7884 call by linux_common_core_of_thread.
7885 (linux_nat_core_of_thread_1): Remove.
7886 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7887 * linux-thread-db.c: Include linux-osdata.h.
7888 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7889 linux_common_core_of_thread.
7891 2012-03-05 Tom Tromey <tromey@redhat.com>
7893 * value.c (value_primitive_field): Don't fetch contents for
7896 2012-03-05 Tom Tromey <tromey@redhat.com>
7898 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7900 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7902 * s390-nat.c: Include "gregset.h".
7904 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7906 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7907 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7908 (libunwind_load): New variable so_error, use it for dlerror. Try to
7909 load also LIBUNWIND_SO_7.
7911 2012-03-05 Pedro Alves <palves@redhat.com>
7913 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7914 is not NULL, and remove resulting dead code.
7916 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7918 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7919 prologue to sh_analyze_prologue.
7920 (sh_analyze_prologue): Make better use of such an upper limit, and
7921 generally be more cautious about accessing memory.
7923 2012-03-05 Tom Tromey <tromey@redhat.com>
7925 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7926 _initialize_ia64_hpux_tdep.
7928 2012-03-05 Pedro Alves <palves@redhat.com>
7932 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7933 the register state is clear, supply explicit zero, instead of
7934 marking the register unavailable.
7936 2012-03-05 Tristan Gingold <gingold@adacore.com>
7938 * NEWS: Mention OpenVMS ia64 new target.
7940 2012-03-05 Tristan Gingold <gingold@adacore.com>
7942 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7943 (ia64_unw_accessors, ia64_unw_rse_accessors)
7944 (ia64_libunwind_descr): Declare.
7945 * ia64-vms-tdep.c: New file.
7946 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7947 (ia64_libunwind_descr): Make them public.
7948 * configure.tgt: Add ia64-*-*vms*.
7949 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7950 (ALLDEPFILES): Add ia64-vms-tdep.c
7952 2012-03-05 Tristan Gingold <gingold@adacore.com>
7954 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7955 * remote.c (PACKET_qXfer_uib): New enum value.
7956 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7957 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7958 (_initialize_remote): Call add_packet_config_cmd for
7961 2012-03-05 Tristan Gingold <gingold@adacore.com>
7963 * osabi.c (gdb_osabi_names): Add OpenVMS.
7964 (generic_elf_osabi_sniffer): Likewise.
7965 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7967 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7969 Removed unused code.
7970 * libunwind-frame.c (libunwind_frame_unwind)
7971 (libunwind_frame_base_address): Remove.
7972 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7974 2012-03-04 Yao Qi <yao@codesourcery.com>
7976 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7977 remove trailing new line.
7978 (agent_run_command, agent_run_command): Add _ markup.
7979 (agent_capability_check): Likewise.
7981 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7983 * breakpoint.c (set_condition_evaluation_mode): Set
7984 CONDITION_EVALUATION_MODE unconditionally.
7986 2012-03-03 Yao Qi <yao@codesourcery.com>
7988 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7989 * common/agent.h: Update declaration.
7990 * inf-child.c (inf_child_use_agent): New.
7991 (inf_child_can_use_agent): New.
7992 (inf_child_target): Initialize fields `to_use_agent'
7993 and `to_can_use_agent'.
7994 * agent.c (agent_new_objfile): New.
7995 (_initialize_agent): Add agent_new_objfile to new_objfile
7998 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8000 (linux_target_install_ops): Initialize field
8001 `to_static_tracepoint_markers_by_strid'.
8002 * remote.c (free_current_marker): Move it to ...
8003 * tracepoint.c (free_current_marker): ... here. New.
8004 (cleanup_target_stop): New.
8005 * tracepoint.h: Declare free_current_marker.
8006 * NEWS: Add one entry about `info static-tracepoint-marker'.
8008 2012-03-03 Yao Qi <yao@codesourcery.com>
8010 * common/agent.c (agent_loaded_p): New.
8011 (agent_look_up_symbols): New global.
8012 * common/agent.h: Declare agent_loaded_p.
8014 2012-03-03 Yao Qi <yao@codesourcery.com>
8016 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8017 (agent_capability_check, agent_capability_invalidate): New.
8018 (symbol_list): New array element.
8019 * common/agent.h (enum agent_capa): New.
8020 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8022 2012-03-03 Yao Qi <yao@codesourcery.com>
8024 * target.h (struct target_ops) <to_use_agent>: New field.
8025 (struct target_ops) <to_can_use_agent>: New field.
8026 (target_use_agent, target_can_use_agent): New macro.
8027 * target.c (update_current_target): Update.
8028 * remote.c: New enum `PACKET_QAgent'.
8029 (remote_protocol_features): Add a new element.
8030 (remote_use_agent, remote_can_use_agent): New.
8031 (init_remote_ops): Initialize field `can_use_agent' with
8032 remote_can_use_agent. Intiailize field `use_agent' with
8034 * common/agent.c (use_agent): New global.
8035 * common/agent.h: Declare it.
8036 * tracepoint.c (info_static_tracepoint_markers_command): Add
8038 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8039 (COMMON_OBS): Add common/agent.o and agent.o
8040 (common-agent.o): New rule.
8043 2012-03-03 Yao Qi <yao@codesourcery.com>
8045 * common/agent.c: New.
8046 * common/agent.h: New.
8047 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8049 * configure, configh.in: Regenerated.
8051 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8053 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8054 unless it exists for this architecture.
8056 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8058 * language.h (struct language_defn): New "method" la_read_var_value.
8059 * findvar.c: #include "language.h".
8060 (default_read_var_value): Renames read_var_value. Rewrite
8061 function description.
8062 (read_var_value): New function.
8063 * value.h (default_read_var_value): Add prototype.
8064 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8066 (ada_language_defn): Add entry for la_read_var_value.
8067 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8068 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8069 language_defn structures to add entry for new la_read_var_value
8072 2012-03-02 Tom Tromey <tromey@redhat.com>
8073 Pedro Alves <palves@redhat.com>
8075 PR breakpoints/13776:
8076 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8078 (delete_longjmp_breakpoint_at_next_stop): New.
8079 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8080 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8081 before deleting the inferior. Add comments.
8082 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8083 breakpoints immediately, but only on next stop. Move that code
8084 next to where we mark other breakpoints for deletion.
8086 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8088 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8090 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8093 2012-03-02 Pedro Alves <palves@redhat.com>
8095 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8097 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8099 Fix -Wmissing-prototypes build.
8100 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8101 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8102 (gdbsim_has_memory): Likewise.
8104 2012-03-02 Yao Qi <yao@codesourcery.com>
8106 Fix -Wmissing-prototypes build.
8107 * charset.c (phony_iconv_open): Make static.
8108 (phony_iconv_close, phony_iconv): Likewise.
8109 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8110 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8112 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8113 * ser-mingw.c (create_select_thread): Make static.
8114 * windows-termcap.c (tgetent): New prototype.
8115 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8117 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8119 Fix -Wmissing-prototypes build.
8120 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8121 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8122 (_initialize_loadable): New prototypes.
8124 2012-03-02 Doug Evans <dje@google.com>
8126 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8127 abbrev table, read_comp_unit will do it.
8129 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8131 Fix -Wmissing-prototypes build.
8132 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8133 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8134 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8135 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8136 (_initialize_arm_symbian_tdep): New prototype.
8137 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8138 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8139 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8141 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8142 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8144 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8145 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8146 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8148 * moxie-tdep.c (moxie_process_record): Likewise.
8149 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8150 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8151 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8152 (_initialize_rl78_tdep): New prototype.
8153 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8154 (_initialize_rx_tdep): New prototype.
8155 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8156 (_initialize_darwin_solib): New prototype.
8157 * solib-spu.c: Include solib-spu.h.
8158 (_initialize_spu_solib): New prototype.
8159 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8160 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8161 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8162 (tic6x_software_single_step): Make it static.
8163 (_initialize_tic6x_tdep): New prototype.
8165 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8167 Fix -Wmissing-prototypes build.
8168 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8169 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8171 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8173 Fix -Wmissing-prototypes build.
8174 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8175 (frv_have_stopped_data_address): Remove.
8177 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8179 Fix -Wmissing-prototypes build.
8180 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8181 * sh-tdep.c: Include sh64-tdep.h.
8182 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8183 * sh64-tdep.c: Include sh64-tdep.h.
8184 * sh64-tdep.h: New file.
8186 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8188 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8190 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8192 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8193 sp_regnum once the gdbarch_init_osabi hook has been called.
8195 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8197 * mips-tdep.c (mips32_bc1_pc): New function.
8198 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8199 BPOSGE32 and BPOSGE64 instructions.
8200 (deal_with_atomic_sequence): Likewise.
8201 (mips32_instruction_has_delay_slot): Likewise.
8203 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8204 Chris Dearman <chris@mips.com>
8205 Maciej W. Rozycki <macro@codesourcery.com>
8206 Joseph Myers <joseph@codesourcery.com>
8208 * features/mips-dsp.xml: New file.
8209 * features/mips64-dsp.xml: New file.
8210 * features/mips-dsp-linux.xml: New file.
8211 * features/mips64-dsp-linux.xml: New file.
8212 * features/Makefile (WHICH): Add mips-dsp-linux and
8214 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8215 * features/mips-dsp-linux.c: New file.
8216 * features/mips64-dsp-linux.c: New file.
8217 * regformats/mips-dsp-linux.dat: New file.
8218 * regformats/mips64-dsp-linux.dat: New file.
8219 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8221 (mips64_linux_register_addr): Likewise.
8222 (mips64_linux_regsets_fetch_registers): Likewise.
8223 (mips64_linux_regsets_store_registers): Likewise.
8224 (mips64_linux_fetch_registers): Update call to
8225 mips64_linux_regsets_fetch_registers.
8226 (mips64_linux_store_registers): Update call to
8227 mips64_linux_regsets_store_registers.
8228 (mips_linux_read_description): Probe for DSP registers.
8229 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8230 and initialize_tdesc_mips64_dsp_linux.
8231 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8232 Remove padding of no longer used embedded register slots.
8233 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8234 (MIPS_RESTART_REGNUM): Redefine enum value.
8235 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8237 (mips_tx39_reg_names): Likewise.
8238 (mips_linux_reg_names): New array of register names for Linux
8240 (mips_register_name): Check for a null pointer in
8241 mips_processor_reg_names and return an empty string.
8242 (mips_register_type): Exclude embedded registers for the IRIX
8244 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8245 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8247 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8248 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8249 (mips_gdbarch_init): Likewise. Initialize internal register
8250 indices for the Linux ABI. Use dynamic numbers to refer to
8251 registers, as applicable, while parsing the target description.
8252 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8254 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8256 * frame.h (read_frame_register_unsigned): Fix typo in function
8259 2012-03-01 Pedro Alves <palves@redhat.com>
8261 * jit-reader.in [!__cplusplus]
8262 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8264 2012-03-01 Pedro Alves <palves@redhat.com>
8266 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8267 * configure: Regenerate.
8269 2012-03-01 Pedro Alves <palves@redhat.com>
8271 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8272 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8273 (ftrace_command, strace_command): Make static.
8274 * d-lang.c (_initialize_d_language): Declare.
8275 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8276 * dwarf2loc.c (_initialize_dwarf2loc):
8277 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8278 * exec.c (exec_get_section_table): Make static.
8279 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8280 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8281 * inferior.c (remove_inferior_command, add_inferior_command)
8282 (clone_inferior_command): Make static.
8283 * linux-nat.c (linux_nat_thread_address_space)
8284 (linux_nat_core_of_thread): Make static.
8285 * linux-tdep.c (_initialize_linux_tdep): Declare.
8286 * objc-lang.c (_initialize_objc_lang): Declare.
8287 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8289 (_initialize_opencl_language): Declare.
8290 * record.c (_initialize_record): Declare.
8291 * remote.c (demand_private_info, remote_get_tib_address)
8292 (remote_supports_cond_tracepoints)
8293 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8295 * skip.c (_initialize_step_skip): Declare.
8296 * symtab.c (skip_prologue_using_lineinfo): Make static.
8297 * tracepoint.c (delete_trace_state_variable)
8298 (trace_variable_command, delete_trace_variable_command)
8299 (get_uploaded_tsv, find_matching_tracepoint_location)
8300 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8302 * value.c (pack_unsigned_long): Make static.
8303 * varobj.c (varobj_ensure_python_env): Make static.
8304 * windows-tdep.c (_initialize_windows_tdep): Declare.
8305 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8307 2012-03-01 Pedro Alves <palves@redhat.com>
8309 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8311 (linux_init_abi): Install it as has_shared_address_space gdbarch
8314 2012-03-01 Pedro Alves <palves@redhat.com>
8316 * observer.c (observer_test_first_notification_function)
8317 (observer_test_second_notification_function)
8318 (observer_test_third_notification_function): Add declarations.
8320 2012-03-01 Pedro Alves <palves@redhat.com>
8322 * common/signals.c (default_target_signal_to_host)
8323 (default_target_signal_from_host): Move ...
8324 * arch-utils.c: ... here.
8325 * arch-utils.h (default_target_signal_to_host)
8326 (default_target_signal_from_host): Declare.
8328 * common/signals.c (target_signal_from_command): Move ...
8329 * infrun.c: ... here.
8330 * inferior.h (target_signal_from_command): Declare.
8331 * target.h (target_signal_from_command)
8332 (default_target_signal_from_host, default_target_signal_to_host):
8333 Delete declarations.
8335 * common/signals.c (_initialize_signals): Delete.
8337 2012-03-01 Pedro Alves <palves@redhat.com>
8339 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8340 both __cplusplus and !__cplusplus.
8342 2012-03-01 Pedro Alves <palves@redhat.com>
8344 * psymtab.c (find_and_open_source): Delete declaration.
8345 * source.c (find_and_open_source): Move comment ...
8346 * source.h (find_and_open_source): ... to this new declaration.
8348 2012-03-01 Pedro Alves <palves@redhat.com>
8350 * inline-frame.c: Include inline-frame.h.
8352 2012-03-01 Pedro Alves <palves@redhat.com>
8354 * tui/tui-data.c (set_gen_win_origin): Delete.
8355 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8356 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8358 2012-03-01 Pedro Alves <palves@redhat.com>
8360 * remote.c (encode_actions): Delete declaration.
8361 * tracepoint.c (encode_actions): Make extern.
8362 * tracepoint.h (encode_actions): Declare.
8364 2012-03-01 Pedro Alves <palves@redhat.com>
8366 * python/py-breakpoint.c: Include python.h.
8367 * python/py-continueevent.c (create_continue_event_object): Make
8369 * python/py-lazy-string.c (stpy_get_type): Make static.
8370 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8372 * python/py-utils.c (unicode_to_target_python_string): Make
8374 * python/py-value.c: Include python.h.
8376 2012-03-01 Pedro Alves <palves@redhat.com>
8378 * inferior.c (delete_threads_of_inferior): Delete.
8380 2012-03-01 Pedro Alves <palves@redhat.com>
8382 Import fallback definitions from glibc.
8384 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8385 ps_prochandle): Forward declare.
8386 (ps_err_e): Use glibc's comments.
8387 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8388 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8389 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8390 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8391 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8392 (struct ps_prochandle): Adjust comment.
8394 2012-03-01 Pedro Alves <palves@redhat.com>
8396 * ada-lang.c (ada_modulus_from_name): Delete.
8397 * ada-lex.l (lexer_init): Make static.
8399 2012-03-01 Pedro Alves <palves@redhat.com>
8403 * frame.c (read_frame_register_unsigned): New.
8404 * frame.h (read_frame_register_unsigned): Declare.
8405 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8407 (print_i387_control_word): New parameter `control_p'. Handle it.
8408 (i387_print_float_info): Handle unavailable float registers.
8410 2012-03-01 Keith Seitz <keiths@redhat.com>
8412 * linespec.c (decode_line_2): Sort the list of methods
8413 alphabetically before presenting the user with a selection
8416 2012-03-01 Doug Evans <dje@google.com>
8418 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8420 (dwarf2_read_abbrevs): Remove corresponding initialization.
8422 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8424 * NEWS: Mention new python command class gdb.COMMAND_USER.
8425 * cli/cli-cmds.c (show_user): Print error when used on a python
8427 (init_cli_cmds): Update documentation strings for "show user" and
8428 "set/show max-user-call-depth" to clarify that it does not apply to
8430 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8432 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8434 * top.c (execute_command): Only execute a user-defined command as a
8435 legacy macro if c->user_commands is set.
8437 2012-03-01 Tom Tromey <tromey@redhat.com>
8439 * valprint.h (struct generic_val_print_decorations): New.
8440 (generic_val_print): Declare.
8441 * valprint.c (generic_val_print): New function.
8442 * p-valprint.c (p_decorations): New global.
8443 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8444 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8445 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8446 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8447 * m2-valprint.c (m2_decorations): New global.
8448 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8449 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8450 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8451 TYPE_CODE_ERROR>: Call generic_val_print.
8452 * f-valprint.c (f_decorations): New global.
8453 (f_val_print): Use print_function_pointer_address.
8454 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8455 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8456 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8458 * c-valprint.c (c_decorations): New global.
8459 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8460 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8461 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8462 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8463 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8464 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8467 2012-03-01 Tom Tromey <tromey@redhat.com>
8469 * valprint.c (val_print): Update.
8470 * p-valprint (pascal_val_print): Return void.
8471 * p-lang.h (pascal_val_print): Return void.
8472 * m2-valprint.c (m2_val_print): Return void.
8473 * m2-lang.h (m2_val_print): Return void.
8474 * language.h (struct language_defn) <la_val_print>: Return void.
8475 * language.c (unk_lang_val_print): Return void.
8476 * jv-valprint.c (java_val_print): Return void.
8477 * jv-lang.h (java_val_print): Return void.
8478 * f-valprint.c (f_val_print): Return void.
8479 * f-lang.h (f_val_print): Return void.
8480 * d-valprint.c (d_val_print): Return void.
8481 (dynamic_array_type): Update.
8482 * d-lang.h (d_val_print): Return void.
8483 * c-valprint.c (c_val_print): Return void.
8484 * c-lang.h (c_val_print): Return void.
8485 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8487 * ada-lang.h (ada_val_print): Return void.
8489 2012-03-01 Tom Tromey <tromey@redhat.com>
8491 * value.h (val_print): Return void.
8492 * valprint.c (val_print): Return void.
8494 2012-03-01 Tom Tromey <tromey@redhat.com>
8496 * value.h (common_val_print): Return void.
8497 * valprint.c (common_val_print): Return void.
8499 2012-03-01 Tom Tromey <tromey@redhat.com>
8501 * value.h (value_print): Return void.
8502 * valprint.c (value_print): Return void.
8503 * p-valprint.c (pascal_value_print): Return void.
8504 * p-lang.h (pascal_value_print): Return void.
8505 * language.h (struct language_defn) <la_value_print>: Return
8507 * language.c (unk_lang_value_print): Return void.
8508 * jv-valprint.c (java_value_print): Return void.
8509 * jv-lang.h (java_value_print): Return void.
8510 * f-valprint.c (c_value_print): Don't declare.
8512 * c-valprint.c (c_value_print): Return void.
8513 * c-lang.h (c_value_print): Return void.
8514 * ada-valprint.c (ada_value_print): Return void.
8515 * ada-lang.h (ada_value_print): Return void.
8517 2012-03-01 Tom Tromey <tromey@redhat.com>
8519 * value.c (value_primitive_field): Handle virtual base classes.
8521 2012-03-01 Tom Tromey <tromey@redhat.com>
8523 * gdbtypes.h (struct vbase): Remove.
8525 2012-03-01 Tom Tromey <tromey@redhat.com>
8527 * c-valprint.c (print_function_pointer_address): Move...
8528 * valprint.c: ... here. Make non-static.
8529 * m2-valprint.c (print_function_pointer_address): Remove.
8530 * valprint.h (print_function_pointer_address): Declare.
8532 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8534 * NEWS: Document the fact that one can provide a condition when
8535 creating an Ada exception catchpoint.
8537 2012-03-01 Tom Tromey <tromey@redhat.com>
8539 * valprint.c (val_print_type_code_flags): Fix placement of
8542 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8544 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8545 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8546 environment variable before calling update-copyright.
8548 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8550 * gnulib/extra/update-copyright: Update to the latest from
8551 gnulib's git repository.
8552 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8553 variable to 2 instead of 1.
8555 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8557 * varobj.c (c_value_of_variable): Remove dead code.
8559 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8561 * ada-lex.p (processId): Do not modify already encoded IDs.
8562 Update function documentation.
8564 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8566 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8567 "name" with "struct symbol *name_sym".
8568 * ada-exp.y (write_var_or_type): Update call to
8569 ada_find_renaming_symbol.
8570 "name" with "struct symbol *name_sym". Adjust Implementation
8571 accordingly. Adjust the function documentation.
8573 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8575 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8576 * ada-lang.c (ada_find_any_type): Add advance declaration.
8577 Make static. Replace ada_find_any_symbol by
8578 ada_find_any_type_symbol.
8579 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8580 Improve function description. Make static.
8581 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8582 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8584 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8586 * ada-lang.c (struct tag_args): Delete.
8587 (ada_get_tsd_type): Function body moved up in source file.
8588 (ada_tag_name_1, ada_tag_name_2): Delete.
8589 (ada_get_tsd_from_tag): New function.
8590 (ada_tag_name_from_tsd): New function.
8591 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8592 to determine the tag name.
8594 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8596 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8598 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8601 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8603 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8605 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8607 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8610 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8612 * ada-lang.c (constrained_packed_array_type): If there is a
8613 parallel XA type, use it to determine the array index type.
8615 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8617 * ada-valprint.c (ada_val_print_1): If our value is a reference
8618 to an array descriptor, dereference it before converting it
8621 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8623 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8624 creating fixed value.
8625 (ada_value_ind, ada_coerce_ref, assign_component)
8626 (ada_evaluate_subexp): Remove call to unwrap_value before
8627 call to ada_to_fixed_value.
8629 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8631 * ada-lang.c (to_fixed_array_type): Set result's type name.
8633 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8635 * ada-lang.c (catch_ada_exception_command_split): Add new
8636 argument cond_string. Add support for condition at end of
8637 "catch exception" commands.
8638 (ada_decode_exception_location): Add new argument cond_string.
8639 Update call to catch_ada_exception_command_split.
8640 (create_ada_exception_catchpoint): Add new argument cond_string.
8641 Set the breakpoint condition if needed.
8642 (catch_ada_exception_command): Update call to
8643 ada_decode_exception_location.
8644 (ada_decode_assert_location): Add function documentation.
8645 Add support for condition at end of "catch assert" command.
8646 (catch_assert_command): Update calls to ada_decode_assert_location
8647 and create_ada_exception_catchpoint.
8649 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8651 Fix disp-step-syscall.exp: fork: single step over fork.
8652 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8653 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8654 comment, change parameters gdbarch and ptid to regcache. Remove
8655 parameter regcache, initialize gdbarch from regcache here.
8656 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8658 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8660 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8661 'syscall'. Make the 'int' check more strict.
8663 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8665 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8666 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8667 (i386_linux_intx80_sysenter_syscall_record): ... here.
8668 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8669 Use the renamed function name.
8671 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8673 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8674 * breakpoint.c (until_break_command): Likewise.
8675 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8676 * infcall.c (call_function_by_hand): Likewise.
8677 * infcmd.c (finish_forward): Likewise.
8678 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8680 2012-02-28 Tristan Gingold <gingold@adacore.com>
8682 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8683 avoid variable assignments inside condition.
8685 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8687 Fix static analysis issue found by cppcheck.
8688 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8689 uninitialized BUF for size 2.
8691 2012-02-27 Chris Dearman <chris@mips.com>
8692 Nathan Froyd <froydnj@codesourcery.com>
8693 Maciej W. Rozycki <macro@codesourcery.com>
8695 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8696 (mips16_instruction_has_delay_slot): Likewise.
8697 (mips_segment_boundary): Likewise.
8698 (mips_adjust_breakpoint_address): Likewise.
8699 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8701 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8702 Maciej W. Rozycki <macro@codesourcery.com>
8704 * infrun.c (handle_inferior_event): Don't proceed through
8705 shared library trampolines if stepping at the machine
8708 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8710 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8713 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8715 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8716 (sh_stub_unwind_sniffer): New functions.
8717 (sh_stub_unwind): New variable.
8718 (sh_gdbarch_init): Wire everything.
8720 2012-02-27 Pedro Alves <palves@redhat.com>
8722 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8723 (linux_nat_post_attach_wait): Adjust to use
8724 linux_proc_pid_is_stopped.
8725 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8726 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8727 based on pid_is_stopped from both linux-nat.c and
8728 gdbserver/linux-low.c, and renamed.
8730 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8732 * remote.c (remote_watchpoint_addr_within_range): New function.
8733 (init_remote_ops): Use it.
8735 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8737 * target.h (target_watchpoint_addr_within_range): Document macro.
8739 2012-02-24 Pedro Alves <palves@redhat.com>
8741 * stack.c (set_last_displayed_sal): Issue internal_error instead
8742 of warning, and issue it after clearing the last displayed sal.
8744 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8745 Pedro Alves <palves@redhat.com>
8747 * breakpoint.c (until_break_command): Install breakpoints after
8748 all frame manipulations.
8750 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8752 * remote.c (remote_supports_cond_breakpoints): New forward
8754 (remote_add_target_side_condition): New function.
8755 (remote_insert_breakpoint): Add target-side breakpoint
8756 conditional if supported.
8757 (remote_insert_hw_breakpoint): Likewise.
8758 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8761 * target.c (update_current_target): Inherit
8762 to_supports_evaluation_of_breakpoint_conditions.
8763 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8765 * target.h (struct target_ops)
8766 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8767 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8769 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8770 (condition_evaluation_both, condition_evaluation_auto,
8771 condition_evaluation_host, condition_evaluation_target,
8772 condition_evaluation_enums, condition_evaluation_mode_1,
8773 condition_evaluation_mode): New static globals.
8774 (translate_condition_evaluation_mode): New function.
8775 (breakpoint_condition_evaluation_mode): New function.
8776 (gdb_evaluates_breakpoint_condition_p): New function.
8777 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8778 (mark_breakpoint_modified): New function.
8779 (mark_breakpoint_location_modified): New function.
8780 (set_condition_evaluation_mode): New function.
8781 (show_condition_evaluation_mode): New function.
8782 (bp_location_compare_addrs): New function.
8783 (get_first_location_gte_addr): New helper function.
8784 (set_breakpoint_condition): Free condition bytecode if locations
8785 has become unconditional. Call mark_breakpoint_modified (...).
8786 (condition_command): Call update_global_location_list (1) for
8788 (breakpoint_xfer_memory): Use is_breakpoint (...).
8789 (is_breakpoint): New function.
8790 (parse_cond_to_aexpr): New function.
8791 (build_target_condition_list): New function.
8792 (insert_bp_location): Handle target-side conditional
8793 breakpoints and call build_target_condition_list (...).
8794 (update_inserted_breakpoint_locations): New function.
8795 (insert_breakpoint_locations): Handle target-side conditional
8797 (bpstat_check_breakpoint_conditions): Add comment.
8798 (bp_condition_evaluator): New function.
8799 (bp_location_condition_evaluator): New function.
8800 (print_breakpoint_location): Print information on where the condition
8802 (print_one_breakpoint_location): Likewise.
8803 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8804 breakpoint location.
8805 (force_breakpoint_reinsertion): New functions.
8806 (update_global_location_list): Handle target-side breakpoint
8808 Reinsert locations that are already inserted if conditions have
8810 (bp_location_dtor): Free agent expression bytecode.
8811 (disable_breakpoint): Call mark_breakpoint_modified (...).
8812 Call update_global_location_list (...) with parameter 1 for breakpoints.
8813 (disable_command): Call mark_breakpoint_location_modified (...).
8814 Call update_global_location_list (...) with parameter 1 for breakpoints.
8815 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8816 (enable_command): mark_breakpoint_location_modified (...).
8817 (_initialize_breakpoint): Update documentation and add
8818 condition-evaluation breakpoint subcommand.
8820 * breakpoint.h: Include ax.h.
8821 (condition_list): New data structure.
8822 (condition_status): New enum.
8823 (bp_target_info) <cond_list>: New field.
8824 (bp_location) <condition_changed, cond_bytecode>: New fields.
8825 (is_breakpoint): New prototype.
8827 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8829 * remote.c (remote_state) <cond_breakpoints>: New field.
8830 (PACKET_ConditionalBreakpoints): New enum.
8831 (remote_cond_breakpoint_feature): New function.
8832 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8833 (remote_supports_cond_breakpoints): New function.
8834 (_initialize_remote): Add new packet configuration for
8835 target-side conditional breakpoints.
8837 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8839 * NEWS: Mention target-side conditional breakpoint support,
8840 new condition-evaluation breakpoint subcommand and remote
8843 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8845 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8848 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8850 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8851 (after_prologue): Remove.
8853 2012-02-23 Tom Tromey <tromey@redhat.com>
8855 * jv-valprint.c (java_val_print): Remove dead code.
8857 2012-02-23 Tristan Gingold <gingold@adacore.com>
8859 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8860 known_tasks_element and known_tasks_length fields.
8861 (read_known_tasks_array): Change argument type. Use pointer type
8862 and number of elements from DATA. Adjust.
8863 (read_known_tasks_list): Likewise.
8864 (get_known_tasks_addr): Remove.
8865 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8866 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8867 type and array length. Merge former get_known_tasks_addr code.
8869 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8872 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8873 it after set_momentary_breakpoint.
8875 2012-02-22 Sterling Augustine <saugustine@google.com>
8878 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8880 2012-02-22 Gary Benson <gbenson@redhat.com>
8882 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8883 (find_slot_in_mapped_hash): Likewise.
8885 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8888 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8889 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8890 * configure: Regenerate.
8892 2012-02-21 Tristan Gingold <gingold@adacore.com>
8893 Pedro Alves <palves@redhat.com>
8895 * ia64-tdep.c: Do not include libunwind-ia64.h.
8896 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8897 Include libunwind-ia64.h instead of libunwind.h.
8898 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8899 for libunwind.h existence.
8900 * configure, config.in: Regenerate.
8902 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8904 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8905 instead of value_rtti_target_type.
8906 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8907 instead of value_rtti_target_type.
8908 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8909 value_rtti_target_type.
8910 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8911 (value_rtti_target_type): Rename to ...
8912 (value_rtti_indirect_type): ... here and make it indirect. Update
8914 * value.c (readjust_indirect_value_type): New function.
8915 (coerce_ref): Support for enclosing type setting for references
8916 with readjust_indirect_value_type.
8917 * value.h (readjust_value_type): New declaration.
8918 (value_rtti_target_type): Rename to ...
8919 (value_rtti_indirect_type): ... here.
8921 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8923 * MAINTAINERS (Write After Approval): Add myself to the list.
8925 2012-02-20 Doug Evans <dje@google.com>
8927 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8928 Rename objfile_p_char parameter to objfilep.
8929 (build_objfile_section_table): Result is now void. All callers
8931 * objfiles.h (struct objfile): Tweak comments, whitespace.
8932 (build_objfile_section_table): Update.
8934 * elfread.c (elf_symfile_segments): Fix warning text.
8936 2012-02-20 Tom Tromey <tromey@redhat.com>
8939 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8940 particular set of file names once.
8941 (dw2_map_symbol_filenames): Likewise.
8943 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8946 * main.c (write_files): Remove the declaration.
8947 (external_editor_command): Move the declaration ...
8948 [GDBTK] (external_editor_command): ... here. Fix the comment.
8950 2012-02-20 Tom Tromey <tromey@redhat.com>
8952 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8955 2012-02-20 Tristan Gingold <gingold@adacore.com>
8957 * darwin-nat.h (enum darwin_msg_state): Add comments.
8959 2012-02-20 Tristan Gingold <gingold@adacore.com>
8961 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8964 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8966 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8967 between function description and implementation.
8969 2012-02-17 Tom Tromey <tromey@redhat.com>
8972 * python/py-event.c (event_object_getset): New global.
8973 (event_object_type): Reference it.
8974 * python/py-type.c (field_object_getset): New global.
8975 (field_object_type): Reference it.
8976 * python/python-internal.h (gdb_py_generic_dict): Declare.
8977 * python/py-utils.c (gdb_py_generic_dict): New function.
8979 2012-02-17 Tristan Gingold <gingold@adacore.com>
8981 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8983 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8985 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8986 TYPE_CALLING_CONVENTION annotation.
8988 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8990 * MAINTAINERS: Add rx to target ISA section.
8991 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8992 (ALLDEPFILES): Add rx-tdep.c.
8994 2012-02-16 Tom Tromey <tromey@redhat.com>
8996 * symfile.c (symbol_file_add_main_1): Use inferior's
8998 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8999 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9001 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9003 (follow_exec): Use inferior's symfile_flags.
9004 * inferior.h (struct inferior) <symfile_flags>: New field.
9006 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9009 * remote-sim.c (gdbsim_create_inferior): Call error() when
9010 sim_create_inferior() fails.
9012 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9014 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9016 2012-02-16 Tom Tromey <tromey@redhat.com>
9019 * thread.c (struct current_thread_cleanup) <was_removable>: New
9021 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9022 (make_cleanup_restore_current_thread): Initialize new field.
9024 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9026 * MAINTAINERS: Add rl78 to target ISA section.
9027 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9028 (ALLDEPFILES): Add rl78-tdep.c.
9029 * NEWS: Mention rl78 as a new target.
9031 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9033 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9035 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9037 2012-02-15 Tom Tromey <tromey@redhat.com>
9040 * infcmd.c (registers_info): Print just the current register's
9043 2012-02-15 Tom Tromey <tromey@redhat.com>
9045 * python/py-symbol.c (sympy_value): Use _().
9047 2012-02-15 Pedro Alves <palves@redhat.com>
9049 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9050 output to be like native targets'.
9051 (remote_pid_to_str): Special case the null ptid.
9053 2012-02-14 Stan Shebs <stan@codesourcery.com>
9055 * NEWS: Mention enable count command.
9056 * breakpoint.h (struct breakpoint): New field enable_count.
9057 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9058 (enable_breakpoint): Add arg to call.
9059 (struct disp_data): New struct.
9060 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9061 (do_map_enable_once_breakpoint): Create a struct and pass it.
9062 (do_map_enable_delete_breakpoint): Ditto.
9063 (do_map_enable_count_breakpoint): New function.
9064 (enable_count_command): New function.
9065 (bpstat_stop_status): Decrement enable_count.
9066 (print_one_breakpoint_location): Report enable count.
9067 (_initialize_breakpoint): Add enable count command.
9069 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9071 * rl78-tdep.c (reggroups.h): Include.
9072 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9073 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9074 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9075 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9076 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9077 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9078 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9079 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9080 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9081 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9082 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9083 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9084 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9085 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9086 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9087 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9088 beginning of register list.
9089 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9090 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9091 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9092 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9093 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9094 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9095 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9096 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9097 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9098 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9099 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9100 the pseudo registers. Rearrange other pseudo registers too so
9101 that the bank registers appear at the end.
9102 (rl78_register_type): Account for the fact that the byte sized
9103 bank registers are now pseudo-registers.
9104 (rl78_register_name): Rearrange the register name array. Make
9105 initial set of raw banked registers inaccessible.
9106 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9107 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9108 case for copying bytes back and forth between raw and pseudo
9109 versions of the banked registers. Update other cases to reflect
9111 (rl78_return_value): Update to account for changed names of
9113 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9114 rl78_register_sim_regno().
9116 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9118 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9119 the name parameter being passed to find_pc_partial_function().
9121 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9123 * MAINTAINERS: Step down from being ia64 target maintainer.
9125 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9127 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9128 compilation warning.
9130 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9132 Fix crash on loaded shlibs without loaded exec_bfd.
9133 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9134 (set_section_command): Replace exec_bfd by p->bfd.
9136 2012-02-10 Tom Tromey <tromey@redhat.com>
9138 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9139 when we have a C++ qualified name.
9141 2012-02-10 Pedro Alves <palves@redhat.com>
9143 * inferior.c (inferior_pid_to_str): New.
9144 (print_inferior, inferior_command): Use it.
9146 2012-02-10 Pedro Alves <palves@redhat.com>
9148 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9150 * configure: Regenerate.
9152 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9154 * linespec.c (decode_line_internal): Fix comment correctness.
9156 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9159 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9160 * amd64bsd-nat.c: Add support for debug registers (adapted from
9162 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9163 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9164 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9165 (amd64bsd_dr_get_control): New functions.
9166 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9167 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9168 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9169 watchpoints initialization.
9170 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9172 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9174 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9176 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9178 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9180 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9182 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9184 * language.h (symbol_name_cmp_ftype): Renames
9185 symbol_name_match_p_ftype.
9186 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9187 la_get_symbol_name_match_p.
9188 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9189 ada_get_symbol_name_match_p. Update comment.
9190 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9191 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9192 Renames symbol_name_match_p. Update field type.
9193 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9194 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9195 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9196 "la_get_symbol_name_cmp" in comments.
9197 * language.c: Likewise.
9199 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9201 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9203 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9204 (amd64_sol2_gregset32_reg_offs): Likewise.
9206 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9208 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9209 of the returned BFD is allocated by GDB.
9211 2012-02-07 Tom Tromey <tromey@redhat.com>
9214 * python/python-internal.h (frame_object_type): Declare.
9215 * python/py-symbol.c (sympy_needs_frame): New function.
9216 (sympy_value): New function.
9217 (symbol_object_getset): Add "needs_frame".
9218 (symbol_object_methods): Add "value".
9219 * python/py-frame.c (frame_object_type): No longer static.
9221 2012-02-07 Tom Tromey <tromey@redhat.com>
9224 * python/py-symbol.c (sympy_line): New function.
9225 (symbol_object_getset): Add "line".
9227 2012-02-07 Tom Tromey <tromey@redhat.com>
9229 * charset.c (find_charset_names): Check 'in' against NULL.
9231 2012-02-06 Doug Evans <dje@google.com>
9233 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9234 and fields.name members from char * to const char *. All uses updated.
9235 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9236 from char * to const char *. All uses updated.
9237 (type_name_no_tag): Update.
9238 (lookup_unsigned_typename, lookup_signed_typename): Update.
9239 * gdbtypes.c (type_name_no_tag): Change result type
9240 from char * to const char *. All callers updated.
9241 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9242 name parameter from char * to const char *.
9243 * symtab.h (struct cplus_specific): Change type of demangled_name
9244 member from char * to const char *. All uses updated.
9245 (struct general_symbol_info): Change type of name and
9246 mangled_lang.demangled_name members from char * to const char *.
9248 (symbol_get_demangled_name, symbol_natural_name): Update.
9249 (symbol_demangled_name, symbol_search_name): Update.
9250 * symtab.c (symbol_get_demangled_name): Change result type
9251 from char * to const char *. All callers updated.
9252 (symbol_natural_name, symbol_demangled_name): Ditto.
9253 (symbol_search_name): Ditto.
9254 (completion_list_add_name): Change type of symname,sym_text,
9255 text,word parameters from char * to const char *.
9256 (completion_list_objc_symbol): Change type of sym_text,
9257 text,word parameters from char * to const char *.
9258 * ada-lang.c (find_struct_field): Change type of name parameter
9259 from char * to const char *.
9260 (encoded_ordered_before): Similarly for N0,N1 parameters.
9261 (old_renaming_is_invisible): Similarly for function_name parameter.
9262 (ada_type_name): Change result type from char * to const char *.
9263 All callers updated.
9264 * ada-lang.h (ada_type_name): Update.
9265 * buildsym.c (hashname): Change type of name parameter
9266 from char * to const char *.
9267 * buildsym.h (hashname): Update.
9268 * dbxread.c (end_psymtab): Change type of include_list parameter
9269 from char ** to const char **.
9270 * dwarf2read.c (determine_prefix): Change result type
9271 from char * to const char *. All callers updated.
9272 * f-lang.c (find_common_for_function): Change type of name, funcname
9273 parameters from char * to const char *.
9274 * f-lang.c (find_common_for_function): Update.
9275 * f-valprint.c (list_all_visible_commons): Change type of funcname
9276 parameters from char * to const char *.
9277 * gdbarch.sh (static_transform_name): Change type of name parameter
9278 and result from char * to const char *.
9279 * gdbarch.c: Regenerate.
9280 * gdbarch.h: Regenerate.
9281 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9282 of name parameter from char * to const char *.
9283 * jv-lang.c (java_primitive_type_from_name): Ditto.
9284 (java_demangled_signature_length): Similarly for signature parameter.
9285 (java_demangled_signature_copy): Ditto.
9286 (java_demangle_type_signature): Ditto.
9287 * jv-lang.h (java_primitive_type_from_name): Update.
9288 (java_demangle_type_signature): Update.
9289 * objc-lang.c (specialcmp): Change type of a,b parameters
9290 from char * to const char *.
9291 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9292 from char * to const char *. All callers updated.
9293 * p-lang.h (is_pascal_string_type): Update.
9294 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9295 of name parameter from char * to const char *.
9296 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9297 * utils.c (fprintf_symbol_filtered): Ditto.
9298 * defs.h (fprintf_symbol_filtered): Update.
9299 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9300 * stabsread.h (end_psymtab): Update.
9301 * stack.c (find_frame_funname): Change type of funname parameter
9302 from char ** to const char **.
9303 * stack.h (find_frame_funname): Update.
9304 * typeprint.c (type_print): Change type of varstring parameter
9305 from char * to const char *.
9306 * value.h (type_print): Update.
9307 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9308 from char * to const char *. All callers updated.
9309 (xcoff_end_psymtab): Change type of include_list parameter
9310 from char ** to const char **. All callers updated.
9311 (swap_sym): Similarly for name parameter. All callers updated.
9312 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9314 (process_coff_symbol): Use xstrdup.
9315 * stabsread.c (stabs_method_name_from_physname): Renamed from
9316 update_method_name_from_physname. Change result type from void
9317 to char *. All callers updated.
9318 (read_member_functions): In has_destructor case, store name in objfile
9319 obstack instead of malloc space. In !has_stub case, fix mem leak.
9321 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9323 * configure: Rebuild.
9324 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9327 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9329 * configure.tgt (rl78-*-elf): New target.
9330 * rl78-tdep.c: New file.
9332 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9334 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9335 and continue the loop. Add QUIT statement.
9337 2012-02-03 Tom Tromey <tromey@redhat.com>
9340 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9341 bfd_lookup_symbol_from_symtab.
9342 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9343 gdb_bfd_lookup_symbol_from_symtab.
9345 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9347 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9348 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9349 symbol. Add assertion that sym2 is never NULL.
9351 2012-02-02 Doug Evans <dje@google.com>
9353 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9354 "name" parameter to const char ** from char **. All callers updated.
9355 (find_pc_partial_function): Ditto.
9356 (cache_pc_function_name): Change type to const char * from char *.
9357 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9358 (find_pc_partial_function): Update.
9359 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9360 type of "name" parameter to const char * from char *.
9362 * arch-utils.c (generic_in_solib_return_trampoline): Change
9363 type of "name" parameter to const char * from char *.
9364 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9365 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9366 type of "name" parameter to const char * from char *.
9367 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9368 * gdbarch.c: Regenerate.
9369 * gdbarch.h: Regenerate.
9370 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9371 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9372 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9373 type of "name" parameter to const char * from char *.
9374 * skip.c (skip_function_pc): Ditto.
9375 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9376 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9377 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9378 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9379 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9380 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9381 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9382 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9383 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9385 2012-02-02 Pedro Alves <palves@redhat.com>
9387 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9388 the current inferior has no execution. Make sure the current
9389 remote process matches gdb's current inferior.
9391 2012-02-02 Tom Tromey <tromey@redhat.com>
9394 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9397 2012-02-02 Tom Tromey <tromey@redhat.com>
9400 * symtab.c (lookup_language_this): Set block_found.
9402 2012-02-01 Tom Tromey <tromey@redhat.com>
9405 * jit.c (struct jit_inferior_data): Rewrite.
9406 (struct jit_objfile_data): New.
9407 (get_jit_objfile_data): New function.
9408 (add_objfile_entry): Update.
9409 (jit_read_descriptor): Return int. Replace descriptor_addr
9410 argument with inf_data. Update. Don't call error.
9411 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9413 (jit_inferior_init): Don't look up descriptor. Don't call error.
9414 (jit_reset_inferior_data_and_breakpoints)
9415 (jit_inferior_created_observer): Remove.
9416 (jit_inferior_exit_hook): Update.
9417 (jit_executable_changed_observer): Remove.
9418 (jit_event_handler): Update.
9419 (free_objfile_data): Reset inferior data if needed.
9420 (_initialize_jit): Update.
9422 2012-02-01 Tom Tromey <tromey@redhat.com>
9424 * jit.c (bfd_open_from_target_memory): Move higher in file.
9426 2012-02-01 Tristan Gingold <gingold@adacore.com>
9428 * libunwind-frame.c (libunwind_load): Display message if dlopen
9431 2012-02-01 Gary Benson <gbenson@redhat.com>
9433 * symtab.h (symbol_found_callback_ftype): New typedef.
9434 (iterate_over_symbols): Use the above.
9435 * symtab.c (iterate_over_symbols): Likewise.
9436 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9437 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9438 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9439 (iterate_name_matcher): Document return values.
9440 (collect_one_symbol): Likewise.
9441 (collect_function_symbols): Likewise.
9442 (collect_symbols): Likewise.
9444 2012-02-01 Tom Tromey <tromey@redhat.com>
9446 * ada-lang.c (resolve_subexp): Update.
9447 (ada_lookup_symbol_list): Add 'full_search' argument.
9448 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9449 ada_lookup_symbol_list.
9450 (ada_lookup_encoded_symbol): Update.
9451 (get_var_value): Update.
9452 * ada-exp.y (block_lookup): Update.
9453 (write_var_or_type): Update.
9454 (write_name_assoc): Update.
9455 * ada-lang.h (ada_lookup_symbol_list): Update.
9457 2012-01-31 Tom Tromey <tromey@redhat.com>
9459 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9462 2012-01-31 Doug Evans <dje@google.com>
9464 * symtab.h: Remove outdated comment.
9465 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9467 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9469 Fix build error in Darwin port.
9470 * i386-darwin-nat.c: Include i386-nat.h.
9472 2012-01-30 Tom Tromey <tromey@redhat.com>
9474 PR breakpoints/13568:
9475 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9476 argument. Check for recursive includes.
9477 (dwarf_decode_macros): Create an include hash.
9479 2012-01-30 Michael Eager <eager@eagercon.com>
9481 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9482 * ppc-linux-tdep.c: Include glibc-tdep.h.
9483 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9484 (powerpc_linux_in_plt_stub): New function.
9485 (powerpc_linux_in_dynsym_resolve_code): New function.
9486 (ppc_skip_trampoline_code): New function.
9487 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9488 Use glibc_skip_solib_resolver.
9490 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9492 Code cleanup: Make 1440 bytes of data segment read-only.
9493 * arch-utils.c (endian_enum): Make it const char *const [].
9494 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9496 * breakpoint.c (always_inserted_enums): Likewise.
9497 * cli/cli-cmds.c (script_ext_enums): Likewise.
9498 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9499 enumlist parameter const char *const *.
9500 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9501 const char *const *.
9502 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9503 parameter const char *const *.
9504 * cris-tdep.c (cris_modes): Make it const char *const [].
9505 * filesystem.c (target_file_system_kinds): Likewise.
9506 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9507 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9508 (can_use_displaced_stepping_enum, scheduler_enums)
9509 (exec_direction_names): Likewise.
9510 * language.c (_initialize_language): Make the type_or_range_names and
9511 case_sensitive_names variables const char *const [].
9512 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9513 * python/python.c (python_excp_enums): Likewise.
9514 * remote.c (interrupt_sequence_modes): Likewise.
9515 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9516 * serial.c (logbase_enums): Likewise.
9517 * sh-tdep.c (sh_cc_enum): Likewise.
9518 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9520 * symtab.c (multiple_symbols_modes): Likewise.
9521 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9523 * utils.c (internal_problem_modes): Likewise.
9525 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9527 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9528 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9531 2012-01-27 Doug Evans <dje@google.com>
9533 * configure.ac (with_python): Fix absolute path handling for win32.
9534 * configure: Regenerate.
9536 2012-01-26 Doug Evans <dje@google.com>
9538 * symtab.c: Whitespace cleanup, no code changes.
9540 * symtab.c (lookup_symbol_in_language): Improve comment.
9541 (lookup_symbol_aux): Fix comment.
9543 * psymtab.c (add_psymbol_to_list): Result is now "void".
9544 * psympriv.h (add_psymbol_to_list): Update.
9546 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9548 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9550 Do not open script filenames twice.
9551 * cli/cli-cmds.c (source_script_from_stream): Pass to
9552 source_python_script also STREAM.
9553 * python/py-auto-load.c (source_section_scripts): Pass to
9554 source_python_script_for_objfile also STREAM.
9555 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9557 * python/python-internal.h (source_python_script_for_objfile): New
9558 parameter file, rename parameter file to filename.
9559 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9560 instead if !_WIN32. Update the function comment.
9561 (source_python_script, source_python_script_for_objfile)
9562 (source_python_script): New parameter file, rename parameter file to
9563 filename. Pass FILENAME to python_run_simple_file.
9564 * python/python.h (source_python_script): New parameter file, rename
9565 parameter file to filename.
9567 2012-01-26 Pedro Alves <palves@redhat.com>
9569 * corelow.c (core_has_fake_pid): Delete.
9570 (core_close): Delete references to `core_has_fake_pid'.
9571 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9572 (core_open): Delete references to `core_has_fake_pid'.
9573 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9576 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9578 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9579 Remove language parameter from name_matcher. Adjust the comment.
9580 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9581 Remove language parameter.
9582 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9583 * linespec.c (iterate_name_matcher): Likewise.
9584 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9585 name_matcher. Adjust call accordingly.
9586 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9587 (maintenance_check_symtabs): Adjust type of parameter "fun".
9588 * psymtab.h (maintenance_check_symtabs): Likewise.
9590 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9592 * language.h (symbol_name_match_p_ftype): New typedef.
9593 (struct language_defn): Replace field la_symbol_name_compare
9594 by la_get_symbol_name_match_p.
9595 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9596 (ada_language_defn): Use it.
9597 * linespec.c (struct symbol_matcher_data): New type.
9598 (iterate_name_matcher): Rewrite.
9599 (iterate_over_all_matching_symtabs): Pass a pointer to
9600 a symbol_matcher_data struct to expand_symtabs_matching
9601 instead of just the lookup name.
9602 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9603 opencl-lang.c, p-lang.c, language.c: Delete field
9604 la_symbol_name_compare, and replace by NULL for new field
9605 la_get_symbol_name_match_p.
9606 * symfile.h (struct quick_symbol_functions): Update comment.
9608 2012-01-25 Tom Tromey <tromey@redhat.com>
9610 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9613 2012-01-24 Tom Tromey <tromey@redhat.com>
9616 * solib.c (update_solib_list): Update the program space's
9617 added_solibs and deleted_solibs fields.
9618 * progspace.h (struct program_space) <added_solibs,
9619 deleted_solibs>: New fields.
9620 (clear_program_space_solib_cache): Declare.
9621 * progspace.c (release_program_space): Call
9622 clear_program_space_solib_cache.
9623 (clear_program_space_solib_cache): New function.
9624 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9625 bpstat_stop_status. Use handle_solib_event.
9626 * breakpoint.c: Include gdb_regex.h.
9627 (print_solib_event): New function.
9628 (bpstat_print): Use print_solib_event.
9629 (bpstat_stop_status): Add special case for bp_shlib_event.
9630 (handle_solib_event): New function.
9631 (bpstat_what): Use handle_solib_event.
9632 (struct solib_catchpoint): New.
9633 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9634 (breakpoint_hit_catch_solib, check_status_catch_solib)
9635 (print_it_catch_solib, print_one_catch_solib)
9636 (print_mention_catch_solib, print_recreate_catch_solib): New
9638 (catch_solib_breakpoint_ops): New global.
9639 (catch_load_or_unload, catch_load_command_1)
9640 (catch_unload_command_1): New functions.
9641 (internal_bkpt_check_status): Add special case for
9643 (internal_bkpt_print_it): Use print_solib_event.
9644 (initialize_breakpoint_ops): Initialize
9645 catch_solib_breakpoint_ops.
9646 (_initialize_breakpoint): Register "catch load" and "catch
9648 * breakpoint.h (handle_solib_event): Declare.
9649 * NEWS: Add entry for "catch load" and "catch unload".
9651 2012-01-24 Tom Tromey <tromey@redhat.com>
9653 * ada-lang.c: Include gdb_vecs.h.
9654 * charset.c: Include gdb_vecs.h.
9655 * tracepoint.h: Include gdb_vecs.h.
9656 * gdb_vecs.h: New file.
9658 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9660 * breakpoint.c (breakpoint_hit_catch_fork)
9661 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9662 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9663 * infrun.c (inferior_has_forked, inferior_has_vforked)
9664 (inferior_has_execd, inferior_has_called_syscall): Delete.
9665 (handle_syscall_event): Get syscall_number from the execution
9666 control state's wait status.
9667 (wait_for_inferior): Don't clear syscall_number.
9669 2012-01-24 Pedro Alves <palves@redhat.com>
9671 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9672 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9673 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9674 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9676 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9677 false for events other than TARGET_SIGNAL_TRAP.
9678 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9680 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9681 events other than TARGET_SIGNAL_TRAP.
9682 (tracepoint_breakpoint_hit): Add `ws' parameter.
9683 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9685 (bpstat_stop_status): Same.
9686 (pc_at_non_inline_function): Same.
9687 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9688 to pass the current event's waitstatus to bpstat_stop_status
9689 and pc_at_non_inline_function.
9691 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9694 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9695 Update the function comment for it.
9696 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9697 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9700 2012-01-24 Pedro Alves <palves@redhat.com>
9702 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9703 outside `bs->stop' block.
9704 (bpstat_what): Rework bp_shlib_event handling.
9705 (internal_bkpt_check_status): If the breakpoint is a
9706 bp_shlib_event, then set bs->stop and bs->print if
9707 stop_on_solib_events is set.
9709 2012-01-24 Gary Benson <gbenson@redhat.com>
9711 Delete #if 0'd out code.
9712 * stack.c (print_frame_label_vars): Remove.
9713 (catch_info): Likewise.
9714 (_initialize_stack): Remove "info catch" command.
9715 * NEWS: Mention the above.
9717 2012-01-24 Pedro Alves <palves@redhat.com>
9719 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9721 (remote_notice_new_inferior): If the remote end doesn't support
9722 the multiprocess extensions, then the PID is fake.
9723 (add_current_inferior_and_thread): New.
9724 (remote_start_remote): Use it.
9725 (extended_remote_attach_1): Adjust.
9726 (extended_remote_create_inferior_1): Use
9727 add_current_inferior_and_thread.
9729 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9731 Fix watchpoints to be specific for each inferior.
9732 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9733 current_program_space.
9734 * i386-nat.c (i386_inferior_data_cleanup): New.
9735 (i386_inferior_data_get): Replace variable inf_data_local by an
9737 (i386_use_watchpoints): Initialize i386_inferior_data.
9738 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9739 specific iterate_over_lwps.
9741 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9743 Fix watchpoints across inferior fork.
9744 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9745 comment for linux_nat_iterate_watchpoint_lwps.
9746 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9747 linux_nat_iterate_watchpoint_lwps.
9748 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9749 * i386-linux-nat.c (update_debug_registers_callback): Update the
9750 comment for linux_nat_iterate_watchpoint_lwps.
9751 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9752 linux_nat_iterate_watchpoint_lwps.
9753 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9754 * i386-nat.c: Include inferior.h.
9755 (dr_mirror): Remove.
9756 (i386_inferior_data, struct i386_inferior_data)
9757 (i386_inferior_data_get): New.
9758 (i386_debug_reg_state): Use i386_inferior_data_get.
9759 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9760 (i386_insert_watchpoint, i386_remove_watchpoint)
9761 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9762 (i386_remove_hw_breakpoint): New variable state, use
9763 i386_debug_reg_state instead of DR_MIRROR.
9764 * linux-nat.c (delete_lwp): New declaration.
9765 (num_lwps): Move here from downwards.
9766 (delete_lwp_cleanup): New.
9767 (linux_child_follow_fork): Create new child_lp, call
9768 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9770 (num_lwps): Move upwards.
9771 (linux_nat_iterate_watchpoint_lwps): New.
9772 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9773 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9775 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9779 2012-01-23 Pedro Alves <palves@redhat.com>
9781 * top.c (caution): Rename to ...
9782 (confirm): ... this.
9783 (show_caution): Rename to ...
9784 (show_confirm): ... this.
9785 (quit_cover): Adjust.
9786 (init_main): Adjust.
9787 * top.h (caution): Rename to ...
9788 (confirm): ... this.
9789 * utils.c (internal_vproblem, defaulted_query): Adjust.
9791 2012-01-23 Pedro Alves <palves@redhat.com>
9793 * top.c (caution): Update comment.
9794 (execute_command): Don't consider the current value of `caution'.
9796 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9798 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9800 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9802 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9803 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9804 * target.c (target_fileio_pwrite): Remove buffer address from
9806 (target_fileio_pread): Likewise.
9808 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9810 * NEWS: Document remote "info proc" and "generate-core-file".
9812 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9814 * gdbarch.sh (find_memory_regions): New callback.
9815 * gdbarch.c, gdbarch.h: Regenerate.
9817 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9818 callback before falling back to target method.
9820 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9821 (linux_target_install_ops): No longer install it.
9823 * linux-tdep.c (linux_find_memory_regions): New function.
9824 (linux_init_abi): Install it.
9826 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9828 * gdbarch.sh (make_corefile_notes): New architecture callback.
9829 * gdbarch.c: Regenerate.
9830 * gdbarch.h: Likewise.
9832 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9833 before target_make_corefile_notes. If NULL is returned, the
9834 target does not support core file generation.
9836 * linux-nat.c: Include "linux-tdep.h".
9837 (find_signalled_thread, find_stop_signal): Remove.
9838 (linux_nat_do_thread_registers): Likewise.
9839 (struct linux_nat_corefile_thread_data): Likewise.
9840 (linux_nat_corefile_thread_callback): Likewise.
9841 (iterate_over_spus): Likewise.
9842 (struct linux_spu_corefile_data): Likewise.
9843 (linux_spu_corefile_callback): Likewise.
9844 (linux_spu_make_corefile_notes): Likewise.
9845 (linux_nat_collect_thread_registers): New function.
9846 (linux_nat_make_corefile_notes): Replace contents by call to
9847 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9848 as native-only callback.
9850 * linux-tdep.h: Include "bfd.h".
9851 (struct regcache): Add forward declaration.
9852 (linux_collect_thread_registers_ftype): New typedef.
9853 (linux_make_corefile_notes): Add prototype.
9854 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9855 "regset.h", and "elf-bfd.h".
9856 (find_signalled_thread, find_stop_signal): New functions.
9857 (linux_spu_make_corefile_notes): Likewise.
9858 (linux_collect_thread_registers): Likewise.
9859 (struct linux_corefile_thread_data): New data structure.
9860 (linux_corefile_thread_callback): New funcion.
9861 (linux_make_corefile_notes): Likewise.
9862 (linux_make_corefile_notes_1): Likewise.
9863 (linux_init_abi): Install it.
9865 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9867 * gdbarch.sh (info_proc): New callback.
9868 * gdbarch.c, gdbarch.h: Regenerate.
9870 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9871 before falling back to the target info_proc callback.
9873 * linux-nat.c: Do not include "cli/cli-utils.h".
9874 (linux_nat_info_proc): Remove.
9875 (linux_target_install_ops): No longer install it.
9877 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9878 (read_mapping): New function.
9879 (linux_info_proc): Likewise.
9880 (linux_init_abi): Install it.
9882 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9884 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9885 * infcmd.c: (info_proc_cmd_1): New function.
9886 (info_proc_cmd): New function, moved here from equivalent routine
9887 orignally in linux-nat.c.
9888 (info_proc_cmd_mappings): Likewise.
9889 (info_proc_cmd_stat): Likewise.
9890 (info_proc_cmd_status): Likewise.
9891 (info_proc_cmd_cwd): Likewise.
9892 (info_proc_cmd_cmdline): Likewise.
9893 (info_proc_cmd_exe): Likewise.
9894 (info_proc_cmd_all): Likewise.
9895 (_initialize_infcmd): Install "info proc" command and subcommands.
9897 * target.h (struct target_ops): Add to_info_proc.
9898 (target_info_proc): Add prototype.
9899 * target.c (target_info_proc): New function.
9901 * procfs.c (procfs_info_proc): Add prototype.
9902 (info_proc_cmd): Rename into ...
9903 (procfs_info_proc): ... this. Update argument types as appropriate
9904 for a to_info_proc implementation. Handle "what" argument.
9905 (procfs_target): Install procfs_info_proc.
9906 (_initialize_procfs): No longer install "info proc" command.
9908 * linux-nat.c: (enum info_proc_what): Remove.
9909 (linux_nat_info_proc_cmd_1): Rename into ...
9910 (linux_nat_info_proc): ... this. Update argument types as appropriate
9911 for a to_info_proc implementation.
9912 (linux_nat_info_proc_cmd): Remove.
9913 (linux_nat_info_proc_cmd_mappings): Likewise.
9914 (linux_nat_info_proc_cmd_stat): Likewise.
9915 (linux_nat_info_proc_cmd_status): Likewise.
9916 (linux_nat_info_proc_cmd_cwd): Likewise.
9917 (linux_nat_info_proc_cmd_cmdline): Likewise.
9918 (linux_nat_info_proc_cmd_exe): Likewise.
9919 (linux_nat_info_proc_cmd_all): Likewise.
9920 (linux_target_install_ops): Install linux_nat_info_proc.
9921 (_initialize_linux_nat): No longer install "info proc" command
9924 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9926 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9927 * config.in, configure: Regenerate.
9929 * target.h (struct target_ops): Add to_fileio_readlink.
9930 (target_fileio_readlink): Add prototype.
9931 * target.c (target_fileio_readlink): New function.
9933 * inf-child.c: Conditionally include <sys/param.h>.
9934 (inf_child_fileio_readlink): New function.
9935 (inf_child_target): Install it.
9937 * remote.c (PACKET_vFile_readlink): New enum value.
9938 (remote_hostio_readlink): New function.
9939 (init_remote_ops): Install it.
9940 (_initialize_remote): Handle vFile:readlink packet type.
9942 2012-01-20 Pedro Alves <palves@redhat.com>
9943 Ulrich Weigand <ulrich.weigand@linaro.org>
9945 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9946 * config.in, configure: Regenerate.
9948 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9949 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9950 (target_fileio_open): Add prototype.
9951 (target_fileio_pwrite): Likewise.
9952 (target_fileio_pread): Likewise.
9953 (target_fileio_close): Likewise.
9954 (target_fileio_unlink): Likewise.
9955 (target_fileio_read_alloc): Likewise.
9956 (target_fileio_read_stralloc): Likewise.
9958 * target.c: Include "gdb/fileio.h".
9959 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9960 (default_fileio_target): New function.
9961 (target_fileio_open): Likewise.
9962 (target_fileio_pwrite): Likewise.
9963 (target_fileio_pread): Likewise.
9964 (target_fileio_close): Likewise.
9965 (target_fileio_unlink): Likewise.
9966 (target_fileio_close_cleanup): Likewise.
9967 (target_fileio_read_alloc_1): Likewise.
9968 (target_fileio_read_alloc): Likewise.
9969 (target_fileio_read_stralloc): Likewise.
9971 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9972 <fcntl.h>, and <unistd.h>.
9973 (inf_child_fileio_open_flags_to_host): New function.
9974 (inf_child_errno_to_fileio_error): Likewise.
9975 (inf_child_fileio_open): Likewise.
9976 (inf_child_fileio_pwrite): Likewise.
9977 (inf_child_fileio_pread): Likewise.
9978 (inf_child_fileio_close): Likewise.
9979 (inf_child_fileio_unlink): Likewise.
9980 (inf_child_target): Install to_fileio routines.
9982 * remote.c (init_remote_ops): Install to_fileio routines.
9984 2012-01-20 Pedro Alves <palves@redhat.com>
9985 Ulrich Weigand <ulrich.weigand@linaro.org>
9987 * remote.c (remote_multi_process_p): Only check for multi-process
9988 protocol feature, do not check for extended protocol.
9989 (remote_supports_multi_process): Check for extended protocol here.
9990 (set_general_process): Likewise.
9991 (extended_remote_kill): Likewise.
9992 (remote_pid_to_str): Likewise.
9993 (remote_query_supported): Always query multiprocess mode.
9995 2012-01-20 Pedro Alves <palves@redhat.com>
9996 Ulrich Weigand <ulrich.weigand@linaro.org>
9998 * inferior.h (struct inferior): Add fake_pid_p.
9999 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10000 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10001 magic_null_ptid since the remote side doesn't provide a real PID.
10003 2012-01-19 Tom Tromey <tromey@redhat.com>
10005 * NEWS: Combine the two Python sections.
10007 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10009 * target.h (target_close): Update comment on the target's unpush state.
10011 2012-01-19 Pedro Alves <palves@redhat.com>
10013 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10014 linux_nat_async directly instead of going through the target
10016 * target.c (unpush_target): Close target after unpushing it, not
10019 2012-01-19 Gary Benson <gbenson@redhat.com>
10021 * mdebugread.c (sort_blocks): Replace integer constants with ones
10022 derived from FIRST_LOCAL_BLOCK.
10024 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10025 Jan Kratochvil <jan.kratochvil@redhat.com>
10028 * symfile.c (find_separate_debug_file): New function.
10029 (terminate_after_last_dir_separator): Likewise.
10030 (find_separate_debug_file_by_debuglink): Also try realpath.
10031 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10032 * configure: Regenerate.
10033 * config.in: Regenerate.
10035 2012-01-18 Doug Evans <dje@google.com>
10037 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10038 (main.o): Remove rule.
10039 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10040 (--with-sysroot): Rewrite.
10041 * configure: Regenerate.
10042 * config.in: Regenerate.
10044 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10046 * parse.c (initialize_expout): New function.
10047 (reallocate_expout): Likewise.
10048 (parse_exp_in_context): Use `initialize_expout' and
10049 `reallocate_expout' when appropriate.
10051 2012-01-18 Pedro Alves <palves@redhat.com>
10053 * record.c (struct record_breakpoint, record_breakpoint_p)
10054 (record_breakpoints): New.
10055 (record_insert_breakpoint, record_remove_breakpoint): Manage
10056 record breakpoints list. Only remove breakpoints from the
10057 inferior if they had been inserted there in the first place.
10059 2012-01-17 Doug Evans <dje@google.com>
10061 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10062 if we know we don't have a file name to look for.
10064 2012-01-17 Pedro Alves <palves@redhat.com>
10066 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10067 the frame's stop reason is UNWIND_UNAVAILABLE.
10069 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10071 Fix compilation error.
10072 * m2-exp.y (yyerror): Use ANSI C prototype.
10074 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10076 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10077 (growbuf_by_size): Likewise.
10078 (yyerror): Likewise.
10079 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10080 (modblock): Remove variable (was #if 0'ed).
10081 (parse_number): Convert prototype from K&R to ANSI C.
10082 (yyerror): Likewise.
10083 * objc-exp.y (parse_number): Likewise.
10084 (yyerror): Likewise.
10085 (yylex): Remove #if 0'ed code.
10086 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10087 (yyerror): Likewise.
10089 2012-01-16 Tom Tromey <tromey@redhat.com>
10092 * symtab.h (compare_filenames_for_search): Declare.
10093 * symtab.c (compare_filenames_for_search): New function.
10094 (iterate_over_some_symtabs): Use it.
10095 * symfile.h (struct quick_symbol_functions)
10096 <map_symtabs_matching_filename>: Change spec.
10097 * psymtab.c (partial_map_symtabs_matching_filename): Use
10098 compare_filenames_for_search. Update for new spec.
10099 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10100 compare_filenames_for_search. Update for new spec.
10101 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10103 2012-01-16 Tom Tromey <tromey@redhat.com>
10106 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10107 (struct main_type) <flag_flag_enum>: New field.
10108 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10109 * NEWS: Add entries.
10110 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10112 * python/lib/gdb/printing.py (_EnumInstance): New class.
10113 (FlagEnumerationPrinter): Likewise.
10115 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10117 * breakpoint.c (create_sals_from_address_default): New function.
10118 (create_breakpoints_sal_default): Likewise.
10119 (decode_linespec_default): Likewise.
10120 (is_marker_spec): Removed.
10121 (strace_marker_p): New function.
10122 (init_breakpoint_sal): Using `strace_marker_p' instead of
10124 (create_breakpoint): Call method `create_sals_from_address' from
10125 breakpoint_ops, replacing code that created SALs conditionally
10126 on the type of the breakpoint. Call method `create_breakpoints_sal',
10127 replacing code that created breakpoints conditionally on the type
10129 (base_breakpoint_create_sals_from_address): New function.
10130 (base_breakpoint_create_breakpoints_sal): Likewise.
10131 (base_breakpoint_decode_linespec): Likewise.
10132 (base_breakpoint_ops): Add methods
10133 `base_breakpoint_create_sals_from_address',
10134 `base_breakpoint_create_breakpoints_sal' and
10135 `base_breakpoint_decode_linespec'.
10136 (bkpt_create_sals_from_address): New function.
10137 (bkpt_create_breakpoints_sal): Likewise.
10138 (bkpt_decode_linespec): Likewise.
10139 (tracepoint_create_sals_from_address): Likewise.
10140 (tracepoint_create_breakpoints_sal): Likewise.
10141 (tracepoint_decode_linespec): Likewise.
10142 (strace_marker_create_sals_from_address): Likewise.
10143 (strace_marker_create_breakpoints_sal): Likewise.
10144 (strace_marker_decode_linespec): Likewise.
10145 (strace_marker_breakpoint_ops): New variable.
10146 (addr_string_to_sals): Remove `marker_spec'. Call method
10147 `decode_linespec' from breakpoint_ops, replacing code that decoded
10148 an address string into a SAL. Use `strace_marker_p' instead of
10150 (strace_command): Decide whether we are dealing with a static
10151 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10152 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10153 * breakpoint.h (linespec_result, linespec_sals): New forward
10155 (breakpoint_ops) <create_sals_from_address>,
10156 <create_breakpoints_sal>, <decode_linespec>: New methods.
10158 2012-01-14 Doug Evans <dje@google.com>
10160 * NEWS: Update text for "maint set python print-stack".
10161 It is deprecated in gdb 7.4 and deleted in 7.5.
10163 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10165 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10166 including curses.h.
10168 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10170 * configure: Regenerate.
10171 * config.in: Regenerate.
10173 2012-01-12 Keith Seitz <keiths@redhat.com>
10176 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10177 (ANONYMOUS_UNION_NAME): Define.
10178 (is_path_expr_parent): New function.
10179 (get_path_expr_parent): New function.
10180 (is_anonymous_child): New function.
10181 (create_child_with_value): If the child is anonymous and without
10182 a name, assign an object name to it.
10183 (c_describe_child): Use get_path_expr_parent to determine
10184 the parent expression.
10185 If there field represents an anonymous struct or union and
10186 has no name, set an appropriate display name and expression.
10187 (cplus_describe_child): Likewise.
10189 2012-01-12 Pedro Alves <palves@redhat.com>
10191 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10192 available when %ebp is found to be zero (outermost).
10194 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10196 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10197 an internal gdb_static_assert.
10198 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10200 2012-01-11 Tom Tromey <tromey@redhat.com>
10203 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10204 catch" and "catch throw".
10206 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10208 * blockframe.c (block_innermost_frame): Start search from selected
10209 frame, if present, or otherwise the current frame.
10211 * c-exp.y (variable): Update innermost_block for
10212 'block COLONCOLON NAME' clause.
10213 * m2-exp.y (variable): Ditto.
10214 * objc-exp.y (variable): Ditto.
10216 2012-01-10 Tom Tromey <tromey@redhat.com>
10219 * python/python.c (finish_python_initialization): Set sys.argv.
10221 2012-01-10 Doug Evans <dje@google.com>
10223 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10224 "want_line_info". All callers updated.
10225 (dwarf_decode_lines_1): New function.
10226 (handle_DW_AT_stmt_list): Add function comment.
10227 New arg "want_line_info". All callers updated.
10228 (read_file_scope,read_type_unit_scope): Move comment from
10229 handle_DW_AT_stmt_list to here.
10231 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10233 Fix regression after libiberty/ update for GCC PR 6057 and others.
10234 * c-exp.y (operator) <OPERATOR DELETE>
10235 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10236 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10237 (make_builtin_type, make_name): New variable i, add gdb_assert.
10238 (operator) <OPERATOR NEW>: Update ARGS to 3.
10239 (operator) <OPERATOR DELETE>: Add trailing space.
10240 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10241 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10242 * cp-support.c (cp_canonicalize_string): Check NULL from
10243 cp_comp_to_string, call warning and return.
10245 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10247 Fix duplicate .o files after omitting libbfd.a.
10248 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10249 (SFILES): Add corelow.c.
10250 (COMMON_OBS): Add corelow.o.
10251 (ALLDEPFILES): Remove corelow.c.
10252 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10253 * config/alpha/alpha-osf3.mh: Likewise.
10254 * config/alpha/fbsd.mh: Likewise.
10255 * config/arm/nbsdaout.mh: Likewise.
10256 * config/arm/nbsdelf.mh: Likewise.
10257 * config/i386/i386gnu.mh: Likewise.
10258 * config/ia64/hpux.mh: Likewise.
10259 * config/ia64/linux.mh: Likewise.
10260 * config/m32r/linux.mh: Likewise.
10261 * config/m68k/linux.mh: Likewise.
10262 * config/mips/irix5.mh: Likewise.
10263 * config/mips/irix6.mh: Likewise.
10264 * config/pa/hpux.mh: Likewise.
10265 * config/pa/linux.mh: Likewise.
10266 * config/powerpc/aix.mh: Likewise.
10267 * config/sparc/linux.mh: Likewise.
10268 * config/sparc/linux64.mh: Likewise.
10269 * config/sparc/sol2.mh: Likewise.
10270 * config/vax/vax.mh: Likewise.
10271 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10272 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10273 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10274 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10275 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10276 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10277 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10278 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10279 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10280 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10281 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10282 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10283 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10284 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10285 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10286 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10287 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10288 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10289 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10290 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10291 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10292 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10293 corelow.o from gdb_target_obs.
10294 * corefile.c (core_target): Update the comment on NULL value.
10295 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10296 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10297 MATCHES. Drop YUMMY set on NULL.
10298 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10299 reclaim CORE_DATA if it is already NULL.
10301 2012-01-09 Doug Evans <dje@google.com>
10303 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10304 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10306 2012-01-09 Keith Seitz <keiths@redhat.com>
10308 * breakpoint.c (wrapper.h): Don't include.
10310 2012-01-09 Keith Seitz <keiths@redhat.com>
10312 * Makefile.in (SFILES): Remove wrapper.c.
10313 (HFILES_NO_SRCDIR): Remove wrapper.h.
10314 (COMMON_OBS): Remove wrapper.o.
10315 * cli/cli-interp.c: Don't inlude wrapper.h.
10316 * corelow.c: Likewise.
10317 (core_open): Replace gdb_target_find_new_threads with
10318 TRY_CATCH around target_find_new_threads.
10319 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10320 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10321 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10322 evaluate_expression.
10323 (varobj_set_value): Likewise for evaluate_expression and
10325 (install_new_variable): Likewise for value_fetch_lazy.
10326 (adjust_value_for_child_access): Likewise for value_ind.
10327 (c_describe_child): Likewise for value_subscript and
10329 (c_value_of_root): Likewise for evaluate_expression.
10330 * wrapper.c: Remove.
10331 * wrapper.h: Remove.
10333 2012-01-09 Doug Evans <dje@google.com>
10335 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10336 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10337 "abfd" args with "section". All callers updated.
10338 Error checking code moved ...
10339 (error_check_comp_unit_head): ... here. New function.
10340 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10341 Delete arg "abfd". New arg "type_offset". All callers updated.
10342 (create_debug_types_hash_table): Simplify by using
10343 read_and_check_type_unit_head.
10345 * parser-defs.h (namecopy): Delete.
10346 * parse.c (namecopy, namecopy_size): Move into copy_name.
10348 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10350 Partially fix duplicate .o files after omitting libbfd.a.
10351 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10352 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10353 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10354 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10355 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10356 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10357 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10359 2012-01-09 Pedro Alves <palves@redhat.com>
10361 * MAINTAINERS: Update my email address.
10363 2012-01-08 Doug Evans <dje@google.com>
10365 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10366 n_type_units. Rename type_comp_units to all_type_units.
10368 (add_signatured_type_cu_to_table): Renamed from
10369 add_signatured_type_cu_to_list. All callers updated.
10371 * gdbtypes.h (struct cplus_struct_type): Delete member
10372 nfn_fields_total. All uses removed.
10374 2012-01-06 Doug Evans <dje@google.com>
10376 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10378 (dwarf2_find_comp_unit): Delete.
10379 (process_psymtab_comp_unit): Make result "void".
10380 Delete args buffer, info_ptr, buffer_size, and replace with
10381 "section". All callers updated.
10382 (dwarf2_build_psymtabs_hard): Simplify.
10384 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10385 Thiago Jung Bauermann <bauerman@br.ibm.com>
10387 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10388 before `struct gdb_exception'.
10389 * breakpoint.c (update_global_location_list_nothrow)
10390 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10391 * cp-abi.c (value_rtti_type): Likewise.
10392 * cp-support.c (cp_validate_operator): Likewise.
10393 * infrun.c (insert_exception_resume_breakpoint)
10394 (check_exception_resume, keep_going): Likewise.
10395 * mi-interp.c (mi_breakpoint_created)
10396 (mi_breakpoint_modified): Likewise.
10397 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10398 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10399 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10401 2012-01-05 Doug Evans <dje@google.com>
10403 * dwarf2read.c (statement_prologue): Delete, unused.
10405 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10406 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10408 * dwarf2read.c (comp_unit_header): Delete, unused.
10410 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10412 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10413 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10415 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10417 * infrun.c (normal_stop): Don't skip calling the normal_stop
10418 observers if the thread was doing a multi-step, but stopped for
10419 some reason other than stepping.
10421 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10423 * cli/cli-decode.h: Add comments.
10424 (CMD_LIST_AMBIGUOUS): Moved to command.h
10425 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10426 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10427 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10428 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10429 (add_com, add_com_alias, add_info, add_info_alias)
10430 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10432 * command.h: Add and adjust comments.
10433 (CMD_LIST_AMBIGUOUS): Moved here.
10434 (help_cmd, help_cmd_list): Delete declarations.
10436 2012-01-04 Doug Evans <dje@google.com>
10438 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10439 All callers updated.
10440 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10441 Replace all arguments with "per_cu". All callers updated.
10443 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10445 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10446 New arg "per_cu". All callers updated.
10448 Delete #if 0'd out code.
10449 * language.c (binop_result_type): Delete.
10450 (simple_type, ordered_type, same_type, integral_type): Delete.
10451 (numeric_type, character_type, string_type, boolean_type): Delete.
10452 (float_type, structured_type): Delete.
10453 * language.h: Update.
10455 2012-01-04 Tom Tromey <tromey@redhat.com>
10457 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10459 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10461 * corefile.c (close_exec_file): Delete.
10462 (reopen_exec_file): Remove commented out code that seems related
10463 to close_exec_file, which is being deleted here.
10464 * inferior.h (close_exec_file): Delete.
10465 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10467 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10469 * ada-lang.c: #include "cli/cli-utils.h".
10470 (get_selections): Use skip_spaces.
10471 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10472 (catch_ada_exception_command_split): Use skip_spaces.
10473 (ada_decode_assert_location): Likewise.
10475 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10477 * linespec.c (decode_line_internal): Check for C++ or Java
10478 compound constructs only if the current language is C, C++
10481 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10484 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10485 Joel Brobecker <brobecker@adacore.com>
10486 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10487 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10489 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10490 fall through into AT_ENTRY_POINT.
10491 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10492 DUMMY_ADDR with it.
10493 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10494 PPC_INSN_SIZE skip to 3 times.
10496 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10498 * linespec.c (add_minsym): Preserve function descriptors.
10500 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10502 * breakpoint.c (all_locations_are_pending): Consider locations
10503 in program spaces executing during startup pending as well.
10505 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10507 Copyright year update in most files of the GDB Project.
10509 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10511 * copyright.sh: Delete.
10512 * copyright.py: Rewrite.
10514 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10516 * gnulib/extra/update-copyright: New file, imported from gnulib.
10518 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10520 * README (Copyright and License Notices): New section.
10522 2012-01-03 Tom Tromey <tromey@redhat.com>
10525 * python/py-value.c (valpy_dereference, valpy_get_address
10526 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10527 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10528 (valpy_absolute, valpy_richcompare): Free intermediate values.
10530 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10532 * ada-lang.c: Reformat the copyright notice.
10534 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10536 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10537 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10538 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10539 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10540 Revert this part of:
10541 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10542 Build gdb directly from *.o files not using libgdb.a.
10543 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10545 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10547 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10548 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10549 Reformat the copyright header.
10551 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10553 Revert this part of:
10554 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10555 Remove the gdbtui binary.
10556 * gdb.c (main): Remove args.interpreter_p initialization.
10557 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10558 * main.h (struct captured_main_args): Remove interpreter_p.
10560 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10562 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10564 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10566 * top.c (print_gdb_version): Update copyright year.
10568 2012-01-02 Yao Qi <yao@codesourcery.com>
10570 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10572 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10573 Joel Brobecker <brobecker@adacore.com>
10575 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10576 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10578 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10579 fall through into AT_ENTRY_POINT.
10580 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10581 DUMMY_ADDR with it.
10582 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10583 PPC_INSN_SIZE skip to 3 times.
10585 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10587 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10589 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10591 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10593 Build gdb directly from *.o files not using libgdb.a.
10594 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10595 (COMMON_OBS): Remove solib-target.o.
10596 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10597 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10598 (LIBGDB_OBS, libgdb.a): Move it above.
10599 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10600 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10601 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10602 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10603 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10604 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10605 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10606 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10607 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10608 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10609 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10610 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10611 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10612 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10613 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10614 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10615 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10616 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10617 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10618 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10619 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10620 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10621 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10622 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10623 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10624 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10625 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10627 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10629 Remove the gdbtui binary.
10630 * .gitignore (/gdbtui): Remove.
10631 * Makefile.in (TUI): Remove.
10632 (SUBDIR_TUI_OBS): Remove tui-main.o.
10633 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10634 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10635 (tui-main.o): Remove.
10636 (all_object_files): Remove tui-main.o.
10637 * NEWS: New note for the gdbtui removal.
10638 * configure: Rebuilt.
10639 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10640 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10641 CONFIG_UNINSTALL respectively.
10642 * gdb.c (main): Remove args.interpreter_p initialization.
10643 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10644 * main.h (struct captured_main_args): Remove interpreter_p.
10645 * tui/tui-main.c: Remove.
10647 2012-01-01 Doug Evans <dje@google.com>
10649 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10650 (dwarf2_physname, read_import_statement): Ditto.
10651 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10652 (process_structure_scope read_subroutine_type): Ditto.
10653 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10654 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10655 (dwarf2_fetch_die_location_block): Ditto.
10656 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10658 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10659 All callers updated.
10660 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10661 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10662 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10664 * dwarf2read.c (load_cu): Move assert to more useful location.
10666 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10667 All callers updated.
10669 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10670 (dwarf2_elf_names): Minor reformat.
10671 (dwarf2_per_cu_data): Tweak comment.
10672 (dwarf2_read_section): Fix comment.
10673 (create_all_comp_units): Fix comment.
10674 (load_full_comp_unit): Fix comment.
10675 (process_full_comp_unit): Fix comment.
10676 (read_signatured_type): Fix comment.
10678 For older changes see ChangeLog-2011.
10684 version-control: never