1 2012-09-26 Tom Tromey <tromey@redhat.com>
3 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
5 2012-09-26 Tom Tromey <tromey@redhat.com>
7 * dwarf2read.c (mark_common_block_symbol_computed): New function.
8 (read_common_block): Handle child DIEs with
9 DW_AT_data_member_location.
10 (new_symbol_full): Add special case for common blocks.
12 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13 Tom Tromey <tromey@redhat.com>
15 * dwarf2read.c (read_common_block): Rewrite.
16 (new_symbol_full): Handle DW_TAG_common_block.
17 * f-lang.c (head_common_list, find_common_for_function):
19 * f-lang.h (struct common_entry, struct saved_f77_common,
20 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
21 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
22 BLANK_COMMON_NAME_LOCAL): Remove.
23 (struct common_block): New.
24 * f-valprint.c (list_all_visible_commons): Remove.
25 (info_common_command_for_block): New function.
26 (info_common_command): Use it.
27 * stack.c (iterate_over_block_locals): Special case for
29 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
31 (struct general_symbol_info) <value.common_block>: New field.
32 (SYMBOL_VALUE_COMMON_BLOCK): New define.
34 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
35 Tom Tromey <tromey@redhat.com>
37 * f-lang.c (allocate_saved_bf_node,
38 allocate_saved_function_node, allocate_saved_f77_common_node,
39 allocate_common_entry_node, tail_common_list, current_common,
40 saved_bf_list, saved_bf_list_end, current_head_bf_list,
41 tmp_bf_ptr, add_common_block, add_common_entry,
42 find_first_common_named, patch_common_entries,
43 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
44 global_remote_debug, get_bf_for_fcn, saved_function_list,
45 saved_function_list_end, clear_function_list, struct saved_fcn,
46 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
47 SAVED_BF, SAVED_BF_PTR): Remove.
48 * f-lang.h (tail_common_list, current_common,
49 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
50 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
51 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
52 real_main_c_value): Remove.
53 * f-valprint.c (there_is_a_visible_common_named): Remove.
55 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
57 * breakpoint.c (update_global_location_list): Ignore previous
58 duplicate status of a breakpoint when starting a new scan for
59 duplicate breakpoints.
61 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
63 * arm-tdep.c (arm_skip_prologue): Extending producer check to
64 support LLVM compiler.
66 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
68 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
69 * bfin-tdep.c (bfin_extract_return_value): Likewise.
70 (bfin_store_return_value): Likewise.
71 * cris-tdep.c (cris_store_return_value): Likewise.
72 (cris_extract_return_value): Likewise.
73 * h8300-tdep.c (h8300_extract_return_value): Likewise.
74 * hppa-tdep.c (hppa64_return_value): Likewise.
75 * lm32-tdep.c (lm32_store_return_value): Likewise.
76 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
77 * spu-tdep.c (spu_value_from_register): Likewise.
78 * vax-tdep.c (vax_return_value): Likewise.
80 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
82 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
83 parameter LEN to ssize_t.
85 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
87 * ada-valprint.c (ada_val_print_1): Eliminate single-use
89 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
91 (alpha_store_return_value): Likewise.
92 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
93 (amd64_push_arguments): Likewise.
94 * ax-gdb.c (gen_trace_static_fields): Likewise.
95 (gen_traced_pop): Likewise.
96 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
97 * breakpoint.c (update_watchpoint): Likewise.
98 * findcmd.c (parse_find_args): Use local variable for type
100 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
101 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
102 (h8300_store_return_value): Likewise.
103 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
104 Use i386_darwin_arg_type_alignment directly.
105 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
106 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
107 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
108 (m68hc11_extract_return_value): Likewise.
109 * mep-tdep.c (mep_push_dummy_call): Likewise.
110 * printcmd.c (float_type_from_length): Likewise.
111 * s390-tdep.c (s390_value_from_register): Likewise.
112 * stack.c (read_frame_arg): Likewise.
113 * tracepoint.c (encode_actions_1): Likewise.
114 * valops.c (value_fetch_lazy): Use local variable for type
115 instead of length. Use TYPE_LENGTH directly.
116 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
118 2012-09-25 Joel Brobecker <brobecker@adacore.com>
120 * symtab.c (skip_prologue_sal): Fix typo in comment.
122 2012-09-25 Joel Brobecker <brobecker@adacore.com>
124 * linespec.c (create_sals_line_offset): Fix typo in comment.
126 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
128 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
129 use plongest to print the array size.
131 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
133 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
134 * p-valprint.c (pascal_type_print_base): Likewise.
136 2012-09-22 Yao Qi <yao@codesourcery.com>
138 * remote.c (remote_get_trace_status): Remove setting default
139 values of fields of 'ts'.
141 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
143 Fix internal error on canonicalization of clang types.
144 * cp-name-parser.y (operator): New comment at make_operator call for
145 new, delete, new[] and delete[].
146 (exp): Use "sizeof ". Add new comment at make_operator call.
148 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
150 Fix disassemble without parameters in tailcall frame.
151 * cli/cli-cmds.c (disassemble_current_function): Use
152 get_frame_address_in_block.
154 2012-09-21 Tom Tromey <tromey@redhat.com>
156 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
157 TYPE_CODE_UNION>: Unify, removing a goto.
159 2012-09-21 Tom Tromey <tromey@redhat.com>
161 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
163 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
165 * findvar.c (read_frame_register_value): Mark the result value as
166 optimized out if any of the input registers have been optimized out.
168 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
170 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
172 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
174 * eval.c (evaluate_subexp_standard): Eliminate single-use
177 2012-09-21 Yao Qi <yao@codesourcery.com>
179 * mi/mi-interp.c: Declare mi_record_changed.
180 (mi_interpreter_init): Call observer_attach_record_changed.
181 (mi_record_changed): New.
182 * record.c (record_open): Call observer_notify_record_changed.
183 (cmd_record_stop): Call observer_notify_record_changed.
186 2012-09-20 Tom Tromey <tromey@redhat.com>
189 * python/python.c (finalize_python): New function.
190 (_initialize_python): Make a final cleanup.
192 2012-09-19 Doug Evans <dje@google.com>
194 * buildsym.h (param_symbols): Delete, unused.
195 (context_stack): Delete member "params", unused.
196 * buildsym.c (push_context): Update.
197 * dwarf2read.c (read_func_scope): Update.
199 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
201 * sh-tdep.c (sh_register_convert_to_virtual)
202 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
203 all callers. Just do a memcpy if not the little-endian case.
205 * h8300-tdep.c (h8300_gdbarch_init): Invoke
206 set_gdbarch_double_format and set_gdbarch_long_double_format.
207 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
208 set_gdbarch_double_format.
209 * sh-tdep.c (sh_gdbarch_init): Likewise.
211 * NEWS: Document the removal of SH's 'regs' command.
212 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
215 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
217 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
220 2012-09-18 Joel Brobecker <brobecker@adacore.com>
222 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
223 language when iterating over symbols.
225 2012-09-18 Yao Qi <yao@codesourcery.com>
227 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
228 (mi_interpreter_init): Call observer_attach_tsv_created and
229 observer_attach_tsv_deleted.
230 (mi_tsv_created, mi_tsv_deleted): New.
231 * tracepoint.c (delete_trace_state_variable): Call
232 observer_notify_tsv_deleted.
233 (trace_variable_command): Call observer_notify_tsv_created.
234 (delete_trace_variable_command): Call
235 observer_notify_tsv_deleted.
236 (create_tsv_from_upload): Call observer_notify_tsv_created.
239 2012-09-18 Yao Qi <yao@codesourcery.com>
241 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
242 if traceframe changed.
243 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
245 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
246 (mi_interpreter_init): Hook mi_traceframe_changed to observer
247 'traceframe_changed'.
248 (mi_traceframe_changed): New.
249 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
251 * NEWS: Mention the new MI notification.
253 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
255 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
257 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
259 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
260 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
261 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
262 Extend code also for PaX support. Convert all gdb_assert to warning
265 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
267 Implement auto-load user conveniences suggested by Doug Evans.
268 * auto-load.c: Include top.h.
269 (file_is_auto_load_safe): New variable advice_printed. Print advice.
270 (_initialize_auto_load): New variable scripts_directory_help. Mention
271 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
272 scripts-directory. Document in online help one can use also files for
273 set auto-load safe-path.
274 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
275 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
277 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
279 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
282 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
284 * m2-valprint.c (m2_print_array_contents): Eliminate variable
285 ELTLEN and use TYPE_LENGTH directly.
286 (m2_val_print): Likewise.
287 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
288 variable LEN and use TYPE_LENGTH directly.
289 (m68k_svr4_store_return_value): Likewise.
290 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
291 ARGLEN and use TYPE_LENGTH directly.
292 (mips_o64_push_dummy_call): Likewise.
293 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
294 variable LENGTH and use TYPE_LENGTH directly.
295 (s390_function_arg_float): Likewise.
296 (s390_function_arg_integer): Likewise.
297 (s390_push_dummy_call): Likewise.
298 (s390_return_value_convention): Likewise.
299 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
300 TYPE_LENGTH directly.
302 2012-09-17 Yao Qi <yao@codesourcery.com>
304 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
305 Update comment to add_setshow_integer_cmd.
306 * cli/cli-setshow.c (do_set_command): Handle case
307 'var_zuinteger_unlimited'.
308 (do_show_command): Likewise.
309 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
310 for command 'remotetimeout'.
311 * command.h (enum var_types): New zuinteger_unlimited. Update comment
313 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
314 for command 'set listsize'.
316 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
318 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
321 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
324 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
325 (frame_pop): Drop also TAILCALL_FRAME frames.
326 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
328 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
329 Pedro Alves <palves@redhat.com>
332 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
333 function start if we are already at function start. Both for
334 reverse-next and for reverse-step into function without line number
337 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
339 Code cleanup - rename 'inline' depth to 'artificial' depth.
340 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
341 frame_id_artificial_p, extend the comment.
342 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
343 * frame.c (fprint_frame_id): Rename at a user, change debug output
344 text to "artificial=".
345 (skip_inlined_frames): Rename to ...
346 (skip_artificial_frames): ... here. Extend the comment.
347 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
348 (frame_id_inlined_p): Rename to ...
349 (frame_id_artificial_p): ... here. Rename at a user.
350 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
351 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
353 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
355 (frame_id_inlined_p): Rename to ...
356 (frame_id_artificial_p): ... here.
357 * inline-frame.c (inline_frame_this_id): Rename at a user.
359 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
361 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
362 vector variables using vector_size syntax rather than array
365 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
367 * valarith.c (value_concat): Replace unsafe ALLOCA with
370 2012-09-14 Pedro Alves <palves@redhat.com>
372 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
374 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
376 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
377 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
378 data-directory as appropriate.
380 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
382 * printcmd.c (ui_printf): Eliminate single-use variable
385 2012-09-14 Yao Qi <yao@codesourcery.com>
386 Pedro Alves <palves@redhat.com>
388 * valops.c (value_assign): Move observer_notify_target_changed
389 below to replace reinit_frame_cache.
391 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
393 Refactor Python "gdb" module into a proper Python package, by
394 introducing a new "_gdb" module for code implemented in C, and
395 using reload/__import__ instead of exec.
396 * python/lib/gdb/__init__.py: Import * from _gdb.
397 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
398 prompt_hook, sys.argv): Moved from finish_python_initialization.
399 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
400 (packages, auto_load_packages): New list and function replacing
401 module_dict and auto-loading code, using __file__ instead of
402 gdb.PYTHONDIR and reload/__import__ instead of exec.
403 (GdbSetPythonDirectory): Replacing function of the same name
404 from finish_python_initialization, using reload/__import__ instead
405 of exec, as well as call auto_load_packages.
406 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
407 gdb_python_module and not gdb_module.
408 * python/python-internal.h (gdb_python_module): Declare.
409 * python/python.c (gdb_python_module): New global.
410 (before_prompt_hook): Check gdb_python_module and not gdb_module.
411 (_initialize_python): Rename gdb module to _gdb.
412 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
413 (finish_python_initialization): Move Python code to
414 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
417 2012-09-13 Pedro Alves <palves@redhat.com>
419 * Makefile.in (COMMON_OBS): Add registry.o.
420 * registry.c: New file.
421 * registry.h (struct registry_container): Declare.
422 (registry_data_callback): New typedef.
423 (struct registry_data, struct registry_data_registration, struct
424 registry_data_registry): New type.
425 (register_data_with_cleanup, registry_alloc_data)
426 (registry_callback_adaptor, registry_clear_data)
427 (registry_container_free_data, registry_set_data, registry_data):
429 (DEFINE_REGISTRY): Refactor structures and functions as shims over
430 the new common structures and functions.
431 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
434 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
436 * remote.c (remote_insert_hw_breakpoint): Throw exception if
437 there is an error inserting hardware breakpoints and use the
438 error message from the target.
440 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
441 Catch this exception and print the error message contained within. Do not
442 print the default hardware error breakpoint message in this case.
444 2012-09-12 Doug Evans <dje@google.com>
446 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
449 2012-09-11 Doug Evans <dje@google.com>
451 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
452 .gdb_index symbol attributes if there are none.
454 2012-09-11 Joel Brobecker <brobecker@adacore.com>
456 * symtab.h (struct minimal_symbol) [has_size]: New field.
457 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
458 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
459 * printcmd.c (build_address_symbolic): Only filter out zero-sized
460 minimal symbols if the symbol's size is actually known.
461 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
462 of msymbol's size field. Add comment.
463 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
464 SET_MSYMBOL_SIZE to set the minimal symbol size.
466 2012-09-11 Joel Brobecker <brobecker@adacore.com>
468 * minsyms.c (install_minimal_symbols): Use memset to fill entire
469 minimal_symbol struct object, rather than setting some of its
472 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
474 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
475 passed_a_ptr flag when displaying typedef types.
477 2012-09-10 Joel Brobecker <brobecker@adacore.com>
479 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
480 the optimized_out flag is preserved.
482 2012-09-10 Anthony Green <green@moxielogic.com>
484 * moxie-tdep.c (moxie_analyze_prologue): Update for function
485 prologue changes in GCC.
487 2012-09-10 Keith Seitz <keiths@redhat.com>
490 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
491 (BOOL_CONVERSION_BADNESS): ... this.
492 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
493 (rank_one_type): Allow all boolean conversions
494 permitted by the standard.
496 2012-09-06 Tom Tromey <tromey@redhat.com>
498 * python/py-newobjfileevent.c (create_new_objfile_event_object):
499 Don't decref py_objfile.
501 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
503 Do not enable -lmcheck by default when Python is enabled with
505 * configure.ac: (python_has_threads) New variable, by testing
506 if WITH_THREAD is defined in Python.h.
507 Move --enable-lmcheck after --with-python.
508 Do not enable -lmcheck by default if python_has_threads=yes.
509 Warn if --enable-lmcheck and python_has_threads=yes.
510 * configure: Regenerate.
512 2012-08-31 Yao Qi <yao@codesourcery.com>
514 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
515 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
516 Update some commands.
517 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
518 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
521 2012-08-31 Yao Qi <yao@codesourcery.com>
523 * mi/mi-cmds.c (mi_cmds): Add 'static'.
525 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
527 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
529 2012-08-29 Doug Evans <dje@google.com>
531 * main.c (print_gdb_help): Remove reference to
532 --use-deprecated-index-sections.
534 2012-08-28 Yao Qi <yao@codesourcery.com>
536 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
537 (init_cmds): Call add_setshow_uinteger_cmd for command
538 'max-user-call-depth'.
539 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
540 declaration of 'max_user_call_depth'.
541 * frame.c (backtrace_limit): Add 'unsigned'.
542 (_initialize_frame): Call add_setshow_uinteger_cmd for command
544 * remote.c (remoteaddresssize): Add 'unsigned'.
545 (remote_address_masked): Change local var 'address_size' to
547 (_initialize_remote): Call add_setshow_uinteger_cmd for
549 * top.c (history_size): Add 'unsigned'.
550 (show_commands): Change local variables to 'unsigned'.
551 (set_history_size_command): Don't check history_size is negative.
552 Adjust the condition to call unstifle_history and set history_size
555 2012-08-28 Pedro Alves <palves@redhat.com>
559 * infcmd.c (default_print_one_register_info): New, factored out
560 from default_print_registers_info.
561 (default_print_registers_info): Use it. Mark value unavailable if
563 (registers_info): Print user registers with
564 default_print_one_register_info.
566 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
569 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
570 is not NULL before referencing it.
572 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
574 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
575 variable pc. Call find_pc_line instead of find_pc_overlay, restore
578 2012-08-27 Eli Zaretskii <eliz@gnu.org>
579 Jan Kratochvil <jan.kratochvil@redhat.com>
581 * auto-load.c (auto_load_objfile_script): Rename to ...
582 (auto_load_objfile_script_1): ... here, change variable realname to
583 parameter realname, document it, add return value, add variable retval.
584 (auto_load_objfile_script): New function.
586 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
588 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
589 followed by a whitespace.
591 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
594 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
595 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
596 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
599 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
601 * memattr.c (create_mem_region): Fix memory region overlapping
604 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
606 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
607 with xmalloc/cleanup.
608 * mt-tdep.c (mt_push_dummy_call): Likewise.
609 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
610 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
612 2012-08-24 Yao Qi <yao@codesourcery.com>
614 * jv-exp.y (push_expression_name): Add "." at the end of error
617 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
619 Document how to return from "python-interactive" to GDB.
620 * python/python.c (_initialize_python): Update documentation.
622 2012-08-23 Pedro Alves <palves@redhat.com>
624 * infrun.c (_initialize_infrun) <handle command help text>:
625 Mention that multiple signals are supported.
627 2012-08-23 Pedro Alves <palves@redhat.com>
629 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
632 2012-08-23 Yao Qi <yao@codesourcery.com>
634 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
635 (tfind_1): Don't call registers_changed, set_traceframe_num,
636 and clear_traceframe_info.
637 Call set_current_traceframe.
638 (set_current_traceframe): call set_traceframe_num.
640 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
642 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
643 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
645 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
647 Enable readline in Python in a GDB-specific way and block the
648 standard Python readline module to prevent conflicts with GDB.
649 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
650 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
651 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
652 * python/py-gdb-readline.c: New file.
653 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
655 * python/python.c (_initialize_python): Call
656 gdbpy_initialize_gdb_readline.
658 2012-08-22 Keith Seitz <keiths@redhat.com>
660 * defs.h: Include build-gnulib/config.h
662 2012-08-22 Joseph Myers <joseph@codesourcery.com>
664 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
667 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
669 Add a new "python-interactive" command that starts a standard
670 Python interactive prompt with "pi" as alias, and add "py" as
671 an alias to "python".
672 * NEWS: Mention the new commands.
673 * python/python.c (eval_python_command): New function.
674 (python_interactive_command): For "python-interactive" with
675 arguments, call eval_python_command. For "python-interactive"
676 without arguments, call PyRun_InteractiveLoop.
677 (_initialize_python): Add "python-interactive" command with
678 "pi" as alias, and add "py" as an alias to "python".
680 2012-08-22 Tom Tromey <tromey@redhat.com>
682 * defs.h (quit_flag): Don't declare.
683 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
684 (QUIT): Use new functions.
685 * event-top.c (command_handler): Use clear_quit_flag.
686 (handle_sigint): Use set_quit_flag.
687 (async_request_quit): Use check_quit_flag. Don't check
689 * exceptions.c (throw_exception): Use clear_quit_flag.
690 * main.c (captured_main): Use clear_quit_flag.
691 * python/python.c (clear_quit_flag, set_quit_flag)
692 (check_quit_flag): New functions.
693 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
695 * remote.c (remote_wait_as): Use check_quit_flag,
697 (remote_start_remote): Call QUIT.
698 * symfile.c (load_progress): Use check_quit_flag.
699 * top.c (command_loop): Use clear_quit_flag.
700 (command_line_input): Call QUIT.
701 * utils.c (quit_flag): Conditionally define.
702 (clear_quit_flag, check_quit_flag, set_quit_flag): New
704 (prompt_for_continue): Call QUIT. Use quit, not
706 * remote-mips.c (mips_expect_timeout): Call QUIT.
707 * monitor.c (monitor_expect): Call QUIT.
709 2012-08-22 Tom Tromey <tromey@redhat.com>
711 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
712 (async_init_signals): Update.
713 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
714 (SIGWINCH_HANDLER_BODY): Remove.
716 2012-08-22 Tom Tromey <tromey@redhat.com>
718 * jit.c (jit_object_close_impl): Don't malloc the objfile
720 * objfiles.c (allocate_objfile): Don't malloc the objfile
722 (free_objfile): Don't free the objfile name.
723 * objfiles.h (struct objfile) <name>: Update comment.
724 * symfile.c (reread_symbols): Fix reference counting. Don't
727 2012-08-22 Tom Tromey <tromey@redhat.com>
729 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
730 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
731 (symfile_bfd_open): Likewise.
732 (generic_load): Likewise.
733 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
734 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
736 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
738 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
739 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
740 (pmon_load_fast): Likewise.
741 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
742 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
743 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
744 (macho_check_dsym): Likewise.
745 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
746 (m32r_upload_command): Likewise.
747 * gdb_bfd.h (gdb_bfd_cache): Declare.
748 * gdb_bfd.c (struct gdb_bfd_data): New.
749 (gdb_bfd_cache): New global.
750 (struct gdb_bfd_cache_search): New.
751 (hash_bfd): New function.
753 (gdb_bfd_open): Likewise.
754 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
755 (gdb_bfd_unref): Remove closed BFD from cache. Update for
757 * exec.c (exec_file_attach): Use gdb_bfd_open.
758 * dsrec.c (load_srec): Use gdb_bfd_open.
760 2012-08-22 Tom Tromey <tromey@redhat.com>
762 * dwarf2read.c (macro_start_file): Update.
763 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
764 (free_objfile_per_bfd_storage): Destroy macro_cache.
765 (allocate_objfile, free_objfile): Update.
766 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
768 (struct objfile) <macro_cache>: Remove.
769 * symfile.c (reread_symbols): Update.
770 * symmisc.c (print_symbol_bcache_statistics): Update.
771 (print_objfile_statistics): Update.
773 2012-08-22 Tom Tromey <tromey@redhat.com>
775 * elfread.c (elf_symtab_read): Update.
776 * objfiles.c (objfiles_bfd_data): New global.
777 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
778 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
779 (allocate_objfile, free_objfile): Update.
780 (_initialize_objfiles): Initialize objfiles_bfd_data.
781 * objfiles.h (struct objfile_per_bfd_storage): New.
782 (struct objfile) <per_bfd>: New field.
783 <filename_cache>: Remove.
784 (set_objfile_per_bfd): Declare.
785 * symfile.c (reread_symbols): Update. Call
787 (allocate_symtab): Update.
788 * symmisc.c (print_symbol_bcache_statistics): Update.
789 (print_objfile_statistics): Print the size of the BFD obstack.
791 2012-08-22 Tom Tromey <tromey@redhat.com>
793 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
794 * gdb_bfd.c: Use DEFINE_REGISTRY.
795 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
796 (gdb_bfd_ref): Call bfd_alloc_data.
797 (gdb_bfd_unref): Call bfd_free_data.
799 2012-08-22 Tom Tromey <tromey@redhat.com>
801 * registry.h (struct registry_fields): New.
802 (REGISTRY_FIELDS): Redefine.
803 (REGISTRY_ACCESS_FIELD): New macro.
804 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
807 2012-08-22 Tom Tromey <tromey@redhat.com>
809 * auto-load.c (_initialize_auto_load): Update.
810 * solib-svr4.c (_initialize_svr4_solib): Update
811 * solib-dsbt.c (_initialize_dsbt_solib): Update.
812 * solib-darwin.c (_initialize_darwin_solib): Update.
813 * registry.h: New file.
814 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
815 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
816 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
817 (register_program_space_data_with_cleanup)
818 (register_program_space_data, program_space_alloc_data)
819 (clear_program_space_data, set_program_space_data)
820 (program_space_data): Don't declare.
821 * progspace.c: Use DEFINE_REGISTRY.
822 (struct program_space_data, struct
823 program_space_data_registration, struct
824 program_space_data_registry, program_space_data_registry)
825 (register_program_space_data_with_cleanup)
826 (register_program_space_data, program_space_alloc_data)
827 (program_space_free_data, clear_program_space_data)
828 (set_program_space_data, program_space_data): Remove.
829 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
830 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
831 (register_objfile_data_with_cleanup, register_objfile_data)
832 (clear_objfile_data, set_objfile_data, objfile_data): Don't
834 * objfiles.c: Use DEFINE_REGISTRY.
835 (struct objfile_data, struct objfile_data_registration, struct
836 objfile_data_registry, objfile_data_registry)
837 (register_objfile_data_with_cleanup, register_objfile_data)
838 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
839 (set_objfile_data, objfile_data): Remove.
840 (_initialize_objfiles): Update.
841 * jit.c (_initialize_jit): Update.
842 * inflow.c (_initialize_inflow): Update.
843 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
844 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
845 (register_inferior_data_with_cleanup, register_inferior_data)
846 (clear_inferior_data, set_inferior_data, inferior_data): Don't
848 * inferior.c: Use DEFINE_REGISTRY.
849 (struct inferior_data, struct inferior_data_registration, struct
850 inferior_data_registry, inferior_data_registry)
851 (register_inferior_data_with_cleanup, register_inferior_data)
852 (inferior_alloc_data, inferior_free_data clear_inferior_data)
853 (set_inferior_data, inferior_data): Remove.
854 * auxv.c (_initialize_auxv): Update.
855 * ada-lang.c (_initialize_ada_language): Update.
856 * breakpoint.c (_initialize_breakpoint): Update.
857 * i386-nat.c (i386_use_watchpoints): Update.
859 2012-08-22 Tom Tromey <tromey@redhat.com>
861 * exec.c (exec_close, exec_file_attach): Update.
862 (add_to_section_table): Initialize 'key' field.
863 (add_target_sections, remove_target_sections): Add 'key' argument.
864 * exec.h (add_target_sections, remove_target_sections): Add
866 * solib.c (solib_map_sections, update_solib_list, clear_solib)
867 (reload_shared_libraries_1): Update.
868 * target.h (struct target_section) <key>: New field.
870 2012-08-22 Tom Tromey <tromey@redhat.com>
872 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
874 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
876 * symfile.c (allocate_symtab): Use host_address_to_string
877 function instead of cast of pointer to long which is not
878 compatible with x86_64-w64-mingw32 build.
880 2012-08-19 Andrew Pinski <apinski@cavium.com>
882 * mips-tdep.c (is_octeon): New function.
883 (is_octeon_bbit_op): New function.
884 (mips32_next_pc): Handle Octeon's bbit instructions.
885 (mips32_instruction_has_delay_slot): Likewise.
887 2012-08-19 Andrew Pinski <apinski@cavium.com>
889 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
892 2012-08-19 Andrew Pinski <apinski@cavium.com>
894 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
896 2012-08-19 Keith Seitz <keiths@redhat.com>
899 * c-typeprint.c (c_type_print_varspec_prefix): Pass
900 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
902 2012-08-18 Eli Zaretskii <eliz@gnu.org>
904 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
905 The typo broke "make TAGS".
907 2012-08-17 Joel Brobecker <brobecker@adacore.com>
911 2012-08-17 Keith Seitz <keiths@redhat.com>
914 * gdbtypes.c (strict_type_checking): New variable.
915 (show_strict_type_checking): New function.
916 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
917 if strict type checking is disabled.
918 (_initialize_gdbtypes): Add "check type" subcommand.
919 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
921 2012-08-17 Keith Seitz <keiths@redhat.com>
923 * language.h (type_mode): Remove.
924 (type_check): Remove.
925 (struct language_defn): Remove la_type_check.
926 (STRICT_TYPE): Remove unused macro.
927 (type_error): Remove.
928 * language.c (set_type_range_case): Renamed to ...
929 (set_range_case): ... this. Update all callers.
930 Remove type_mode/type_check.
932 (type_check): Remove.
933 (show_type_command): Remove.
934 (set_type_command): Remove.
935 (language_info): Remove type checking output.
936 (type_error): Remove unused function.
937 (range_error): Update comment.
938 (unknown_language_defn): Remove la_type_check.
939 (auto_language_defn): Likewise.
940 (local_language_defn): Likewise.
941 (_initialize_language): Remove "check type" subcommand.
942 * ada-lang.c (ada_language_defn): Remove la_type_check.
943 * c-lang.c (c_language_defn): Likewise.
944 (cplus_language_defn): Likewise.
945 (asm_language_defn): Likewise.
946 (minimal_language_defn): Likewise.
947 * d-lang.c (d_language_defn): Likewise.
948 * f-lang.c (f_language_defn): Likewise.
949 * go-lang.c (go_language_defn): Likewise.
950 * jv-lang.c (java_language_defn): Likewise.
951 * m2-lang.c (m2_language_defn): Likewise.
952 * objc-lang.c (objc_language_defn): Likewise.
953 * opencl-lang.c (opencl_language_defn): Likewise.
954 * p-lang.c (pascal_language_defn): Likewise.
956 2012-08-16 Mike Frysinger <vapier@gentoo.org>
958 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
960 2012-08-16 Joel Brobecker <brobecker@adacore.com>
962 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
964 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
965 using the regache. Use ia64_hpux_get_register_from_save_state_t
966 to access the bsp and bspstore registers if not.
968 2012-08-16 Joel Brobecker <brobecker@adacore.com>
970 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
971 * breakpoint.c (detach_breakpoints): Change pid parameter into
972 a ptid. Adjust code accordingly.
973 * infrun.c (handle_inferior_event): Delete variable child_pid.
974 Update call to detach_breakpoints to pass the child ptid for
976 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
977 assert that inferior_ptid's lwp is zero.
978 (linux_handle_extended_wait): Update call to detach_breakpoints.
979 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
982 2012-08-16 Joel Brobecker <brobecker@adacore.com>
984 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
985 parent, only call detach_breakpoints if tts.tts_event ==
988 2012-08-16 Joel Brobecker <brobecker@adacore.com>
990 * dwarf2-frame.c (dwarf2_frame_cache): Use
991 get_frame_address_in_block instead of get_frame_pc as
992 the bound for executing the frame's FDE.
994 2012-08-16 Yao Qi <yao@codesourcery.com>
996 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
997 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
998 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
999 (c_type_print_varspec_suffix): Likewise.
1000 * eval.c (evaluate_subexp_standard): Likewise.
1001 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1002 (f_type_print_varspec_suffix): Likewise.
1003 * gdbtypes.c (is_scalar_type): Likewise.
1004 (recursive_dump_type): Likewise.
1005 * infcall.c (value_arg_coerce): Likewise.
1006 * m2-valprint.c (m2_val_print): Likewise.
1007 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1008 (pascal_type_print_varspec_suffix): Likewise.
1009 (pascal_type_print_base): Likewise.
1010 * p-valprint.c (pascal_val_print): Likewise.
1011 (pascal_val_print): Likewise.
1012 * valops.c (value_slice): Likewise.
1013 * valprint.c (scalar_type_p): Likewise.
1014 * valarith.c (value_bitstring_subscript): Remove.
1015 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1016 Remove comment on TYPE_CODE_BITSTRING.
1018 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1019 TYPE_CODE_BITSTRING.
1021 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1024 2012-08-16 Yao Qi <yao@codesourcery.com>
1026 * tracepoint.c (trace_find_none_command): Remove.
1027 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1029 2012-08-16 Yao Qi <yao@codesourcery.com>
1031 * remote.c (handle_notification): Remove parameter 'length'.
1032 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1034 2012-08-15 Keith Seitz <keiths@redhat.com>
1036 * gdbtypes.c (opaque_type_resolution): Make static.
1037 Add missing comment.
1038 (overload_debug): Add missing comment.
1039 (show_opaque_type_resolution): Likewise.
1040 (show_overload_debug): Likewise.
1041 (print_bit_vector): Remove unnecessary forward declaration.
1042 (print_arg_types): Likewise.
1043 (dump_fn_fieldlists): Likewise.
1044 (print_cplus_stuff): Likewise.
1046 2012-08-15 Tom Tromey <tromey@redhat.com>
1048 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1049 (gdb_bfd_ref): Initialize new field.
1050 (gdb_bfd_unref): Unref the archive BFD.
1051 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1054 2012-08-15 Tom Tromey <tromey@redhat.com>
1057 * python/py-bpevent.c (create_breakpoint_event_object): Update
1059 * python/py-event.c (evpy_add_attribute): Update comment.
1060 * python/py-exitedevent.c (create_exited_event_object): Fix
1061 reference counting and error handling.
1062 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1063 Fix reference counting.
1064 * python/py-signalevent.c (create_signal_event_object): Fix
1065 reference counting and error handling.
1066 * python/py-stopevent.c (emit_stop_event): Fix reference
1068 * python/py-threadevent.c (get_event_thread): Return a
1070 * python/py-type.c (convert_field): Fix reference counting.
1072 2012-08-15 Tom Tromey <tromey@redhat.com>
1074 * dwarf2read.c (dwarf_decode_macro_bytes)
1075 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1078 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1080 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1081 stepi, nexti, finish, next, step, jump, and continue commands.
1082 * infrun.c (_initialize_infrun): Update help text for the handle
1085 2012-08-14 Doug Evans <dje@google.com>
1087 * gdbtypes.c (struct extra): Delete, unused.
1089 * gdbtypes.c: Whitespace cleanup.
1090 (address_space_name_to_int): Remove "extern" from definition.
1091 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1093 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1094 TYPE_POINTER_TYPE (type).
1096 2012-08-14 Gary Benson <gbenson@redhat.com>
1098 * solib-svr4.c (svr4_free_library_list): Use free_so.
1100 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1102 * .gitignore: Add go-exp.c.
1104 2012-08-13 Doug Evans <dje@google.com>
1106 * value.c (show_convenience): Tweak comment.
1107 (_initialize_values): Mention convenience functions in the help text
1108 for "show convenience".
1110 2012-08-13 Yao Qi <yao@codesourcery.com>
1112 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1113 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1115 * eval.c (evaluate_subexp_standard): Likewise.
1116 * expprint.c (print_subexp_standard): Likewise.
1117 (dump_subexp_body_standard): Likewise.
1118 * parse.c (operator_length_standard): Likewise.
1120 2012-08-13 Yao Qi <yao@codesourcery.com>
1122 * std-operator.def: Remove OP_BITSTRING.
1123 * breakpoint.c (watchpoint_exp_is_const): Update.
1124 * eval.c (evaluate_subexp_standard): Remove handling to
1126 * expprint.c (print_subexp_standard): Likewise.
1127 (dump_subexp_body_standard): Likewise.
1128 * parse.c (operator_length_standard): Likewise.
1129 * valops.c (value_bitstring): Remove.
1130 * value.h: Remove the declaration of 'value_bitstring'.
1132 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1134 * linespec.c (find_methods): Remove unused variables `i1' and
1136 (decode_line_full): Likewise for `arg_start'.
1138 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1140 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1141 (zlib_decompress_section): Likewise for `section_data'.
1142 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1144 2012-08-10 Doug Evans <dje@google.com>
1146 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1147 * NEWS: Document them.
1148 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1150 * python/py-type.c (typy_array_1): New function.
1151 (typy_array): Call it.
1152 (typy_vector): New function.
1153 (type_object_methods): Add "vector".
1154 * python/lib/gdb/function/__init__.py: New file.
1155 * python/lib/gdb/function/strfns.py: New file.
1157 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1159 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1160 for TYPE_FIELD_BITPOS.
1161 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1163 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1166 * common/vec.h (VEC_merge): Define.
1167 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1168 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1169 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1170 * completer.c: Include gdb_signals.h.
1171 (signal_completer): Define.
1172 * completer.h (signal_completer): Add prototype.
1173 * infcmd.c (_initialize_infcmd): Assign the command
1174 completer for "signal" to handle_completer.
1175 * infrun.c: Include completer.h.
1176 (handle_completer): Define.
1177 (_initialize_infrun): Declare a new local variable c. Store the
1178 result of add_com("handle") to it. Assign the command
1179 completer for "handle" to handle_completer.
1181 2012-08-09 Yao Qi <yao@codesourcery.com>
1183 * cli/cli-decode.c (set_cmd_prefix): New.
1184 (lookup_cmd_for_prefixlist): New.
1185 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1186 of each cmd_list_element in *prefixlist.
1187 (add_setshow_cmd_full): set_cmd_prefix.
1188 (add_alias_cmd): Likewise.
1189 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1190 Declare 'auto_boolean_enums'.
1191 * cli/cli-setshow.c: Include "observer.h".
1192 (notify_command_param_changed_p): New.
1193 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1195 (do_setshow_command): Split it to ...
1196 (do_set_command, do_show_command): ... them. New.
1197 (do_set_command): Call observer_notify_command_param_changed if
1198 notify_command_param_changed_p returns true.
1199 (cmd_show_list): Caller update.
1200 * auto-load.c (set_auto_load_cmd): Likewise.
1201 * remote.c (show_remote_cmd): Likewise.
1202 * cli/cli-setshow.h: Update declarations.
1203 * top.c (execute_command): Call do_set_command and do_show_command.
1205 * NEWS: Mention new MI notification.
1206 * mi/mi-interp.c: Declare mi_command_param_changed.
1207 (mi_interpreter_init): Attach mi_command_param_changed to
1208 observer command_param_changed.
1209 (mi_command_param_changed): New.
1210 Remove mi_suppress_breakpoint_notifications.
1211 Define global variable mi_suppress_notification.
1212 (mi_breakpoint_created): Update.
1213 (mi_breakpoint_deleted): Likewise.
1214 (mi_breakpoint_modified): Likewise.
1215 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1216 'gdb-set' and set mi_suppress_notification.
1217 * mi/mi-main.h: (mi_suppress_notification): New struct.
1219 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1220 Jan Kratochvil <jan.kratochvil@redhat.com>
1222 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1224 2012-08-09 Yao Qi <yao@codesourcery.com>
1226 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1227 (skiplist): Move it to skip.c.
1228 (init_cmd_lists): Remove code setting enablebreaklist and
1230 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1231 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1233 * gdbcmd.h: Likewise.
1234 * skip.c (_initialize_step_skip): Move 'skiplist' from
1237 2012-08-09 Yao Qi <yao@codesourcery.com>
1239 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1240 * gnu-nat.c, symfile.c: Likewise.
1242 2012-08-08 Aaron Gamble <agamble@google.com>
1244 * utils.c (prompt_for_continue_wait_time): New static global.
1245 (make_command_stats_cleanup): Initialize it.
1246 (report_command_stats): Subtract time waiting for user.
1247 (prompt_for_continue): Track time waiting for user.
1248 (defaulted_query): Track time waiting for user.
1250 2012-08-08 Doug Evans <dje@google.com>
1252 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1254 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1255 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1256 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1257 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1258 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1259 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1261 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1262 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1263 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1264 (dump_prefix_expression): Handle OP_TYPE.
1266 2012-08-08 Keith Seitz <keiths@redhat.com>
1268 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1271 2012-08-08 Doug Evans <dje@google.com>
1273 * linux-thread-db.c: #include "gdb_vecs.h".
1274 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1276 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1277 (thread_db_load_search): Use a vector to iterate over path elements.
1278 Handle text appearing after "$pdir".
1280 * gdb_string.h: Moved to ...
1281 * common/gdb_string.h: ... here.
1282 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1283 gdb_string.h and gdb_assert.h.
1285 2012-08-08 Yao Qi <yao@codesourcery.com>
1287 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1288 (tic6x_value_to_register): Likewise.
1289 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1290 and set_gdbarch_value_to_register.
1292 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1293 Jean-Marc Saffroy <saffroy@gmail.com>
1296 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1297 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1298 * gcore.c (gcore_create_callback): New function comment. Add modified
1299 parameter. Only write modified regions. Set SEC_READONLY exactly
1300 according to MODIFIED.
1301 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1302 the passed modified value to FUNC.
1303 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1304 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1305 first. New variables modified and has_anonymous. Parse the lines of
1306 smaps file. Add the passed MODIFIED value to FUNC.
1307 * procfs.c (find_memory_regions_callback): Add the passed modified
1310 2012-08-06 Tom Tromey <tromey@redhat.com>
1312 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1313 (dwarf2_frame_cache): Use it.
1314 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1315 cache initialization constraint.
1317 2012-08-06 Tom Tromey <tromey@redhat.com>
1320 * varobj.c (update_dynamic_varobj_children): Don't call
1323 2012-08-06 Tom Tromey <tromey@redhat.com>
1326 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1328 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1330 * NEWS: New entry for 'cd' default parameters.
1331 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1333 2012-08-03 Tom Tromey <tromey@redhat.com>
1335 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1338 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1340 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1341 to attempting lseek/write.
1342 (inf_child_fileio_pread): Likewise for pread.
1344 2012-08-02 Yao Qi <yao@codesourcery.com>
1346 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1347 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1348 add_setshow_zinteger_cmd.
1349 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1350 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1351 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1352 instead of add_setshow_zinteger_cmd.
1353 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1354 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1355 instead of add_setshow_zinteger_cmd.
1356 * frame.c (frame_debug): Add 'unsigned'.
1357 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1358 add_setshow_zinteger_cmd.
1359 * frame.h: Update the declaration of 'frame_debug'.
1360 * gdbtypes.c (overload_debug): Add 'unsigned'.
1361 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1362 add_setshow_zinteger_cmd.
1363 * inferior.h: Update declaration of 'debug_infrun'.
1364 * infrun.c (debug_infrun): Add 'unsigned'.
1365 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1366 add_setshow_zinteger_cmd.
1367 * jit.c (jit_debug): Add 'unsigned'.
1368 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1369 add_setshow_zinteger_cmd.
1370 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1371 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1372 instead of add_setshow_zinteger_cmd.
1373 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1374 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1375 add_setshow_zinteger_cmd.
1376 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1377 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1378 instead of add_setshow_zinteger_cmd.
1379 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1380 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1381 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1382 intead of add_setshow_zinteger_cmd.
1383 * mips-tdep.c (mips_debug): Add 'unsigned'.
1384 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1385 instead of add_setshow_zinteger_cmd.
1386 * monitor.c (monitor_debug): Add 'unsigned'.
1387 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1388 add_setshow_zinteger_cmd.
1389 * observer.c (observer_debug): Add 'unsigned'.
1390 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1391 add_setshow_zinteger_cmd.
1392 * parse.c (expressiondebug): Add 'unsigned'.
1393 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1394 add_setshow_zinteger_cmd.
1395 * record.c (record_debug): Add 'unsigned'.
1396 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1397 add_setshow_zinteger_cmd.
1398 * record.h: Update the declaration of 'record_debug'.
1399 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1400 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1401 add_setshow_zinteger_cmd.
1402 * serial.c (global_serial_debug_p): Add 'unsigned'.
1403 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1404 add_setshow_zinteger_cmd.
1405 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1406 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1407 add_setshow_zinteger_cmd.
1408 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1409 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1410 add_setshow_zinteger_cmd.
1411 * target.c (targetdebug): Add 'unsigned'.
1412 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1413 add_setshow_zinteger_cmd.
1414 * valops.c (overload_debug): Add 'unsigned'.
1415 * varobj.c (varobjdebug): Add 'unsigned'.
1416 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1417 add_setshow_zinteger_cmd.
1418 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1419 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1420 instead of add_setshow_zinteger_cmd.
1422 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1423 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1424 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1425 instead of add_setshow_zinteger_cmd.
1426 * gdbarch.c, gdbarch.h: Re-generated.
1428 2012-08-02 Yao Qi <yao@codesourcery.com>
1430 * nto-tdep.c: Don't include cli/cli-decode.h and
1432 (_initialize_nto_tdep): Remove.
1433 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1435 Remove macro nto_internal_debugging.
1437 2012-08-01 Richard Henderson <rth@redhat.com>
1439 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1440 (mep-*-*) [gdb_target_obs]: Likewise.
1442 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1444 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1445 linux_get_siginfo_type.
1447 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1449 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1451 (call_function_by_hand) <ON_STACK>: Call write_memory with
1452 gdbarch_breakpoint_from_pc, if possible.
1453 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1456 2012-07-31 Yao Qi <yao@codesourcery.com>
1458 * tracepoint.c: Add 'static' for some variables.
1460 2012-07-31 Yao Qi <yao@codesourcery.com>
1462 * go32-nat.c: Declare _initialize_go32_nat.
1463 * ser-go32.c: Declare _initialize_ser_dos.
1464 * top.c (do_chdir_cleanup): Add 'static'.
1466 2012-07-30 Keith Seitz <keiths@redhat.com>
1468 * linespec.c (linespec_lex_number): A number followed
1469 by quotes is a valid number, too.
1471 2012-07-30 Tom Tromey <tromey@redhat.com>
1473 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1475 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1477 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1478 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1480 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1482 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1483 invalid or reevaluated to prevent prevent references to possibly
1484 delete'd type objects being left in the varobj.
1486 2012-07-27 Tom Tromey <tromey@redhat.com>
1487 Jan Kratochvil <jan.kratochvil@redhat.com>
1489 * copying.awk: Print buffer-read-only and vi ro markers.
1490 * copying.c: Rebuild.
1491 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1492 * gdbarch.c, gdbarch.h: Rebuild.
1493 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1494 buffer-read-only and vi ro markers.
1495 * features/arm-with-iwmmxt.c: Rebuild.
1496 * features/arm-with-m-fpa-layout.c: Rebuild.
1497 * features/arm-with-m-vfp-d16.c: Rebuild.
1498 * features/arm-with-m.c: Rebuild.
1499 * features/arm-with-neon.c: Rebuild.
1500 * features/arm-with-vfpv2.c: Rebuild.
1501 * features/arm-with-vfpv3.c: Rebuild.
1502 * features/i386/amd64-avx-linux.c: Rebuild.
1503 * features/i386/amd64-avx.c: Rebuild.
1504 * features/i386/amd64-linux.c: Rebuild.
1505 * features/i386/amd64.c: Rebuild.
1506 * features/i386/i386-avx-linux.c: Rebuild.
1507 * features/i386/i386-avx.c: Rebuild.
1508 * features/i386/i386-linux.c: Rebuild.
1509 * features/i386/i386-mmx-linux.c: Rebuild.
1510 * features/i386/i386-mmx.c: Rebuild.
1511 * features/i386/i386.c: Rebuild.
1512 * features/i386/x32-avx-linux.c: Rebuild.
1513 * features/i386/x32-avx.c: Rebuild.
1514 * features/i386/x32-linux.c: Rebuild.
1515 * features/i386/x32.c: Rebuild.
1516 * features/mips-dsp-linux.c: Rebuild.
1517 * features/mips-linux.c: Rebuild.
1518 * features/mips64-dsp-linux.c: Rebuild.
1519 * features/mips64-linux.c: Rebuild.
1520 * features/rs6000/powerpc-32.c: Rebuild.
1521 * features/rs6000/powerpc-32l.c: Rebuild.
1522 * features/rs6000/powerpc-403.c: Rebuild.
1523 * features/rs6000/powerpc-403gc.c: Rebuild.
1524 * features/rs6000/powerpc-405.c: Rebuild.
1525 * features/rs6000/powerpc-505.c: Rebuild.
1526 * features/rs6000/powerpc-601.c: Rebuild.
1527 * features/rs6000/powerpc-602.c: Rebuild.
1528 * features/rs6000/powerpc-603.c: Rebuild.
1529 * features/rs6000/powerpc-604.c: Rebuild.
1530 * features/rs6000/powerpc-64.c: Rebuild.
1531 * features/rs6000/powerpc-64l.c: Rebuild.
1532 * features/rs6000/powerpc-7400.c: Rebuild.
1533 * features/rs6000/powerpc-750.c: Rebuild.
1534 * features/rs6000/powerpc-860.c: Rebuild.
1535 * features/rs6000/powerpc-altivec32.c: Rebuild.
1536 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1537 * features/rs6000/powerpc-altivec64.c: Rebuild.
1538 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1539 * features/rs6000/powerpc-cell32l.c: Rebuild.
1540 * features/rs6000/powerpc-cell64l.c: Rebuild.
1541 * features/rs6000/powerpc-e500.c: Rebuild.
1542 * features/rs6000/powerpc-e500l.c: Rebuild.
1543 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1544 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1545 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1546 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1547 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1548 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1549 * features/rs6000/powerpc-vsx32.c: Rebuild.
1550 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1551 * features/rs6000/powerpc-vsx64.c: Rebuild.
1552 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1553 * features/rs6000/rs6000.c: Rebuild.
1554 * features/s390-linux32.c: Rebuild.
1555 * features/s390-linux32v1.c: Rebuild.
1556 * features/s390-linux32v2.c: Rebuild.
1557 * features/s390-linux64.c: Rebuild.
1558 * features/s390-linux64v1.c: Rebuild.
1559 * features/s390-linux64v2.c: Rebuild.
1560 * features/s390x-linux64.c: Rebuild.
1561 * features/s390x-linux64v1.c: Rebuild.
1562 * features/s390x-linux64v2.c: Rebuild.
1563 * features/tic6x-c62x-linux.c: Rebuild.
1564 * features/tic6x-c62x.c: Rebuild.
1565 * features/tic6x-c64x-linux.c: Rebuild.
1566 * features/tic6x-c64x.c: Rebuild.
1567 * features/tic6x-c64xp-linux.c: Rebuild.
1568 * features/tic6x-c64xp.c: Rebuild.
1570 2012-07-27 Tom Tromey <tromey@redhat.com>
1572 * c-exp.y (classify_name): Avoid assignment in condition.
1574 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1576 * amd64-windows-tdep.c: Include "frame.h".
1577 (amd64_windows_skip_trampoline_code): New function.
1578 (amd64_windows_init_abi): Add trampoline registration.
1580 2012-07-27 Yao Qi <yao@codesourcery.com>
1582 * tracepoint.c (cur_traceframe_number): Remove.
1583 (set_tfile_traceframe): Remove.
1584 (tfile_trace_find, tfile_fetch_registers): Update callers.
1585 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1586 (tfile_open, tfile_trace_find): Likewise.
1588 2012-07-27 Yao Qi <yao@codesourcery.com>
1590 * thread.c (switch_to_thread): Don't call registers_changed.
1592 2012-07-26 Tom Tromey <tromey@redhat.com>
1594 * Makefile.in (SFILES): Remove objc-exp.y.
1595 (YYFILES): Remove objc-exp.c.
1596 (YYOBJ): Remove objc-exp.o.
1597 (local-maintainer-clean): Don't mention objc-exp.c.
1598 * c-exp.y: Include objc-lang.h.
1599 (%union) <class>: New field.
1600 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1601 (exp): Clone subscript production for OBJC_LBRAC. Add various
1602 Objective C productions.
1603 (msglist, msgarglist, msgarg): New productions.
1604 (array_mod, func_mod, operator): Clone productions for
1606 (parse_string_or_char): Handle '@' strings.
1607 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1608 (classify_name): Check la_name_of_this. Recognize ObjC class
1610 * objc-exp.y: Remove.
1611 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1612 * objc-lang.h (objc_parse, objc_error): Don't declare.
1614 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1616 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1618 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1620 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1623 2012-07-26 Tom Tromey <tromey@redhat.com>
1625 * copying.c: Rebuild.
1626 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1629 2012-07-26 Tom Tromey <tromey@redhat.com>
1631 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1633 (print_objfile_statistics): Likewise.
1634 (maintenance_print_symbols): Likewise.
1635 (maintenance_print_msymbols): Likewise.
1636 (maintenance_print_objfiles): Likewise.
1637 * psymtab.c (print_partial_symbols): Call QUIT.
1638 (maintenance_print_psymbols): Likewise. Don't modify
1640 * copying.c (show_copying_command): Don't modify immediate_quit.
1641 (show_warranty_command): Likewise.
1642 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1644 2012-07-26 Keith Seitz <keiths@redhat.com>
1646 * linespec.c (linespec_lexer_lex_number): The input
1647 is also a valid number if the next character is a comma
1650 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1652 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1655 2012-07-26 Tristan Gingold <gingold@adacore.com>
1657 * machoread.c: Include gdb_bfd.h.
1659 2012-07-26 Tristan Gingold <gingold@adacore.com>
1661 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1664 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1666 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1668 (dwarf2_evaluate_loc_desc): Likewise.
1669 (dwarf2_loc_desc_needs_frame): Likewise.
1670 (locexpr_describe_location_1): Likewise.
1671 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1673 (struct dwarf2_loclist_baton): Likewise.
1674 * dwarf2read.c (struct dwarf_block): Likewise.
1675 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1676 (decode_locdesc): Expand SIZE and I to size_t.
1678 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1680 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1682 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1684 * doublest.c (convert_doublest_to_floatformat): If the exponent
1685 is too small, treat the value as zero. If the exponent is too
1686 large, treat the value as infinity.
1688 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1690 * configure.ac: Add --enable-lmcheck configure option.
1691 * configure: Regenerate.
1693 2012-07-25 Tom Tromey <tromey@redhat.com>
1695 * NEWS: Mention maint info bfds.
1696 * gdb_bfd.c (all_bfds): New global.
1697 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1698 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1701 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1703 * configure.tgt: Add v850*-*-rtems*.
1705 2012-07-25 Tom Tromey <tromey@redhat.com>
1707 * macrotab.c (macro_bcache_str): Remove cast.
1709 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1711 * linespec.c (linespec_lexer_lex_number): Update comments,
1712 change the return and add check to make sure the input is
1713 the decimal numbers.
1714 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1715 false, call linespec_lexer_lex_string.
1717 2012-07-24 Tom Tromey <tromey@redhat.com>
1719 * symfile.c (symbol_file_add): Don't open BFD twice.
1721 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1723 * breakpoint.c (create_breakpoint): Store condition for pending
1726 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1728 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1729 (m68k_return_value): Handle complex types like structures.
1730 (m68k_svr4_return_value): Likewise.
1732 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1734 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1735 parameters to bfd_get_section_name.
1737 2012-07-24 Yao Qi <yao@codesourcery.com>
1739 * cli/cli-setshow.c: Handle case 'var_uinteger'
1740 and 'var_zuninteger' together. Handle case 'var_integer' and
1741 'var_zinteger' together.
1743 2012-07-23 Keith Seitz <keiths@redhat.com>
1745 * linespec.c (convert_linespec_to_sal): Don't add
1746 any symbols to the result vector if symbol_to_sal
1749 2012-07-23 Keith Seitz <keiths@redhat.com>
1751 * linespec.c (decode_objc): Record the function name
1754 2012-07-23 Tom Tromey <tromey@redhat.com>
1756 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1758 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1759 (map_vmap): Acquire a reference to the BFD.
1761 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1763 * p-valprint.c (pascal_object_print_value): Replace potentially
1764 unsafe alloca with xmalloc/xfree.
1765 * valops.c (search_struct_method): Likewise.
1767 2012-07-23 Tom Tromey <tromey@redhat.com>
1769 * solib-svr4.c (enable_break): Update.
1770 * bfd-target.h (target_bfd_reopen): Update documentation.
1772 2012-07-23 Tom Tromey <tromey@redhat.com>
1774 * symfile.c (separate_debug_file_exists): Update.
1775 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1776 (reread_symbols): Update.
1777 * elfread.c (build_id_verify): Update.
1778 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1779 bfd_open_maybe_remote.
1781 2012-07-23 Tom Tromey <tromey@redhat.com>
1783 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1785 2012-07-23 Tom Tromey <tromey@redhat.com>
1787 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1789 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1791 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1792 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1794 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1795 * objfiles.c (allocate_objfile): Acquire a new reference.
1796 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1797 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1798 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1799 a cleanup for 'nbfd'.
1800 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1802 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1803 make a cleanup for 'abfd'.
1804 (symbol_file_add): Make a BFD cleanup.
1806 2012-07-23 Tom Tromey <tromey@redhat.com>
1808 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1809 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1810 * corelow.c (core_open): Use gdb_bfd_fopen.
1811 * dsrec.c (load_srec): Use gdb_bfd_openr.
1812 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1813 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1814 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1815 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1816 (gdb_bfd_fdopenr): New functions.
1817 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1818 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1819 (gdb_bfd_fdopenr): Declare.
1820 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1821 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1822 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1823 gdb_bfd_openr_next_archived_file.
1824 (macho_check_dsym): Use gdb_bfd_openr.
1825 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1826 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1827 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1828 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1830 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1831 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1832 gdb_bfd_openr_next_archived_file.
1833 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1835 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1837 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1838 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1839 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1840 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1841 (symfile_bfd_open): Use gdb_bfd_fopen.
1842 (generic_load): Use gdb_bfd_openr.
1843 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1845 2012-07-23 Tom Tromey <tromey@redhat.com>
1847 * bfd-target.c (target_bfd_reopen): Update.
1848 * cli/cli-dump.c (bfd_openr_with_cleanup)
1849 (bfd_openw_with_cleanup): Update.
1850 * corelow.c (core_open): Update.
1851 * dsrec.c (load_srec): Update.
1852 * exec.c (exec_file_attach): Update.
1853 * gcore.c (create_gcore_bfd): Update.
1854 * gdb_bfd.c (gdb_bfd_ref): Return void.
1855 (gdb_bfd_open): Update.
1856 * gdb_bfd.h (gdb_bfd_ref): Return void.
1858 * jit.c (jit_bfd_try_read_symtab): Update.
1859 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1860 * machoread.c (macho_symfile_read_all_oso): Update.
1861 (macho_check_dsym): Update.
1862 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1863 * remote-m32r-sdi.c (m32r_load): Update.
1864 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1865 * rs6000-nat.c (add_vmap): Update.
1866 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1868 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1869 * solib-spu.c (spu_bfd_open): Update.
1870 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1871 * spu-linux-nat.c (spu_bfd_open): Update.
1872 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1873 (generic_load): Update.
1874 * windows-nat.c (windows_make_so): Update.
1876 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1878 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1880 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1882 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1883 SIGTRAMP_FRAME unwinding.
1885 2012-07-20 Doug Evans <dje@google.com>
1887 * NEWS: Document new options "set/show use-deprecated-index-sections",
1888 and delete reference to --use-deprecated-index-sections.
1889 * symfile.h (use_deprecated_index_sections): Delete.
1890 * dwarf2read.c (use_deprecated_index_sections): Make static.
1891 (read_index_from_section): Update wording of how to load
1892 deprecated index sections.
1893 (_initialize_dwarf2_read): New options
1894 "set/show use-deprecated-index-sections".
1895 * main.c (captured_main): Delete --use-deprecated-index-sections.
1897 2012-07-20 Pedro Alves <palves@redhat.com>
1902 * infrun.c (handle_inferior_event) <new thread>: Don't special
1903 case minus_one_ptid.
1904 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1905 * linux-thread-db.c (thread_get_info_callback): Don't return early
1906 if the thread is zombie.
1907 (thread_from_lwp): Change return type to void. Rewrite stale
1909 (attach_thread): Don't return early if the thread is zombie,
1910 instead set its "dying" flag.
1911 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1912 (find_new_threads_callback): Don't return early if the thread is
1915 2012-07-20 Pedro Alves <palves@redhat.com>
1917 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1918 * target.c (target_wait): Likewise.
1919 (str_comma_list_concat_elem, do_option, target_options_to_string):
1921 * target.h (target_options_to_string): Declare.
1923 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1924 Tom Tromey <tromey@redhat.com>
1926 * dwarf2read.c (dwarf_decode_macros)
1927 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1928 DW_MACRO_GNU_transparent_include_alt>: New cases.
1929 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1930 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1932 2012-07-20 Tom Tromey <tromey@redhat.com>
1934 * dwarf2read.c (try_open_dwo_file): Don't call
1935 gdb_bfd_stash_filename.
1937 2012-07-20 Pedro Alves <palves@redhat.com>
1939 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1940 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1941 (i386_process_record): Tweak description comments.
1943 2012-07-20 Pedro Alves <palves@redhat.com>
1945 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1946 (i386_process_record): Use record_read_memory.
1947 * record.c (record_read_memory): New function.
1948 (record_arch_list_add_mem, record_exec_insn): Use
1950 * record.h (record_read_memory): Declare.
1952 2012-07-20 Yao Qi <yao@codesourcery.com>
1954 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1957 2012-07-19 Pedro Alves <palves@redhat.com>
1959 * record.c (record_resume): Ask the target beneath to report all
1962 2012-07-19 Doug Evans <dje@google.com>
1964 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1965 there's no section at address zero.
1966 (dwarf2_record_block_ranges): Ditto.
1968 2012-07-19 Yao Qi <yao@codesourcery.com>
1970 * command.h, remote.c: Fix a typo in comment.
1972 2012-07-19 Tom Tromey <tromey@redhat.com>
1975 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1976 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1977 OP_DECLTYPE>: New cases.
1978 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1979 (type_exp): Add new productions.
1980 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1982 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1984 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1985 OP_DECLTYPE>: New case.
1986 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1988 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1989 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1991 2012-07-19 Tom Tromey <tromey@redhat.com>
1993 * c-exp.y (enum token_flags): New.
1994 (struct token) <cxx_only>: Remove.
1996 (tokentab3, tokentab2, ident_tokens): Update.
1997 (lex_one_token): Update. Handle FLAG_SHADOW.
1999 2012-07-19 Tom Tromey <tromey@redhat.com>
2001 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2002 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2003 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2004 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2005 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2006 type_exp production where appropriate.
2007 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2008 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2009 <UNOP_MEMVAL_TYPE>: New case.
2010 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2011 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2012 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2013 <UNOP_MEMVAL_TYPE>: New case.
2014 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2015 UNOP_REINTERPRET_CAST>: Update.
2016 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2017 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2018 UNOP_REINTERPRET_CAST>: Update.
2019 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2020 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2021 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2024 2012-07-19 Yao Qi <yao@codesourcery.com>
2025 Jan Kratochvil <jan.kratochvil@redhat.com>
2027 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2028 and case 'var_optional_filename' together.
2029 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2030 instead of add_setshow_optional_filename_cmd for setshow command
2031 'args'. Set completer for 'set args'.
2033 2012-07-18 Doug Evans <dje@google.com>
2035 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2036 * common/gdb_vecs.c: New file, contents from utils.c.
2037 * common/host-defs.h: New file, contents from defs.h.
2038 * utils.h: New file, contents from defs.h.
2039 * defs.h: Move all declarations of objects defined in utils.c
2040 to utils.h (except QUIT() and related).
2041 #include "utils.h", "host-defs.h".
2042 * probe.h (probe_p): Move here from gdb_vecs.h.
2043 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2044 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2045 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2046 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2047 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2048 (COMMON_OBS): Add gdb_vecs.o.
2049 (gdb_vecs.o): New rule.
2051 2012-07-18 Keith Seitz <keiths@redhat.com>
2053 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2054 parameter. If non-zero, use SYMNAME as the canonical name
2057 (convert_linespec_to_sals): Use add_sal_to_sals for
2059 (decode_line_full): No need to "fill in missing canonical names"
2060 anymore. Simply make cleanups for the allocated names.
2062 2012-07-18 Keith Seitz <keiths@redhat.com>
2064 * linespec.c (struct linespec): Constify expression,
2065 source_filename, function_name, and label_name.
2066 (symbol_not_found_error): Make all parameters const.
2067 (linespec_parser_delete): No need to check for NULL
2068 when using xfree. Cast const char * to char * for xfree.
2070 2012-07-18 Keith Seitz <keiths@redhat.com>
2072 * breakpoint.c (invalid_thread_id_error): New function.
2073 (find_condition_and_thread): Use invalid_thread_id_error.
2074 (watch_command_1): Likewise.
2076 2012-07-18 Tom Tromey <tromey@redhat.com>
2078 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2079 * contrib/cc-with-tweaks.sh: New file.
2081 2012-07-18 Tom Tromey <tromey@redhat.com>
2083 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2084 (locate_dwz_sections): Recognize .gdb_index.
2085 (create_cus_from_index_list): New function.
2086 (create_cus_from_index): Use it. Handle .dwz data.
2087 (read_index_from_section): New function, extracted from
2089 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2092 2012-07-18 Tom Tromey <tromey@redhat.com>
2094 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2095 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2096 <is_dwz>: New field.
2097 (struct dwz_file): New.
2098 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2099 (locate_dwz_sections, dwarf2_get_dwz_file)
2100 (get_abbrev_section_for_cu): New functions.
2101 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2102 (read_and_check_type_unit_head): Add abbrev_section argument.
2103 (create_debug_types_hash_table): Update.
2104 (init_cutu_and_read_dies): Use proper abbrev section.
2105 (init_cutu_and_read_dies_no_follow): Likewise.
2106 (set_partial_user): Do nothing if PST==NULL.
2107 (read_comp_units_from_section): New function.
2108 (create_all_comp_units): Use it.
2109 (scan_partial_symbols, partial_die_parent_scope): Update.
2110 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2111 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2112 (find_partial_die): Add offset_in_dwz argument. Update.
2113 (guess_partial_die_structure_name, fixup_partial_die): Update.
2114 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2115 DW_FORM_GNU_strp_alt.
2116 (read_indirect_string_from_dwz): New function.
2117 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2118 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2119 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2120 (follow_die_offset): Add offset_in_dwz argument.
2121 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2122 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2123 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2124 Handle new macro forms.
2125 (dwarf_decode_macros): Update.
2126 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2127 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2128 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2129 (create_debug_types_hash_table): Use correct abbrev section.
2130 (get_debug_line_section): New function.
2131 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2132 (process_full_comp_unit): Pass 'required' argument to
2133 end_symtab_get_static_block.
2134 * buildsym.h (end_symtab_get_static_block): Update.
2135 * buildsym.c (end_symtab_get_static_block): Add 'required'
2137 (end_symtab, end_expandable_symtab): Update.
2139 2012-07-18 Tom Tromey <tromey@redhat.com>
2141 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2143 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2144 (zlib_decompress_section): Remove.
2145 (dwarf2_read_section): Use gdb_bfd_map_section.
2146 (munmap_section_buffer): Remove.
2147 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2148 munmap_section_buffer.
2149 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2150 (struct gdb_bfd_section_data): New.
2151 (free_one_bfd_section): New function.
2152 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2153 (get_section_descriptor, zlib_decompress_section)
2154 (gdb_bfd_map_section): New functions.
2155 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2157 2012-07-18 Tom Tromey <tromey@redhat.com>
2159 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2161 2012-07-18 Tom Tromey <tromey@redhat.com>
2163 * gdb_bfd.c (struct gdb_bfd_data): New.
2164 (gdb_bfd_cache): New global.
2165 (struct gdb_bfd_cache_search): New.
2166 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2167 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2168 * gdb_bfd.h (gdb_bfd_open): Declare.
2170 2012-07-18 Tom Tromey <tromey@redhat.com>
2172 * utils.c (make_cleanup_bfd_unref): Rename from
2173 make_cleanup_bfd_close.
2174 * defs.h (make_cleanup_bfd_unref): Rename from
2175 make_cleanup_bfd_close.
2176 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2177 (bfd_openw_with_cleanup): Update.
2178 * corelow.c (core_open): Update.
2179 * dsrec.c (load_srec): Update.
2180 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2181 * remote-m32r-sdi.c (m32r_load): Update.
2182 * remote-mips.c (mips_load_srec): Update.
2183 (pmon_load_fast): Update.
2184 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2186 (darwin_bfd_open): Update.
2187 * solib.c (solib_bfd_fopen): Update.
2188 * symfile-mem.c (symbol_file_add_from_memory): Update.
2189 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2190 (symfile_bfd_open): Update.
2191 (generic_load): Update.
2193 2012-07-18 Tom Tromey <tromey@redhat.com>
2195 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2196 (pmon_load_fast): Likewise.
2197 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2198 (m32r_upload_command): Likewise.
2199 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2200 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2201 Use make_cleanup_bfd_close.
2203 2012-07-18 Tom Tromey <tromey@redhat.com>
2205 * symfile.c (symfile_bfd_open): Don't copy name. Call
2206 gdb_bfd_stash_filename.
2207 (load_command): Open the new BFD before freeing the old.
2208 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2209 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2210 Call gdb_bfd_stash_filename.
2211 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2212 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2213 gdb_bfd_stash_filename.
2214 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2215 Free found_pathname.
2216 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2217 gdb_bfd_stash_filename.
2218 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2219 * machoread.c (macho_add_oso_symfile): Call
2220 gdb_bfd_stash_filename.
2221 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2222 gdb_bfd_stash_filename.
2223 (macho_check_dsym): Don't copy filename. Call
2224 gdb_bfd_stash_filename.
2225 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2226 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2227 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2228 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2229 * exec.c (exec_close): Don't free the BFD's filename.
2230 (exec_file_attach): Don't copy the filename. Call
2231 gdb_bfd_stash_filename.
2232 * corelow.c (core_close): Don't free the BFD's filename.
2233 (core_open): Call gdb_bfd_stash_filename.
2234 * corefile.c (reopen_exec_file): Remove #if 0 code.
2235 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2237 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2239 2012-07-18 Tom Tromey <tromey@redhat.com>
2241 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2243 (free_dwo_file): Use gdb_bfd_unref.
2244 * cli/cli-dump.c: Include gdb_bfd.h.
2245 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2246 (bfd_openr_with_cleanup): Likewise.
2247 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2249 * utils.c: Include gdb_bfd.h.
2250 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2251 * symfile.c: Include gdb_bfd.h.
2252 (separate_debug_file_exists): Use gdb_bfd_unref.
2253 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2254 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2255 (generic_load): Use gdb_bfd_ref.
2256 (reread_symbols): Use gdb_bfd_unref.
2257 * symfile-mem.c: Include gdb_bfd.h.
2258 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2259 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2260 * solib.c: Include gdb_bfd.h.
2261 (solib_bfd_fopen): Use gdb_bfd_ref.
2262 (solib_bfd_open): Use gdb_bfd_unref.
2263 (free_so_symbols): Use gdb_bfd_unref.
2264 (reload_shared_libraries_1): Use gdb_bfd_unref.
2265 * solib-spu.c: Include gdb_bfd.h.
2266 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2267 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2269 * solib-frv.c: Include gdb_bfd.h.
2270 (enable_break2): Use gdb_bfd_unref.
2271 * solib-dsbt.c: Include gdb_bfd.h.
2272 (enable_break2): Use gdb_bfd_unref.
2273 * solib-darwin.c: Include gdb_bfd.h.
2274 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2276 (darwin_bfd_open): Use gdb_bfd_unref.
2277 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2278 * remote-mips.c: Include gdb_bfd.h.
2279 (mips_load_srec): Use gdb_bfd_ref.
2280 (pmon_load_fast): Use gdb_bfd_ref.
2281 * remote-m32r-sdi.c: Include gdb_bfd.h.
2282 (m32r_load): Use gdb_bfd_ref.
2283 * record.c: Include gdb_bfd.h.
2284 (record_save_cleanups): Use gdb_bfd_unref.
2285 (cmd_record_save): Use gdb_bfd_unref.
2286 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2288 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2289 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2290 * objfiles.c: Include gdb_bfd.h.
2291 (free_objfile): Use gdb_bfd_unref.
2292 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2294 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2295 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2296 (macho_check_dsym): Likewise.
2297 * m32r-rom.c: Include gdb_bfd.h.
2298 (m32r_load): Use gdb_bfd_ref.
2299 (m32r_upload_command): Use gdb_bfd_ref.
2300 * jit.c: Include gdb_bfd.h.
2301 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2302 * gdb_bfd.h: New file.
2303 * gdb_bfd.c: New file.
2304 * gcore.c: Include gdb_bfd.h.
2305 (create_gcore_bfd): Use gdb_bfd_ref.
2306 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2307 (gcore_command): Use gdb_bfd_unref.
2308 * exec.c: Include gdb_bfd.h.
2309 (exec_close): Use gdb_bfd_unref.
2310 (exec_close_1): Use gdb_bfd_unref.
2311 (exec_file_attach): Use gdb_bfd_ref.
2312 * elfread.c: Include gdb_bfd.h.
2313 (build_id_verify): Use gdb_bfd_unref.
2314 * dsrec.c: Include gdb_bfd.h.
2315 (load_srec): Use gdb_bfd_ref.
2316 * corelow.c: Include gdb_bfd.h.
2317 (core_close): Use gdb_bfd_unref.
2318 (core_open): Use gdb_bfd_ref.
2319 * bfd-target.c: Include gdb_bfd.h.
2320 (target_bfd_xclose): Use gdb_bfd_unref.
2321 (target_bfd_reopen): Use gdb_bfd_ref.
2322 * Makefile.in (SFILES): Add gdb_bfd.c.
2323 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2324 (COMMON_OBS): Add gdb_bfd.o.
2326 2012-07-18 Keith Seitz <keiths@redhat.com>
2328 * breakpoint.c (find_condition_and_thread): Initialize
2330 (create_breakpiont): find_condition_and_thread will now
2331 initialize COND_STRING, THREAD, and REST (and TASK).
2332 (addr_string_to_sals): Likewise.
2334 2012-07-18 Pedro Alves <palves@redhat.com>
2336 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2337 Pull the single step breakpoints out of the target.
2339 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2341 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2342 * stap-probe.c (compile_probe_arg): Likewise.
2344 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2346 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2347 (elf_compile_to_ax): Likewise.
2348 * infrun.c (insert_exception_resume_from_probe): Likewise.
2349 (check_exception_resume): Remove `objfile' variable.
2350 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2351 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2352 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2353 (compare_entries): Rename to...
2354 (compare_probes): ...this. Adjust function to work with
2355 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2357 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2359 (print_ui_out_info): Adjust argument to be `struct probe *'.
2360 (info_probes_for_ops): Adjust internal computations to use
2362 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2363 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2364 gen_info_probes_table_values>: Remove `objfile' argument.
2365 (struct probe) <objfile>: New field.
2366 (find_probe_by_pc): Remove `objfile' argument.
2367 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2368 (stap_get_probe_argument_count): Likewise.
2369 (stap_get_arg): Likewise.
2370 (stap_evaluate_probe_argument): Likewise.
2371 (stap_compile_to_ax): Likewise.
2372 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2373 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2374 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2375 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2376 sym_compile_to_ax>: Likewise.
2378 2012-07-18 Terry Guo <terry.guo@arm.com>
2381 * defs.h (GDB_MI_MSG_WIDTH): New.
2382 * ser_base (ser_base_read_error_fd): New function.
2383 (do_ser_base_readchar): Poll error file descriptor as well as
2385 (generic_readchar): Refactor error handling.
2387 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2389 * NEWS: Create a new section for the next release branch.
2390 Rename the section of the current branch, now that it has
2393 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2395 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2396 * version.in: Bump version to 7.5.50.20120718-cvs.
2398 2012-07-17 Keith Seitz <keiths@redhat.com>
2400 * linespec.c (linespec_parse_line_offset): Make parameter
2403 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2406 * f-valprint.c (info_common_command): New variable frame_id.
2407 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2408 * printcmd.c (print_variable_and_value): Extend function comment.
2409 Add comment for invalidated FRAME.
2410 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2411 FI form FRAME_ID after each print_frame_local_vars.
2412 (struct print_variable_and_value_data): Change frame to frame_id.
2413 (do_print_variable_and_value): New variable frame, initialize it from
2414 p->frame_id. Add comment for invalidated FRAME.
2415 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2416 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2417 for invalidated FRAME.
2419 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2420 Pedro Alves <palves@redhat.com>
2422 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2425 2012-07-16 Tom Tromey <tromey@redhat.com>
2427 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2429 2012-07-15 Doug Evans <dje@google.com>
2431 * dwarf2read.c (stmt_list_hash): New struct.
2432 (type_unit_group): Embed "per_cu" member, remove pointer.
2433 New union member "t", move member "tus" into it, all uses updated.
2434 New member "hash", replaces member "line_offset, all uses updated.
2435 (quick_file_names): Replace member "offset" with "hash", all uses
2437 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2438 (hash_file_name_entry, eq_file_name_entry): Call them.
2439 (hash_type_unit_group, eq_type_unit_group): Ditto.
2440 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2441 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2442 (dw2_get_file_names): Update.
2443 (create_type_unit_group): Replace "per_cu" arg with "cu".
2444 All callers updated. Fix "quick" (.gdb_index) handling.
2445 (get_type_unit_group): Replace "per_cu" arg with "cu".
2446 All callers updated.
2447 (build_type_unit_groups): Don't reset tu_stats.
2449 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2450 "tab_cur_size". Change member "tab" to be a htab_t.
2451 (create_filename_seen_cache): Update.
2452 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2453 (filename_seen): Update.
2455 2012-07-13 Doug Evans <dje@google.com>
2457 * symtab.c (filename_seen): Update comment.
2459 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2460 Doug Evans <dje@google.com>
2462 * buildsym.c (end_symtab_1): Split it to ...
2463 (end_symtab_get_static_block): ... this ...
2464 (end_symtab_from_static_block): ... and this function.
2465 (end_symtab, end_expandable_symtab): Call them.
2466 * buildsym.h (end_symtab_get_static_block)
2467 (end_symtab_from_static_block): New declarations.
2468 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2469 Set its valid CU ranges.
2471 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2473 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2474 DW_OP_GNU_parameter_ref.
2476 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2478 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2479 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2481 2012-07-13 Doug Evans <dje@google.com>
2483 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2484 (filename_seen_cache): New struct.
2485 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2486 (create_filename_seen_cache): New function.
2487 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2488 (filename_seen): Delete arg "first". New arg "cache". All callers
2490 (output_source_filename_data): New struct.
2491 (output_source_filename): Delete arg "first". New arg "data".
2492 All callers updated.
2493 (sources_info): Delete local "first". New locals "data", "cleanups".
2494 Rewrite to use filename_seen_cache.
2495 (add_partial_filename_data): Delete member "first". New member
2496 "filename_seen_cache". All uses updated.
2497 (make_source_files_completion_list): Rewrite to use
2498 filename_seen_cache.
2500 2012-07-12 Doug Evans <dje@google.com>
2502 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2504 2012-07-10 Doug Evans <dje@google.com>
2507 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2508 all_type_unit_groups, type_unit_groups, tu_stats.
2509 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2510 All uses updated. Add type_unit_group to union "s".
2511 (type_unit_group): New struct.
2512 (IS_TYPE_UNIT_GROUP): New macro.
2513 (abbrev_table): Delete unused member "section".
2514 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2515 (dw2_get_cu): Assert not used with type_unit_group.
2516 (dw2_get_primary_cu): New function.
2517 (dw2_build_type_unit_groups_reader): New function.
2518 (dw2_build_type_unit_groups): New function.
2519 (dw2_get_file_names): Assert not called on type units.
2520 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2521 Redo loop to iterate over type unit groups instead of type units.
2522 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2523 (read_abbrev_offset): New function.
2524 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2526 (create_partial_symtab): New function.
2527 (process_psymtab_comp_unit_reader): Assert not used with type units.
2528 Call create_partial_symtab.
2529 (process_psymtab_type_unit): Delete.
2530 (hash_type_unit_group, eq_type_unit_group): New functions.
2531 (allocate_type_unit_groups_table): New function.
2532 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2533 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2534 (create_type_unit_group, get_type_unit_group): New functions.
2535 (tu_abbrev_offset): New struct.
2536 (sort_tu_by_abbrev_offset): New function.
2537 (add_type_unit_group_to_table): New function.
2538 (build_type_unit_groups): New function.
2539 (build_type_psymtabs_reader): New function.
2540 (build_type_psymtab_dependencies): New function.
2541 (build_type_psymtabs): Rewrite.
2542 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2543 is seen in a type unit.
2544 (process_queue): Move symtab expansion debugging printfs here.
2545 Call process_full_type_unit for type units.
2546 (compute_symtab_includes): Assert not called for type units.
2547 (process_cu_includes): Don't call compute_symtab_includes for
2549 (process_full_type_unit): New function.
2550 (process_imported_unit_die): Flag an error if called for type units.
2551 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2552 updated. Assert not called for type units.
2553 (read_file_scope): Call dwarf2_start_symtab.
2554 (setup_type_unit_groups): New function.
2555 (read_type_unit_scope): Rewrite.
2556 (abbrev_table_read_table): Initialize abbrev_table->offset.
2557 (abbrev_table_free_cleanup): New function.
2558 (dwarf2_start_symtab): New function.
2559 (load_full_type_unit): Assert not called for type unit groups.
2560 * buildsym.c (finish_block_internal): New arg "expandable".
2561 All callers updated.
2562 (start_symtab): Move most contents to ...
2563 (restart_symtab): ... here. New function.
2564 (reset_symtab_globals): New function.
2565 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2566 Call reset_symtab_globals.
2567 (end_symtab, end_expandable_symtab): New functions.
2568 (set_missing_symtab, augment_type_symtab): New functions.
2569 * buildsym.h (end_expandable_symtab): Declare.
2570 (augment_type_symtab, restart_symtab): Declare.
2571 * psympriv.h (struct partial_symtab): New member "anonymous".
2572 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2574 (read_psymtabs_with_filename): Ditto.
2575 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2576 (expand_symtabs_matching_via_partial): Ditto.
2577 (dump_psymtab): Update.
2578 * dictionary.c (dict_add_pending): New function.
2579 * dictionary.h (dict_add_pending): Declare.
2581 2012-07-09 Doug Evans <dje@google.com>
2583 * buildsym.c (start_subfile): Remove unnecessary check for
2586 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2588 * dwarf2read.c (load_full_type_unit): Simplify.
2590 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2591 to struct signatured_type **. All uses updated.
2593 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2594 All callers updated.
2596 2012-07-09 Tom Tromey <tromey@redhat.com>
2598 * c-exp.y (check_parameter_typelist): New function.
2599 (parameter_typelist): Call it.
2600 * eval.c (make_params): Handle '(void)' case.
2601 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2604 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2606 * common/linux-ptrace.c: Include gdb_assert.h.
2607 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2608 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2610 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2612 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2613 * linux-nat.c (linux_child_post_attach)
2614 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2616 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2618 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2619 nptl <2.7 bug workaround for core files.
2621 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2623 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2625 (save_siginfo): Remove.
2626 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2628 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2629 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2630 * linux-nat.h (struct lwp_info): Remove field siginfo.
2632 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2634 Code cleanup for the next patch.
2635 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2636 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2638 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2639 (ia64_linux_stopped_data_address):
2640 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2642 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2643 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2644 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2647 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2650 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2651 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2653 2012-07-06 Tom Tromey <tromey@redhat.com>
2655 * c-exp.y (DOTDOTDOT): New token.
2656 (func_mod, exp): Use parameter_typelist.
2657 (parameter_typelist): New production.
2658 (tokentab3): Add "..." token.
2659 * eval.c (make_params): Handle varargs.
2660 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2663 2012-07-06 Tom Tromey <tromey@redhat.com>
2666 * c-exp.y (%union) <tvec>: Change type.
2667 (func_mod): Now uses <tvec> type.
2668 (exp): Update for tvec change.
2669 (direct_abs_decl): Push the typelist.
2670 (func_mod): Return a typelist.
2671 (nonempty_typelist): Update for tvec change.
2672 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2673 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2674 * parse.c (pop_type_list): New function.
2675 (push_typelist): New function.
2676 (follow_types): Handle tp_function_with_arguments.
2677 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2678 (enum type_pieces) <tp_function_with_arguments>: New constant.
2679 (union type_stack_elt) <typelist_val>: New field.
2680 (push_typelist): Declare.
2682 2012-07-06 Tom Tromey <tromey@redhat.com>
2684 * c-exp.y (%union) <type_stack>: New field.
2685 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2686 (ptr_operator_ts): New production.
2688 * parse.c (type_stack_reserve): New function.
2689 (check_type_stack_depth): Use it.
2690 (pop_type_stack, append_type_stack, push_type_stack)
2691 (get_type_stack, type_stack_cleanup): New functions.
2692 (follow_types): Handle tp_type_stack.
2693 (_initialize_parse): Simplify initialization.
2694 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2696 (union type_stack_elt) <stack_val>: New field.
2697 (get_type_stack, append_type_stack, push_type_stack)
2698 (type_stack_cleanup): Declare.
2700 2012-07-06 Tom Tromey <tromey@redhat.com>
2702 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2704 (struct type_stack): New.
2705 * parse.c (type_stack, type_stack_size, type_stack_depth):
2707 (type_stack): New global.
2708 (parse_exp_in_context, check_type_stack_depth)
2709 (insert_into_type_stack, insert_type, push_type, push_type_int)
2710 (insert_type_address_space, pop_type, pop_type_int)
2711 (_initialize_parse): Update.
2713 2012-07-06 Tom Tromey <tromey@redhat.com>
2715 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2718 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2720 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2722 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2723 Jan Kratochvil <jan.kratochvil@redhat.com>
2725 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2726 alloca with xmalloc/xfree.
2728 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2730 * MAINTAINERS (Write After Approval): Add myself to the list.
2732 2012-07-05 Doug Evans <dje@google.com>
2734 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2736 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2738 * ax-gdb.c (cli/cli-utils.h): New include.
2739 (linespec.h): Ditto.
2740 (agent_eval_command_one): New function.
2741 (agent_command_1): Ditto.
2742 (agent_command): Call function agent_command_1.
2743 (agent_eval_command): Ditto.
2744 (_initialize_ax_gdb): Change help for "maint agent"
2745 and "maint agent-eval".
2747 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2749 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2750 * cli/cli-utils.c (check_for_argument): New function.
2751 * cli/cli-utils.h (check_for_argument): Ditto.
2753 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2755 * NEWS: Mention x32 ABI support.
2757 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2759 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2760 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2762 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2763 and pc_regnum_from_eax to -1. Update SP regnum from
2764 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2767 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2770 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2772 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2773 * dwarf2expr.h: Include gdbtypes.h.
2774 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2775 these forward declarations.
2776 (cu_offset, sect_offset): Move these ...
2777 * gdbtypes.h: Remove include dwarf2expr.h.
2778 (cu_offset, sect_offset): ... here.
2780 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2782 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2783 (amd64_linux_sigtramp_code): This.
2784 (amd64_x32_linux_sigtramp_code): New.
2785 (LINUX_SIGTRAMP_LEN): Updated.
2786 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2788 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2792 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2794 * config.in: Regenerate.
2795 * configure: Regenerate.
2796 * configure.ac: Remove check for gnu/libc-version.h.
2797 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2799 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2800 variables libc_version, libc_major and libc_minor. Replace sscanf by
2801 inferior_has_bug. Extend the comment.
2803 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2805 * linux-thread-db.c (inferior_has_bug): New function.
2806 (thread_db_find_new_threads_silently): Return boolean as checked by
2807 inferior_has_bug, describe it in the comments.
2808 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2809 earlier. Abort the initialization if it returned non-zero.
2810 (thread_db_new_objfile): Exclude debug files.
2811 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2814 2012-07-02 Doug Evans <dje@google.com>
2816 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2817 related to queue management.
2819 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2820 instead of "debug dwarf2-die" in debugging printfs.
2821 (create_debug_info_hash_table_reader): Ditto.
2822 (create_debug_info_hash_table): Ditto.
2823 (init_dwo_file): Ditto.
2824 (init_cutu_and_read_dies): Add debugging printf.
2825 (init_cutu_and_read_dies_no_follow): Ditto.
2826 (process_psymtab_comp_unit_reader): Ditto.
2828 2012-07-02 Stan Shebs <stan@codesourcery.com>
2830 Add target-side support for dynamic printf.
2831 * NEWS: Mention the additional style.
2832 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2833 (struct bp_location): New field cmd_bytecode.
2834 * breakpoint.c: Include format.h.
2835 (disconnected_dprintf): New global.
2836 (parse_cmd_to_aexpr): New function.
2837 (build_target_command_list): New function.
2838 (insert_bp_location): Call it.
2839 (remove_breakpoints_pid): Skip dprintf breakpoints.
2840 (print_one_breakpoint_location): Ditto.
2841 (dprintf_style_agent): New global.
2842 (dprintf_style_enums): Add dprintf_style_agent.
2843 (update_dprintf_command_list): Add agent case.
2844 (agent_printf_command): New function.
2845 (_initialize_breakpoint): Add new commands.
2846 * common/ax.def (printf): New bytecode.
2847 * ax.h (ax_string): Declare.
2848 * ax-gdb.h (gen_printf): Declare.
2849 * ax-gdb.c: Include cli-utils.h, format.h.
2850 (gen_printf): New function.
2851 (maint_agent_print_command): New function.
2852 (_initialize_ax_gdb): Add maint agent-printf command.
2853 * ax-general.c (ax_string): New function.
2854 (ax_print): Add printf disassembly.
2855 * Makefile.in (SFILES): Add format.c
2856 (COMMON_OBS): Add format.o.
2857 * common/format.h: New file.
2858 * common/format.c: New file.
2859 * printcmd.c: Include format.h.
2860 (ui_printf): Call parse_format_string.
2861 * remote.c (remote_state): New field breakpoint_commands.
2862 (PACKET_BreakpointCommands): New enum.
2863 (remote_breakpoint_commands_feature): New function.
2864 (remote_protocol_features): Add new BreakpointCommands entry.
2865 (remote_can_run_breakpoint_commands): New function.
2866 (remote_add_target_side_commands): New function.
2867 (remote_insert_breakpoint): Call it.
2868 (remote_insert_hw_breakpoint): Ditto.
2869 (_initialize_remote): Add new packet configuration for
2870 target-side breakpoint commands.
2871 * target.h (struct target_ops): New field
2872 to_can_run_breakpoint_commands.
2873 (target_can_run_breakpoint_commands): New macro.
2874 * target.c (update_current_target): Handle
2875 to_can_run_breakpoint_commands.
2877 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2879 Execute -ix and -iex only after system and user gdbinit files.
2880 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2881 processing down after gdbinit files.
2883 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2885 Add fnmatch-gnu module.
2886 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2887 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2888 * gnulib/aclocal.m4: Regenerate.
2889 * gnulib/config.in: Regenerate.
2890 * gnulib/configure: Regenerate.
2891 * gnulib/import/dummy.c: Remove.
2892 * gnulib/import/Makefile.am: Regenerate.
2893 * gnulib/import/Makefile.in: Likewise.
2894 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2895 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2896 * gnulib/import/alloca.c: New file.
2897 * gnulib/import/alloca.in.h: Likewise.
2898 * gnulib/import/config.charset: Likewise.
2899 * gnulib/import/fnmatch.c: Likewise.
2900 * gnulib/import/fnmatch.in.h: Likewise.
2901 * gnulib/import/fnmatch_loop.c: Likewise.
2902 * gnulib/import/localcharset.c: Likewise.
2903 * gnulib/import/localcharset.h: Likewise.
2904 * gnulib/import/m4/alloca.m4: Likewise.
2905 * gnulib/import/m4/codeset.m4: Likewise.
2906 * gnulib/import/m4/configmake.m4: Likewise.
2907 * gnulib/import/m4/fcntl-o.m4: Likewise.
2908 * gnulib/import/m4/fnmatch.m4: Likewise.
2909 * gnulib/import/m4/glibc21.m4: Likewise.
2910 * gnulib/import/m4/localcharset.m4: Likewise.
2911 * gnulib/import/m4/locale-fr.m4: Likewise.
2912 * gnulib/import/m4/locale-ja.m4: Likewise.
2913 * gnulib/import/m4/locale-zh.m4: Likewise.
2914 * gnulib/import/m4/mbrtowc.m4: Likewise.
2915 * gnulib/import/m4/mbsinit.m4: Likewise.
2916 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2917 * gnulib/import/m4/mbstate_t.m4: Likewise.
2918 * gnulib/import/m4/stdbool.m4: Likewise.
2919 * gnulib/import/m4/wchar_h.m4: Likewise.
2920 * gnulib/import/m4/wctype_h.m4: Likewise.
2921 * gnulib/import/m4/wint_t.m4: Likewise.
2922 * gnulib/import/mbrtowc.c: Likewise.
2923 * gnulib/import/mbsinit.c: Likewise.
2924 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2925 * gnulib/import/mbsrtowcs-state.c: Likewise.
2926 * gnulib/import/mbsrtowcs.c: Likewise.
2927 * gnulib/import/ref-add.sin: Likewise.
2928 * gnulib/import/ref-del.sin: Likewise.
2929 * gnulib/import/stdbool.in.h: Likewise.
2930 * gnulib/import/streq.h: Likewise.
2931 * gnulib/import/strnlen1.c: Likewise.
2932 * gnulib/import/strnlen1.h: Likewise.
2933 * gnulib/import/verify.h: Likewise.
2934 * gnulib/import/wchar.in.h: Likewise.
2935 * gnulib/import/wctype.in.h: Likewise.
2937 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2939 Support shell wildcards for 'set auto-load safe-path'.
2940 * auto-load.c: Include fnmatch.h.
2941 (filename_is_in_dir): Rename to ...
2942 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2943 it. Update function comment. Rename dir_len to pattern_len. New
2944 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2945 messages. Use gdb_filename_fnmatch.
2946 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2948 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2949 * defs.h (gdb_filename_fnmatch): New declaration.
2950 * utils.c: Include fnmatch.h.
2951 (gdb_filename_fnmatch): New function.
2953 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2955 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2956 `-probe' and `-probe-stap' options.
2958 2012-07-01 Yao Qi <yao@codesourcery.com>
2960 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2961 always_inserted_off, and always_inserted_enums.
2962 Change always_inserted_mode's type to 'enum auto_boolean'.
2963 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2965 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2966 of add_setshow_enum_cmd.
2967 * infrun.c: Remove can_use_displaced_stepping_auto,
2968 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2969 can_use_displaced_stepping_enum.
2970 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2971 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2972 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2973 add_setshow_enum_cmd.
2975 2012-06-30 Doug Evans <dje@google.com>
2977 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2978 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2979 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2981 2012-06-29 Doug Evans <dje@google.com>
2983 * linespec.c: #include "stack.h".
2984 (decode_line_with_current_source): Moved here from symtab.c and
2985 renamed from decode_line_spec. All callers updated.
2986 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2987 renamed from decode_line_spec_1. All callers updated.
2988 * linespec.h (decode_line_with_current_source): Move declaration here
2989 from symtab.h and renamed from decode_line_spec.
2990 (decode_line_with_last_displayed): Move declaration here from symtab.h
2991 and renamed from decode_line_spec_1.
2992 * macrocmd.c: #include "linespec.h".
2993 * symtab.c: Remove #include "linespec.h".
2995 2012-06-28 Doug Evans <dje@google.com>
2997 * dwarf2read.c (get_cu_length): New function.
2998 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2999 (create_debug_types_hash_table): Ditto.
3000 (init_cutu_and_read_dies): Ditto.
3001 (init_cutu_and_read_dies_no_follow): Ditto.
3003 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3005 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3006 (struct abbrev_table): Define.
3007 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3009 (init_cutu_and_read_dies): Update.
3010 (abbrev_table_alloc_abbrev): New function. Replaces
3011 dwarf_alloc_abbrev. All callers updated.
3012 (abbrev_table_add_abbrev): New function.
3013 (abbrev_table_lookup_abbrev): New function. Replaces
3014 dwarf2_lookup_abbrev. All callers updated.
3015 (abbrev_table_read_table): New function. Contents moved here from
3016 dwarf2_read_abbrevs.
3017 (dwarf2_read_abbrevs): Call it.
3018 (abbrev_table_free): New function.
3019 (dwarf2_free_abbrev_table): Call it.
3021 2012-06-28 Stan Shebs <stan@codesourcery.com>
3023 * osdata.c (info_osdata_command): Filter out "Title" columns
3025 * common/linux-osdata.c (struct osdata_type): Add title field.
3026 (osdata_table): Add titles to each entry.
3027 (linux_command_xfer_osdata): Add a column for title data.
3029 2012-06-28 Stan Shebs <stan@codesourcery.com>
3031 Make logging work for MI.
3033 * interps.h (interp_set_logging_ftype): New typedef.
3034 (struct interp_procs): New field set_logging_proc.
3035 (current_interp_set_logging): Declare.
3036 * interps.c (current_interp_set_logging): New function.
3037 * cli/cli-logging.c: Include interps.h.
3038 (set_logging_redirect): Call current_interp_set_logging.
3039 (pop_output_files): Ditto.
3040 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3041 * mi/mi-console.h (mi_console_set_raw): Declare.
3042 * mi/mi-console.c (mi_console_set_raw): New function.
3043 * mi/mi-interp.c (saved_raw_stdout): New global.
3044 (mi_set_logging): New function.
3045 (_initialize_mi_interp): Add it to interp procs.
3047 2012-06-28 Doug Evans <dje@google.com>
3049 * symtab.c (lookup_symbol_aux_objfile): Use
3050 ALL_OBJFILE_PRIMARY_SYMTABS.
3052 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3054 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3056 * common/buffer.c: Include inttypes.h and stdint.h.
3057 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3059 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3060 Pedro Alves <palves@redhat.com>
3062 * gdbthread.h (ALL_THREADS): New macro.
3063 (thread_list): Declare.
3064 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3065 going, but instead fall through to the stepping handling.
3066 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3067 the passed in signal. Adjust debug output.
3068 (resume_callback): Rename to ...
3069 (linux_nat_resume_callback): ... this. Pass the thread's last
3070 stop signal, if in "pass" state.
3071 (linux_nat_resume): Adjust to rename.
3072 (stop_wait_callback): New assertion. Don't respawn signals;
3073 instead let the LWP remain with SIGNALLED set.
3074 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3075 * remote.c (append_pending_thread_resumptions): New.
3076 (remote_vcont_resume): Call it.
3077 * target.h (target_resume): Extend comment.
3079 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3081 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3083 2012-06-27 Doug Evans <dje@google.com>
3085 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3086 Delete have_addr_base, unused. All uses updated.
3087 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3088 (dwarf2_get_pc_bounds): Add ranges_base.
3089 (dwarf2_record_block_ranges): Ditto.
3091 2012-06-27 Tom Tromey <tromey@redhat.com>
3094 * varobj.c (varobj_create): Update.
3095 (varobj_set_value): Update.
3096 * tracepoint.c (validate_actionline): Update.
3097 (encode_actions_1): Update.
3098 * parse.c (parse_exp_1): Add 'pc' argument.
3099 (parse_exp_in_context): Add 'pc' argument. Change how
3100 expression_context_pc is set.
3101 (parse_expression): Update.
3102 (parse_field_expression): Update.
3103 * expression.h (parse_exp_1): Update.
3104 * eval.c (parse_to_comma_and_eval): Update.
3105 * breakpoint.c (set_breakpoint_condition): Update.
3106 (update_watchpoint): Update.
3107 (init_breakpoint_sal): Update
3108 (find_condition_and_thread): Update.
3109 (watch_command_1): Update.
3110 (update_breakpoint_locations): Update.
3111 * ada-lang.c (ada_read_renaming_var_value): Update.
3112 (create_excep_cond_exprs): Update.
3114 2012-06-27 Doug Evans <dje@google.com>
3116 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3119 2012-06-26 Doug Evans <dje@google.com>
3121 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3123 (error_check_comp_unit_head): New arg abbrev_section. All callers
3125 (read_and_check_comp_unit_head): Ditto.
3126 (read_and_check_type_unit_head): Ditto.
3128 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3130 New attribute 'last' for gdb.Symtab_and_line.
3131 * NEWS (Python Scripting): Add entry about the new attribute.
3132 * python/py-symtab.c (salpy_get_last): New function which
3133 implements the get method for the 'last' attribute of
3134 gdb.Symtab_and_line.
3135 (sal_object_getset): Add entry for the 'last' attribute.
3137 2012-06-26 Doug Evans <dje@google.com>
3139 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3140 (dwo_sections): Add macinfo, macro.
3141 (dwarf2_locate_dwo_sections): Watch for macro sections.
3142 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3143 All callers updated. Handle DWO files.
3145 * NEWS: Mention new options "set debug dwarf2-read" and
3146 "set debug symtab-create".
3147 * dwarf2read.c (dwarf2_read_debug): New static global.
3148 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3149 (process_queue): Ditto.
3150 (process_full_comp_unit): Ditto.
3151 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3152 * elfread.c (elf_symfile_read): Add debugging printf.
3153 * minsyms.c (install_minimal_symbols): Ditto.
3154 * psymtab.c (allocate_psymtab): Ditto.
3155 * symfile.c (allocate_symtab): Ditto.
3156 * symtab.c (symtab_create_debug): New global.
3157 (_initialize_symtab): Add new option "set debug symtab-create".
3158 * symtab.h (symtab_create_debug): Declare.
3160 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3161 (lookup_dwo_type_unit): Ditto.
3163 2012-06-26 Roland McGrath <roland@hack.frob.com>
3164 H.J. Lu <hongjiu.lu@intel.com>
3166 * amd64-linux-nat.c: Include <sys/user.h>.
3167 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3168 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3169 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3171 * configure.ac: Check if the fs_base and gs_base members of
3172 `struct user_regs_struct' exist.
3173 * config.in: Regenerated.
3174 * configure: Likewise.
3176 2012-06-25 Michael Eager <eager@eagercon.com>
3179 * python/python.c (gdbpy_write): Check for interrupted output.
3181 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3183 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3184 register as a stack alignment in ARM mode.
3186 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3188 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3189 * gnulib/config.in: Regenerate.
3190 * gnulib/configure: Likewise.
3191 * gnulib/import/m4/extensions.m4: Update it.
3192 * gnulib/import/m4/gnulib-common.m4: Likewise.
3193 * gnulib/import/m4/memmem.m4: Likewise.
3194 * gnulib/import/m4/mmap-anon.m4: Likewise.
3195 * gnulib/import/m4/multiarch.m4: Likewise.
3196 * gnulib/import/stdint.in.h: Likewise.
3198 2012-06-24 Yao Qi <yao@codesourcery.com>
3200 * corefile.c (write_memory_with_notification): New.
3201 * gdbcore.h: Declare write_memory_with_notification.
3202 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3203 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3204 * valops.c (value_assign): Likewise.
3205 * python/py-inferior.c (infpy_write_memory): Call
3206 'write_memory_with_notification'.
3208 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3210 * cc-with-index.sh: Use also -ex "set auto-load no".
3212 2012-06-23 Doug Evans <dje@google.com>
3215 * NEWS: Document additions to .gdb_index.
3216 * dwarf2read.c: #include "gdb/gdb-index.h".
3217 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3218 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3219 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3220 (dwarf2_read_index): Recognize version 7.
3221 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3222 block_kind, domain): All callers updated.
3223 (dw2_find_symbol_file): Handle new index CU values.
3224 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3225 (add_index_entry): New args is_static, kind. All callers updated.
3226 (offset_type_compare, uniquify_cu_indices): New functions
3227 (symbol_kind): New function.
3228 (write_psymtabs_to_index): Remove duplicate CU values.
3229 (write_psymtabs_to_index): Write .gdb_index version 7.
3231 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3233 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3234 * configure: Regenerate.
3236 2012-06-20 Yao Qi <yao@codesourcery.com>
3238 * python/py-inferior.c: Update comments of infpy_read_memory
3239 and infpy_write_memory.
3241 2012-06-19 Tom Tromey <tromey@redhat.com>
3244 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3245 (push_type_address_space): Remove.
3246 * parse.c (insert_into_type_stack): New function.
3247 (insert_type): Likewise.
3248 (insert_type_address_space): Rename from push_type_address_space.
3249 Insert tp_space_identifier.
3250 * c-exp.y (ptr_operator): New production.
3251 (abs_decl): Use ptr_operator.
3252 (space_identifier): Call insert_type_address_space.
3253 (ptype): Don't use const_or_volatile_or_space_identifier.
3254 (const_or_volatile_noopt): Call insert_type.
3255 (conversion_type_id, conversion_declarator): New productions.
3256 (operator): Use conversion_type_id.
3258 2012-06-18 Doug Evans <dje@google.com>
3260 * symtab.h (minimal_symbol): New member created_by_gdb.
3261 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3263 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3264 (search_symbols): Call it instead of lookup_symbol.
3265 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3267 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3268 Adjust address for DW_OP_GNU_addr_index.
3269 * dwarf2expr.h (dwarf_expr_context): Update comment.
3270 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3271 all callers updated. Handle TLS vars described with
3272 DW_OP_GNU_const_index.
3273 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3274 and DW_OP_GNU_const_index.
3275 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3277 * block.c (find_block_in_blockvector): Make explicit the fact that we
3278 ignore GLOBAL_BLOCK.
3280 2012-06-18 Tom Tromey <tromey@redhat.com>
3282 * c-exp.y (operator): Remove trailing space after "delete" and
3285 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3286 Jan Kratochvil <jan.kratochvil@redhat.com>
3288 Switch i386 and derived targets to ON_STACK.
3289 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3290 (amd64_dicos_init_abi): Remove its installment.
3291 * dicos-tdep.c (dicos_init_abi): Remove the
3292 set_gdbarch_call_dummy_location call. Update the comment here.
3293 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3294 (i386_dicos_init_abi): Remove its installment.
3295 * i386-tdep.c (i386_push_dummy_code): New function.
3296 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3297 i386_push_dummy_code.
3299 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3301 Remove stale dummy frames.
3302 * breakpoint.c: Include dummy-frame.h.
3303 (longjmp_breakpoint_ops): New variable.
3304 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3305 bp_longjmp_call_dummy.
3306 (bpstat_what, bptype_string, print_one_breakpoint_location)
3307 (init_bp_location): Support bp_longjmp_call_dummy.
3308 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3309 (set_longjmp_breakpoint_for_call_dummy)
3310 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3312 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3313 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3314 FIXME comment and extend the other comment for bp_call_dummy.
3315 (set_longjmp_breakpoint_for_call_dummy)
3316 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3317 * dummy-frame.c: Include gdbthread.h.
3318 (pop_dummy_frame_bpt): New function.
3319 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3320 (dummy_frame_discard): New function.
3321 (cleanup_dummy_frames): Update the comment about longjmps.
3322 * dummy-frame.h (dummy_frame_discard): New declaration.
3323 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3324 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3325 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3326 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3327 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3328 keep_going if IS_LONGJMP and there is no other reason to stop.
3330 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3332 * remote-sim.c (sim_command_completer): Initialize
3335 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3337 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3338 * dwarf2loc.c (call_site_parameter_matches): Support
3339 CALL_SITE_PARAMETER_PARAM_OFFSET.
3340 (needs_dwarf_reg_entry_value): Push stub value.
3341 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3342 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3343 * gdbtypes.h (enum call_site_parameter_kind): New item
3344 CALL_SITE_PARAMETER_PARAM_OFFSET.
3345 (struct call_site.parameter.u): New field param_offset.
3347 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3349 Code cleanup: Generalize call_site.parameter key.
3350 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3351 variable dwarf_reg. New variable kind_u. Update parameters to
3352 push_dwarf_reg_entry_value.
3353 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3354 * dwarf2expr.h (enum call_site_parameter_kind)
3355 (union call_site_parameter_u): Forward declarations.
3356 (struct dwarf_expr_context_funcs): Update parameters and their
3357 description for push_dwarf_reg_entry_value.
3358 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3359 * dwarf2loc.c (call_site_parameter_matches): New function.
3360 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3361 description. Use call_site_parameter_matches.
3362 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3363 Update parameters and their description.
3364 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3365 New variable kind_u. Adjust the caller for updated parameters.
3366 (needs_dwarf_reg_entry_value): Update parameters.
3367 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3368 instead of attr. Update for the changed fields of struct
3369 call_site_parameter.
3370 * gdbtypes.h: Include dwarf2expr.h.
3371 (enum call_site_parameter_kind): New.
3372 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3373 fb_offset into new union u.
3375 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3377 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3378 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3381 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3383 * amd64-linux-nat.c (compat_x32_clock_t): New.
3384 (compat_x32_siginfo_t): Likewise.
3385 (compat_x32_siginfo_from_siginfo): Likewise.
3386 (siginfo_from_compat_x32_siginfo): Likewise.
3387 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3388 and siginfo_from_compat_x32_siginfo for x32.
3390 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3392 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3394 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3396 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3397 instead of gdbarch_ptr_bit.
3398 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3399 (amd64_supply_native_gregset): Likewise.
3400 (amd64_collect_native_gregset): Likewise.
3401 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3402 (amd64_supply_xsave): Likewise.
3403 (amd64_collect_fxsave): Likewise.
3404 (amd64_collect_xsave): Likewise.
3406 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3408 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3409 (amd64_linux_read_description): Check DS segment register for
3412 2012-06-15 Tom Tromey <tromey@redhat.com>
3414 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3415 init_cutu_and_read_dies.
3417 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3419 * MAINTAINERS (Write After Approval): Add myself to the list.
3421 2012-06-15 Tom Tromey <tromey@redhat.com>
3423 * valops.c (value_find_oload_method_list): Now static.
3424 * value.h (value_find_oload_method_list): Don't declare.
3426 2012-06-15 Tom Tromey <tromey@redhat.com>
3428 * valops.c (find_overload_match): Use value_ind.
3430 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3432 * infrun.c (handle_inferior_event): Correct indentation.
3434 2012-06-14 Doug Evans <dje@google.com>
3436 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3437 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3439 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3440 updated. Handle DEBUG_LOC_START_LENGTH.
3441 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3442 (loclist_describe_location): Ditto.
3444 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3447 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3448 after hiding inline functions.
3450 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3452 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3453 _initialize_inf_ttrace.
3455 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3457 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3458 _initialize_hppa_hpux_nat.
3460 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3462 * remote-sim.c (sim_command_completer): Change type of return
3463 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3465 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3466 Jan Kratochvil <jan.kratochvil@redhat.com>
3469 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3470 stack on a 16-byte boundary.
3472 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3474 * jit.c (finalize_symtab): Set function's return type to 'void' by
3477 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3478 H.J. Lu <hongjiu.lu@intel.com>
3480 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3481 Move bits common to both the classic LP64 and the new x32 ILP32
3483 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3484 (amd64_x32_linux_init_abi): New function.
3485 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3488 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3489 * i386-tdep.c (i386_pseudo_register_name): Make public.
3490 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3491 * amd64-tdep.c (amd64_dword_names): Add "eip".
3492 (amd64_x32_pseudo_register_type): New function
3493 (amd64_x32_init_abi): New function.
3495 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3498 * inferior.h (struct inferior_suspend_state): Comment out.
3499 (struct inferior): Comment out the field suspend.
3500 * infrun.c (struct infcall_suspend_state): Comment out the field
3502 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3505 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3507 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3508 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3509 function comment. Return ERROR for unresolved cases. Implement
3510 returning proper NAME.
3511 (yylex): Accept also NAME from classify_inner_name.
3512 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3513 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3515 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3517 2012-06-13 Tom Tromey <tromey@redhat.com>
3519 * breakpoint.c (condition_completer): New function.
3520 (_initialize_breakpoint): Use it.
3521 * value.c (complete_internalvar): New function.
3522 * value.h (complete_internalvar): Declare.
3524 2012-06-13 Tom Tromey <tromey@redhat.com>
3526 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3527 * breakpoint.c (catch_syscall_completer): Return a VEC.
3528 * cli/cli-cmds.c (complete_command): Update.
3529 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3530 (complete_on_enum): Likewise.
3531 * command.h: Include gdb_vecs.h.
3532 (completer_ftype): Change return type.
3533 (complete_on_cmdlist, complete_on_enum): Likewise.
3534 * completer.c (noop_completer, filename_completer)
3535 (location_completer): Return a VEC.
3536 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3538 (expression_completer, complete_line_internal, complete_line)
3539 (command_completer): Return a VEC.
3540 (gdb_completion_word_break_characters, line_completion_function):
3542 * completer.h: Include gdb_vecs.h.
3543 (complete_line, noop_completer, filename_completer)
3544 (expression_completer, location_completer, command_completer):
3546 * f-lang.c (f_word_break_characters): Return a VEC.
3547 * interps.c (interpreter_completer): Return a VEC.
3548 * language.h (struct language_defn)
3549 <la_make_symbol_completion_list>: Return a VEC.
3550 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3551 * symtab.c (free_completion_list): Take a VEC.
3552 (return_val_size, return_val_index): Remove.
3553 (return_val): Now a VEC.
3554 (completion_list_add_name): Update.
3555 (default_make_symbol_completion_list_break_on)
3556 (default_make_symbol_completion_list, make_symbol_completion_list)
3557 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3559 (add_filename_to_list): Update.
3560 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3562 (maybe_add_partial_symtab_filename): Update.
3563 (make_source_files_completion_list): Return a VEC.
3564 * symtab.h (default_make_symbol_completion_list_break_on)
3565 (default_make_symbol_completion_list, make_symbol_completion_list)
3566 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3567 (make_source_files_completion_list): Update.
3569 2012-06-13 Tom Tromey <tromey@redhat.com>
3571 * breakpoint.c (add_catch_command): Use completer_ftype.
3572 * breakpoint.h: Include command.h.
3573 (add_catch_command): Use completer_ftype.
3574 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3575 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3576 Use completer_ftype.
3577 * command.h (completer_ftype): New typedef.
3578 (set_cmd_completer): Use it.
3579 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3582 2012-06-13 Pedro Alves <palves@redhat.com>
3584 Partial revert of previous change.
3586 * serial.c (scb_base): New global.
3587 (serial_for_fd): New.
3588 (serial_open, serial_fdopen_ops): Link new serial in open serials
3590 (do_serial_close): Unlink serial from the open serials chain.
3592 2012-06-12 Pedro Alves <palves@redhat.com>
3594 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3596 (prepare_for_detach): No longer context switch here in non-stop
3598 (fetch_inferior_event): Ditto.
3599 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3600 to the event thread before removing breakpoints. Switch to the
3601 event thread before inserting breakpoints and resuming.
3602 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3603 event thread before resuming.
3604 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3605 Switch to the event thread before removing breakpoints.
3607 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3609 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3610 special characters correctly for the Windows shells. See
3611 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3613 [!__MINGW32__]: Remove extra double quote character from special
3616 2012-06-11 Stan Shebs <stan@codesourcery.com>
3618 * ui-out.h: Remove #if 0 declarations.
3619 * ui-out.c: Remove #if 0 functions.
3621 2012-06-11 Pedro Alves <palves@redhat.com>
3623 * ser-base.c (run_async_handler_and_reschedule): New.
3624 (fd_event, push_event): Use it.
3625 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3626 reference count to 1.
3627 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3629 (serial_is_open, serial_ref, serial_unref): New.
3630 * serial.h (serial_open): Adjust comment.
3631 (serial_is_open): Declare.
3632 (serial_close): Adjust comment.
3633 (serial_ref, serial_unref) Declare.
3634 (struct serial): New field 'refcnt'.
3636 2012-06-11 Pedro Alves <palves@redhat.com>
3638 Remove #if 0'd "connect" command, and unnecessary associated
3639 refcounting and serial reuse bits.
3641 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3642 * serial.c (last_serial_opened): Delete.
3644 (serial_open): Adjust.
3645 (serial_for_fd): Delete.
3646 (serial_fdopen_ops, do_serial_close): Adjust.
3647 (serial_fdopen_ops): Adjust.
3649 2012-06-11 Pedro Alves <palves@redhat.com>
3651 * serial.c (do_serial_close): Remove early return when SCB is
3654 2012-06-11 Tom Tromey <tromey@redhat.com>
3656 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3658 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3660 Fix regression by the "ambiguous linespec" series.
3661 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3662 get_last_displayed_symtab and get_last_displayed_line and depending
3665 2012-06-11 Tom Tromey <tromey@redhat.com>
3667 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3668 (dw2_find_symbol_file): Use it.
3670 2012-06-11 Michael Eager <eager@eagercon.com>
3672 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3673 * mips-linux-tdep.h (mips_signals): New
3675 2012-06-11 Tom Tromey <tromey@redhat.com>
3677 * infrun.c (handle_inferior_event)
3678 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3680 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3681 exception logic in all cases. Update comments.
3682 (insert_longjmp_resume_breakpoint): Set the exception resume
3685 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3687 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3689 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3691 * valarith.c (binop_types_user_defined_p): Fix a typo.
3693 2012-06-08 Yao Qi <yao@codesourcery.com>
3694 Chung-Lin Tang <cltang@codesourcery.com>
3696 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3697 * arch-utils.h: Declare.
3698 * gdbarch.sh: Add return_in_first_hidden_param_p.
3699 * gdbarch.c, gdbarch.h: Regenerated.
3700 * infcall.c (call_function_by_hand): Call
3701 gdbarch_return_in_first_hidden_param_p instead of
3702 language_pass_by_reference.
3704 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3705 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3706 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3707 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3708 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3709 `cplus_return_struct_by_reference'.
3710 (tic6x_return_value): Handle language cplusplus.
3711 (tic6x_return_in_first_hidden_param_p): New.
3712 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3714 2012-06-07 Doug Evans <dje@google.com>
3716 * dwarf2read.c (dwarf2_cu): Add comment.
3718 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3720 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3722 (mips_eabi_push_dummy_call): Likewise.
3723 (mips_n32n64_push_dummy_call): Likewise.
3724 (mips_o32_push_dummy_call): Likewise.
3725 (mips_o64_push_dummy_call): Likewise.
3727 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3729 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3731 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3733 * mips-tdep.c (mips_pseudo_register_type): Use
3734 mips_float_register_p.
3736 2012-06-06 Pedro Alves <palves@redhat.com>
3738 * infrun.c (handle_inferior_event): Remove calls to
3739 reinit_frame_cache that follow a context_switch call.
3741 2012-06-06 Pedro Alves <palves@redhat.com>
3743 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3744 context_switch and remove stale comment.
3746 2012-06-06 Pedro Alves <palves@redhat.com>
3748 * infrun.c (struct execution_control_state): Remove
3749 `new_thread_event' field.
3750 (handle_inferior_event): Simplify new threads handling; don't
3751 resume the inferior if we find a new thread.
3753 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3755 * NEWS: Document the deprecation of SH's 'regs' command.
3756 * inferior.h (all_registers_info): Add function declaration.
3757 * sh-tdep.c (sh_show_regs): Remove variable.
3758 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3759 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3760 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3761 (sh_show_regs_command): Remove functions.
3762 (sh_gdbarch_init): Don't set sh_show_regs.
3763 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3764 'info all-registers'.
3765 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3766 (sh64_show_regs): Remove functions.
3767 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3769 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3771 * configure.ac: Move development=true below AC_INIT.
3772 * configure: Regenerate.
3774 2012-06-05 Stan Shebs <stan@codesourcery.com>
3776 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3779 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3781 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3782 argument as ssize_t.
3783 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3784 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3785 * target.c (target_read_stack, target_write_memory)
3786 (target_write_raw_memory): Likewise.
3787 * target.h (target_read_stack, target_write_memory)
3788 (target_write_raw_memory): Likewise.
3790 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3792 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3793 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3794 * target.c (target_read_memory): Change LEN to ssize_t.
3795 * target.h (target_read_memory): Change LEN to ssize_t.
3797 2012-06-05 Pedro Alves <palves@redhat.com>
3801 * breakpoint.c (until_break_command): Only fetch the selected
3802 frame after decode_line_1.
3804 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3806 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3807 event breakpoint at _start, __start or main if a program
3808 interpreter is not found.
3810 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3812 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3814 * windows-tdep.c: #include "objfiles.h".
3815 (windows_iterate_over_objfiles_in_search_order): New function.
3816 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3817 iterate_over_objfiles_in_search_order gdbarch method to
3818 windows_iterate_over_objfiles_in_search_order.
3819 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3821 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3823 * gdbarch.sh: Add generation of
3824 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3825 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3826 (iterate_over_objfiles_in_search_order): New gdbarch method.
3827 * gdbarch.h, gdbarch.c: Regenerate.
3828 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3830 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3832 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3833 out of lookup_symbol_aux_symtabs.
3834 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3835 call to lookup_symbol_aux_objfile.
3836 (struct global_sym_lookup_data): New type.
3837 (lookup_symbol_global_iterator_cb): New function.
3838 (lookup_symbol_global): Search for symbol using
3839 gdbarch_iterate_over_objfiles_in_search_order and
3840 lookup_symbol_global_iterator_cb.
3841 * findvar.c (struct minsym_lookup_data): New type.
3842 (minsym_lookup_iterator_cb): New function.
3843 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3844 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3845 and minsym_lookup_iterator_cb.
3847 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3849 Revert the following patch:
3850 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3851 try locating the symbol in the symbol's own objfile first, before
3852 extending the search to all objfiles.
3853 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3854 out of lookup_symbol_aux_symtabs.
3855 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3856 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3857 Do not search EXCLUDE_OBJFILE.
3858 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3859 (lookup_symbol_global): Search for matches in the block's objfile
3860 first, before searching all other objfiles.
3862 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3864 * breakpoint.c (find_condition_and_thread): Stop parsing
3865 as soon as the first invalid keyword is found.
3867 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3869 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3871 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3873 * config/djgpp/djcheck.sh: Add copyright header.
3875 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3877 * copyright.py (update_files, main): Fix path to update-copyright
3880 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3882 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3883 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3884 for which a reminder to update by hand is printed.
3886 2012-06-04 Doug Evans <dje@google.com>
3888 * buildsym.c (make_blockvector): Add comment.
3890 2012-06-04 Pedro Alves <palves@redhat.com>
3892 * arch-utils.c (default_gdb_signal_from_target): Delete.
3893 * arch-utils.h (default_gdb_signal_from_target): Delete.
3894 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3895 gdbarch_gdb_signal_from_target_p.
3896 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3898 * gdbarch.h: Regenerate.
3899 * gdbarch.c: Regenerate.
3901 2012-06-04 Pedro Alves <palves@redhat.com>
3903 * gdbarch.sh (gdb_signal_from_target): Mention that the
3904 implementation of the method must be host independent.
3905 * gdbarch.h: Regenerate.
3907 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3909 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3911 (target_read_memory_bfd): New function.
3912 (symbol_file_add_from_memory): Use it.
3914 2012-06-03 Doug Evans <dje@google.com>
3916 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3918 (basic_lookup_transparent_type): Ditto.
3920 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3921 (ALL_PRIMARY_SYMTABS): Use it.
3922 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3923 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3924 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3925 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3926 (basic_lookup_transparent_type): Ditto.
3928 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3930 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3931 it to optimize resolution of demangled name.
3933 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 * configure.ac (development): Define new variable.
3936 Call AC_CHECK_LIB for mcheck if $development.
3937 (ERROR_ON_WARNING): Enable it by default only if $development.
3938 * config.in: Regenerate.
3939 * configure: Regenerate.
3941 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3943 * target.c (target_read_memory): Make LEN argument as size_t.
3944 * target.h (target_read_memory): Likewise.
3946 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3948 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3950 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3952 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3953 BookE interface for PowerPC server processors if not available
3954 in the Linux Kernel.
3956 2012-05-31 Keith Seitz <keiths@redhat.com>
3958 * linespec.c (decode_objc): Add cleanup to free
3960 (find_linespec_symbols): Add cleanup to free CLASSES.
3961 * symfile.c (find_separate_debug_file_by_debuglink): Add
3962 cleanup to free DEBUGLINK.
3963 * ui-out.c (clear_header_list): No need to check if
3964 HEADER_NEXT.COLHDR is NULL.
3965 Free HEADER_NEXT.COL_NAME.
3967 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3969 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3972 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3974 * configure.host (gdb_host_cpu): Handle tilegx*.
3975 (gdb_host): Handle tilegx-*-linux*.
3976 * tilegx-linux-nat.c: New file.
3977 * config/tilegx/linux.mh: New file.
3979 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3981 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3982 tilegx-linux-tdep.o.
3983 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3984 tilegx-linux-tdep.c.
3985 * configure.tgt: Handle tilegx-*-linux*.
3986 * tilegx-tdep.h: New file.
3987 * tilegx-tdep.c: New file.
3988 * tilegx-linux-tdep.c: New file.
3989 * regformats/reg-tilegx.dat: New file.
3991 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3993 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3994 accounting of hw watchpoints on ppc.
3996 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3998 * source.c (openp): Expand tilde in path entries.
4000 2012-05-29 Doug Evans <dje@google.com>
4002 * buildsym.c (block_compar): Fix comment.
4003 (end_symtab): Fix and clarify some comments.
4005 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4006 cleanup_undefined_types.
4007 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4008 All callers updated.
4010 2012-05-29 Tom Tromey <tromey@redhat.com>
4012 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4014 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4015 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4017 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4020 2012-05-29 Tristan Gingold <gingold@adacore.com>
4022 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4023 (struct darwin_info): ... New struct.
4024 (solib_darwin_pspace_data): New variable.
4025 (darwin_pspace_data_cleanup): New function.
4026 (get_darwin_info): Likewise.
4027 (darwin_dyld_version_ok, darwin_load_image_infos)
4028 (darwin_solib_get_all_image_info_addr_at_init)
4029 (darwin_solib_read_all_image_info_addr): Add info argument.
4031 (darwin_current_sos): Use per pspace structure.
4032 (darwin_solib_create_inferior_hook): Likewise.
4033 (darwin_clear_solib): Likewise.
4034 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4036 2012-05-28 Pedro Alves <palves@redhat.com>
4038 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4039 block that uses them. Clear ecss before handling each event.
4041 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4043 * solib-svr4.c (svr4_current_sos): New comment on
4044 svr4_current_sos_via_xfer_libraries fall back.
4046 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4048 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4049 it as a fallback for TYPE_IS_OPAQUE.
4050 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4051 symbols for lookup_symbol.
4053 2012-05-24 John Steele Scott <toojays@toojays.net>
4055 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4056 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4057 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4058 (check_producer): ... this new function, which also checks for ICC
4059 and caches the result.
4060 (producer_is_icc): New function.
4061 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4064 2012-05-24 Pedro Alves <palves@redhat.com>
4068 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4069 (default_gdb_signal_to_target): ... this. Add comment.
4070 (default_gdb_signal_from_host): Rename to ...
4071 (default_gdb_signal_from_target): ... this. Add comment.
4072 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4073 (default_gdb_signal_to_target): ... this.
4074 (default_gdb_signal_from_host): Rename to ...
4075 (default_gdb_signal_from_target): ... this.
4076 * corelow.c (core_open): Adjust to naming change. Replace comment.
4077 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4078 (gdb_signal_from_target): ... this. Adjust to
4079 default_gdb_signal_from_host naming change. Extend comment.
4080 (gdb_signal_to_host): Rename to ...
4081 (gdb_signal_to_target): ... this. Adjust to
4082 default_gdb_signal_to_host naming change.
4083 * gdbarch.h, gdbarch.c: Renegerate.
4085 2012-05-24 Pedro Alves <palves@redhat.com>
4089 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4091 2012-05-24 Pedro Alves <palves@redhat.com>
4095 Replace target_signal with gdb_signal throughout.
4097 2012-05-24 Pedro Alves <palves@redhat.com>
4101 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4102 string, instead of reusing the va_list argument.
4104 2012-05-24 Tom Tromey <tromey@redhat.com>
4106 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4109 2012-05-23 Doug Evans <dje@google.com>
4111 * symtab.c (search_symbols): Formatting fixes.
4112 (print_symbol_info): Formatting fixes.
4114 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4115 int64_t change to leb128 API.
4116 (read_encoded_value, decode_frame_entry_1): Ditto.
4117 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4118 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4119 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4120 (execute_stack_op): Ditto.
4121 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4122 (safe_read_uleb128, safe_read_sleb128): Ditto.
4123 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4124 (dwarf2_compile_expr_to_ax): Ditto.
4125 (locexpr_describe_location_piece): Ditto.
4126 (disassemble_dwarf_expression): Ditto.
4127 (locexpr_describe_location_1): Ditto.
4129 2012-05-23 Stan Shebs <stan@codesourcery.com>
4130 Kwok Cheung Yeung <kcy@codesourcery.com>
4132 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4133 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4134 (mi-cmd-info.o): New rule.
4135 * osdata.h (info_osdata_command): New declaration.
4136 * osdata.c (info_osdata_command): Change to non-static.
4137 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4138 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4139 * mi/mi-cmd-info.c: New file.
4141 2012-05-23 Doug Evans <dje@google.com>
4143 * symtab.c (search_symbols): Pass NULL for file_matcher to
4144 expand_symtabs_matching if there are no files to match.
4146 * gdbtypes.c (lookup_typename): Simplify.
4148 2012-05-23 Pedro Alves <palves@redhat.com>
4150 * arch-utils.h (default_target_signal_to_host): Delete.
4151 * arch-utils.c (default_target_signal_to_host): Delete.
4152 * gdbarch.sh (target_signal_to_host): Remove.
4153 * gdbarch.h, gdbarch.c: Regenerate.
4155 2012-05-22 Doug Evans <dje@google.com>
4157 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4159 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4160 (execute_cfa_program): Update to match API of leb128 functions.
4161 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4163 (read_unsigned_leb128, read_signed_leb128): Delete.
4164 (read_initial_length): Change type of buf argument to
4166 (read_encoded_value): Update to match API of leb128 functions.
4167 (decode_frame_entry): Change result to "const gdb_byte *", and
4168 similarly for "start" parameter.
4169 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4170 (dwarf2_build_frame_info): Change local frame_ptr to
4172 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4173 read_uleb128, read_sleb128. All callers updated.
4174 (safe_skip_leb128): New function.
4175 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4176 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4177 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4178 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4179 read_uleb128, read_sleb128.
4180 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4181 (execute_stack_op): Update to match API of leb128 functions.
4182 * dwarf2expr.h: #include "leb128.h".
4183 (read_uleb128, read_sleb128): Delete.
4184 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4185 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4186 * dwarf2loc.c (debug_loc_kind): New enum.
4187 (decode_debug_loc_addresses): New function.
4188 (decode_debug_loc_dwo_addresses): New function.
4189 (dwarf2_find_location_expression): Rewrite.
4190 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4191 (locexpr_describe_location_piece): Ditto.
4192 (disassemble_dwarf_expression): Ditto.
4193 (locexpr_describe_location_1): Ditto.
4194 (loclist_describe_location): Rewrite.
4195 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4196 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4197 (dwarf2_section_buffer_overflow_complaint): Renamed from
4198 dwarf2_macros_too_long_complaint. All callers updated.
4199 (skip_leb128): Delete.
4200 (init_cu_die_reader): Initialize reader->buffer_end.
4201 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4202 (skip_form_bytes): New arg buffer_end. All callers updated.
4203 Replace call to skip_leb128 with gdb_skip_leb128.
4204 (skip_unknown_opcode): New arg mac_end. All callers updated.
4205 (fill_in_loclist_baton): Initialize baton->from_dwo.
4207 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4209 * mips-linux-nat.c (mips_linux_read_description): Use a more
4210 verbose error message.
4212 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4214 * NEWS: Add MIPS/Linux DSP support.
4215 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4216 (SIGCONTEXT_DSPCTL): New macro.
4217 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4218 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4219 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4220 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4221 (N64_SIGCONTEXT_HI3): Likewise.
4222 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4223 (N64_SIGCONTEXT_LO3): Likewise.
4224 (N64_SIGCONTEXT_DSPCTL): Likewise.
4225 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4226 (mips_linux_o32_sigframe_init): Handle DSP registers.
4227 (mips_linux_n32n64_sigframe_init): Likewise.
4229 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4231 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4234 2012-05-22 Pedro Alves <palves@redhat.com>
4236 * target.h (store_waitstatus): Move declaration ...
4237 * inf-child.h (store_waitstatus): ... here.
4238 * target.c: Move inclusion of gdb_wait.h, and ...
4239 (store_waitstatus): ... this ...
4240 * inf-child.c: ... here.
4241 * linux-nat.c: Include inf-child.h.
4242 * rs6000-nat.c: Include inf-child.h.
4243 * spu-linux-nat.c: Include inf-child.h.
4245 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4247 * tracepoint.c (start_tracing): Add missing i18n markup.
4248 (stop_tracing, set_trace_user): Ditto.
4249 (set_trace_notes, set_trace_stop_notes): Ditto.
4251 2012-05-21 Tom Tromey <tromey@redhat.com>
4254 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4256 * value.h (value_cast_pointers): Update.
4257 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4258 (value_cast): Update.
4259 (update_search_result): New function.
4260 (do_search_struct_field): New, from search_struct_field. Check
4261 for ambiguous results.
4262 (search_struct_field): Rewrite.
4263 * infcall.c (value_arg_coerce): Update.
4264 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4265 value_cast_pointers.
4266 * ada-lang.c (ada_convert_actual): Update.
4268 2012-05-21 Tom Tromey <tromey@redhat.com>
4270 * macroexp.c (macro_stringify): Terminate the string.
4272 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4274 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4276 * auto-load.c (auto_load_expand_dir_vars): New function.
4277 (auto_load_safe_path_vec_update): Use it, remove the
4278 substitute_path_component call thanks to it.
4279 (auto_load_objfile_script): Remove the debug_file_directory processing.
4280 Use auto_load_expand_dir_vars, remove the substitute_path_component
4282 * configure: Regenerate.
4283 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4284 path. Escape $ also for $debugdir.
4285 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4286 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4288 2012-05-20 Doug Evans <dje@google.com>
4290 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4291 before use. Check for symtab->includes == NULL before scanning it.
4293 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4295 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4297 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4299 * NEWS: Add microMIPS support and "set mips compression",
4300 "show mips compression" commands.
4301 * mips-tdep.h (mips_isa): New enum.
4302 (gdbarch_tdep): Add mips_isa.
4303 (mips_pc_is_mips16): Update prototype.
4304 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4305 * mips-tdep.c (mips_compression_mips16): New variable.
4306 (mips_compression_micromips): Likewise.
4307 (mips_compression_strings): Likewise.
4308 (mips_compression_string): Likewise.
4309 (is_mips16_isa, is_micromips_isa): New functions.
4310 (is_mips16_addr): Rename to...
4311 (is_compact_addr): ... this.
4312 (unmake_mips16_addr): Likewise to...
4313 (unmake_compact_addr): ... this.
4314 (make_mips16_addr): Likewise to...
4315 (make_compact_addr): ... this.
4316 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4318 (mips_elf_make_msymbol_special): Handle microMIPS code.
4319 (msymbol_is_special): Rename to...
4320 (msymbol_is_mips16): ... this.
4321 (mips_make_symbol_special, mips_pc_is_mips16): Update
4323 (msymbol_is_mips, msymbol_is_micromips): New functions.
4324 (mips16_to_32_reg): Rename to...
4325 (mips_reg3_to_reg): ... this.
4326 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4327 (mips_pc_isa): Likewise.
4328 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4330 (mips_fetch_instruction): Pass return status instead of printing
4331 an error message if requested. Handle microMIPS code. Bail out
4333 (micromips_op): New macro.
4334 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4335 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4336 (b6s4_op, b7s3_reg): Likewise.
4337 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4338 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4339 (mips_insn_size): New function.
4340 (mips32_next_pc): Update mips_fetch_instruction call.
4341 (micromips_relative_offset7): New function.
4342 (micromips_relative_offset10): Likewise.
4343 (micromips_relative_offset16): Likewise.
4344 (micromips_pc_insn_size): Likewise.
4345 (micromips_bc1_pc): Likewise.
4346 (micromips_next_pc): Likewise.
4347 (unpack_mips16): Update mips_fetch_instruction call.
4348 (extended_mips16_next_pc): Update according to change to
4350 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4352 (mips16_scan_prologue): Update mips_fetch_instruction call.
4353 Update according to change to mips16_to_32_reg.
4354 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4355 (mips_insn16_frame_base_sniffer): Likewise.
4356 (micromips_decode_imm9): New function.
4357 (micromips_scan_prologue): Likewise.
4358 (mips_micro_frame_cache): Likewise.
4359 (mips_micro_frame_this_id): Likewise.
4360 (mips_micro_frame_prev_register): Likewise.
4361 (mips_micro_frame_sniffer): Likewise.
4362 (mips_micro_frame_unwind): New variable.
4363 (mips_micro_frame_base_address): New function.
4364 (mips_micro_frame_base): New variable.
4365 (mips_micro_frame_base_sniffer): New function.
4366 (mips32_scan_prologue): Update mips_fetch_instruction call.
4367 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4368 rather than for MIPS16.
4369 (mips_insn32_frame_base_sniffer): Likewise.
4370 (mips_addr_bits_remove): Handle microMIPS code.
4371 (deal_with_atomic_sequence): Rename to...
4372 (mips_deal_with_atomic_sequence): ... this. Update the type
4373 of the variable used to hold an instruction. Remove the ISA bit
4374 check. Update mips_fetch_instruction call.
4375 (micromips_deal_with_atomic_sequence): New function.
4376 (deal_with_atomic_sequence): Likewise.
4377 (mips_about_to_return): Handle microMIPS code. Update
4378 mips_fetch_instruction call.
4379 (heuristic_proc_start): Check for the standard MIPS ISA rather
4380 than for MIPS16. Update mips_pc_is_mips16 and
4381 mips_fetch_instruction calls. Handle microMIPS code.
4382 (mips_push_dummy_code): Handle microMIPS code.
4383 (mips_eabi_push_dummy_call): Likewise.
4384 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4385 (mips_o64_push_dummy_call): Handle microMIPS code.
4386 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4387 (is_delayed): Remove function.
4388 (mips_single_step_through_delay): Replace the call to is_delayed
4389 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4390 Handle microMIPS code.
4391 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4393 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4395 (micromips_in_function_epilogue_p): New function.
4396 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4398 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4400 (gdb_print_insn_mips): Likewise.
4401 (mips_breakpoint_from_pc): Likewise.
4402 (mips_remote_breakpoint_from_pc): New function.
4403 (mips32_instruction_has_delay_slot): Simplify making use of the
4404 updated mips_fetch_instruction interface.
4405 (micromips_instruction_has_delay_slot): New function.
4406 (mips16_instruction_has_delay_slot): Simplify making use of the
4407 updated mips_fetch_instruction interface.
4408 (mips_adjust_breakpoint_address): Check for the standard MIPS
4409 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4410 calls. Handle microMIPS code.
4411 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4412 (mips_skip_trampoline_code): Handle microMIPS code.
4413 (global_mips_compression): New function.
4414 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4415 file flags. Register the microMIPS remote breakpoint handler
4416 and heuristic frame unwinder.
4417 (show_mips_compression): New function.
4418 (_initialize_mips_tdep): Add the "set mips compression" and
4419 "show mips compression" commands.
4421 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4426 * amd64-darwin-tdep.c:
4427 * arm-symbian-tdep.c:
4431 * bfin-linux-tdep.c:
4438 * dwarf2-frame-tailcall.c:
4467 * microblaze-tdep.c:
4468 * mips-linux-tdep.c:
4476 * python/py-finishbreakpoint.c:
4477 * python/py-inferior.c:
4478 * python/py-infthread.c:
4482 * remote-m32r-sdi.c:
4486 * rs6000-aix-tdep.c:
4512 * amd64-darwin-tdep.c:
4513 * arm-symbian-tdep.c:
4514 * arm-tdep.c: Delete unused variables.
4516 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4518 Rename $ddir to $datadir.
4519 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4520 * auto-load.c (auto_load_safe_path_vec_update)
4521 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4522 * configure: Regenerate.
4523 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4524 Likewise. Remove the 'use $ddir' help string.
4526 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4528 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4529 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4531 2012-05-18 Tom Tromey <tromey@redhat.com>
4534 * valprint.h (struct value_print_options) <symbol_print>: New
4536 * valprint.c (user_print_options): Add default for symbol_print.
4537 (show_symbol_print): New function.
4538 (generic_val_print): Respect symbol_print.
4539 (_initialize_valprint): Add "print symbol" setting.
4540 * f-valprint.c (f_val_print): Respect symbol_print.
4541 * c-valprint.c (c_val_print): Respect symbol_print.
4543 * printcmd.c (print_address_symbolic): Return int. Ignore some
4545 (print_address_demangle): Return int.
4546 * defs.h: (print_address_symbolic): Return int.
4547 * value.h (print_address_demangle): Return int.
4549 2012-05-18 Tom Tromey <tromey@redhat.com>
4551 * valprint.c (val_print_string): Don't print leading space.
4552 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4553 print space before string or vtbl.
4554 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4556 * jv-valprint.c (java_value_print): Print space before string.
4557 * go-valprint.c (print_go_string): Print space before string.
4558 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4559 space before string.
4560 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4561 space before string or vtbl.
4562 * auxv.c (fprint_target_auxv): Print space after address.
4564 2012-05-18 Tom Tromey <tromey@redhat.com>
4566 * printcmd.c (print_address_demangle): Remove special case for 0.
4568 2012-05-18 Tom Tromey <tromey@redhat.com>
4570 * printcmd.c (print_address_demangle): Add 'opts' argument.
4571 * p-valprint.c (pascal_val_print): Update.
4572 * jv-valprint.c (java_val_print): Update.
4574 * valprint.c (generic_val_print): Update.
4575 (print_function_pointer_address): Add 'options' argument. Remove
4576 'addressprint' argument. Update.
4577 * m2-valprint.c (print_unpacked_pointer): Update.
4578 * gnu-v3-abi.c (print_one_vtable): Update.
4579 (gnuv3_print_method_ptr): Update.
4580 * f-valprint.c (f_val_print): Update.
4581 * cp-valprint.c (cp_print_value_fields): Update.
4582 * valprint.h (print_function_pointer_address): Update.
4583 * c-valprint.c (c_val_print): Update.
4585 2012-05-18 Tom Tromey <tromey@redhat.com>
4587 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4588 directly corresponding to the found psymtab.
4589 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4590 (dw2_find_pc_sect_symtab): Use it.
4591 * block.h (blockvector_contains_pc): Declare.
4592 * block.c (find_block_in_blockvector): New function.
4593 (blockvector_for_pc_sect): Use it.
4594 (blockvector_contains_pc): New function.
4596 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4598 * mips-tdep.h (mips_write_pc): New prototype.
4599 * mips-tdep.c (mips_write_pc): Make external, add description.
4600 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4603 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4605 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4607 (mips_unwind_pc, mips_write_pc): Likewise.
4608 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4611 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4613 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4614 proc_warn, proc_error, proc_get_status, proc_flags,
4615 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4616 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4617 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4618 proc_stop_process, proc_wait_for_stop, proc_run_process,
4619 proc_set_traced_signals, proc_set_traced_faults,
4620 proc_set_traced_sysentry, proc_set_traced_sysexit,
4621 proc_set_held_signals, proc_get_held_signals,
4622 proc_get_traced_signals, proc_get_traced_faults,
4623 proc_get_traced_sysentry, proc_get_traced_sysexit,
4624 proc_clear_current_fault, proc_set_current_signal,
4625 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4626 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4627 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4628 proc_get_current_thread, proc_get_current_thread,
4629 proc_get_current_thread, proc_update_threads,
4630 proc_update_threads, proc_update_threads, proc_update_threads,
4631 proc_iterate_over_threads, procfs_find_new_threads,
4632 procfs_pid_to_str): Make static. Remove advance declaration.
4633 (proc_cursig): Make static. Conditionalized defintion on
4634 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4635 (proc_syscall, proc_set_kill_on_last_close,
4636 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4637 proc_get_pending_signals, proc_get_signal_actions,
4638 proc_trace_signal, proc_ignore_signal): Delete.
4640 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4642 * coffread.c (cs_section_address): Passing proper argument for
4643 `bfd_get_section_vma'.
4644 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4645 `bfd_get_section_flags'.
4646 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4647 `bfd_get_section_vma'.
4649 2012-05-16 Tom Tromey <tromey@redhat.com>
4652 * macrotab.h: (macro_define_special): Declare.
4653 (enum macro_special_kind): New.
4654 (struct macro_definition) <argc, replacement>: Update comments.
4655 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4656 (macro_define_object_internal): New function.
4657 (macro_define_object): Use it.
4658 (macro_define_special): New function.
4659 (fixup_definition): New function.
4660 (macro_lookup_definition, foreach_macro_in_scope)
4661 (foreach_macro): Use fixup_definition.
4662 * macroexp.h (macro_stringify): Declare.
4663 * macroexp.c (free_buffer_return_text): New function.
4664 (stringify): Constify "arg".
4665 (macro_stringify): New function.
4666 * dwarf2read.c (macro_start_file): Call macro_define_special.
4668 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4669 Maciej W. Rozycki <macro@mips.com>
4671 * breakpoint.h (bp_location): Add related_address member.
4672 * inferior.h (get_return_value): Take a pointer to struct value
4673 instead of struct type for the function requested.
4674 * value.h (using_struct_return): Likewise.
4675 * gdbarch.sh (return_value): Take a pointer to struct value
4676 instead of struct type for the function requested.
4677 * breakpoint.c (set_breakpoint_location_function): Initialize
4678 related_address for bp_gnu_ifunc_resolver breakpoints.
4679 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4680 requested function's address to gdbarch_return_value.
4681 * eval.c (evaluate_subexp_standard): Pass the requested
4682 function's address to using_struct_return.
4683 * infcall.c (call_function_by_hand): Pass the requested
4684 function's address to using_struct_return and
4685 gdbarch_return_value.
4686 * infcmd.c (get_return_value): Take a pointer to struct value
4687 instead of struct type for the function requested.
4688 (print_return_value): Update accordingly.
4689 (finish_command_continuation): Likewise.
4690 * stack.c (return_command): Pass the requested function's
4691 address to using_struct_return and gdbarch_return_value.
4692 * value.c (using_struct_return): Take a pointer to struct value
4693 instead of struct type for the function requested. Pass the
4694 requested function's address to gdbarch_return_value.
4695 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4696 New function_value member, replacing function_type.
4697 (bpfinishpy_dealloc): Update accordingly.
4698 (bpfinishpy_pre_stop_hook): Likewise.
4699 (bpfinishpy_init): Likewise. Record the requested function's
4701 * mips-tdep.c (mips_fval_reg): New enum.
4702 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4703 words put in GP registers.
4704 (mips_o64_push_dummy_call): Update a comment.
4705 (mips_o32_return_value): Take a pointer to struct value instead
4706 of struct type for the function requested and use it to check if
4707 using the MIPS16 calling convention. Return the designated
4708 general purpose registers for floating-point values returned in
4710 (mips_o64_return_value): Likewise.
4711 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4712 (ppc_sysv_abi_broken_return_value): Likewise.
4713 (ppc64_sysv_abi_return_value): Likewise.
4714 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4715 value instead of struct type for the function requested.
4716 * amd64-tdep.c (amd64_return_value): Likewise.
4717 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4718 * arm-tdep.c (arm_return_value): Likewise.
4719 * avr-tdep.c (avr_return_value): Likewise.
4720 * bfin-tdep.c (bfin_return_value): Likewise.
4721 * cris-tdep.c (cris_return_value): Likewise.
4722 * frv-tdep.c (frv_return_value): Likewise.
4723 * h8300-tdep.c (h8300_return_value): Likewise.
4724 (h8300h_return_value): Likewise.
4725 * hppa-tdep.c (hppa32_return_value): Likewise.
4726 (hppa64_return_value): Likewise.
4727 * i386-tdep.c (i386_return_value): Likewise.
4728 * ia64-tdep.c (ia64_return_value): Likewise.
4729 * iq2000-tdep.c (iq2000_return_value): Likewise.
4730 * lm32-tdep.c (lm32_return_value): Likewise.
4731 * m32c-tdep.c (m32c_return_value): Likewise.
4732 * m32r-tdep.c (m32r_return_value): Likewise.
4733 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4734 * m68k-tdep.c (m68k_return_value): Likewise.
4735 (m68k_svr4_return_value): Likewise.
4736 * m88k-tdep.c (m88k_return_value): Likewise.
4737 * mep-tdep.c (mep_return_value): Likewise.
4738 * microblaze-tdep.c (microblaze_return_value): Likewise.
4739 * mn10300-tdep.c (mn10300_return_value): Likewise.
4740 * moxie-tdep.c (moxie_return_value): Likewise.
4741 * mt-tdep.c (mt_return_value): Likewise.
4742 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4743 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4744 (ppc_sysv_abi_broken_return_value): Likewise.
4745 (ppc64_sysv_abi_return_value): Likewise.
4746 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4747 * rl78-tdep.c (rl78_return_value): Likewise.
4748 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4749 * rx-tdep.c (rx_return_value): Likewise.
4750 * s390-tdep.c (s390_return_value): Likewise.
4751 * score-tdep.c (score_return_value): Likewise.
4752 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4753 (sh_return_value_fpu): Likewise.
4754 * sh64-tdep.c (sh64_return_value): Likewise.
4755 * sparc-tdep.c (sparc32_return_value): Likewise.
4756 * sparc64-tdep.c (sparc64_return_value): Likewise.
4757 * spu-tdep.c (spu_return_value): Likewise.
4758 * tic6x-tdep.c (tic6x_return_value): Likewise.
4759 * v850-tdep.c (v850_return_value): Likewise.
4760 * vax-tdep.c (vax_return_value): Likewise.
4761 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4762 * xtensa-tdep.c (xtensa_return_value): Likewise.
4763 * gdbarch.c: Regenerate.
4764 * gdbarch.h: Regenerate.
4766 2012-05-15 Tom Tromey <tromey@redhat.com>
4768 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4770 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4772 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4773 of command in two error message.
4775 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4777 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4779 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4781 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4783 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4785 * NEWS (show auto-load scripts-directory): Add forgotten command.
4787 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4789 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4792 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4794 * amd64-tdep.c: Include features/i386/x32.c and
4795 features/i386/x32-avx.c.
4796 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4797 initialize_tdesc_x32_avx.
4799 2012-05-14 Stan Shebs <stan@codesourcery.com>
4802 * breakpoint.h (enum bptype): New type bp_dprintf.
4803 (struct breakpoint): New field extra_string.
4804 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4805 (create_breakpoint): Add extra_string arg.
4806 * breakpoint.c (dprintf_breakpoint_ops): New.
4807 (is_breakpoint): Add bp_dprintf.
4808 (bpstat_what): Add dprintf case.
4809 (bptype_string): Ditto.
4810 (print_one_breakpoint_location): Ditto.
4811 (init_bp_location): Ditto.
4812 (bkpt_print_mention): Ditto.
4813 (dprintf_style_enums): New array.
4814 (dprintf_style): New global.
4815 (dprintf_function): New global.
4816 (dprintf_channel): New global.
4817 (update_dprintf_command_list): New function.
4818 (update_dprintf_commands): New function.
4819 (init_breakpoint_sal): Add extra_string argument, handle it.
4820 (create_breakpoint_sal): Add extra_string argument.
4821 (create_breakpoints_sal): Add extra_string argument, update callers.
4822 (find_condition_and_thread): Add extra argument.
4823 (create_breakpoint): Add extra_string argument, record it.
4824 (dprintf_command): New function.
4825 (break_command_1): Add arg to create_breakpoint call.
4826 (handle_gnu_v3_exceptions): Ditto.
4827 (trace_command): Ditto.
4828 (ftrace_command): Ditto.
4829 (strace_command): Ditto.
4830 (bkpt_print_mention): Add dprintf case.
4831 (create_breakpoint_sal_default): Add extra_string argument.
4832 (_initialize_breakpoint): Add new commands.
4833 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4834 * python/py-breakpoint.c (bppy_init): Ditto.
4835 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4837 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4839 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4841 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4843 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4846 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4848 Add a new function gdb.find_pc_line to the Python API.
4849 * NEWS (Python Scripting): Add entry about the new function.
4850 * python/python.c (gdbpy_find_pc_line): New function which
4851 implements gdb.find_pc_line.
4852 (GdbMethods): Add entry for the new function.
4854 2012-05-12 Pedro Alves <palves@redhat.com>
4856 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4857 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4859 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4861 * inferior.c: Include completer.h
4862 (initialize_inferiors): Set completer of add-inferior to
4865 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4867 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4868 gdbarch_ptr_bit for x32 core dump.
4870 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4872 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4873 and features/i386/x32-avx-linux.c.
4875 2012-05-11 Stan Shebs <stan@codesourcery.com>
4876 Kwok Cheung Yeung <kcy@codesourcery.com>
4878 * NEWS: Describe new info os commands.
4879 * common/linux-osdata.c (PID_T, TIME_T): Define.
4880 (MAX_PID_T_STRLEN): New.
4881 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4883 (command_from_pid): Add comment. Change to use PID_T.
4884 (commandline_from_pid): Change to use PID_T.
4885 (user_from_pid): Add comment.
4886 (get_process_owner): Add comment. Change to use PID_T and
4888 (get_number_of_cpu_cores): Add comment.
4889 (get_cores_used_by_process): Add comment. Change to use PID_T and
4891 (linux_xfer_osdata_processes): Change to use PID_T and
4893 (compare_processes): New function.
4894 (linux_xfer_osdata_processgroups): New function.
4895 (linux_xfer_osdata_threads): Change to use PID_T.
4896 (linux_xfer_osdata_fds): New function.
4897 (format_socket_state, print_sockets): New functions.
4898 (union socket_addr): New union.
4899 (linux_xfer_osdata_isockets): New function.
4900 (time_from_time_t, group_from_gid): New functions.
4901 (linux_xfer_osdata_shm): New function.
4902 (linux_xfer_osdata_sem): New function.
4903 (linux_xfer_osdata_msg): New function.
4904 (linux_xfer_osdata_modules): New function.
4905 (osdata_table): Add new entries.
4906 * common/buffer.c (buffer_xml_printf): Add support for long and
4907 long long format specifiers.
4909 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4911 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4912 (tdesc_x32_avx_linux): Likewise.
4914 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4916 Implement multi-component --with-auto-load-dir.
4917 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4919 (--with-auto-load-safe-path): Update the default value description.
4920 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4922 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4923 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4924 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4925 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4926 "set auto-load scripts-directory".
4927 * config.in: Regenerate.
4928 * configure: Regenerate.
4929 * configure.ac (--with-auto-load-dir): New configure option.
4930 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4932 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4934 Provide $ddir substitution for --with-auto-load-safe-path.
4935 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4937 * auto-load.c: Include observer.h.
4938 (auto_load_safe_path_vec_update): Call substitute_path_component for
4939 each component. New variable ddir_subst.
4940 (auto_load_gdb_datadir_changed): New function.
4941 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4942 AUTO_LOAD_SAFE_PATH. New comment.
4943 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4944 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4945 * config.in: Regenerate.
4946 * configure: Regenerate.
4947 * configure.ac (--auto-load-safe-path): Rename
4948 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4949 GDB_DATADIR/auto-load.
4950 * defs.h (substitute_path_component): New declaration.
4951 * top.c: Include observer.h.
4952 (set_gdb_datadir): New function.
4953 (init_main): Install it for "set data-directory".
4954 * utils.c (substitute_path_component): New function.
4956 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4958 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4959 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4960 DEBUG_FILE_DIRECTORY. Handle multiple components of
4961 DEBUG_FILE_DIRECTORY.
4963 2012-05-10 Tom Tromey <tromey@redhat.com>
4965 * dwarf2read.c (recursively_write_psymbols): New function.
4966 (write_psymtabs_to_index): Use it.
4968 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4970 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4971 (load_partial_comp_unit): Update.
4972 (queue_comp_unit): Add argument 'pretend_language'.
4973 (process_queue): Update.
4974 (psymtab_to_symtab_1): Skip dependencies that have a user.
4975 (load_partial_comp_unit_reader): Give meaning to the 'data'
4977 (load_full_comp_unit): Add 'pretend_language' argument.
4978 (process_full_comp_unit): Add 'pretend_language' argument. Set
4980 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4982 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4983 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4985 (prepare_one_comp_unit): Add 'pretend_language' argument.
4987 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4988 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4989 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4990 (dw2_do_instantiate_symtab): Check whether symtab was read in
4992 (dw2_instantiate_symtab): Add assertion. Call
4993 process_cu_includes.
4994 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4995 (partial_symtab_p): New typedef.
4996 (set_partial_user): New function.
4997 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4998 (scan_partial_symbols): Add imported CU to imported_symtabs.
4999 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5000 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5001 (get_symtab, recursively_compute_inclusions)
5002 (compute_symtab_includes, process_cu_includes)
5003 (process_imported_unit_die): New functions.
5004 (process_die) <DW_TAG_imported_unit>: New case.
5005 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5007 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5009 (struct partial_die_info) <locdesc>: Remove.
5011 (process_psymtab_comp_unit): Add 'read_partial' argument.
5013 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5014 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5015 (add_partial_symbol): Update.
5016 (process_die): Handle DW_TAG_partial_unit.
5017 (read_file_scope): Update comment.
5018 (load_partial_dies): Handle DW_TAG_imported_unit.
5019 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5020 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5022 2012-05-10 Tom Tromey <tromey@redhat.com>
5024 * cc-with-dwz.sh: New file.
5026 2012-05-10 Tom Tromey <tromey@redhat.com>
5028 * symtab.h (struct symtab) <includes, user>: New fields.
5029 * block.h (struct block_iterator) <d, idx, which>: New fields.
5030 * block.c (initialize_block_iterator, find_iterator_symtab)
5031 (block_iterator_step, block_iter_name_step)
5032 (block_iter_match_step): New functions.
5033 (block_iterator_first, block_iterator_next)
5034 (block_iter_name_first, block_iter_name_next)
5035 (block_iter_match_first, block_iter_match_next): Rewrite.
5036 (get_block_symtab): New function.
5038 2012-05-10 Tom Tromey <tromey@redhat.com>
5040 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5042 * jit.c (finalize_symtab): Use allocate_global_block,
5044 * buildsym.c (finish_block_internal): New function, from old
5046 (finish_block): Rewrite.
5047 (end_symtab): Use finish_block_internal, set_block_symtab.
5048 * block.h (struct global_block): New.
5049 (allocate_global_block, set_block_symtab): Declare.
5050 * block.c (allocate_global_block, set_block_symtab): New
5053 2012-05-10 Tom Tromey <tromey@redhat.com>
5055 * psymtab.c (partial_map_expand_apply): Add assertion.
5056 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5057 (psymtab_to_symtab): Find unshared psymtab.
5058 (dump_psymtab): Print including psymtabs.
5059 (recursively_search_psymtabs): New function.
5060 (expand_symtabs_matching_via_partial): Use it.
5061 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5063 (enum psymtab_search_status): New.
5065 2012-05-10 Tom Tromey <tromey@redhat.com>
5067 * tracepoint.c (scope_info): Update.
5068 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5069 (find_pc_sect_symtab, search_symbols)
5070 (default_make_symbol_completion_list_break_on)
5071 (make_file_symbol_completion_list): Update.
5072 * symmisc.c (dump_symtab_1): Update.
5073 * stack.c (print_frame_args, iterate_over_block_locals)
5074 (print_frame_labels, iterate_over_block_arg_vars): Update.
5075 * python/py-block.c (block_object) <dict>: Remove.
5077 <iter>: Change type.
5078 (blpy_iter): Update.
5079 (blpy_block_syms_iternext): Update.
5080 * psymtab.c (map_block): Use block iterators.
5081 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5082 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5083 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5084 * infrun.c (check_exception_resume): Update.
5085 * cp-support.c (make_symbol_overload_list_block): Update.
5086 * coffread.c (patch_opaque_types): Update.
5087 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5088 * block.h (struct block_iterator): New.
5089 (block_iterator_first, block_iterator_next, block_iter_name_first)
5090 (block_iter_name_next, block_iter_match_first)
5091 (block_iter_match_next): Declare.
5092 (ALL_BLOCK_SYMBOLS): Redefine.
5093 * block.c (block_iterator_first, block_iterator_next)
5094 (block_iter_name_first, block_iter_name_next)
5095 (block_iter_match_first, block_iter_match_next): New functions.
5096 * ada-lang.c (ada_add_block_symbols)
5097 (ada_make_symbol_completion_list): Use block iterator.
5099 2012-05-10 Tom Tromey <tromey@redhat.com>
5101 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5102 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5103 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5104 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5105 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5108 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5110 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5111 print-file-var-lib2.c, print-file-var-main.c and
5112 print-file-var.exp (located in gdb/testsuite/gdb.base).
5114 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5116 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5117 try locating the symbol in the symbol's own objfile first, before
5118 extending the search to all objfiles.
5119 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5120 out of lookup_symbol_aux_symtabs.
5121 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5122 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5123 Do not search EXCLUDE_OBJFILE.
5124 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5125 (lookup_symbol_global): Search for matches in the block's objfile
5126 first, before searching all other objfiles.
5128 2012-05-10 Tristan Gingold <gingold@adacore.com>
5130 * printcmd.c (set_command): Add pre/post inc/dec.
5132 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5134 * gdb.1: Document -ex option.
5136 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5138 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5139 * inferior.h (AT_SYMBOL): Delete.
5141 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5143 * mips-tdep.c (mips_push_dummy_code): New function.
5144 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5145 ON_STACK and install mips_push_dummy_code as our gdbarch
5146 push_dummy_code routine.
5148 2012-05-09 Pedro Alves <palves@redhat.com>
5150 * target.c (set_maintenance_target_async_permitted): Rename to ...
5151 (set_target_async_command): ... this.
5152 (show_maintenance_target_async_permitted): Rename to ...
5153 (show_target_async_command): ... this.
5154 (initialize_targets): Adjust.
5156 2012-05-08 Doug Evans <dje@google.com>
5158 * go-exp.y (classify_name): Add missing assignment of fields of
5161 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5163 Display the ">" prompt in interactive mode while reading canned
5164 commands, even when the current interpreter is MI.
5166 * interps.c (interp_set_temp): New function.
5168 * interps.h (interp_set_temp): Add prototype.
5170 * cli/cli-script.c (restore_interp): New cleanup function.
5171 (read_command_lines): Temporarily override the current interpreter
5172 with CLI and arrange for restoring the original one.
5174 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5176 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5178 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5180 * probe.c (parse_probes): Move conditional to check for
5181 debuginfo files from here...
5182 * stap-probe.c (stap_get_probes): ... to here.
5184 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5185 H.J. Lu <hongjiu.lu@intel.com>
5187 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5188 `movl %esp, %ebp' for the X32 ABI.
5190 2012-05-07 Tom Tromey <tromey@redhat.com>
5192 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5194 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5195 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5196 (dwarf_stack_op_name): Remove.
5197 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5198 (decode_locdesc): Use get_DW_OP_name.
5199 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5200 (dwarf2_compile_expr_to_ax): Likewise.
5201 (disassemble_dwarf_expression): Likewise.
5202 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5204 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5206 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5207 (sh_linux_sigtramp_cache): New function.
5208 (sh_linux_sigreturn_init): New function.
5209 (sh_linux_rt_sigreturn_init): New function.
5210 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5212 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5214 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5215 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5216 (sh_linux_init_abi): Add init calls to register new tramp_frame
5217 definitions under 32-bit SH, update comments.
5219 2012-05-07 Pedro Alves <palves@redhat.com>
5223 * amd64-linux-tdep.c: Include glibc-tdep.h.
5224 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5225 gdbarch_skip_solib_resolver callback.
5227 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5229 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5230 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5231 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5232 (add_auto_load_safe_path): Change the error message.
5233 (_initialize_auto_load): Change the "safe-path" help text.
5234 * configure: Regenerate
5235 * configure.ac (--without-auto-load-safe-path): Set
5236 WITH_AUTO_LOAD_SAFE_PATH to /.
5238 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5240 * stap-probe.h: Do not include unecessary `probe.h'.
5242 2012-05-05 Alan Modra <amodra@gmail.com>
5244 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5245 bfd_und_section_ptr.
5246 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5247 and bfd_com_section_ptr.
5249 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5251 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5253 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5255 * windows-nat.h (segment_register_p_ftype): New typedef.
5256 (windows_set_segment_register_p): Add declaration.
5257 * windows-nat.c (segment_register_p): New static global.
5258 (windows_set_segment_register_p): New function.
5259 (do_windows_fetch_inferior_registers): Add special handling
5260 for segment registers.
5261 * amd64-windows-nat.c: #include "amd64-tdep.h".
5262 (amd64_windows_segment_register_p): New function.
5263 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5264 * i386-windows-nat.c: #include "i386-tdep.h".
5265 (i386_windows_segment_register_p): New function.
5266 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5268 2012-05-04 Tristan Gingold <gingold@adacore.com>
5270 * printcmd.c (set_command): Emit a warning if the expression is not
5273 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5275 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5278 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5280 * stap-probe.c (stap_is_operator): Change declaration.
5281 (stap_get_opcode): Change return value.
5282 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5283 `stap_parse_argument_1'.
5285 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5287 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5290 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5292 Add two new methods global_block and static_block to gdb.Symtab
5294 * NEWS (Python scripting): Add entry about the new methods.
5295 * python/py-symtab.c (stpy_global_block): New function which
5296 implements the gdb.Symtab.global_block() method.
5297 (stpy_static_block): New function which implements the
5298 gdb.Symtab.static_block() method.
5299 (symtab_object_methods): Add entries for the two new methods.
5301 2012-05-03 Doug Evans <dje@google.com>
5303 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5306 2012-05-03 Yao Qi <yao@codesourcery.com>
5308 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5310 (i386_process_record): Ditto.
5312 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5314 * infcall.c (unwind_on_signal_p): Make static.
5316 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5318 * sol-thread.c (solaris_pid_to_str): Make static.
5319 (_initialize_sol_thread): Add prototype.
5321 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5323 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5325 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5327 * MAINTAINERS: Remove myself.
5329 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5331 Fix --without-auto-load-safe-path for MS-Windows host platform.
5332 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5334 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5336 * gdb_curses.h: Undefine KEY_EVENT before including curses
5337 headers. Move "#undef MOUSE_MOVED" before any curses header
5340 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5342 * features/i386/i386-mmx-linux.c: Regenerate.
5343 * features/rs6000/powerpc-32.c: Likewise.
5344 * features/rs6000/powerpc-32l.c: Likewise.
5345 * features/rs6000/powerpc-403.c: Likewise.
5346 * features/rs6000/powerpc-403gc.c: Likewise.
5347 * features/rs6000/powerpc-405.c: Likewise.
5348 * features/rs6000/powerpc-505.c: Likewise.
5349 * features/rs6000/powerpc-601.c: Likewise.
5350 * features/rs6000/powerpc-602.c: Likewise.
5351 * features/rs6000/powerpc-603.c: Likewise.
5352 * features/rs6000/powerpc-604.c: Likewise.
5353 * features/rs6000/powerpc-64.c: Likewise.
5354 * features/rs6000/powerpc-64l.c: Likewise.
5355 * features/rs6000/powerpc-750.c: Likewise.
5356 * features/rs6000/powerpc-860.c: Likewise.
5357 * features/rs6000/powerpc-e500.c: Likewise.
5358 * features/rs6000/powerpc-e500l.c: Likewise.
5359 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5360 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5361 * features/rs6000/rs6000.c: Likewise.
5363 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5365 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5367 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5368 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5369 (stap_parse_argument) <e>: Likewise.
5370 (handle_stap_probe) <byte_order>: Likewise.
5372 2012-04-30 Doug Evans <dje@google.com>
5374 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5375 init_and_read_dies_worker. All callers updated.
5376 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5377 replaced with init_cutu_and_read_dies.
5378 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5379 (find_partial_die): Remove FIXME. Don't free current CU.
5381 2012-04-30 Sterling Augustine <saugustine@google.com>
5383 * contrib: New directory.
5384 * contrib/test_pubnames_and_indexes.py: New file.
5386 2012-04-30 Doug Evans <dje@google.com>
5388 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5389 All callers updated.
5390 (init_cu_die_reader): Verify the section is non-empty.
5391 (dwarf_decode_line_header): Don't dereference section->asection
5392 until we know the section is present.
5394 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5396 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5399 2012-04-29 Yao Qi <yao@codesourcery.com>
5401 * gdb-code-style.el: New hook gdb-markup-hook
5402 and gdb-comment-hook.
5404 2012-04-28 Doug Evans <dje@google.com>
5406 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5407 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5409 * symfile.h (dwarf2_debug_sections): New member addr.
5410 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5411 (ctx_no_get_addr_index): New function.
5412 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5413 (ctx_no_get_addr_index): Declare.
5414 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5415 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5416 (dwarf_expr_ctx_funcs): Update.
5417 (needs_get_addr_index): New function.
5418 (needs_frame_ctx_funcs): Update.
5419 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5420 * dwarf2read.c: #include "gdbcore.h".
5421 (dwarf2_per_objfile): New members addr, dwo_files.
5422 (dwarf2_elf_names): Add entry for addr.
5423 (struct dwo_section_names): New type.
5424 (dwo_section_names): New static global.
5425 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5426 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5427 old debug_types_section member updated to use this.
5428 Rename member debug_types_section to info_or_types_section,
5430 (signatured_type): Rename member type_offset to type_offset_in_tu,
5431 all uses updated. New member type_offset_in_section.
5432 (struct dwo_sections): New type.
5433 (struct dwo_unit): New type.
5434 (struct dwo_file): New type.
5435 (die_reader_specs): New member dwo_file.
5436 (dwarf2_locate_sections): Watch for .debug_addr.
5437 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5438 (dwarf2_read_section): Get bfd of section from bfd's asection,
5440 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5441 (create_signatured_type_table_from_index): Initialize
5442 sig_type->info_or_types_section.
5443 (dw2_get_file_names): Statement lists for type units with DWO files
5444 live in the DWO file.
5445 (create_debug_types_hash_table): New function.
5446 (create_all_type_units): Rewrite.
5447 (init_cu_die_reader): New arg dwo_file, all callers updated.
5448 (init_and_read_dies_worker): Get section from
5449 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5450 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5451 continue reading the CU/TU from there.
5452 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5453 updated. Get section from this_cu->info_or_types_section.
5454 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5455 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5456 DW_FORM_GNU_str_index.
5457 (hash_dwo_file, eq_dwo_file): New functions.
5458 (allocate_dwo_file_hash_table): New function.
5459 (hash_dwo_unit, eq_dwo_unit): New functions.
5460 (allocate_dwo_unit_table): New function.
5461 (dwarf2_locate_dwo_sections): New function.
5462 (struct create_dwo_info_table_data): New type.
5463 (create_debug_info_hash_table_reader): New function.
5464 (create_debug_info_hash_table): New function.
5465 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5466 (lookup_dwo_file): New function.
5467 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5468 (free_dwo_file, free_dwo_file_cleanup): New functions.
5469 (free_dwo_file_from_slot, free_dwo_files): New functions.
5470 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5471 (dwarf2_record_block_ranges): Ditto.
5472 (read_partial_die): Ditto.
5473 (process_enumeration_scope): Update to use type_offset_in_section.
5474 (read_full_die_1): New function.
5475 (read_full_die): Rewrite.
5476 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5477 DW_FORM_GNU_str_index.
5478 (read_addr_index_1, read_addr_index): New functions.
5479 (read_addr_index_from_leb128): New function.
5480 (struct dwarf2_read_addr_index_data): New type.
5481 (dwarf2_read_addr_index_reader): New function.
5482 (dwarf2_read_addr_index): New function.
5483 (read_str_index): New function.
5484 (leb128_size): New function.
5485 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5486 If processing a type unit from a DWO file, get the line section
5488 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5489 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5490 DW_FORM_GNU_str_index.
5491 (lookup_die_type): Check whether section offset of type's die is
5492 known before looking it up. Remove assert. Condition can
5493 legimately happen for inter-cu type references.
5494 (dwarf_attr_name): Handle Fission attributes.
5495 (dwarf_form_name): Handle Fission forms.
5496 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5497 DW_FORM_GNU_str_index.
5498 (follow_die_sig): Update to use type_offset_in_section.
5499 (decode_locdesc): New case DW_OP_GNU_addr_index.
5500 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5501 DW_FORM_GNU_str_index.
5502 (cu_debug_loc_section): New function.
5503 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5504 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5505 Free DWO files if present.
5506 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5508 Refactor DIE reading.
5509 * dwarf2read.c (dwarf2_per_objfile): Replace members
5510 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5511 (die_reader_specs): New member "die_section". Temporarily make
5512 member "buffer" non-const, pending constifying all info_ptr uses.
5513 (die_reader_func_ftype): New typedef.
5514 (dw2_get_file_names_reader): New function.
5515 (dw2_get_file_names): Rewrite.
5516 (read_and_check_type_unit_head): Rename arg type_offset to
5518 (create_all_type_units): Improve debugging message.
5519 Improve dummy type unit check.
5520 (init_cu_die_reader): New arg "section". All callers updated.
5521 (init_and_read_dies_worker): New function.
5522 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5523 (init_cutu_and_read_dies_no_follow): New function.
5524 (init_cutu_and_read_dies_simple): New function.
5525 (process_psymtab_comp_unit_reader): New function.
5526 (process_psymtab_comp_unit): Delete args section,
5527 is_debug_types_section. Rewrite. All callers updated.
5528 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5529 All callers updated. Rewrite.
5530 (load_partial_comp_unit_reader): New function.
5531 (load_partial_comp_unit): Rewrite.
5532 (skip_children): New arg reader. Delete args buffer, cu.
5533 All callers updated.
5534 (skip_one_die): New arg reader. Delete args buffer, cu.
5535 All callers updated.
5536 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5537 All callers updated.
5538 (load_full_comp_unit_reader): New function.
5539 (load_full_comp_unit): Rewrite.
5540 (read_comp_unit): Delete.
5541 (read_die_and_children_1): Delete, contents moved ...
5542 (read_die_and_children): ... here.
5543 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5544 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5545 All callers updated.
5546 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5547 All callers updated.
5548 (find_partial_die): Rewrite load_all_dies support.
5549 (read_attribute_value): New arg reader. Delete args abfd, cu.
5550 All callers updated.
5551 (read_attribute): New arg reader. Delete args abfd, cu.
5552 All callers updated.
5553 (load_full_type_unit): Add assert.
5554 (read_signatured_type_reader): New function.
5555 (read_signatured_type): Rewrite.
5556 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5557 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5558 All callers updated. Set per_cu->cu = NULL after freeing it.
5559 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5560 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5561 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5562 (set_die_type): Update.
5563 (get_die_type_at_offset): Update.
5564 (read_file_scope): Call prepare_one_comp_unit.
5565 (read_type_unit_scope): Ditto.
5566 (prepare_one_comp_unit): Set producer if present.
5568 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5570 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5571 gettext function on `error'.
5573 2012-04-27 Doug Evans <dje@google.com>
5575 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5578 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5579 Tom Tromey <tromey@redhat.com>
5581 * breakpoint.c (struct breakpoint_objfile_data)
5582 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5583 <exception_probes>: New fields.
5584 (free_breakpoint_probes): New function.
5585 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5586 `_Unwind_DebugHook'.
5587 (create_exception_master_breakpoint): Likewise.
5588 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5589 * infrun.c: Including necessary header files for handling SystemTap
5591 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5592 via SystemTap probes.
5593 (check_exception_resume): Remove `func' argument. Handle exception
5594 unwinding breakpoint set via a SystemTap probe.
5595 (insert_exception_resume_from_probe): New function.
5597 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5598 Tom Tromey <tromey@redhat.com>
5599 Jan Kratochvil <jan.kratochvil@redhat.com>
5601 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5602 (COMMON_OBS): Likewise.
5603 (HFILES_NO_SRCDIR): Add `probe'.
5604 * NEWS: Mention support for static and SystemTap probes.
5605 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5606 SystemTap probes' arguments parser.
5607 * arm-linux-tdep.c: Including headers needed to perform the parsing
5608 of SystemTap probes' arguments.
5609 (arm_stap_is_single_operand): New function.
5610 (arm_stap_parse_special_token): Likewise.
5611 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5612 probes' arguments parser.
5613 * ax-gdb.c (require_rvalue): Removing static declaration.
5614 (gen_expr): Likewise.
5615 * ax-gdb.h (gen_expr): Declaring function.
5616 (require_rvalue): Likewise.
5617 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5618 (bkpt_probe_breakpoint_ops): New variable.
5619 (momentary_breakpoint_from_master): Set the `probe' value.
5620 (add_location_to_breakpoint): Likewise.
5621 (break_command_1): Using proper breakpoint_ops according to the
5622 argument passed by the user in the command line.
5623 (bkpt_probe_insert_location): New function.
5624 (bkpt_probe_remove_location): Likewise.
5625 (bkpt_probe_create_sals_from_address): Likewise.
5626 (bkpt_probe_decode_linespec): Likewise.
5627 (tracepoint_probe_create_sals_from_address): Likewise.
5628 (tracepoint_probe_decode_linespec): Likewise.
5629 (tracepoint_probe_breakpoint_ops): New variable.
5630 (trace_command): Using proper breakpoint_ops according to the
5631 argument passed by the user in the command line.
5632 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5633 static probes on breakpoints and tracepoints.
5634 * breakpoint.h (struct bp_location) <probe>: New field.
5635 * cli-utils.c (skip_spaces_const): New function.
5636 (extract_arg): Likewise.
5637 * cli-utils.h (skip_spaces_const): Likewise.
5638 (extract_arg): Likewise.
5639 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5640 * configure.ac: Append `stap-probe.o' to be generated when ELF
5642 * configure: Regenerate.
5643 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5644 * elfread.c: Include `probe.h' and `arch-utils.h'.
5645 (probe_key): New variable.
5646 (elf_get_probes): New function.
5647 (elf_get_probe_argument_count): Likewise.
5648 (elf_evaluate_probe_argument): Likewise.
5649 (elf_compile_to_ax): Likewise.
5650 (elf_symfile_relocate_probe): Likewise.
5651 (stap_probe_key_free): Likewise.
5652 (elf_probe_fns): New variable.
5653 (elf_sym_fns): Add `sym_probe_fns' value.
5654 (elf_sym_fns_lazy_psyms): Likewise.
5655 (elf_sym_fns_gdb_index): Likewise.
5656 (_initialize_elfread): Initialize objfile cache for static
5658 * gdb_vecs.h (struct probe): New forward declaration.
5659 (probe_p): New VEC declaration.
5660 * gdbarch.c: Regenerate.
5661 * gdbarch.h: Regenerate.
5662 * gdbarch.sh (stap_integer_prefix): New variable.
5663 (stap_integer_suffix): Likewise.
5664 (stap_register_prefix): Likewise.
5665 (stap_register_suffix): Likewise.
5666 (stap_register_indirection_prefix): Likewise.
5667 (stap_register_indirection_suffix): Likewise.
5668 (stap_gdb_register_prefix): Likewise.
5669 (stap_gdb_register_suffix): Likewise.
5670 (stap_is_single_operand): New function.
5671 (stap_parse_special_token): Likewise.
5672 (struct stap_parse_info): Forward declaration.
5673 * i386-tdep.c: Including headers needed to perform the parsing
5674 of SystemTap probes' arguments.
5675 (i386_stap_is_single_operand): New function.
5676 (i386_stap_parse_special_token): Likewise.
5677 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5678 probes' arguments parser.
5679 * i386-tdep.h (i386_stap_is_single_operand): New function.
5680 (i386_stap_parse_special_token): Likewise.
5681 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5682 * mipsread.c (ecoff_sym_fns): Likewise.
5683 * objfiles.c (objfile_relocate1): Support relocation for static
5685 * parse.c (prefixify_expression): Remove static declaration.
5686 (initialize_expout): Likewise.
5687 (reallocate_expout): Likewise.
5688 * parser-defs.h (initialize_expout): Declare function.
5689 (reallocate_expout): Likewise.
5690 (prefixify_expression): Likewise.
5691 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5692 of SystemTap probes' arguments.
5693 (ppc_stap_is_single_operand): New function.
5694 (ppc_stap_parse_special_token): Likewise.
5695 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5696 probes' arguments parser.
5697 * probe.c: New file, for generic statically defined probe support.
5698 * probe.h: Likewise.
5699 * s390-tdep.c: Including headers needed to perform the parsing of
5700 SystemTap probes' arguments.
5701 (s390_stap_is_single_operand): New function.
5702 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5703 probes' arguments parser.
5704 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5705 * stap-probe.c: New file, for SystemTap probe support.
5706 * stap-probe.h: Likewise.
5707 * symfile.h: Include `gdb_vecs.h'.
5708 (struct sym_probe_fns): New struct.
5709 (struct sym_fns) <sym_probe_fns>: New field.
5710 * symtab.c (init_sal): Initialize `probe' field.
5711 * symtab.h (struct probe): Forward declaration.
5712 (struct symtab_and_line) <probe>: New field.
5713 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5715 (stop_tracing): Likewise.
5716 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5718 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5719 Tom Tromey <tromey@redhat.com>
5721 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5722 and to compile agent expressions.
5723 * infrun.c (siginfo_make_value): New argument `ignore'.
5724 (siginfo_funcs): New struct.
5725 (_initialize_infrun): New argument when calling
5726 `create_internalvar_type_lazy'.
5727 * thread.c (thread_id_make_value): New argument `ignore'.
5728 (thread_funcs): New struct.
5729 (_initialize_thread): New argument when calling
5730 `create_internalvar_type_lazy'.
5731 * tracepoint.c (sdata_make_value): New argument `ignore'.
5732 (sdata_funcs): New struct.
5733 (_initialize_tracepoint): New argument when calling
5734 `create_internalvar_type_lazy'.
5735 * value.c (make_value): New struct.
5736 (create_internalvar_type_lazy): New argument `data'.
5737 (compile_internalvar_to_ax): New function.
5738 (value_of_internalvar): Properly handling `make_value' case.
5739 (clear_internalvar): Likewise.
5740 (show_convenience): Adding `TRY_CATCH' block.
5741 * value.h (internalvar_make_value): Delete, replace by...
5742 (struct internalvar_funcs): ... this.
5743 (create_internalvar_type_lazy) <fun>: Delete argument.
5744 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5745 (compile_internalvar_to_ax): New function.
5746 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5747 (tlb_funcs): New struct.
5748 (_initialize_windows_tdep): New argument when calling
5749 `create_internalvar_type_lazy'.
5751 2012-04-27 Mark Wielaard <mjw@redhat.com>
5753 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5754 see whether it is an address or a constant offset from DW_AT_low_pc.
5755 (dwarf2_record_block_ranges): Likewise.
5756 (read_partial_die): Likewise.
5758 2012-04-26 Mark Wielaard <mjw@redhat.com>
5760 * MAINTAINERS (Write After Approval): Add myself to the list.
5762 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5764 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5765 (proc_prettyprint_signal): Likewise.
5766 (proc_prettyprint_faultset): Likewise.
5767 (proc_prettyprint_fault): Likewise.
5768 (proc_prettyprint_actionset): Likewise.
5769 (proc_prettyprint_flags): Move to new proc-flags.c section.
5770 (proc_prettyfprint_flags): New prototype.
5771 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5772 (proc_syscall, proc_cursig): Likewise.
5773 (proc_set_kill_on_last_close): Likewise.
5774 (proc_unset_kill_on_last_close): Likewise.
5775 (proc_set_watchpoint): Make static.
5776 (proc_delete_dead_threads): Likewise.
5777 (procfs_set_watchpoint): Likewise.
5778 (_initialize_procfs): Add prototype.
5779 * proc-events.c: Include proc-utils.h.
5780 (init_syscall_table): Make static.
5781 * proc-api.c (_initialize_proc_api): Add prototype.
5782 * proc-flags.c: Include proc-utils.h.
5784 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5786 * configure.ac: Add AC_ARG_PROGRAM.
5787 * configure: Regenerate.
5789 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5791 Fix DW_AT_lower_bound defaults for DWARF-4+.
5792 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5793 high. New variable low_default_is_valid. Implement DWARF-4+
5794 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5795 no default by the DWARF standard.
5797 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5798 Maciej W. Rozycki <macro@codesourcery.com>
5800 * infrun.c (handle_inferior_event): Move the check for return
5801 trampolines ahead of the check for function trampolines.
5802 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5803 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5804 (mips_str_mips16_ret_stub): Likewise.
5805 (mips_str_call_fp_stub): Likewise.
5806 (mips_str_call_stub): Likewise.
5807 (mips_str_fn_stub): Likewise.
5808 (mips_str_pic): Likewise.
5809 (mips_in_frame_stub): New function.
5810 (mips_unwind_pc): Return the return address rather than the PC
5811 if the PC of an intermediate frame is inside a call thunk.
5812 (mips_is_stub_suffix): New function.
5813 (mips_is_stub_mode): Likewise.
5814 (mips_get_mips16_fn_stub_pc): Likewise.
5815 (mips_skip_mips16_trampoline_code): Update to handle all the
5816 currently generated stub types. Don't recurse into __fn_stub
5817 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5818 Use cooked register accesses.
5819 (mips_in_return_stub): Reintroduce function.
5820 (mips_skip_trampoline_code): Traverse trampolines recursively.
5821 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5823 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5827 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5829 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5830 * features/arm-with-m-vfp-d16.xml: New file. Describes
5831 Cortex-M with VFPv4-sp-d16 FPU register layout.
5832 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5833 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5834 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5835 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5836 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5838 2012-04-25 Doug Evans <dje@google.com>
5840 * cli/cli-decode.c (print_doc_line): Use stream instead of
5843 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5845 * features/arm-with-iwmmxt.c: Regenerate.
5846 * features/arm-with-m-fpa-layout.c: Likewise.
5847 * features/arm-with-m.c: Likewise.
5848 * features/arm-with-neon.c: Likewise.
5849 * features/arm-with-vfpv2.c: Likewise.
5850 * features/arm-with-vfpv3.c: Likewise.
5851 * features/mips-dsp-linux.c: Likewise.
5852 * features/mips-linux.c: Likewise.
5853 * features/mips64-dsp-linux.c: Likewise.
5854 * features/mips64-linux.c: Likewise.
5855 * features/s390-linux32.c: Likewise.
5856 * features/s390-linux32v1.c: Likewise.
5857 * features/s390-linux32v2.c: Likewise.
5858 * features/s390-linux64.c: Likewise.
5859 * features/s390-linux64v1.c: Likewise.
5860 * features/s390-linux64v2.c: Likewise.
5861 * features/s390x-linux64.c: Likewise.
5862 * features/s390x-linux64v1.c: Likewise.
5863 * features/s390x-linux64v2.c: Likewise.
5864 * features/tic6x-c62x-linux.c: Likewise.
5865 * features/tic6x-c62x.c: Likewise.
5866 * features/tic6x-c64x-linux.c: Likewise.
5867 * features/tic6x-c64x.c: Likewise.
5868 * features/tic6x-c64xp-linux.c: Likewise.
5869 * features/tic6x-c64xp.c: Likewise.
5870 * target-descriptions.c: Only generate `field_type' and `type'
5871 variables when needed.
5873 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5875 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5877 2012-04-25 Doug Evans <dje@google.com>
5879 Initial pass at Go language support.
5881 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5883 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5884 (YYFILES): Add go-exp.c.
5885 (YYOBJ): Add go-exp.o.
5886 (local-maintainer-clean): Delete go-exp.c.
5887 * defs.h (enum language): Add language_go.
5888 * dwarf2read.c: #include "go-lang.h".
5889 (fixup_go_packaging): New function.
5890 (process_full_comp_unit): Call it when processing Go CUs.
5891 (dwarf2_physname): Add Go support.
5892 (read_file_scope): Handle missing language spec for GNU Go.
5893 (set_cu_language): Handle DW_LANG_Go.
5894 * go-exp.y: New file.
5895 * go-lang.h: New file.
5896 * go-lang.c: New file.
5897 * go-typeprint.c: New file.
5898 * go-valprint.c: New file.
5899 * symtab.c: #include "go-lang.h".
5900 (symbol_set_language): Handle language_go.
5901 (symbol_find_demangled_name, symbol_set_names): Ditto.
5902 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5904 2012-04-24 Jim Meyering <meyering@redhat.com>
5906 avoid a few strncpy-induced buffer overruns
5907 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5908 fname and psargs before trying to concatenate.
5909 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5910 "name" before applying strchr.
5912 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5914 * CONTRIBUTE: Use unified diff instead of context diff when
5917 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5919 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5920 code. Handle JR.HB correctly.
5922 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5925 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5926 with the other MIPS16 helpers.
5928 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5930 * observer.sh: Conditionally declare `args', thus cleaning up
5931 unused instances of this variable.
5933 2012-04-24 Yao Qi <yao@codesourcery.com>
5935 Revert this patch to allow breakpoint always-inserted
5937 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5938 * breakpoint.c: Include record.h.
5939 (breakpoints_always_inserted_mode): Return false when the record
5942 * breakpoint.c (iterate_over_bp_locations): New.
5943 * breakpoint.h: Declare.
5944 New typedef walk_bp_location_callback.
5945 * record.c (record_open): Call record_init_record_breakpoints.
5946 (record_sync_record_breakpoints): New.
5947 (record_init_record_breakpoints): New.
5948 * NEWS: Mention supporting breakpoint always-inserted mode in
5951 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5953 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5956 2012-04-24 Yao Qi <yao@codesourcery.com>
5958 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5959 (is_catchpoint): ... it.
5960 (print_one_breakpoint_location): Caller update.
5961 * breakpoint.h: Update declaration.
5963 2012-04-23 David S. Miller <davem@davemloft.net>
5965 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5967 2012-04-23 Tom Tromey <tromey@redhat.com>
5969 * buildsym.c (add_free_pendings): Remove.
5970 * buildsym.h (add_free_pendings): Remove.
5972 2012-04-23 Doug Evans <dje@google.com>
5974 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5975 attr.u.unsnd instead of attr.u.addr.
5976 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5977 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5979 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5980 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5982 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5984 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5986 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5987 (mips_o32_return_value): Likewise.
5988 (mips_o64_return_value): Likewise.
5990 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5992 * ada-lang.c (ada_evaluate_subexp): Add cases for
5993 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5994 their treatment in eval.c.
5996 2012-04-21 David S. Miller <davem@davemloft.net>
5998 * sparc-tdep.c (X_DISP10): Define.
5999 (sparc_analyze_control_transfer): Handle compare-and-branch.
6001 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6003 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6004 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6006 2012-04-20 Nigel Stephens <nigel@mips.com>
6007 Maciej W. Rozycki <macro@codesourcery.com>
6009 * mips-tdep.c (mips_float_register_p): New function.
6010 (mips_convert_register_float_case_p): Use mips_float_register_p.
6011 (mips_register_type): Likewise.
6012 (mips_print_register): Likewise.
6013 (print_gp_register_row): Likewise.
6014 (mips_print_registers_info): Likewise.
6016 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6018 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6021 2012-04-20 Andrew Pinski <apinski@cavium.com>
6023 * MAINTAINERS (Write After Approval): Add myself to the list.
6025 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6027 * MAINTAINERS: Update my e-mail address.
6029 2012-04-20 Pedro Alves <palves@redhat.com>
6031 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6033 * configure: Regenerate.
6035 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6037 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6039 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6041 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6043 Fix compilation compatibility with python-2.4
6044 * python/py-type.c (convert_field): Cast ADDRSTRING for
6045 PyObject_SetAttrString as non-const. New comment.
6047 2012-04-19 Tom Tromey <tromey@redhat.com>
6049 * top.c (quit_target): Use all_cleanups.
6050 * main.c (captured_command_loop): Use all_cleanups.
6051 * exceptions.c (throw_exception): Use all_cleanups.
6053 2012-04-19 Pedro Alves <palves@redhat.com>
6055 * Makefile.in (GNULIB_BUILDDIR): New.
6056 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6057 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6058 (CLEANDIRS). Remove gnulib/import.
6059 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6061 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6062 (gnulib/import/Makefile): Replace gnulib/import with
6063 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6064 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6065 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6066 acx_configure_dir.m4.
6067 * acinclude.m4: Include acx_configure_dir.m4.
6068 * acx_configure_dir.m4: New file.
6069 * aclocal.m4: Regenerate.
6070 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6071 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6072 (GNULIB): New variable.
6073 (GNULIB_STDINT_H): Adjust.
6074 (AC_OUTPUT): Don't output gnulib/Makefile.
6075 * gdb/defs.h: Include build-gnulib/config.h.
6076 * aclocal.m4: Regenerate.
6077 * config.in: Regenerate.
6078 * configure: Regenerate.
6080 * gnulib/Makefile.in: New file.
6081 * gnulib/configure.ac: New file.
6082 * gnulib/aclocal.m4: New file.
6083 * gnulib/config.in: New file.
6084 * gnulib/configure: New file.
6085 * gnulib/: Re-run gnulib-tool to adjust.
6087 2012-04-19 Doug Evans <dje@google.com>
6089 * cleanups.h (struct cleanup): Move to cleanups.c.
6090 (make_cleanup_dtor_ftype): New typedef.
6091 (make_cleanup_dtor): Use it.
6092 (ALL_CLEANUPS): Replace with ...
6093 (all_cleanups): ... this. Declare. All uses updated.
6094 * cleanups.c: #include "gdb_assert.h".
6095 (sentinel_cleanup): New static global.
6096 (SENTINEL_CLEANUP): Define.
6097 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6098 (make_my_cleanup2): Assert result is non-NULL.
6099 (all_cleanups): New function.
6100 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6103 2012-04-19 Pedro Alves <palves@redhat.com>
6105 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6106 Adjust paths to gnulib imported files.
6108 2012-04-19 Pedro Alves <palves@redhat.com>
6110 * gnulib/: Move whole directory ...
6111 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6112 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6113 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6114 (aclocal_m4_deps): Adjust.
6115 * aclocal.m4: Regenerate.
6116 * configure: Regenerate.
6117 * configure.ac: Adjust AC_OUTPUT output.
6119 2012-04-19 Yao Qi <yao@codesourcery.com>
6121 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6123 * vec.c: Move it ...
6124 * common/vec.c: ... here.
6125 * vec.h: Move it ...
6126 * common/vec.h: ... here.
6128 2012-04-19 Yao Qi <yao@codesourcery.com>
6130 * gdb-code-style.el: New.
6132 2012-04-18 Pedro Alves <palves@redhat.com>
6134 Update gnulib from latest git.
6135 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6137 * gnulib/Makefile.am: Update.
6138 * gnulib/dummy.c: Update.
6139 * gnulib/extra/arg-nonnull.h: Update.
6140 * gnulib/extra/c++defs.h: Update.
6141 * gnulib/extra/update-copyright: Update.
6142 * gnulib/extra/warn-on-use.h: Update.
6143 * gnulib/inttypes.in.h: Update.
6144 * gnulib/m4/00gnulib.m4: Update.
6145 * gnulib/m4/extensions.m4: Update.
6146 * gnulib/m4/gnulib-cache.m4: Update.
6147 * gnulib/m4/gnulib-common.m4: Update.
6148 * gnulib/m4/gnulib-comp.m4: Update.
6149 * gnulib/m4/gnulib-tool.m4: Update.
6150 * gnulib/m4/include_next.m4: Update.
6151 * gnulib/m4/inttypes-pri.m4: Update.
6152 * gnulib/m4/inttypes.m4: Update.
6153 * gnulib/m4/longlong.m4: Update.
6154 * gnulib/m4/memchr.m4: Update.
6155 * gnulib/m4/memmem.m4: Update.
6156 * gnulib/m4/mmap-anon.m4: Update.
6157 * gnulib/m4/multiarch.m4: Update.
6158 * gnulib/m4/onceonly.m4: Update.
6159 * gnulib/m4/stddef_h.m4: Update.
6160 * gnulib/m4/stdint.m4: Update.
6161 * gnulib/m4/string_h.m4: Update.
6162 * gnulib/m4/warn-on-use.m4: Update.
6163 * gnulib/m4/wchar_h.m4: Update.
6164 * gnulib/m4/wchar_t.m4: Update.
6165 * gnulib/m4/wint_t.m4: Update.
6166 * gnulib/memchr.c: Update.
6167 * gnulib/memmem.c: Update.
6168 * gnulib/stddef.in.h: Update.
6169 * gnulib/stdint.in.h: Update.
6170 * gnulib/str-two-way.h: Update.
6171 * gnulib/string.in.h: Update.
6172 * gnulib/wchar.in.h: Update.
6174 * gnulib/extra/arg-nonnull.h: Delete.
6175 * gnulib/extra/c++defs.h: Delete.
6176 * gnulib/extra/warn-on-use.h: Delete.
6177 * gnulib/m4/wchar_h.m4: Delete.
6178 * gnulib/m4/wint_t.m4: Delete.
6179 * gnulib/wchar.in.h: Delete.
6181 * gnulib/extra/snippets/arg-nonnull.h: New.
6182 * gnulib/extra/snippets/c++defs.h: New.
6183 * gnulib/extra/snippets/warn-on-use.h: New.
6185 * aclocal.m4: Regenerate.
6186 * config.in: Regenerate.
6187 * configure: Regenerate.
6188 * gnulib/Makefile.in: Regenerate.
6190 2012-04-18 Pedro Alves <palves@redhat.com>
6192 Reimport the update-copyright module from gnulib
6193 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6195 * configure: Regenerate.
6196 * gnulib/Makefile.am: Update.
6197 * gnulib/Makefile.in: Regenerate.
6198 * gnulib/extra/update-copyright: Update.
6199 * gnulib/m4/gnulib-cache.m4: Update.
6200 * gnulib/m4/gnulib-comp.m4: Update.
6202 2012-04-18 Tristan Gingold <gingold@adacore.com>
6204 * configure.ac (aix): Put -lpthread into libs.
6205 * configure: Regenerate.
6207 2012-04-18 Tom Tromey <tromey@redhat.com>
6209 * linespec.c (convert_linespec_to_sals): Don't use
6211 (compare_msymbols): Arguments are minsym_and_objfile, not
6212 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6214 2012-04-18 Pedro Alves <palves@redhat.com>
6216 Revert gnulib/ part of:
6217 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6218 Copyright year update in most files (performed by copyright.sh).
6220 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6222 Fix 64-bit constants on 32-bit hosts.
6223 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6224 from unsigned long to ULONGEST.
6225 (read_signed_leb128): Change declaration return type from long to
6227 (dwarf2_const_value_attr): Change declaration parameter value from long
6229 (dwarf2_compute_name): Change variable value from long to LONGEST.
6230 (read_unsigned_leb128): Change return type, variable result and some
6231 casts from unsigned long to ULONGEST.
6232 (read_signed_leb128): Change return type, variable result and some
6233 casts from long to LONGEST.
6234 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6235 value from long to LONGEST.
6236 (dwarf2_const_value): Change variable value from long to LONGEST.
6237 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6238 plongest and hex_string.
6239 * symtab.h (struct general_symbol_info): Change ivalue from long to
6240 LONGEST, remove the comment.
6241 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6242 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6244 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6247 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6248 * ada-lang.c (ada_discrete_type_high_bound)
6249 (ada_discrete_type_low_bound): Fix function comment. Use
6250 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6251 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6252 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6253 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6254 Use TYPE_FIELD_ENUMVAL.
6255 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6256 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6257 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6258 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6260 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6261 * dwarf2read.c (process_enumeration_scope): Likewise.
6262 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6264 (class StructMainTypePrettyPrinter): Support also
6265 FIELD_LOC_KIND_ENUMVAL.
6266 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6268 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6269 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6270 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6271 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6273 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6274 accommodate enumval.
6275 (struct call_site): Adjust loc_kind to accommodate enumval.
6276 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6277 (TYPE_FIELD_ENUMVAL): New macros.
6278 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6279 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6281 * p-typeprint.c (pascal_type_print_base): Likewise.
6282 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6284 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6285 * python/py-type.c (convert_field): New variable addrstring. Use
6286 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6287 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6288 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6289 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6291 * valprint.c (generic_val_print): Likewise.
6293 2012-04-17 Doug Evans <dje@google.com>
6295 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6297 * dwarf2read.c: Whitespace fixes.
6298 (lookup_signatured_type): Tweak comment.
6299 (get_die_type_at_offset): Fix comment.
6301 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6303 * xcoffread.c (xcoff_secnum_to_sections): New function.
6304 (secnum_to_section, secnum_to_bfd_section): Reimplement
6305 using xcoff_secnum_to_sections. Rename "secnum" parameter
6307 (RECORD_MINIMAL_SYMBOL): Delete.
6308 (record_minimal_symbol): New function.
6309 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6310 by call to record_minimal_symbol and set misc_func_recorded
6311 to 1. Set last_csect_sec to the XCOFF section index instead
6312 of GDB's section_offset index. Update calls to
6313 prim_record_minimal_symbol_and_info to pass the BFD section
6316 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6318 * xcoffread.c (read_xcoff_symtab): Delete variables
6319 last_csect_val and last_csect_sec and associated code.
6321 2012-04-17 Doug Evans <dje@google.com>
6323 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6324 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6325 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6326 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6328 * cleanups.h: New file.
6329 * cleanups.c: New file.
6330 * Makefile.in (SFILES): Add cleanups.c.
6331 (HFILES_NO_SRCDIR): Add cleanups.h.
6332 (COMMON_OBS): Add cleanups.o.
6333 * defs.h (struct cleanup): Moved to cleanups.h.
6334 (do_cleanups,do_final_cleanups): Ditto.
6335 (discard_cleanups,discard_final_cleanups): Ditto
6336 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6337 (save_cleanups,save_final_cleanups): Ditto.
6338 (restore_cleanups,restore_final_cleanups): Ditto.
6339 (null_cleanup): Ditto.
6340 (make_my_cleanup,make_my_cleanup2): Ditto.
6341 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6342 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6343 (do_cleanups,do_final_cleanups): Ditto.
6344 (discard_cleanups,discard_final_cleanups): Ditto
6345 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6346 (save_cleanups,save_final_cleanups): Ditto.
6347 (restore_cleanups,restore_final_cleanups): Ditto.
6348 (null_cleanup): Ditto.
6349 (make_my_cleanup,make_my_cleanup2): Ditto.
6350 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6352 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6354 (make_cleanup_dyn_string_delete): Ditto.
6355 (make_cleanup_ui_file_delete): Ditto.
6356 (make_cleanup_ui_out_redirect_pop): Ditto.
6357 (make_cleanup_free_section_addr_info): Ditto.
6358 (make_cleanup_restore_integer): Ditto.
6359 (make_cleanup_unpush_target): Ditto.
6360 (make_cleanup_value_free_to_mark): Ditto.
6361 (make_cleanup_value_free): Ditto.
6362 (make_cleanup_free_so): Ditto.
6364 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6366 New option "set debug auto-load".
6367 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6368 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6369 (auto_load_safe_path_vec_update)
6370 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6372 (file_is_auto_load_safe): New parameters debug_fmt and ....
6373 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6374 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6375 caller by explanatory string.
6376 (_initialize_auto_load): Register "set debug auto-load".
6377 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6379 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6380 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6381 by explanatory string.
6382 * main.c (captured_main): Likewise.
6383 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6384 (source_section_scripts): Likewise.
6386 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6388 New option "set auto-load safe-path".
6389 * NEWS: New commands "set auto-load safe-path"
6390 and "show auto-load safe-path".
6391 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6392 (auto_load_safe_path, auto_load_safe_path_vec)
6393 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6394 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6395 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6396 (source_gdb_script_for_objfile): New variable is_safe. Call
6397 file_is_auto_load_safe. Return if it is not.
6398 (struct loaded_script): New field loaded.
6399 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6400 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6401 output "Missing" to "No".
6402 (_initialize_auto_load): New variable cmd. Initialize
6403 auto_load_safe_path. Register "set auto-load safe-path",
6404 "show auto-load safe-path" and "add-auto-load-safe-path".
6405 * auto-load.h (maybe_add_script): Add parameter loaded.
6406 (file_is_auto_load_safe): New declaration.
6407 * config.in: Regenerate.
6408 * configure: Regenerate.
6409 * configure.ac: New parameters --with-auto-load-safe-path
6410 and --without-auto-load-safe-path.
6411 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6412 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6413 * main.c (captured_main): Check file_is_auto_load_safe for
6415 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6416 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6417 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6420 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6422 auto-load: Implementation.
6423 * NEWS: New descriptions for "info auto-load",
6424 "info auto-load gdb-scripts", "info auto-load python-scripts",
6425 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6426 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6427 and "show auto-load-scripts". New description for "set auto-load",
6428 "show auto-load", "set auto-load gdb-scripts",
6429 "show auto-load gdb-scripts", "set auto-load python-scripts",
6430 "show auto-load python-scripts", "set auto-load local-gdbinit",
6431 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6432 "show auto-load libthread-db".
6433 * auto-load.c: Remove include python/python-internal.h. Add includes
6434 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6436 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6437 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6438 (gdbpy_global_auto_load): Rename to ...
6439 (global_auto_load): ... here.
6440 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6441 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6442 (script_language_gdb, source_gdb_script_for_objfile): New.
6443 (struct loaded_script): New field language.
6444 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6446 (maybe_add_script): Add parameter language. Drop redundant
6447 entry.full_path initialization. Initialize entry.language and
6449 (auto_load_objfile_script): Change parameter suffix to language.
6450 Remove the call of maybe_add_script.
6451 Call language->source_script_for_objfile.
6452 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6454 (collect_matching_scripts): Adjust it for
6455 struct collect_matching_scripts_data.
6456 (auto_load_info_scripts_pattern_nl): New variable.
6457 (info_auto_load_scripts): Rename to ...
6458 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6459 for struct collect_matching_scripts_data.
6460 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6461 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6462 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6463 (auto_load_info_cmdlist_get): New.
6464 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6465 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6466 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6467 "info auto-load local-gdbinit".
6468 * auto-load.h (struct script_language): New.
6469 (gdbpy_global_auto_load): Rename to ...
6470 (global_auto_load): ... here.
6471 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6472 (auto_load_local_gdbinit_loaded): New declarations.
6473 (maybe_add_script): New parameter language.
6474 (auto_load_objfile_script): Change parameter suffix to language.
6475 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6476 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6477 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6479 * linux-thread-db.c: Include auto-load.h and ctype.h.
6480 (auto_load_thread_db, show_auto_load_thread_db): New.
6481 (struct thread_db_info): New field filename.
6482 (delete_thread_db_info): Call xfree for FILENAME.
6483 (try_thread_db_load): Initialize FILENAME.
6484 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6485 if !AUTO_LOAD_THREAD_DB.
6486 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6487 (_initialize_thread_db): Install auto_load_thread_db
6488 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6489 as "info auto-load libthread-db".
6490 * main.c (captured_main): Rename gdbpy_global_auto_load to
6491 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6492 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6493 (print_gdb_help): Extend the help for 'local init file'.
6494 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6495 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6496 (auto_load_scripts): Rename to ...
6497 (auto_load_python_scripts): ... here, update the comment.
6498 (gdbpy_load_auto_script_for_objfile): New declaration.
6499 (show_auto_load_python_scripts, script_language_python)
6500 (gdbpy_load_auto_script_for_objfile): New.
6501 (source_section_scripts): Refactor the code.
6502 (load_auto_scripts_for_objfile): Rename to ...
6503 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6504 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6505 (info_auto_load_python_scripts): New.
6506 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6507 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6508 Register "set auto-load-scripts" as its deprecated alias. Register
6509 "info auto-load python-scripts". Register "info auto-load-scripts" as
6510 its deprecated alias.
6511 (load_auto_scripts_for_objfile): Rename to ...
6512 (gdbpy_load_auto_scripts_for_objfile): ... here.
6513 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6514 (gdbpy_load_auto_scripts_for_objfile): ... here.
6516 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6518 auto-load: Move files.
6519 * Makefile.in (SFILES): Add auto-load.c.
6520 (HFILES_NO_SRCDIR): Add auto-load.h.
6521 (COMMON_OBS): Add auto-load.o.
6522 (distclean): Change .gdbinit for gdb-gdb.gdb.
6523 * auto-load.c: New file, with parts from python/py-auto-load.c.
6524 * auto-load.h: New file, with parts from python/python.h.
6525 * configure: Regenerate.
6526 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6527 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6528 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6529 * main.c: Include auto-load.h.
6530 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6531 command.h, observer.h and progspace.h to auto-load.c. Add include
6533 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6534 (struct loaded_script, auto_load_pspace_data)
6535 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6536 (hash_loaded_script_entry, eq_loaded_script_entry)
6537 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6538 (maybe_add_script): Move to auto-load.c.
6539 (source_section_scripts): Change maybe_add_script parameters passing,
6540 use script_not_found_warning_print.
6541 (clear_section_scripts, auto_load_objfile_script)
6542 (auto_load_new_objfile, loaded_script_ptr)
6543 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6544 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6545 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6546 auto_load_new_objfile and info_auto_load_scripts initizations to
6548 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6550 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6553 * charset.c (find_charset_names): Remove variables ix and elt.
6554 Use free_char_ptr_vec.
6555 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6556 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6557 debugdir_end. New variable debugdir_len.
6558 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6559 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6561 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6562 and elt. Use free_char_ptr_vec.
6563 * source.c (add_path): Remove variables argv, arg and argv_index.
6564 New variables dir_vec, back_to, ix and name.
6565 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6566 make_cleanup_freeargv. Remove variable separator. Simplify the code
6567 no longer expecting DIRNAME_SEPARATOR.
6568 (openp): Remove variable p, p1 and len. New variables dir_vec,
6569 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6570 no longer expecting DIRNAME_SEPARATOR.
6571 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6572 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6574 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6575 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6576 (dirnames_to_char_ptr_vec): New functions.
6578 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6581 * source.c (add_path): Remove always true conditional 'p == 0' and
6582 unindent its code block.
6584 2012-04-17 Pedro Alves <palves@redhat.com>
6586 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6587 (FIELD_BITPOS_LVAL): ... this.
6588 (FIELD_BITPOS): New.
6589 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6590 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6591 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6593 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6595 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6596 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6597 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6600 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6602 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6603 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6604 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6605 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6606 * jv-lang.c (java_link_class_type): Likewise, once.
6607 * stabsread.c (read_enum_type): Likewise.
6609 2012-04-16 Yao Qi <yao@codesourcery.com>
6611 * common/agent.c (agent_run_command): Add one more parameter `len'.
6613 * common/agent.h: Update declaration.
6614 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6616 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6618 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6621 * value.c (value_actual_type): New function.
6622 * value.h (value_actual_type): New declaration.
6623 * varobj.c (update_type_if_necessary): New function.
6624 (varobj_create): Call value_actual_type instead of
6626 (install_dynamic_child): distinct changed and type changed MI variable
6628 (update_dynamic_varobj_children): Updated for install_dynamic_child
6629 change. All callers updated.
6630 (varobj_update): Support for MI variable object type change if
6631 the value changed and RTTI is used to determine the type.
6632 (create_child_with_value): Call value_actual_type instead of
6634 (adjust_value_for_child_access): Extended with a new parameter which
6635 specify whether the given value should be casted to enclosing type.
6636 All callers updated.
6638 2012-04-14 Yao Qi <yao@codesourcery.com>
6640 Import gnulib module inttypes from git
6641 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6642 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6643 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6644 gnulib/m4/inttypes-pri.m4
6645 * aclocal.m4, config.in, configure: Regenerated.
6646 * gnulib/Makefile.am: Update.
6647 * gnulib/Makefile.in: Update.
6648 * gnulib/m4/gnulib-cache.m4: Update.
6649 * gnulib/m4/gnulib-comp.m4: Update.
6650 * gnulib/inttypes.in.h: New.
6651 * gnulib/m4/inttypes-pri.m4: New.
6652 * gnulib/m4/inttypes.m4: New.
6654 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6656 * infrun.c (resume): Update PC address to the real PC after
6657 preparing to do displaced stepping.
6659 2012-04-12 Doug Evans <dje@google.com>
6661 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6662 All callers updated.
6664 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6666 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6668 2012-04-12 Doug Evans <dje@google.com>
6670 * dwarf2read.c (create_all_type_units): Renamed from
6671 create_debug_types_hash_table. All callers updated.
6673 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6674 local type_sig to sig_type, type_offset to type_offset_in_tu.
6675 (hash_signatured_type): Renamed from hash_type_signature,
6676 all callers updated.
6677 (eq_signatured_type): Renamed from eq_type_signature,
6678 all callers updated.
6679 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6680 (process_enumeration_scope): Ditto.
6681 (lookup_signatured_type_at_offset): Ditto.
6682 (load_full_type_unit, read_signatured_type): Ditto.
6684 2012-04-12 Yao Qi <yao@codesourcery.com>
6686 * remote.c (async_remote_interrupt): Correct function name in
6688 (async_remote_interrupt_twice): Ditto.
6690 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6692 * source.c (find_and_open_source): Consistently pass resulting
6693 full path through xfullpath.
6695 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6697 Provide more specific displaced-stepping memory error message.
6698 * infrun.c (displaced_step_prepare): New variable status. Call
6699 target_read_memory instead of read_memory, provide more specific
6702 2012-04-11 Tristan Gingold <gingold@adacore.com>
6705 * darwin-nat.c (darwin_execvp): Revert previous patch.
6707 2012-04-11 Tristan Gingold <gingold@adacore.com>
6710 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6713 2012-04-11 Tristan Gingold <gingold@adacore.com>
6715 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6718 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6720 New command 'explore' which helps explore values and types in
6722 * NEWS: Add an entry about the new 'explore' command.
6723 * data-directory/Makefile.in: Add gdb/command/explore.py
6724 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6725 command using the GDB Python API.
6727 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6729 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6730 extension in jump target calculation.
6732 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6734 * mips-tdep.c (mips32_next_pc): Handle JALX.
6736 2012-04-10 Yao Qi <yao@codesourcery.com>
6738 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6740 2012-04-10 Yao Qi <yao@codesourcery.com>
6742 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6743 and gnulib/m4/gnulib-tool.m4.
6745 2012-04-10 Doug Evans <dje@google.com>
6747 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6748 (load_partial_dies): Clarify comment.
6749 (find_partial_die): Support rereading type units.
6750 Clarify CU handling, if we know offset is in CU, don't search for the
6751 containing CU. Add comment regarding memory waste.
6753 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6755 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6756 i386/x32-avx and i386/x32-avx-linux.
6757 (i386/x32-expedite): New.
6758 (i386/x32-linux-expedite): Likewise.
6759 (i386/x32-avx-expedite): Likewise.
6760 (i386/x32-avx-linux-expedite): Likewise.
6761 ($(outdir)/i386/x32.dat): Likewise.
6762 ($(outdir)/i386/x32-linux.dat): Likewise.
6763 ($(outdir)/i386/x32-avx.dat): Likewise.
6764 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6766 * features/i386/x32-avx-linux.xml: New file.
6767 * features/i386/x32-avx.xml: Likewise.
6768 * features/i386/x32-core.xml: Likewise.
6769 * features/i386/x32-linux.xml: Likewise.
6770 * features/i386/x32.xml: Likewise.
6772 * features/i386/x32-avx-linux.c: New. Generated.
6773 * features/i386/x32-avx.c: Likewise.
6774 * features/i386/x32-linux.c: Likewise.
6775 * features/i386/x32.c: Likewise.
6776 * regformats/i386/x32-avx-linux.dat: Likewise.
6777 * regformats/i386/x32-avx.dat: Likewise.
6778 * regformats/i386/x32-linux.dat: Likewise.
6779 * regformats/i386/x32.dat: Likewise.
6781 2012-04-10 Tristan Gingold <gingold@adacore.com>
6783 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6784 code to kill the inferior.
6786 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6788 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6790 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6792 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6793 (yyvsp): New defines.
6794 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6796 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6798 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6800 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6802 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6805 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6807 * sparc64-tdep.c (sparc64_store_arguments)
6808 (sparc64_store_arguments): Fix coding style.
6810 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6812 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6813 complex floats, adjust some related comments and tighten a related
6815 (sparc64_extract_return_value): Handle complex floats.
6817 2012-04-07 Doug Evans <dje@google.com>
6819 * dwarf2read.c (load_partial_dies): Change condition to assert.
6821 2012-04-06 Doug Evans <dje@google.com>
6823 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6826 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6828 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6830 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6831 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6834 2012-04-05 Keith Seitz <keiths@redhat.com>
6836 * linespec.c (decode_compound): Remove.
6837 (enum offset_relative_sign): New enum.
6838 (struct line_offset): New struct.
6839 (struct linespec): New struct.
6840 (struct linespec_state): Move file_symtabs,
6841 user_filename, and user_function into struct linespec.
6842 Make result an anonymous struct holding vectors of
6843 symbolp and minsym_and_objfile_d.
6844 Add language member.
6845 (enum ls_token_type): New enum.
6846 (linespec_keywords): New array.
6847 (struct ls_token): New struct.
6848 (struct ls_parser): New struct.
6849 (linespec_lexer_lex_number): New function.
6850 (linespec_lexer_lex_keyword): New function.
6851 (is_ada_operator): New function.
6852 (skip_quote_char): New function.
6853 (copy_token_string): New function.
6854 (is_closing_quote_enclosed): New function.
6855 (find_parameter_list_end): New function.
6856 (linespec_lexer_lex_string): New function.
6857 (linespec_lexer_lex_one): New function.
6858 (linespec_lexer_consume_token): New function.
6859 (linespec_lexer_peek_token): New function.
6860 (cplusplus_error): Remove unused function.
6861 (find_methods): Update comment.
6862 (find_toplevel_char): Return const.
6863 (is_objc_method_format): Remove unused function.
6864 (find_toplevel_string): New function.
6865 (is_linespec_boundary): Remove.
6866 (symbol_not_found_error): New function.
6867 (find_method_overload_end): Remove function.
6868 (unexpected_linespec_error): New function.
6869 (keep_name_info): Remove.
6870 (linespec_parse_line_offset): New function.
6871 (linespec_parse_basic): New function.
6872 (canonicalize_linespec): New function.
6873 (decode_line_internal): Remove.
6874 (create_sals_line_offset): New function adapted from
6876 (convert_linespec_to_sals): New function.
6877 (parse_linespec): New function.
6878 (linespec_parser_new): New function.
6879 (linespec_state_destructor): Change parameter type to
6880 struct linespec_state *.
6881 Add language parameter.
6882 Remove freeing of moved members.
6883 (linespec_parser_delete): New function.
6884 (decode_line_full): Use parse_linespec and linespec_parser_new.
6885 (decode_line_1): Likewise.
6886 (decode_indirect): Rename to ...
6887 (linespec_expression_to_pc): ... this and rewrite
6888 to simply find CORE_ADDR, storing this result for later
6890 (locate_first_half): Remove.
6891 (deocde_objc): Add parameter LS.
6892 Initialize new struct collect_info members.
6893 Handle minimal symbols, too.
6894 (decode_compound): Delete.
6895 (lookup_prefix_sym): Rewrite.
6896 (compare_msymbols): New function.
6897 (find_method): Rewrite.
6898 Do not call cplusplus_error.
6899 (symtabs_from_filename): Rewrite.
6900 (collect_function_symbols): Delete.
6901 (find_function_symbols): Rewrite without ARGPTR-style
6903 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6904 (decode_dollar): Adapted and renamed to ...
6905 (linespec_parse_variable): ... this.
6906 (find_linespec_symbols): New function.
6907 (decode_label): Adapted and renamed to ...
6908 (find_label_symbols): ... this.
6909 (decode_digits_list_mode): Add and use LS argument.
6910 (decode_digits_ordinary): Likewise.
6911 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6912 If in list mode, allow any symbol class. Otherwise, only
6913 permit LOC_BLOCK symbols.
6914 (minsym_found): Update comments.
6915 (search_minsyms_for_name): Do not convert the matching symbol
6916 into a SAL. Simply push the symbol and objfile into the
6918 (decode_variable): Delete. Contents adapted into
6919 find_linespec_symbols.
6921 * cp-support.c (SKIP_SPACE): Remove.
6922 (operator_tokens): Remove unused global.
6923 (cp_validate_operator): Remove.
6924 * cp-support.h (cp_validate_operator): Remove declaration.
6926 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6928 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6929 for TYPE_VPTR_FIELDNO.
6930 * valprint.c (valprint_check_validity): Make it global, move the
6931 function comment ...
6932 * value.h (valprint_check_validity): ... to this new declaration.
6934 2012-04-02 Tristan Gingold <gingold@adacore.com>
6936 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6937 the STATE32 api for i386 state.
6938 (i386_darwin_store_inferior_registers): Likewise.
6940 2012-04-02 Tristan Gingold <gingold@adacore.com>
6942 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6944 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6947 2012-04-02 Tristan Gingold <gingold@adacore.com>
6950 * darwin-nat.c (darwin_execvp): Set binary preference.
6952 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6954 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6956 2012-03-30 Tom Tromey <tromey@redhat.com>
6958 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6959 of TRY_CATCH. Fix error handling.
6960 * python/py-value.c (convert_value_from_python): Move 'old'
6961 declaration to innermost scope.
6963 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6964 Andrey Smirnov <andrew.smirnov@gmail.com>
6966 -Wshadow warning fix.
6967 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6968 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6969 Adjust code accordingly.
6971 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6973 * ada-lang.c (symbol_completion_add): Rename parameter
6974 "encoded" into "encoded_p". Ajust code and documentation
6977 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6978 Andrey Smirnov <andrew.smirnov@gmail.com>
6980 -Wshadow warning fix.
6981 * ada-lang.c (symbol_completion_add): Rename parameter
6982 "wild_match" into wild_match_p. Update code and documentation
6985 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6987 * ada-lang.c (symbol_completion_match): Rename parameter
6988 "encoded" into "encoded_p". Ajust code and documentation
6991 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6992 Andrey Smirnov <andrew.smirnov@gmail.com>
6994 -Wshadow warning fix.
6995 * ada-lang.c (symbol_completion_match): Rename parameter
6996 "wild_match" into "wild_match_p". Adjust code and function
6997 documentation accordingly.
6999 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7000 Andrey Smirnov <andrew.smirnov@gmail.com>
7002 -Wshadow warning fix.
7003 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7004 "symbol_info" into "info". Adjust code accordingly.
7005 (ada_lookup_symbol): Likewise.
7007 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7009 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7010 of this function's documentation.
7012 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7013 Andrey Smirnov <andrew.smirnov@gmail.com>
7015 -Wshadow warning fix.
7016 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7017 variable into "wild_match_p". Adjust code accordingly.
7019 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7020 Andrey Smirnov <andrew.smirnov@gmail.com>
7022 -Wshadow warning fix.
7023 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7024 parameter into "wild_match_p". Adjust code accordingly.
7025 Document this parameter in the function description.
7027 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7028 Andrey Smirnov <andrew.smirnov@gmail.com>
7030 -Wshadow warning fix.
7031 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7032 "wild_match" parameter to "wild_match_p" (-Wshadow).
7034 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7036 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7037 in function documentation.
7039 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7040 Andrey Smirnov <andrew.smirnov@gmail.com>
7042 -Wshadow warning fix.
7043 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7044 variable into wild_match_p. Adjust code accordingly.
7046 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7047 Andrey Smirnov <andrew.smirnov@gmail.com>
7049 * ada-valprint.c (ada_val_print_1): Move the code handling
7050 TYPE_CODE_ENUM inside its own lexical block. Declare
7051 variables len and val there, instead of in the function's
7052 top level block. Avoid declaring deref_val again in a way
7053 that shadows another variable of the same name declared
7054 in one of the up-level blocks. Just re-use the up-level
7057 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7059 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7060 Replace block_found argument by symbol_info. Adjust
7061 implementation accordingly. Add function documentation.
7062 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7064 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7065 * ada-exp.y (write_object_renaming): Adjust to new
7066 ada_lookup_encoded_symbol API.
7068 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7070 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7073 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7075 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7076 (v850_register_name): Add the mpu and fpu register names.
7077 (v850e_register_name): Add the mpu and fpu register names.
7078 (v850e2_register_name): New function.
7079 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7082 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7084 * NEWS: Add entry for Ada varobj support.
7086 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7088 * varobj.c (default_value_is_changeable_p): New function,
7089 extracted from varobj_value_is_changeable_p. Add declaration.
7090 (ada_value_is_changeable_p): New function, extracted from
7091 varobj_value_is_changeable_p. Add declaration.
7092 (struct language_specific): New field "value_is_changeable_p".
7093 (languages): Add entries for new field.
7094 (varobj_create): Set language before calling install_new_value.
7095 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7096 "value_is_changeable_p" language callback.
7098 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7100 * ada-varobj.h, ada-varobj.c: New files.
7101 * Makefile.in (SFILES): Add ada-varobj.c.
7102 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7103 (COMMON_OBS): Add ada-varobj.o.
7105 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7107 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7108 (struct language_specific): New field "value_has_mutated".
7109 (languages): Set field "value_has_mutated" in each entry of array.
7110 (varobj_value_has_mutated): New function.
7111 (varobj_udpdate): Add handling of type mutation.
7112 (value_of_root): Add handling of type mutation.
7113 (ada_value_has_mutated): New function.
7115 2012-03-28 Pedro Alves <palves@redhat.com>
7117 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7118 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7120 2012-03-28 Tom Tromey <tromey@redhat.com>
7122 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7123 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7126 2012-03-28 Tom Tromey <tromey@redhat.com>
7128 * .dir-locals.el: New file.
7130 2012-03-28 Pedro Alves <palves@redhat.com>
7132 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7134 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7136 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7139 2012-03-27 Pedro Alves <palves@redhat.com>
7141 Eliminate struct ui_stream.
7143 * ui-out.h (struct ui_stream): Delete.
7144 (ui_out_field_stream): Adjust prototype.
7145 (ui_out_stream_new, ui_out_stream_delete)
7146 (make_cleanup_ui_out_stream_delete): Delete declarations.
7147 * ui-out.c (ui_out_field_stream): Change prototype to take a
7148 ui_file instead of a ui_stream. Adjust.
7149 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7150 (make_cleanup_ui_out_stream_delete): Delete.
7151 * breakpoint.c (print_breakpoint_location)
7152 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7153 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7154 * disasm.c (dump_insns): Ditto.
7155 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7157 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7158 ui_stream/ui_out_stream_new.
7159 * infcmd.c (print_return_value): Ditto.
7160 * osdata.c (info_osdata_command): Don't allocate a local
7162 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7163 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7164 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7165 allocate a local ui_stream.
7166 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7167 instead of ui_stream/ui_out_stream_new.
7168 (list_args_or_locals): Don't allocate a local ui_stream.
7169 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7170 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7171 ui_stream/ui_out_stream_new.
7172 * cli/cli-setshow.c (do_setshow_command): Ditto.
7174 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7176 * arm-linux-tdep.c (arm_linux_init_abi): Call
7177 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7178 * arm-tdep.c (arm_process_record): New function.
7179 (deallocate_reg_mem): New function.
7180 (decode_insn): New function.
7181 (thumb_record_branch): New function.
7182 (thumb_record_ldm_stm_swi(): New function.
7183 (thumb_record_misc): New function.
7184 (thumb_record_ld_st_stack): New function.
7185 (thumb_record_ld_st_imm_offset): New function.
7186 (thumb_record_ld_st_reg_offset(): New function.
7187 (thumb_record_add_sub_cmp_mov): New function.
7188 (thumb_record_shift_add_sub): New function.
7189 (arm_record_coproc_data_proc): New function.
7190 (arm_record_coproc): New function.
7191 (arm_record_b_bl): New function.
7192 (arm_record_ld_st_multiple): New function.
7193 (arm_record_ld_st_reg_offset): New function.
7194 (arm_record_ld_st_imm_offset): New function.
7195 (arm_record_data_proc_imm): New function.
7196 (arm_record_data_proc_misc_ld_str): New function.
7197 (arm_record_extension_space): New function.
7198 (arm_record_strx): New function.
7199 (sbo_sbz): New function.
7200 (struct insn_decode_record): New structure for arm insn record.
7201 (REG_ALLOC): New macro for reg allocations.
7202 (MEM_ALLOC): New macro for memory allocations.
7203 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7205 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7207 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7208 (store_register): Likewise.
7210 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7212 * MAINTAINERS (Write After Approval): Add myself to the list.
7214 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7216 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7217 Describe also the option "auto".
7219 2012-03-22 Richard Henderson <rth@redhat.com>
7221 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7222 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7224 2012-03-22 Richard Henderson <rth@redhat.com>
7226 * jit.c (jit_read_code_entry): Compute alignment and offset of
7227 int64_t member before computing entry_size.
7229 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7231 Python scripting: Add new method Value.referenced_value to
7232 gdb.Value which can dereference pointer as well as reference
7234 * NEWS: Add entry under 'Python scripting' about the new method
7235 Value.referenced_value on gdb.Value objects.
7236 * python/py-value.c (valpy_referenced_value): New function
7237 defining a new method on gdb.Value objects which can dereference
7238 pointer and reference values.
7240 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7242 * MAINTAINERS (Write After Approval): Add myself to the list.
7244 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7246 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7247 in addition to "main".
7249 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7251 * expression.h (op_name): Add declaration.
7252 * expprint.c (op_name): Remove declaration. Make non-static.
7253 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7255 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7257 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7259 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7260 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7261 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7262 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7263 (linux_nat_get_siginfo): Likewise.
7264 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7265 (linux_nat_get_siginfo): Likewise.
7266 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7267 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7268 * procfs.c (gdb_siginfo_t): Likewise.
7270 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7272 * .gitignore: Ignore more files.
7274 2012-03-20 Pedro Alves <palves@redhat.com>
7276 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7279 2012-03-20 Yao Qi <yao@codesourcery.com>
7281 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7284 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7286 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7287 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7288 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7290 * dwarf2expr.h (cu_offset, sect_offset): New types.
7291 (struct dwarf_expr_context_funcs) <dwarf_call>
7292 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7294 (struct dwarf_expr_context) <len>: Improve the comment.
7295 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7296 cu_offset and sect_offset.
7297 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7298 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7299 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7300 * dwarf2loc.h: Include dwarf2expr.h.
7301 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7303 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7304 Improve the comment.
7305 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7306 (struct signatured_type, struct line_header, struct partial_die_info)
7307 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7308 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7309 (get_die_type_at_offset, create_cus_from_index)
7310 (create_signatured_type_table_from_index, dw2_get_file_names)
7311 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7312 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7313 (create_debug_types_hash_table, process_psymtab_comp_unit)
7314 (load_partial_comp_unit, create_all_comp_units)
7315 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7316 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7317 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7318 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7319 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7320 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7321 (find_partial_die, read_attribute_value, lookup_die_type)
7322 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7323 (is_ref_attr): New function comment.
7324 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7325 Use cu_offset and sect_offset.
7326 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7327 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7328 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7329 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7330 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7331 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7332 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7335 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7338 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7339 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7341 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7343 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7345 * NEWS: Describe new options --init-command=FILE, -ix and
7346 --init-eval-command=COMMAND, -iex.
7347 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7348 CMDARG_INIT_COMMAND.
7349 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7350 "init-command", "init-eval-command", "ix" and "iex" to the variable
7351 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7352 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7353 (print_gdb_help): Describe --init-command=FILE, -ix and
7354 --init-eval-command=COMMAND, -iex.
7356 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7359 * main.c (struct cmdarg): Move it here from main. Add more comments.
7360 (cmdarg_s, VEC (cmdarg_s)): New.
7361 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7362 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7363 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7364 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7367 2012-03-19 Tom Tromey <tromey@redhat.com>
7369 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7371 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7374 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7377 2012-03-16 Chris January <chris.january@allinea.com>
7379 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7382 2012-03-16 Chris January <chris.january@allinea.com>
7384 * source.c (add_path): Use memmove instead of strcpy because the
7387 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7389 * value.h (set_value_parent): Add declaration.
7390 * value.c (set_value_parent): New function.
7391 (value_address): If VALUE->PARENT is not NULL, then use it as
7392 the base address instead of VALUE->LOCATION.address.
7393 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7394 the same as OBJ's address. Adjust V's offset accordingly.
7397 2012-03-16 Gary Benson <gbenson@redhat.com>
7399 PR breakpoints/10738
7400 * dwarf2read.c (use_deprecated_index_sections): New global.
7401 (struct partial_die_info): New member may_be_inlined.
7402 (read_partial_die): Set may_be_inlined where appropriate.
7403 (add_partial_subprogram): Add partial symbols for partial
7404 DIEs that may be inlined.
7405 (new_symbol_full): Add inlined subroutines to the current
7407 (write_psymtabs_to_index): Bump version number.
7408 (dwarf2_read_index): Read only version 6 indices unless
7409 use_deprecated_index_sections is set.
7410 * linespec.c (symbol_and_data_callback): New structure.
7411 (iterate_inline_only): New function.
7412 (iterate_over_all_matching_symtabs): New argument
7413 "include_inline". If nonzero, also call the callback for
7414 symbols representing inlined subroutines.
7415 (lookup_prefix_sym): Pass extra argument to the above.
7416 (find_function_symbols): Likewise.
7417 (add_matching_symbols_to_info): Likewise.
7418 * NEWS: Mention that GDB can now set breakpoints on inlined
7421 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7423 * p-typeprint.c (pascal_type_print_method_args):
7424 Fix display of parameter of methods.
7426 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7428 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7429 Add missing prototype.
7431 2012-03-16 Yao Qi <yao@codesourcery.com>
7432 Jan Kratochvil <jan.kratochvil@redhat.com>
7434 Fix false compilation warning.
7435 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7437 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7438 Pedro Alves <pedro@codesourcery.com>
7440 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7441 (arm_register_g_packet_guesses): New function.
7442 (arm_gdbarch_init): Don't force a target description with
7443 registers when the executable is detected as M-profile. Instead
7444 set gdbarch->tdep->is_m. Register `g' packet guesses.
7445 (_initialize_arm_tdep): Initialize the new target description.
7446 * features/arm-with-m-fpa-layout.xml: New description.
7447 * features/arm-with-m-fpa-layout.c: New, generated.
7449 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7451 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7452 Update function description.
7453 (insert_bp_location): Do not wipe bl->target_info out.
7454 * mem-break.c: #include "gdb_string.h".
7455 (default_memory_insert_breakpoint): Do not call target_read_memory
7456 with a pointer to the breakpoint's shadow_contents buffer. Use
7457 a local buffer instead.
7458 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7460 2012-03-15 Tom Tromey <tromey@redhat.com>
7462 * NEWS: Mention "info vtbl", not "info vtable".
7463 * cp-support.c (info_vtbl_command): Fix comment.
7464 (_initialize_cp_support): Fix text.
7466 2012-03-15 Tom Tromey <tromey@redhat.com>
7468 * cp-valprint.c (cp_print_value_fields): Use
7469 print_function_pointer_address for vtable slot.
7471 2012-03-15 Tom Tromey <tromey@redhat.com>
7473 * gnu-v3-abi.c (struct value_and_voffset): New.
7474 (hash_value_and_voffset, eq_value_and_voffset)
7475 (compare_value_and_voffset, compute_vtable_size)
7476 (print_one_vtable, gnuv3_print_vtable): New functions.
7477 (init_gnuv3_ops): Initialize 'print_vtable' field.
7478 * cp-support.c (info_vtbl_command): New function.
7479 (_initialize_cp_support): Add "info vtbl".
7480 * cp-abi.h (cplus_print_vtable): Declare.
7481 (struct cp_abi_ops) <print_vtable>: New field.
7482 * cp-abi.c (cplus_print_vtable): New function.
7485 2012-03-15 Tom Tromey <tromey@redhat.com>
7487 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7488 iterate_over_symbols.
7490 2012-03-14 Doug Evans <dje@google.com>
7492 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7493 DW_OP_GNU_parameter_ref.
7495 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7497 Fix double prompt of 'interpreter-exec mi'.
7498 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7499 (mi_interpreter_resume): use it.
7500 (mi_execute_command_input_handler): New function.
7501 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7502 mi_execute_command_input_handler.
7504 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7506 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7508 (darwin_debug_port_info): Make static.
7509 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7510 * machoread.c (_initialize_machoread): Add prototype.
7511 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7512 (i386_darwin_set_control, i386_darwin_get_control)
7513 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7514 i386_darwin_get_status, i386_darwin_get_control):
7515 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7517 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7519 * ax-gdb.c (gen_usual_unary): Remove special handling of
7520 enum and bool types.
7522 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7524 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7526 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7528 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7530 2012-03-13 Chris January <chris.january@allinea.com>
7532 * aix-thread.c (fill_sprs): Store the floating point registers
7533 at the correct offsets into vals.
7535 2012-03-13 Doug Evans <dje@google.com>
7537 * NEWS: Mention symbol-reloading has been deleted.
7538 * symfile.c (symbol_reloading): Delete.
7539 (show_symbol_reloading): Delete.
7540 (_initialize_symfile): Delete set/show symbol-reloading.
7542 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7543 read_in_chain until we have successfully read it in.
7544 (load_full_comp_unit): Ditto.
7545 (read_signatured_type): Add comment.
7547 2012-03-13 Chris January <chris.january@allinea.com>
7549 * stabsread.c (fix_common_block): Change type of valu argument
7552 2012-03-13 Chris January <chris.january@allinea.com>
7554 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7557 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7559 * common/linux-procfs.c (linux_proc_get_int): New, from
7560 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7562 (linux_proc_get_tgid): Only call linux_proc_get_int.
7563 (linux_proc_get_tracerpid): New.
7564 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7565 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7566 linux_proc_pid_has_state.
7567 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7568 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7569 (linux_ptrace_attach_warnings): New.
7570 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7572 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7573 (linux_nat_attach): New variables ex, buffer, message and message_s.
7574 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7576 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7578 * Makefile.in (linux-ptrace.o): New.
7579 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7581 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7582 * common/linux-ptrace.c: New file.
7583 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7584 * config/arm/linux.mh: Likewise.
7585 * config/i386/linux.mh: Likewise.
7586 * config/i386/linux64.mh: Likewise.
7587 * config/ia64/linux.mh: Likewise.
7588 * config/m32r/linux.mh: Likewise.
7589 * config/m68k/linux.mh: Likewise.
7590 * config/mips/linux.mh: Likewise.
7591 * config/pa/linux.mh: Likewise.
7592 * config/powerpc/linux.mh: Likewise.
7593 * config/powerpc/ppc64-linux.mh: Likewise.
7594 * config/powerpc/spu-linux.mh: Likewise.
7595 * config/s390/s390.mh: Likewise.
7596 * config/sparc/linux.mh: Likewise.
7597 * config/sparc/linux64.mh: Likewise.
7598 * config/xtensa/linux.mh: Likewise.
7599 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7600 common/linux-procfs.c.
7601 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7603 2012-03-13 Hui Zhu <teawater@gmail.com>
7604 Pedro Alves <palves@redhat.com>
7606 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7607 CREATE_BREAKPOINT_FLAGS_INSERTED.
7608 (create_breakpoint_sal, create_breakpoints_sal)
7609 (base_breakpoint_create_breakpoints_sal)
7610 (tracepoint_create_breakpoints_sal)
7611 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7613 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7614 (ftrace_command, strace_command): Adjust.
7615 (create_tracepoint_from_upload): Pass
7616 CREATE_BREAKPOINT_FLAGS_INSERTED.
7617 * breakpoint.h (enum breakpoint_create_flags): New.
7618 (create_breakpoint): New flags parameter.
7619 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7620 * python/py-breakpoint.c (bppy_init): Adjust.
7621 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7622 * spu-tdep.c (spu_catch_start): Adjust.
7624 2012-03-13 Pedro Alves <palves@redhat.com>
7625 Hui Zhu <teawater@gmail.com>
7626 Yao Qi <yao@codesourcery.com>
7628 * remote.c (struct remote_state): New field `starting_up'.
7629 (remote_start_remote): Set and clear it.
7630 (remote_can_download_tracepoint): If starting up, return false.
7632 2012-03-13 Yao Qi <yao@codesourcery.com>
7634 * inferior.h (struct inferior): Remove fields any_syscall_count,
7635 syscalls_counts and total_syscalls_count. Move them to new
7636 struct catch_syscall_inferior_data in breakpoint.c.
7637 * breakpoint.c: Call DEF_VEC_I(int).
7638 (struct catch_syscall_inferior_data): New.
7639 (get_catch_syscall_inferior_data): New.
7640 (catch_syscall_inferior_data_cleanup): New.
7641 (insert_catch_syscall): Update to access data in
7642 struct catch_syscall_inferior_data.
7643 (insert_catch_syscall): Likewise.
7644 (remove_catch_syscall): Likewise.
7645 (remove_catch_syscall): Likewise.
7646 (is_syscall_catchpoint_enabled): Likewise.
7647 (add_catch_command): Likewise.
7648 (_initialize_breakpoint): Register cleanup.
7649 * breakpoint.h: Removed DEF_VEC_I(int).
7650 * dwarf2loc.c: Call DEF_VEC_I(int).
7651 * mi/mi-main.c: Likewise.
7653 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7655 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7657 2012-03-12 Chris January <chris.january@allinea.com>
7659 * aix-thread.c (_initialize_aix_thread): Add prototype.
7660 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7661 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7663 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7665 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7666 include of "amd64-nat.h".
7668 2012-03-12 Tom Tromey <tromey@redhat.com>
7670 * buildsym.c (record_pending_block): Now static.
7671 * buildsym.h: (record_pending_block): Remove.
7673 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7675 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7677 2012-03-09 Tom Tromey <tromey@redhat.com>
7679 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7680 producer_is_gxx_lt_4_6>: New fields.
7681 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7683 2012-03-09 Tom Tromey <tromey@redhat.com>
7685 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7687 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7689 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7692 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7694 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7696 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7698 Fix -Wmissing-prototypes build.
7699 * arm-linux-nat.c (get_thread_id): Make it static.
7700 * xtensa-linux-nat.c (get_thread_id): Likewise.
7702 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7704 * server.c (process_point_options): If a conditional expression
7705 is found, only print a message if remote_debug is nonzero.
7707 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7709 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7710 of internal error for unknown/unsupported types.
7712 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7714 Fix CU relative vs. absolute DIE offsets.
7715 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7716 offset to offset_in_cu.
7717 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7719 (dwarf2_fetch_die_location_block): Rename parameter offset to
7720 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7722 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7724 * libunwind-frame.c: Rename to ...
7725 * ia64-libunwind-tdep.c: ... here.
7726 * libunwind-frame.h: Rename to ...
7727 * ia64-libunwind-tdep.h: ... here.
7728 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7729 ia64-libunwind-tdep.h.
7730 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7731 * README (--with-libunwind): Rename to ...
7732 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7733 * config.in: Regenerate.
7734 * configure: Regenerate.
7735 * configure.ac: New option --with-libunwind-ia64, make the
7736 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7737 Remove AC_DEFINE for HAVE_LIBUNWIND.
7738 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7739 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7740 Rename libunwind-frame in the general comment.
7741 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7742 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7743 Move forward declarations inside #ifndef. Rename libunwind-frame in
7744 the general comment.
7745 * ia64-tdep.c: Rename libunwind-frame.h #include to
7746 ia64-libunwind-tdep.h.
7747 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7748 (ia64_libunwind_descr): Rename libunwind-frame to
7749 ia64-libunwind-tdep in these function comments.
7750 * ia64-tdep.h: Rename libunwind-frame.h #include to
7751 ia64-libunwind-tdep.h.
7752 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7753 ia64-libunwind-tdep in that data comment.
7755 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7757 * libunwind-frame.h (struct frame_unwind): New declaration.
7759 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7761 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7762 "set breakpoint condition-evaluation" command.
7764 2012-03-08 Tristan Gingold <gingold@adacore.com>
7766 * sparc-stub.c: Move to stubs/
7767 * sh-stub.c: Likewise.
7768 * m68k-stub.c: Likewise.
7769 * m32r-stub.c: Likewise.
7770 * i386-stub.c: Likewise.
7772 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7774 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7775 linux_get_siginfo_type.
7777 * m68klinux-nat.c: Include "gdb_proc_service.h".
7778 (PTRACE_GET_THREAD_AREA): Define.
7779 (ps_get_thread_area): New function.
7781 2012-03-08 Yao Qi <yao@codesourcery.com>
7783 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7785 (remote_query_attached): Likewise.
7786 (remote_static_tracepoint_marker_at): Likewise.
7787 (remote_set_permissions): Likewise.
7788 (remote_detach_1, extended_remote_attach_1): Likewise.
7789 (send_g_packet, remote_vkill): Likewise.
7790 (extended_remote_disable_randomization): Likewise.
7791 (remote_add_target_side_condition): Likewise.
7792 (remote_insert_breakpoint): Likewise.
7793 (remote_remove_breakpoint): Likewise.
7794 (remote_insert_watchpoint): Likewise.
7795 (remote_remove_watchpoint): Likewise.
7796 (remote_insert_hw_breakpoint): Likewise.
7797 (remote_insert_hw_breakpoint): Likewise.
7798 (remote_remove_hw_breakpoint): Likewise.
7799 (remote_download_command_source): Likewise.
7800 (remote_download_tracepoint): Likewise.
7801 (remote_download_trace_state_variable): Likewise.
7802 (remote_disable_tracepoint): Likewise.
7803 (remote_trace_set_readonly_regions): Likewise.
7804 (remote_get_tracepoint_status): Likewise.
7805 (remote_trace_find): Likewise.
7806 (remote_get_trace_state_variable_value): Likewise.
7807 (remote_set_disconnected_tracing): Likewise.
7808 (remote_set_circular_trace_buffer): Likewise.
7809 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7810 (remote_use_agent): Likewise.
7811 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7814 2012-03-07 Pedro Alves <palves@redhat.com>
7816 * NEWS: Mention QProgramSignals.
7817 * inferior.h (update_signals_program_target): Declare.
7818 * infrun.c: (update_signals_program_target): New.
7819 (handle_command): Update the target of the new program signals
7821 * remote.c (PACKET_QProgramSignals): New enum.
7822 (last_program_signals_packet): New global.
7823 (remote_program_signals): New.
7824 (remote_start_remote): Update the target with the program signals
7826 (remote_protocol_features): Add entry for QPassSignals.
7827 (remote_open_1): Free anc clear last_program_signals_packet.
7828 (init_remote_ops): Install remote_program_signals.
7829 * target.c (update_current_target): Adjust.
7830 (target_program_signals): New.
7831 * target.h (struct target_ops) <to_program_signals>: New field.
7832 (target_program_signals): Declare.
7834 2012-03-07 Pedro Alves <palves@redhat.com>
7836 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7839 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7841 * m68klinux-nat.c (getregs_supplies): Make static.
7842 (getfpregs_supplies): Likewise.
7843 (have_ptrace_getregs): Likewise.
7845 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7847 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7848 in call to get_die_type_at_offset.
7850 2012-03-06 Stan Shebs <stan@codesourcery.com>
7852 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7853 * mi/mi-cmd-disas.c: Ditto.
7854 * mi/mi-cmd-env.c: Ditto.
7855 * mi/mi-cmd-file.c: Ditto.
7856 * mi/mi-cmd-stack.c: Ditto.
7857 * mi/mi-cmd-target.c: Ditto.
7858 * mi/mi-cmd-var.c: Ditto.
7859 * mi/mi-cmds.c: Ditto.
7860 * mi/mi-cmds.h: Ditto.
7861 * mi/mi-console.c: Ditto.
7862 * mi/mi-getopt.c: Ditto.
7863 * mi/mi-getopt.h: Ditto.
7864 * mi/mi-interp.c: Ditto.
7865 * mi/mi-main.c: Ditto.
7866 * mi/mi-out.c: Ditto.
7867 * mi/mi-parse.c: Ditto.
7868 * mi/mi-parse.h: Ditto.
7869 * mi/mi-symbol-cmds.c: Ditto.
7871 * mi/mi-getopt.h: Move mi_opt struct up.
7872 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7874 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7876 2012-03-06 Tom Tromey <tromey@redhat.com>
7878 * proc-service.c (ps_pglobal_lookup): Set the current program
7881 2012-03-06 Pedro Alves <palves@redhat.com>
7883 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7885 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7887 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7889 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7892 * common/linux-osdata.c (linux_common_core_of_thread): New function
7894 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7895 call by linux_common_core_of_thread.
7896 (linux_nat_core_of_thread_1): Remove.
7897 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7898 * linux-thread-db.c: Include linux-osdata.h.
7899 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7900 linux_common_core_of_thread.
7902 2012-03-05 Tom Tromey <tromey@redhat.com>
7904 * value.c (value_primitive_field): Don't fetch contents for
7907 2012-03-05 Tom Tromey <tromey@redhat.com>
7909 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7911 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7913 * s390-nat.c: Include "gregset.h".
7915 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7917 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7918 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7919 (libunwind_load): New variable so_error, use it for dlerror. Try to
7920 load also LIBUNWIND_SO_7.
7922 2012-03-05 Pedro Alves <palves@redhat.com>
7924 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7925 is not NULL, and remove resulting dead code.
7927 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7929 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7930 prologue to sh_analyze_prologue.
7931 (sh_analyze_prologue): Make better use of such an upper limit, and
7932 generally be more cautious about accessing memory.
7934 2012-03-05 Tom Tromey <tromey@redhat.com>
7936 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7937 _initialize_ia64_hpux_tdep.
7939 2012-03-05 Pedro Alves <palves@redhat.com>
7943 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7944 the register state is clear, supply explicit zero, instead of
7945 marking the register unavailable.
7947 2012-03-05 Tristan Gingold <gingold@adacore.com>
7949 * NEWS: Mention OpenVMS ia64 new target.
7951 2012-03-05 Tristan Gingold <gingold@adacore.com>
7953 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7954 (ia64_unw_accessors, ia64_unw_rse_accessors)
7955 (ia64_libunwind_descr): Declare.
7956 * ia64-vms-tdep.c: New file.
7957 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7958 (ia64_libunwind_descr): Make them public.
7959 * configure.tgt: Add ia64-*-*vms*.
7960 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7961 (ALLDEPFILES): Add ia64-vms-tdep.c
7963 2012-03-05 Tristan Gingold <gingold@adacore.com>
7965 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7966 * remote.c (PACKET_qXfer_uib): New enum value.
7967 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7968 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7969 (_initialize_remote): Call add_packet_config_cmd for
7972 2012-03-05 Tristan Gingold <gingold@adacore.com>
7974 * osabi.c (gdb_osabi_names): Add OpenVMS.
7975 (generic_elf_osabi_sniffer): Likewise.
7976 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7978 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7980 Removed unused code.
7981 * libunwind-frame.c (libunwind_frame_unwind)
7982 (libunwind_frame_base_address): Remove.
7983 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7985 2012-03-04 Yao Qi <yao@codesourcery.com>
7987 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7988 remove trailing new line.
7989 (agent_run_command, agent_run_command): Add _ markup.
7990 (agent_capability_check): Likewise.
7992 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7994 * breakpoint.c (set_condition_evaluation_mode): Set
7995 CONDITION_EVALUATION_MODE unconditionally.
7997 2012-03-03 Yao Qi <yao@codesourcery.com>
7999 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8000 * common/agent.h: Update declaration.
8001 * inf-child.c (inf_child_use_agent): New.
8002 (inf_child_can_use_agent): New.
8003 (inf_child_target): Initialize fields `to_use_agent'
8004 and `to_can_use_agent'.
8005 * agent.c (agent_new_objfile): New.
8006 (_initialize_agent): Add agent_new_objfile to new_objfile
8009 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8011 (linux_target_install_ops): Initialize field
8012 `to_static_tracepoint_markers_by_strid'.
8013 * remote.c (free_current_marker): Move it to ...
8014 * tracepoint.c (free_current_marker): ... here. New.
8015 (cleanup_target_stop): New.
8016 * tracepoint.h: Declare free_current_marker.
8017 * NEWS: Add one entry about `info static-tracepoint-marker'.
8019 2012-03-03 Yao Qi <yao@codesourcery.com>
8021 * common/agent.c (agent_loaded_p): New.
8022 (agent_look_up_symbols): New global.
8023 * common/agent.h: Declare agent_loaded_p.
8025 2012-03-03 Yao Qi <yao@codesourcery.com>
8027 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8028 (agent_capability_check, agent_capability_invalidate): New.
8029 (symbol_list): New array element.
8030 * common/agent.h (enum agent_capa): New.
8031 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8033 2012-03-03 Yao Qi <yao@codesourcery.com>
8035 * target.h (struct target_ops) <to_use_agent>: New field.
8036 (struct target_ops) <to_can_use_agent>: New field.
8037 (target_use_agent, target_can_use_agent): New macro.
8038 * target.c (update_current_target): Update.
8039 * remote.c: New enum `PACKET_QAgent'.
8040 (remote_protocol_features): Add a new element.
8041 (remote_use_agent, remote_can_use_agent): New.
8042 (init_remote_ops): Initialize field `can_use_agent' with
8043 remote_can_use_agent. Intiailize field `use_agent' with
8045 * common/agent.c (use_agent): New global.
8046 * common/agent.h: Declare it.
8047 * tracepoint.c (info_static_tracepoint_markers_command): Add
8049 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8050 (COMMON_OBS): Add common/agent.o and agent.o
8051 (common-agent.o): New rule.
8054 2012-03-03 Yao Qi <yao@codesourcery.com>
8056 * common/agent.c: New.
8057 * common/agent.h: New.
8058 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8060 * configure, configh.in: Regenerated.
8062 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8064 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8065 unless it exists for this architecture.
8067 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8069 * language.h (struct language_defn): New "method" la_read_var_value.
8070 * findvar.c: #include "language.h".
8071 (default_read_var_value): Renames read_var_value. Rewrite
8072 function description.
8073 (read_var_value): New function.
8074 * value.h (default_read_var_value): Add prototype.
8075 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8077 (ada_language_defn): Add entry for la_read_var_value.
8078 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8079 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8080 language_defn structures to add entry for new la_read_var_value
8083 2012-03-02 Tom Tromey <tromey@redhat.com>
8084 Pedro Alves <palves@redhat.com>
8086 PR breakpoints/13776:
8087 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8089 (delete_longjmp_breakpoint_at_next_stop): New.
8090 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8091 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8092 before deleting the inferior. Add comments.
8093 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8094 breakpoints immediately, but only on next stop. Move that code
8095 next to where we mark other breakpoints for deletion.
8097 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8099 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8101 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8104 2012-03-02 Pedro Alves <palves@redhat.com>
8106 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8108 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8110 Fix -Wmissing-prototypes build.
8111 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8112 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8113 (gdbsim_has_memory): Likewise.
8115 2012-03-02 Yao Qi <yao@codesourcery.com>
8117 Fix -Wmissing-prototypes build.
8118 * charset.c (phony_iconv_open): Make static.
8119 (phony_iconv_close, phony_iconv): Likewise.
8120 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8121 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8123 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8124 * ser-mingw.c (create_select_thread): Make static.
8125 * windows-termcap.c (tgetent): New prototype.
8126 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8128 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8130 Fix -Wmissing-prototypes build.
8131 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8132 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8133 (_initialize_loadable): New prototypes.
8135 2012-03-02 Doug Evans <dje@google.com>
8137 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8138 abbrev table, read_comp_unit will do it.
8140 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8142 Fix -Wmissing-prototypes build.
8143 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8144 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8145 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8146 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8147 (_initialize_arm_symbian_tdep): New prototype.
8148 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8149 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8150 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8152 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8153 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8155 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8156 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8157 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8159 * moxie-tdep.c (moxie_process_record): Likewise.
8160 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8161 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8162 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8163 (_initialize_rl78_tdep): New prototype.
8164 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8165 (_initialize_rx_tdep): New prototype.
8166 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8167 (_initialize_darwin_solib): New prototype.
8168 * solib-spu.c: Include solib-spu.h.
8169 (_initialize_spu_solib): New prototype.
8170 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8171 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8172 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8173 (tic6x_software_single_step): Make it static.
8174 (_initialize_tic6x_tdep): New prototype.
8176 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8178 Fix -Wmissing-prototypes build.
8179 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8180 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8182 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8184 Fix -Wmissing-prototypes build.
8185 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8186 (frv_have_stopped_data_address): Remove.
8188 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8190 Fix -Wmissing-prototypes build.
8191 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8192 * sh-tdep.c: Include sh64-tdep.h.
8193 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8194 * sh64-tdep.c: Include sh64-tdep.h.
8195 * sh64-tdep.h: New file.
8197 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8199 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8201 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8203 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8204 sp_regnum once the gdbarch_init_osabi hook has been called.
8206 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8208 * mips-tdep.c (mips32_bc1_pc): New function.
8209 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8210 BPOSGE32 and BPOSGE64 instructions.
8211 (deal_with_atomic_sequence): Likewise.
8212 (mips32_instruction_has_delay_slot): Likewise.
8214 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8215 Chris Dearman <chris@mips.com>
8216 Maciej W. Rozycki <macro@codesourcery.com>
8217 Joseph Myers <joseph@codesourcery.com>
8219 * features/mips-dsp.xml: New file.
8220 * features/mips64-dsp.xml: New file.
8221 * features/mips-dsp-linux.xml: New file.
8222 * features/mips64-dsp-linux.xml: New file.
8223 * features/Makefile (WHICH): Add mips-dsp-linux and
8225 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8226 * features/mips-dsp-linux.c: New file.
8227 * features/mips64-dsp-linux.c: New file.
8228 * regformats/mips-dsp-linux.dat: New file.
8229 * regformats/mips64-dsp-linux.dat: New file.
8230 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8232 (mips64_linux_register_addr): Likewise.
8233 (mips64_linux_regsets_fetch_registers): Likewise.
8234 (mips64_linux_regsets_store_registers): Likewise.
8235 (mips64_linux_fetch_registers): Update call to
8236 mips64_linux_regsets_fetch_registers.
8237 (mips64_linux_store_registers): Update call to
8238 mips64_linux_regsets_store_registers.
8239 (mips_linux_read_description): Probe for DSP registers.
8240 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8241 and initialize_tdesc_mips64_dsp_linux.
8242 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8243 Remove padding of no longer used embedded register slots.
8244 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8245 (MIPS_RESTART_REGNUM): Redefine enum value.
8246 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8248 (mips_tx39_reg_names): Likewise.
8249 (mips_linux_reg_names): New array of register names for Linux
8251 (mips_register_name): Check for a null pointer in
8252 mips_processor_reg_names and return an empty string.
8253 (mips_register_type): Exclude embedded registers for the IRIX
8255 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8256 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8258 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8259 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8260 (mips_gdbarch_init): Likewise. Initialize internal register
8261 indices for the Linux ABI. Use dynamic numbers to refer to
8262 registers, as applicable, while parsing the target description.
8263 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8265 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8267 * frame.h (read_frame_register_unsigned): Fix typo in function
8270 2012-03-01 Pedro Alves <palves@redhat.com>
8272 * jit-reader.in [!__cplusplus]
8273 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8275 2012-03-01 Pedro Alves <palves@redhat.com>
8277 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8278 * configure: Regenerate.
8280 2012-03-01 Pedro Alves <palves@redhat.com>
8282 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8283 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8284 (ftrace_command, strace_command): Make static.
8285 * d-lang.c (_initialize_d_language): Declare.
8286 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8287 * dwarf2loc.c (_initialize_dwarf2loc):
8288 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8289 * exec.c (exec_get_section_table): Make static.
8290 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8291 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8292 * inferior.c (remove_inferior_command, add_inferior_command)
8293 (clone_inferior_command): Make static.
8294 * linux-nat.c (linux_nat_thread_address_space)
8295 (linux_nat_core_of_thread): Make static.
8296 * linux-tdep.c (_initialize_linux_tdep): Declare.
8297 * objc-lang.c (_initialize_objc_lang): Declare.
8298 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8300 (_initialize_opencl_language): Declare.
8301 * record.c (_initialize_record): Declare.
8302 * remote.c (demand_private_info, remote_get_tib_address)
8303 (remote_supports_cond_tracepoints)
8304 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8306 * skip.c (_initialize_step_skip): Declare.
8307 * symtab.c (skip_prologue_using_lineinfo): Make static.
8308 * tracepoint.c (delete_trace_state_variable)
8309 (trace_variable_command, delete_trace_variable_command)
8310 (get_uploaded_tsv, find_matching_tracepoint_location)
8311 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8313 * value.c (pack_unsigned_long): Make static.
8314 * varobj.c (varobj_ensure_python_env): Make static.
8315 * windows-tdep.c (_initialize_windows_tdep): Declare.
8316 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8318 2012-03-01 Pedro Alves <palves@redhat.com>
8320 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8322 (linux_init_abi): Install it as has_shared_address_space gdbarch
8325 2012-03-01 Pedro Alves <palves@redhat.com>
8327 * observer.c (observer_test_first_notification_function)
8328 (observer_test_second_notification_function)
8329 (observer_test_third_notification_function): Add declarations.
8331 2012-03-01 Pedro Alves <palves@redhat.com>
8333 * common/signals.c (default_target_signal_to_host)
8334 (default_target_signal_from_host): Move ...
8335 * arch-utils.c: ... here.
8336 * arch-utils.h (default_target_signal_to_host)
8337 (default_target_signal_from_host): Declare.
8339 * common/signals.c (target_signal_from_command): Move ...
8340 * infrun.c: ... here.
8341 * inferior.h (target_signal_from_command): Declare.
8342 * target.h (target_signal_from_command)
8343 (default_target_signal_from_host, default_target_signal_to_host):
8344 Delete declarations.
8346 * common/signals.c (_initialize_signals): Delete.
8348 2012-03-01 Pedro Alves <palves@redhat.com>
8350 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8351 both __cplusplus and !__cplusplus.
8353 2012-03-01 Pedro Alves <palves@redhat.com>
8355 * psymtab.c (find_and_open_source): Delete declaration.
8356 * source.c (find_and_open_source): Move comment ...
8357 * source.h (find_and_open_source): ... to this new declaration.
8359 2012-03-01 Pedro Alves <palves@redhat.com>
8361 * inline-frame.c: Include inline-frame.h.
8363 2012-03-01 Pedro Alves <palves@redhat.com>
8365 * tui/tui-data.c (set_gen_win_origin): Delete.
8366 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8367 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8369 2012-03-01 Pedro Alves <palves@redhat.com>
8371 * remote.c (encode_actions): Delete declaration.
8372 * tracepoint.c (encode_actions): Make extern.
8373 * tracepoint.h (encode_actions): Declare.
8375 2012-03-01 Pedro Alves <palves@redhat.com>
8377 * python/py-breakpoint.c: Include python.h.
8378 * python/py-continueevent.c (create_continue_event_object): Make
8380 * python/py-lazy-string.c (stpy_get_type): Make static.
8381 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8383 * python/py-utils.c (unicode_to_target_python_string): Make
8385 * python/py-value.c: Include python.h.
8387 2012-03-01 Pedro Alves <palves@redhat.com>
8389 * inferior.c (delete_threads_of_inferior): Delete.
8391 2012-03-01 Pedro Alves <palves@redhat.com>
8393 Import fallback definitions from glibc.
8395 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8396 ps_prochandle): Forward declare.
8397 (ps_err_e): Use glibc's comments.
8398 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8399 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8400 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8401 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8402 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8403 (struct ps_prochandle): Adjust comment.
8405 2012-03-01 Pedro Alves <palves@redhat.com>
8407 * ada-lang.c (ada_modulus_from_name): Delete.
8408 * ada-lex.l (lexer_init): Make static.
8410 2012-03-01 Pedro Alves <palves@redhat.com>
8414 * frame.c (read_frame_register_unsigned): New.
8415 * frame.h (read_frame_register_unsigned): Declare.
8416 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8418 (print_i387_control_word): New parameter `control_p'. Handle it.
8419 (i387_print_float_info): Handle unavailable float registers.
8421 2012-03-01 Keith Seitz <keiths@redhat.com>
8423 * linespec.c (decode_line_2): Sort the list of methods
8424 alphabetically before presenting the user with a selection
8427 2012-03-01 Doug Evans <dje@google.com>
8429 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8431 (dwarf2_read_abbrevs): Remove corresponding initialization.
8433 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8435 * NEWS: Mention new python command class gdb.COMMAND_USER.
8436 * cli/cli-cmds.c (show_user): Print error when used on a python
8438 (init_cli_cmds): Update documentation strings for "show user" and
8439 "set/show max-user-call-depth" to clarify that it does not apply to
8441 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8443 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8445 * top.c (execute_command): Only execute a user-defined command as a
8446 legacy macro if c->user_commands is set.
8448 2012-03-01 Tom Tromey <tromey@redhat.com>
8450 * valprint.h (struct generic_val_print_decorations): New.
8451 (generic_val_print): Declare.
8452 * valprint.c (generic_val_print): New function.
8453 * p-valprint.c (p_decorations): New global.
8454 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8455 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8456 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8457 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8458 * m2-valprint.c (m2_decorations): New global.
8459 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8460 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8461 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8462 TYPE_CODE_ERROR>: Call generic_val_print.
8463 * f-valprint.c (f_decorations): New global.
8464 (f_val_print): Use print_function_pointer_address.
8465 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8466 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8467 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8469 * c-valprint.c (c_decorations): New global.
8470 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8471 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8472 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8473 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8474 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8475 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8478 2012-03-01 Tom Tromey <tromey@redhat.com>
8480 * valprint.c (val_print): Update.
8481 * p-valprint (pascal_val_print): Return void.
8482 * p-lang.h (pascal_val_print): Return void.
8483 * m2-valprint.c (m2_val_print): Return void.
8484 * m2-lang.h (m2_val_print): Return void.
8485 * language.h (struct language_defn) <la_val_print>: Return void.
8486 * language.c (unk_lang_val_print): Return void.
8487 * jv-valprint.c (java_val_print): Return void.
8488 * jv-lang.h (java_val_print): Return void.
8489 * f-valprint.c (f_val_print): Return void.
8490 * f-lang.h (f_val_print): Return void.
8491 * d-valprint.c (d_val_print): Return void.
8492 (dynamic_array_type): Update.
8493 * d-lang.h (d_val_print): Return void.
8494 * c-valprint.c (c_val_print): Return void.
8495 * c-lang.h (c_val_print): Return void.
8496 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8498 * ada-lang.h (ada_val_print): Return void.
8500 2012-03-01 Tom Tromey <tromey@redhat.com>
8502 * value.h (val_print): Return void.
8503 * valprint.c (val_print): Return void.
8505 2012-03-01 Tom Tromey <tromey@redhat.com>
8507 * value.h (common_val_print): Return void.
8508 * valprint.c (common_val_print): Return void.
8510 2012-03-01 Tom Tromey <tromey@redhat.com>
8512 * value.h (value_print): Return void.
8513 * valprint.c (value_print): Return void.
8514 * p-valprint.c (pascal_value_print): Return void.
8515 * p-lang.h (pascal_value_print): Return void.
8516 * language.h (struct language_defn) <la_value_print>: Return
8518 * language.c (unk_lang_value_print): Return void.
8519 * jv-valprint.c (java_value_print): Return void.
8520 * jv-lang.h (java_value_print): Return void.
8521 * f-valprint.c (c_value_print): Don't declare.
8523 * c-valprint.c (c_value_print): Return void.
8524 * c-lang.h (c_value_print): Return void.
8525 * ada-valprint.c (ada_value_print): Return void.
8526 * ada-lang.h (ada_value_print): Return void.
8528 2012-03-01 Tom Tromey <tromey@redhat.com>
8530 * value.c (value_primitive_field): Handle virtual base classes.
8532 2012-03-01 Tom Tromey <tromey@redhat.com>
8534 * gdbtypes.h (struct vbase): Remove.
8536 2012-03-01 Tom Tromey <tromey@redhat.com>
8538 * c-valprint.c (print_function_pointer_address): Move...
8539 * valprint.c: ... here. Make non-static.
8540 * m2-valprint.c (print_function_pointer_address): Remove.
8541 * valprint.h (print_function_pointer_address): Declare.
8543 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8545 * NEWS: Document the fact that one can provide a condition when
8546 creating an Ada exception catchpoint.
8548 2012-03-01 Tom Tromey <tromey@redhat.com>
8550 * valprint.c (val_print_type_code_flags): Fix placement of
8553 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8555 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8556 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8557 environment variable before calling update-copyright.
8559 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8561 * gnulib/extra/update-copyright: Update to the latest from
8562 gnulib's git repository.
8563 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8564 variable to 2 instead of 1.
8566 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8568 * varobj.c (c_value_of_variable): Remove dead code.
8570 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8572 * ada-lex.p (processId): Do not modify already encoded IDs.
8573 Update function documentation.
8575 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8577 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8578 "name" with "struct symbol *name_sym".
8579 * ada-exp.y (write_var_or_type): Update call to
8580 ada_find_renaming_symbol.
8581 "name" with "struct symbol *name_sym". Adjust Implementation
8582 accordingly. Adjust the function documentation.
8584 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8586 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8587 * ada-lang.c (ada_find_any_type): Add advance declaration.
8588 Make static. Replace ada_find_any_symbol by
8589 ada_find_any_type_symbol.
8590 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8591 Improve function description. Make static.
8592 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8593 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8595 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8597 * ada-lang.c (struct tag_args): Delete.
8598 (ada_get_tsd_type): Function body moved up in source file.
8599 (ada_tag_name_1, ada_tag_name_2): Delete.
8600 (ada_get_tsd_from_tag): New function.
8601 (ada_tag_name_from_tsd): New function.
8602 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8603 to determine the tag name.
8605 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8607 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8609 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8612 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8614 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8616 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8618 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8621 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8623 * ada-lang.c (constrained_packed_array_type): If there is a
8624 parallel XA type, use it to determine the array index type.
8626 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8628 * ada-valprint.c (ada_val_print_1): If our value is a reference
8629 to an array descriptor, dereference it before converting it
8632 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8634 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8635 creating fixed value.
8636 (ada_value_ind, ada_coerce_ref, assign_component)
8637 (ada_evaluate_subexp): Remove call to unwrap_value before
8638 call to ada_to_fixed_value.
8640 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8642 * ada-lang.c (to_fixed_array_type): Set result's type name.
8644 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8646 * ada-lang.c (catch_ada_exception_command_split): Add new
8647 argument cond_string. Add support for condition at end of
8648 "catch exception" commands.
8649 (ada_decode_exception_location): Add new argument cond_string.
8650 Update call to catch_ada_exception_command_split.
8651 (create_ada_exception_catchpoint): Add new argument cond_string.
8652 Set the breakpoint condition if needed.
8653 (catch_ada_exception_command): Update call to
8654 ada_decode_exception_location.
8655 (ada_decode_assert_location): Add function documentation.
8656 Add support for condition at end of "catch assert" command.
8657 (catch_assert_command): Update calls to ada_decode_assert_location
8658 and create_ada_exception_catchpoint.
8660 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8662 Fix disp-step-syscall.exp: fork: single step over fork.
8663 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8664 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8665 comment, change parameters gdbarch and ptid to regcache. Remove
8666 parameter regcache, initialize gdbarch from regcache here.
8667 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8669 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8671 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8672 'syscall'. Make the 'int' check more strict.
8674 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8676 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8677 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8678 (i386_linux_intx80_sysenter_syscall_record): ... here.
8679 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8680 Use the renamed function name.
8682 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8684 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8685 * breakpoint.c (until_break_command): Likewise.
8686 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8687 * infcall.c (call_function_by_hand): Likewise.
8688 * infcmd.c (finish_forward): Likewise.
8689 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8691 2012-02-28 Tristan Gingold <gingold@adacore.com>
8693 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8694 avoid variable assignments inside condition.
8696 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8698 Fix static analysis issue found by cppcheck.
8699 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8700 uninitialized BUF for size 2.
8702 2012-02-27 Chris Dearman <chris@mips.com>
8703 Nathan Froyd <froydnj@codesourcery.com>
8704 Maciej W. Rozycki <macro@codesourcery.com>
8706 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8707 (mips16_instruction_has_delay_slot): Likewise.
8708 (mips_segment_boundary): Likewise.
8709 (mips_adjust_breakpoint_address): Likewise.
8710 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8712 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8713 Maciej W. Rozycki <macro@codesourcery.com>
8715 * infrun.c (handle_inferior_event): Don't proceed through
8716 shared library trampolines if stepping at the machine
8719 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8721 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8724 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8726 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8727 (sh_stub_unwind_sniffer): New functions.
8728 (sh_stub_unwind): New variable.
8729 (sh_gdbarch_init): Wire everything.
8731 2012-02-27 Pedro Alves <palves@redhat.com>
8733 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8734 (linux_nat_post_attach_wait): Adjust to use
8735 linux_proc_pid_is_stopped.
8736 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8737 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8738 based on pid_is_stopped from both linux-nat.c and
8739 gdbserver/linux-low.c, and renamed.
8741 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8743 * remote.c (remote_watchpoint_addr_within_range): New function.
8744 (init_remote_ops): Use it.
8746 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8748 * target.h (target_watchpoint_addr_within_range): Document macro.
8750 2012-02-24 Pedro Alves <palves@redhat.com>
8752 * stack.c (set_last_displayed_sal): Issue internal_error instead
8753 of warning, and issue it after clearing the last displayed sal.
8755 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8756 Pedro Alves <palves@redhat.com>
8758 * breakpoint.c (until_break_command): Install breakpoints after
8759 all frame manipulations.
8761 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8763 * remote.c (remote_supports_cond_breakpoints): New forward
8765 (remote_add_target_side_condition): New function.
8766 (remote_insert_breakpoint): Add target-side breakpoint
8767 conditional if supported.
8768 (remote_insert_hw_breakpoint): Likewise.
8769 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8772 * target.c (update_current_target): Inherit
8773 to_supports_evaluation_of_breakpoint_conditions.
8774 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8776 * target.h (struct target_ops)
8777 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8778 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8780 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8781 (condition_evaluation_both, condition_evaluation_auto,
8782 condition_evaluation_host, condition_evaluation_target,
8783 condition_evaluation_enums, condition_evaluation_mode_1,
8784 condition_evaluation_mode): New static globals.
8785 (translate_condition_evaluation_mode): New function.
8786 (breakpoint_condition_evaluation_mode): New function.
8787 (gdb_evaluates_breakpoint_condition_p): New function.
8788 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8789 (mark_breakpoint_modified): New function.
8790 (mark_breakpoint_location_modified): New function.
8791 (set_condition_evaluation_mode): New function.
8792 (show_condition_evaluation_mode): New function.
8793 (bp_location_compare_addrs): New function.
8794 (get_first_location_gte_addr): New helper function.
8795 (set_breakpoint_condition): Free condition bytecode if locations
8796 has become unconditional. Call mark_breakpoint_modified (...).
8797 (condition_command): Call update_global_location_list (1) for
8799 (breakpoint_xfer_memory): Use is_breakpoint (...).
8800 (is_breakpoint): New function.
8801 (parse_cond_to_aexpr): New function.
8802 (build_target_condition_list): New function.
8803 (insert_bp_location): Handle target-side conditional
8804 breakpoints and call build_target_condition_list (...).
8805 (update_inserted_breakpoint_locations): New function.
8806 (insert_breakpoint_locations): Handle target-side conditional
8808 (bpstat_check_breakpoint_conditions): Add comment.
8809 (bp_condition_evaluator): New function.
8810 (bp_location_condition_evaluator): New function.
8811 (print_breakpoint_location): Print information on where the condition
8813 (print_one_breakpoint_location): Likewise.
8814 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8815 breakpoint location.
8816 (force_breakpoint_reinsertion): New functions.
8817 (update_global_location_list): Handle target-side breakpoint
8819 Reinsert locations that are already inserted if conditions have
8821 (bp_location_dtor): Free agent expression bytecode.
8822 (disable_breakpoint): Call mark_breakpoint_modified (...).
8823 Call update_global_location_list (...) with parameter 1 for breakpoints.
8824 (disable_command): Call mark_breakpoint_location_modified (...).
8825 Call update_global_location_list (...) with parameter 1 for breakpoints.
8826 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8827 (enable_command): mark_breakpoint_location_modified (...).
8828 (_initialize_breakpoint): Update documentation and add
8829 condition-evaluation breakpoint subcommand.
8831 * breakpoint.h: Include ax.h.
8832 (condition_list): New data structure.
8833 (condition_status): New enum.
8834 (bp_target_info) <cond_list>: New field.
8835 (bp_location) <condition_changed, cond_bytecode>: New fields.
8836 (is_breakpoint): New prototype.
8838 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8840 * remote.c (remote_state) <cond_breakpoints>: New field.
8841 (PACKET_ConditionalBreakpoints): New enum.
8842 (remote_cond_breakpoint_feature): New function.
8843 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8844 (remote_supports_cond_breakpoints): New function.
8845 (_initialize_remote): Add new packet configuration for
8846 target-side conditional breakpoints.
8848 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8850 * NEWS: Mention target-side conditional breakpoint support,
8851 new condition-evaluation breakpoint subcommand and remote
8854 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8856 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8859 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8861 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8862 (after_prologue): Remove.
8864 2012-02-23 Tom Tromey <tromey@redhat.com>
8866 * jv-valprint.c (java_val_print): Remove dead code.
8868 2012-02-23 Tristan Gingold <gingold@adacore.com>
8870 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8871 known_tasks_element and known_tasks_length fields.
8872 (read_known_tasks_array): Change argument type. Use pointer type
8873 and number of elements from DATA. Adjust.
8874 (read_known_tasks_list): Likewise.
8875 (get_known_tasks_addr): Remove.
8876 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8877 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8878 type and array length. Merge former get_known_tasks_addr code.
8880 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8883 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8884 it after set_momentary_breakpoint.
8886 2012-02-22 Sterling Augustine <saugustine@google.com>
8889 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8891 2012-02-22 Gary Benson <gbenson@redhat.com>
8893 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8894 (find_slot_in_mapped_hash): Likewise.
8896 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8899 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8900 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8901 * configure: Regenerate.
8903 2012-02-21 Tristan Gingold <gingold@adacore.com>
8904 Pedro Alves <palves@redhat.com>
8906 * ia64-tdep.c: Do not include libunwind-ia64.h.
8907 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8908 Include libunwind-ia64.h instead of libunwind.h.
8909 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8910 for libunwind.h existence.
8911 * configure, config.in: Regenerate.
8913 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8915 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8916 instead of value_rtti_target_type.
8917 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8918 instead of value_rtti_target_type.
8919 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8920 value_rtti_target_type.
8921 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8922 (value_rtti_target_type): Rename to ...
8923 (value_rtti_indirect_type): ... here and make it indirect. Update
8925 * value.c (readjust_indirect_value_type): New function.
8926 (coerce_ref): Support for enclosing type setting for references
8927 with readjust_indirect_value_type.
8928 * value.h (readjust_value_type): New declaration.
8929 (value_rtti_target_type): Rename to ...
8930 (value_rtti_indirect_type): ... here.
8932 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8934 * MAINTAINERS (Write After Approval): Add myself to the list.
8936 2012-02-20 Doug Evans <dje@google.com>
8938 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8939 Rename objfile_p_char parameter to objfilep.
8940 (build_objfile_section_table): Result is now void. All callers
8942 * objfiles.h (struct objfile): Tweak comments, whitespace.
8943 (build_objfile_section_table): Update.
8945 * elfread.c (elf_symfile_segments): Fix warning text.
8947 2012-02-20 Tom Tromey <tromey@redhat.com>
8950 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8951 particular set of file names once.
8952 (dw2_map_symbol_filenames): Likewise.
8954 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8957 * main.c (write_files): Remove the declaration.
8958 (external_editor_command): Move the declaration ...
8959 [GDBTK] (external_editor_command): ... here. Fix the comment.
8961 2012-02-20 Tom Tromey <tromey@redhat.com>
8963 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8966 2012-02-20 Tristan Gingold <gingold@adacore.com>
8968 * darwin-nat.h (enum darwin_msg_state): Add comments.
8970 2012-02-20 Tristan Gingold <gingold@adacore.com>
8972 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8975 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8977 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8978 between function description and implementation.
8980 2012-02-17 Tom Tromey <tromey@redhat.com>
8983 * python/py-event.c (event_object_getset): New global.
8984 (event_object_type): Reference it.
8985 * python/py-type.c (field_object_getset): New global.
8986 (field_object_type): Reference it.
8987 * python/python-internal.h (gdb_py_generic_dict): Declare.
8988 * python/py-utils.c (gdb_py_generic_dict): New function.
8990 2012-02-17 Tristan Gingold <gingold@adacore.com>
8992 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8994 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8996 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8997 TYPE_CALLING_CONVENTION annotation.
8999 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9001 * MAINTAINERS: Add rx to target ISA section.
9002 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9003 (ALLDEPFILES): Add rx-tdep.c.
9005 2012-02-16 Tom Tromey <tromey@redhat.com>
9007 * symfile.c (symbol_file_add_main_1): Use inferior's
9009 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9010 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9012 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9014 (follow_exec): Use inferior's symfile_flags.
9015 * inferior.h (struct inferior) <symfile_flags>: New field.
9017 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9020 * remote-sim.c (gdbsim_create_inferior): Call error() when
9021 sim_create_inferior() fails.
9023 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9025 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9027 2012-02-16 Tom Tromey <tromey@redhat.com>
9030 * thread.c (struct current_thread_cleanup) <was_removable>: New
9032 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9033 (make_cleanup_restore_current_thread): Initialize new field.
9035 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9037 * MAINTAINERS: Add rl78 to target ISA section.
9038 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9039 (ALLDEPFILES): Add rl78-tdep.c.
9040 * NEWS: Mention rl78 as a new target.
9042 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9044 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9046 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9048 2012-02-15 Tom Tromey <tromey@redhat.com>
9051 * infcmd.c (registers_info): Print just the current register's
9054 2012-02-15 Tom Tromey <tromey@redhat.com>
9056 * python/py-symbol.c (sympy_value): Use _().
9058 2012-02-15 Pedro Alves <palves@redhat.com>
9060 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9061 output to be like native targets'.
9062 (remote_pid_to_str): Special case the null ptid.
9064 2012-02-14 Stan Shebs <stan@codesourcery.com>
9066 * NEWS: Mention enable count command.
9067 * breakpoint.h (struct breakpoint): New field enable_count.
9068 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9069 (enable_breakpoint): Add arg to call.
9070 (struct disp_data): New struct.
9071 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9072 (do_map_enable_once_breakpoint): Create a struct and pass it.
9073 (do_map_enable_delete_breakpoint): Ditto.
9074 (do_map_enable_count_breakpoint): New function.
9075 (enable_count_command): New function.
9076 (bpstat_stop_status): Decrement enable_count.
9077 (print_one_breakpoint_location): Report enable count.
9078 (_initialize_breakpoint): Add enable count command.
9080 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9082 * rl78-tdep.c (reggroups.h): Include.
9083 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9084 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9085 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9086 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9087 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9088 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9089 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9090 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9091 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9092 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9093 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9094 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9095 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9096 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9097 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9098 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9099 beginning of register list.
9100 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9101 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9102 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9103 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9104 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9105 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9106 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9107 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9108 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9109 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9110 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9111 the pseudo registers. Rearrange other pseudo registers too so
9112 that the bank registers appear at the end.
9113 (rl78_register_type): Account for the fact that the byte sized
9114 bank registers are now pseudo-registers.
9115 (rl78_register_name): Rearrange the register name array. Make
9116 initial set of raw banked registers inaccessible.
9117 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9118 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9119 case for copying bytes back and forth between raw and pseudo
9120 versions of the banked registers. Update other cases to reflect
9122 (rl78_return_value): Update to account for changed names of
9124 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9125 rl78_register_sim_regno().
9127 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9129 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9130 the name parameter being passed to find_pc_partial_function().
9132 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9134 * MAINTAINERS: Step down from being ia64 target maintainer.
9136 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9139 compilation warning.
9141 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9143 Fix crash on loaded shlibs without loaded exec_bfd.
9144 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9145 (set_section_command): Replace exec_bfd by p->bfd.
9147 2012-02-10 Tom Tromey <tromey@redhat.com>
9149 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9150 when we have a C++ qualified name.
9152 2012-02-10 Pedro Alves <palves@redhat.com>
9154 * inferior.c (inferior_pid_to_str): New.
9155 (print_inferior, inferior_command): Use it.
9157 2012-02-10 Pedro Alves <palves@redhat.com>
9159 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9161 * configure: Regenerate.
9163 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9165 * linespec.c (decode_line_internal): Fix comment correctness.
9167 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9170 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9171 * amd64bsd-nat.c: Add support for debug registers (adapted from
9173 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9174 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9175 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9176 (amd64bsd_dr_get_control): New functions.
9177 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9178 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9179 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9180 watchpoints initialization.
9181 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9183 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9185 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9187 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9189 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9191 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9193 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9195 * language.h (symbol_name_cmp_ftype): Renames
9196 symbol_name_match_p_ftype.
9197 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9198 la_get_symbol_name_match_p.
9199 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9200 ada_get_symbol_name_match_p. Update comment.
9201 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9202 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9203 Renames symbol_name_match_p. Update field type.
9204 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9205 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9206 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9207 "la_get_symbol_name_cmp" in comments.
9208 * language.c: Likewise.
9210 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9212 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9214 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9215 (amd64_sol2_gregset32_reg_offs): Likewise.
9217 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9219 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9220 of the returned BFD is allocated by GDB.
9222 2012-02-07 Tom Tromey <tromey@redhat.com>
9225 * python/python-internal.h (frame_object_type): Declare.
9226 * python/py-symbol.c (sympy_needs_frame): New function.
9227 (sympy_value): New function.
9228 (symbol_object_getset): Add "needs_frame".
9229 (symbol_object_methods): Add "value".
9230 * python/py-frame.c (frame_object_type): No longer static.
9232 2012-02-07 Tom Tromey <tromey@redhat.com>
9235 * python/py-symbol.c (sympy_line): New function.
9236 (symbol_object_getset): Add "line".
9238 2012-02-07 Tom Tromey <tromey@redhat.com>
9240 * charset.c (find_charset_names): Check 'in' against NULL.
9242 2012-02-06 Doug Evans <dje@google.com>
9244 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9245 and fields.name members from char * to const char *. All uses updated.
9246 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9247 from char * to const char *. All uses updated.
9248 (type_name_no_tag): Update.
9249 (lookup_unsigned_typename, lookup_signed_typename): Update.
9250 * gdbtypes.c (type_name_no_tag): Change result type
9251 from char * to const char *. All callers updated.
9252 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9253 name parameter from char * to const char *.
9254 * symtab.h (struct cplus_specific): Change type of demangled_name
9255 member from char * to const char *. All uses updated.
9256 (struct general_symbol_info): Change type of name and
9257 mangled_lang.demangled_name members from char * to const char *.
9259 (symbol_get_demangled_name, symbol_natural_name): Update.
9260 (symbol_demangled_name, symbol_search_name): Update.
9261 * symtab.c (symbol_get_demangled_name): Change result type
9262 from char * to const char *. All callers updated.
9263 (symbol_natural_name, symbol_demangled_name): Ditto.
9264 (symbol_search_name): Ditto.
9265 (completion_list_add_name): Change type of symname,sym_text,
9266 text,word parameters from char * to const char *.
9267 (completion_list_objc_symbol): Change type of sym_text,
9268 text,word parameters from char * to const char *.
9269 * ada-lang.c (find_struct_field): Change type of name parameter
9270 from char * to const char *.
9271 (encoded_ordered_before): Similarly for N0,N1 parameters.
9272 (old_renaming_is_invisible): Similarly for function_name parameter.
9273 (ada_type_name): Change result type from char * to const char *.
9274 All callers updated.
9275 * ada-lang.h (ada_type_name): Update.
9276 * buildsym.c (hashname): Change type of name parameter
9277 from char * to const char *.
9278 * buildsym.h (hashname): Update.
9279 * dbxread.c (end_psymtab): Change type of include_list parameter
9280 from char ** to const char **.
9281 * dwarf2read.c (determine_prefix): Change result type
9282 from char * to const char *. All callers updated.
9283 * f-lang.c (find_common_for_function): Change type of name, funcname
9284 parameters from char * to const char *.
9285 * f-lang.c (find_common_for_function): Update.
9286 * f-valprint.c (list_all_visible_commons): Change type of funcname
9287 parameters from char * to const char *.
9288 * gdbarch.sh (static_transform_name): Change type of name parameter
9289 and result from char * to const char *.
9290 * gdbarch.c: Regenerate.
9291 * gdbarch.h: Regenerate.
9292 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9293 of name parameter from char * to const char *.
9294 * jv-lang.c (java_primitive_type_from_name): Ditto.
9295 (java_demangled_signature_length): Similarly for signature parameter.
9296 (java_demangled_signature_copy): Ditto.
9297 (java_demangle_type_signature): Ditto.
9298 * jv-lang.h (java_primitive_type_from_name): Update.
9299 (java_demangle_type_signature): Update.
9300 * objc-lang.c (specialcmp): Change type of a,b parameters
9301 from char * to const char *.
9302 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9303 from char * to const char *. All callers updated.
9304 * p-lang.h (is_pascal_string_type): Update.
9305 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9306 of name parameter from char * to const char *.
9307 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9308 * utils.c (fprintf_symbol_filtered): Ditto.
9309 * defs.h (fprintf_symbol_filtered): Update.
9310 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9311 * stabsread.h (end_psymtab): Update.
9312 * stack.c (find_frame_funname): Change type of funname parameter
9313 from char ** to const char **.
9314 * stack.h (find_frame_funname): Update.
9315 * typeprint.c (type_print): Change type of varstring parameter
9316 from char * to const char *.
9317 * value.h (type_print): Update.
9318 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9319 from char * to const char *. All callers updated.
9320 (xcoff_end_psymtab): Change type of include_list parameter
9321 from char ** to const char **. All callers updated.
9322 (swap_sym): Similarly for name parameter. All callers updated.
9323 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9325 (process_coff_symbol): Use xstrdup.
9326 * stabsread.c (stabs_method_name_from_physname): Renamed from
9327 update_method_name_from_physname. Change result type from void
9328 to char *. All callers updated.
9329 (read_member_functions): In has_destructor case, store name in objfile
9330 obstack instead of malloc space. In !has_stub case, fix mem leak.
9332 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9334 * configure: Rebuild.
9335 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9338 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9340 * configure.tgt (rl78-*-elf): New target.
9341 * rl78-tdep.c: New file.
9343 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9345 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9346 and continue the loop. Add QUIT statement.
9348 2012-02-03 Tom Tromey <tromey@redhat.com>
9351 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9352 bfd_lookup_symbol_from_symtab.
9353 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9354 gdb_bfd_lookup_symbol_from_symtab.
9356 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9358 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9359 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9360 symbol. Add assertion that sym2 is never NULL.
9362 2012-02-02 Doug Evans <dje@google.com>
9364 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9365 "name" parameter to const char ** from char **. All callers updated.
9366 (find_pc_partial_function): Ditto.
9367 (cache_pc_function_name): Change type to const char * from char *.
9368 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9369 (find_pc_partial_function): Update.
9370 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9371 type of "name" parameter to const char * from char *.
9373 * arch-utils.c (generic_in_solib_return_trampoline): Change
9374 type of "name" parameter to const char * from char *.
9375 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9376 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9377 type of "name" parameter to const char * from char *.
9378 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9379 * gdbarch.c: Regenerate.
9380 * gdbarch.h: Regenerate.
9381 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9382 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9383 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9384 type of "name" parameter to const char * from char *.
9385 * skip.c (skip_function_pc): Ditto.
9386 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9387 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9388 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9389 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9390 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9391 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9392 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9393 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9394 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9396 2012-02-02 Pedro Alves <palves@redhat.com>
9398 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9399 the current inferior has no execution. Make sure the current
9400 remote process matches gdb's current inferior.
9402 2012-02-02 Tom Tromey <tromey@redhat.com>
9405 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9408 2012-02-02 Tom Tromey <tromey@redhat.com>
9411 * symtab.c (lookup_language_this): Set block_found.
9413 2012-02-01 Tom Tromey <tromey@redhat.com>
9416 * jit.c (struct jit_inferior_data): Rewrite.
9417 (struct jit_objfile_data): New.
9418 (get_jit_objfile_data): New function.
9419 (add_objfile_entry): Update.
9420 (jit_read_descriptor): Return int. Replace descriptor_addr
9421 argument with inf_data. Update. Don't call error.
9422 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9424 (jit_inferior_init): Don't look up descriptor. Don't call error.
9425 (jit_reset_inferior_data_and_breakpoints)
9426 (jit_inferior_created_observer): Remove.
9427 (jit_inferior_exit_hook): Update.
9428 (jit_executable_changed_observer): Remove.
9429 (jit_event_handler): Update.
9430 (free_objfile_data): Reset inferior data if needed.
9431 (_initialize_jit): Update.
9433 2012-02-01 Tom Tromey <tromey@redhat.com>
9435 * jit.c (bfd_open_from_target_memory): Move higher in file.
9437 2012-02-01 Tristan Gingold <gingold@adacore.com>
9439 * libunwind-frame.c (libunwind_load): Display message if dlopen
9442 2012-02-01 Gary Benson <gbenson@redhat.com>
9444 * symtab.h (symbol_found_callback_ftype): New typedef.
9445 (iterate_over_symbols): Use the above.
9446 * symtab.c (iterate_over_symbols): Likewise.
9447 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9448 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9449 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9450 (iterate_name_matcher): Document return values.
9451 (collect_one_symbol): Likewise.
9452 (collect_function_symbols): Likewise.
9453 (collect_symbols): Likewise.
9455 2012-02-01 Tom Tromey <tromey@redhat.com>
9457 * ada-lang.c (resolve_subexp): Update.
9458 (ada_lookup_symbol_list): Add 'full_search' argument.
9459 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9460 ada_lookup_symbol_list.
9461 (ada_lookup_encoded_symbol): Update.
9462 (get_var_value): Update.
9463 * ada-exp.y (block_lookup): Update.
9464 (write_var_or_type): Update.
9465 (write_name_assoc): Update.
9466 * ada-lang.h (ada_lookup_symbol_list): Update.
9468 2012-01-31 Tom Tromey <tromey@redhat.com>
9470 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9473 2012-01-31 Doug Evans <dje@google.com>
9475 * symtab.h: Remove outdated comment.
9476 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9478 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9480 Fix build error in Darwin port.
9481 * i386-darwin-nat.c: Include i386-nat.h.
9483 2012-01-30 Tom Tromey <tromey@redhat.com>
9485 PR breakpoints/13568:
9486 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9487 argument. Check for recursive includes.
9488 (dwarf_decode_macros): Create an include hash.
9490 2012-01-30 Michael Eager <eager@eagercon.com>
9492 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9493 * ppc-linux-tdep.c: Include glibc-tdep.h.
9494 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9495 (powerpc_linux_in_plt_stub): New function.
9496 (powerpc_linux_in_dynsym_resolve_code): New function.
9497 (ppc_skip_trampoline_code): New function.
9498 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9499 Use glibc_skip_solib_resolver.
9501 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9503 Code cleanup: Make 1440 bytes of data segment read-only.
9504 * arch-utils.c (endian_enum): Make it const char *const [].
9505 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9507 * breakpoint.c (always_inserted_enums): Likewise.
9508 * cli/cli-cmds.c (script_ext_enums): Likewise.
9509 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9510 enumlist parameter const char *const *.
9511 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9512 const char *const *.
9513 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9514 parameter const char *const *.
9515 * cris-tdep.c (cris_modes): Make it const char *const [].
9516 * filesystem.c (target_file_system_kinds): Likewise.
9517 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9518 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9519 (can_use_displaced_stepping_enum, scheduler_enums)
9520 (exec_direction_names): Likewise.
9521 * language.c (_initialize_language): Make the type_or_range_names and
9522 case_sensitive_names variables const char *const [].
9523 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9524 * python/python.c (python_excp_enums): Likewise.
9525 * remote.c (interrupt_sequence_modes): Likewise.
9526 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9527 * serial.c (logbase_enums): Likewise.
9528 * sh-tdep.c (sh_cc_enum): Likewise.
9529 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9531 * symtab.c (multiple_symbols_modes): Likewise.
9532 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9534 * utils.c (internal_problem_modes): Likewise.
9536 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9538 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9539 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9542 2012-01-27 Doug Evans <dje@google.com>
9544 * configure.ac (with_python): Fix absolute path handling for win32.
9545 * configure: Regenerate.
9547 2012-01-26 Doug Evans <dje@google.com>
9549 * symtab.c: Whitespace cleanup, no code changes.
9551 * symtab.c (lookup_symbol_in_language): Improve comment.
9552 (lookup_symbol_aux): Fix comment.
9554 * psymtab.c (add_psymbol_to_list): Result is now "void".
9555 * psympriv.h (add_psymbol_to_list): Update.
9557 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9559 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9561 Do not open script filenames twice.
9562 * cli/cli-cmds.c (source_script_from_stream): Pass to
9563 source_python_script also STREAM.
9564 * python/py-auto-load.c (source_section_scripts): Pass to
9565 source_python_script_for_objfile also STREAM.
9566 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9568 * python/python-internal.h (source_python_script_for_objfile): New
9569 parameter file, rename parameter file to filename.
9570 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9571 instead if !_WIN32. Update the function comment.
9572 (source_python_script, source_python_script_for_objfile)
9573 (source_python_script): New parameter file, rename parameter file to
9574 filename. Pass FILENAME to python_run_simple_file.
9575 * python/python.h (source_python_script): New parameter file, rename
9576 parameter file to filename.
9578 2012-01-26 Pedro Alves <palves@redhat.com>
9580 * corelow.c (core_has_fake_pid): Delete.
9581 (core_close): Delete references to `core_has_fake_pid'.
9582 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9583 (core_open): Delete references to `core_has_fake_pid'.
9584 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9587 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9589 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9590 Remove language parameter from name_matcher. Adjust the comment.
9591 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9592 Remove language parameter.
9593 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9594 * linespec.c (iterate_name_matcher): Likewise.
9595 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9596 name_matcher. Adjust call accordingly.
9597 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9598 (maintenance_check_symtabs): Adjust type of parameter "fun".
9599 * psymtab.h (maintenance_check_symtabs): Likewise.
9601 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9603 * language.h (symbol_name_match_p_ftype): New typedef.
9604 (struct language_defn): Replace field la_symbol_name_compare
9605 by la_get_symbol_name_match_p.
9606 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9607 (ada_language_defn): Use it.
9608 * linespec.c (struct symbol_matcher_data): New type.
9609 (iterate_name_matcher): Rewrite.
9610 (iterate_over_all_matching_symtabs): Pass a pointer to
9611 a symbol_matcher_data struct to expand_symtabs_matching
9612 instead of just the lookup name.
9613 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9614 opencl-lang.c, p-lang.c, language.c: Delete field
9615 la_symbol_name_compare, and replace by NULL for new field
9616 la_get_symbol_name_match_p.
9617 * symfile.h (struct quick_symbol_functions): Update comment.
9619 2012-01-25 Tom Tromey <tromey@redhat.com>
9621 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9624 2012-01-24 Tom Tromey <tromey@redhat.com>
9627 * solib.c (update_solib_list): Update the program space's
9628 added_solibs and deleted_solibs fields.
9629 * progspace.h (struct program_space) <added_solibs,
9630 deleted_solibs>: New fields.
9631 (clear_program_space_solib_cache): Declare.
9632 * progspace.c (release_program_space): Call
9633 clear_program_space_solib_cache.
9634 (clear_program_space_solib_cache): New function.
9635 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9636 bpstat_stop_status. Use handle_solib_event.
9637 * breakpoint.c: Include gdb_regex.h.
9638 (print_solib_event): New function.
9639 (bpstat_print): Use print_solib_event.
9640 (bpstat_stop_status): Add special case for bp_shlib_event.
9641 (handle_solib_event): New function.
9642 (bpstat_what): Use handle_solib_event.
9643 (struct solib_catchpoint): New.
9644 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9645 (breakpoint_hit_catch_solib, check_status_catch_solib)
9646 (print_it_catch_solib, print_one_catch_solib)
9647 (print_mention_catch_solib, print_recreate_catch_solib): New
9649 (catch_solib_breakpoint_ops): New global.
9650 (catch_load_or_unload, catch_load_command_1)
9651 (catch_unload_command_1): New functions.
9652 (internal_bkpt_check_status): Add special case for
9654 (internal_bkpt_print_it): Use print_solib_event.
9655 (initialize_breakpoint_ops): Initialize
9656 catch_solib_breakpoint_ops.
9657 (_initialize_breakpoint): Register "catch load" and "catch
9659 * breakpoint.h (handle_solib_event): Declare.
9660 * NEWS: Add entry for "catch load" and "catch unload".
9662 2012-01-24 Tom Tromey <tromey@redhat.com>
9664 * ada-lang.c: Include gdb_vecs.h.
9665 * charset.c: Include gdb_vecs.h.
9666 * tracepoint.h: Include gdb_vecs.h.
9667 * gdb_vecs.h: New file.
9669 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9671 * breakpoint.c (breakpoint_hit_catch_fork)
9672 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9673 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9674 * infrun.c (inferior_has_forked, inferior_has_vforked)
9675 (inferior_has_execd, inferior_has_called_syscall): Delete.
9676 (handle_syscall_event): Get syscall_number from the execution
9677 control state's wait status.
9678 (wait_for_inferior): Don't clear syscall_number.
9680 2012-01-24 Pedro Alves <palves@redhat.com>
9682 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9683 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9684 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9685 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9687 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9688 false for events other than TARGET_SIGNAL_TRAP.
9689 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9691 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9692 events other than TARGET_SIGNAL_TRAP.
9693 (tracepoint_breakpoint_hit): Add `ws' parameter.
9694 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9696 (bpstat_stop_status): Same.
9697 (pc_at_non_inline_function): Same.
9698 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9699 to pass the current event's waitstatus to bpstat_stop_status
9700 and pc_at_non_inline_function.
9702 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9705 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9706 Update the function comment for it.
9707 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9708 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9711 2012-01-24 Pedro Alves <palves@redhat.com>
9713 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9714 outside `bs->stop' block.
9715 (bpstat_what): Rework bp_shlib_event handling.
9716 (internal_bkpt_check_status): If the breakpoint is a
9717 bp_shlib_event, then set bs->stop and bs->print if
9718 stop_on_solib_events is set.
9720 2012-01-24 Gary Benson <gbenson@redhat.com>
9722 Delete #if 0'd out code.
9723 * stack.c (print_frame_label_vars): Remove.
9724 (catch_info): Likewise.
9725 (_initialize_stack): Remove "info catch" command.
9726 * NEWS: Mention the above.
9728 2012-01-24 Pedro Alves <palves@redhat.com>
9730 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9732 (remote_notice_new_inferior): If the remote end doesn't support
9733 the multiprocess extensions, then the PID is fake.
9734 (add_current_inferior_and_thread): New.
9735 (remote_start_remote): Use it.
9736 (extended_remote_attach_1): Adjust.
9737 (extended_remote_create_inferior_1): Use
9738 add_current_inferior_and_thread.
9740 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9742 Fix watchpoints to be specific for each inferior.
9743 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9744 current_program_space.
9745 * i386-nat.c (i386_inferior_data_cleanup): New.
9746 (i386_inferior_data_get): Replace variable inf_data_local by an
9748 (i386_use_watchpoints): Initialize i386_inferior_data.
9749 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9750 specific iterate_over_lwps.
9752 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9754 Fix watchpoints across inferior fork.
9755 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9756 comment for linux_nat_iterate_watchpoint_lwps.
9757 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9758 linux_nat_iterate_watchpoint_lwps.
9759 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9760 * i386-linux-nat.c (update_debug_registers_callback): Update the
9761 comment for linux_nat_iterate_watchpoint_lwps.
9762 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9763 linux_nat_iterate_watchpoint_lwps.
9764 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9765 * i386-nat.c: Include inferior.h.
9766 (dr_mirror): Remove.
9767 (i386_inferior_data, struct i386_inferior_data)
9768 (i386_inferior_data_get): New.
9769 (i386_debug_reg_state): Use i386_inferior_data_get.
9770 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9771 (i386_insert_watchpoint, i386_remove_watchpoint)
9772 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9773 (i386_remove_hw_breakpoint): New variable state, use
9774 i386_debug_reg_state instead of DR_MIRROR.
9775 * linux-nat.c (delete_lwp): New declaration.
9776 (num_lwps): Move here from downwards.
9777 (delete_lwp_cleanup): New.
9778 (linux_child_follow_fork): Create new child_lp, call
9779 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9781 (num_lwps): Move upwards.
9782 (linux_nat_iterate_watchpoint_lwps): New.
9783 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9784 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9786 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9790 2012-01-23 Pedro Alves <palves@redhat.com>
9792 * top.c (caution): Rename to ...
9793 (confirm): ... this.
9794 (show_caution): Rename to ...
9795 (show_confirm): ... this.
9796 (quit_cover): Adjust.
9797 (init_main): Adjust.
9798 * top.h (caution): Rename to ...
9799 (confirm): ... this.
9800 * utils.c (internal_vproblem, defaulted_query): Adjust.
9802 2012-01-23 Pedro Alves <palves@redhat.com>
9804 * top.c (caution): Update comment.
9805 (execute_command): Don't consider the current value of `caution'.
9807 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9809 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9811 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9813 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9814 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9815 * target.c (target_fileio_pwrite): Remove buffer address from
9817 (target_fileio_pread): Likewise.
9819 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9821 * NEWS: Document remote "info proc" and "generate-core-file".
9823 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9825 * gdbarch.sh (find_memory_regions): New callback.
9826 * gdbarch.c, gdbarch.h: Regenerate.
9828 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9829 callback before falling back to target method.
9831 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9832 (linux_target_install_ops): No longer install it.
9834 * linux-tdep.c (linux_find_memory_regions): New function.
9835 (linux_init_abi): Install it.
9837 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9839 * gdbarch.sh (make_corefile_notes): New architecture callback.
9840 * gdbarch.c: Regenerate.
9841 * gdbarch.h: Likewise.
9843 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9844 before target_make_corefile_notes. If NULL is returned, the
9845 target does not support core file generation.
9847 * linux-nat.c: Include "linux-tdep.h".
9848 (find_signalled_thread, find_stop_signal): Remove.
9849 (linux_nat_do_thread_registers): Likewise.
9850 (struct linux_nat_corefile_thread_data): Likewise.
9851 (linux_nat_corefile_thread_callback): Likewise.
9852 (iterate_over_spus): Likewise.
9853 (struct linux_spu_corefile_data): Likewise.
9854 (linux_spu_corefile_callback): Likewise.
9855 (linux_spu_make_corefile_notes): Likewise.
9856 (linux_nat_collect_thread_registers): New function.
9857 (linux_nat_make_corefile_notes): Replace contents by call to
9858 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9859 as native-only callback.
9861 * linux-tdep.h: Include "bfd.h".
9862 (struct regcache): Add forward declaration.
9863 (linux_collect_thread_registers_ftype): New typedef.
9864 (linux_make_corefile_notes): Add prototype.
9865 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9866 "regset.h", and "elf-bfd.h".
9867 (find_signalled_thread, find_stop_signal): New functions.
9868 (linux_spu_make_corefile_notes): Likewise.
9869 (linux_collect_thread_registers): Likewise.
9870 (struct linux_corefile_thread_data): New data structure.
9871 (linux_corefile_thread_callback): New funcion.
9872 (linux_make_corefile_notes): Likewise.
9873 (linux_make_corefile_notes_1): Likewise.
9874 (linux_init_abi): Install it.
9876 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9878 * gdbarch.sh (info_proc): New callback.
9879 * gdbarch.c, gdbarch.h: Regenerate.
9881 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9882 before falling back to the target info_proc callback.
9884 * linux-nat.c: Do not include "cli/cli-utils.h".
9885 (linux_nat_info_proc): Remove.
9886 (linux_target_install_ops): No longer install it.
9888 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9889 (read_mapping): New function.
9890 (linux_info_proc): Likewise.
9891 (linux_init_abi): Install it.
9893 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9895 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9896 * infcmd.c: (info_proc_cmd_1): New function.
9897 (info_proc_cmd): New function, moved here from equivalent routine
9898 orignally in linux-nat.c.
9899 (info_proc_cmd_mappings): Likewise.
9900 (info_proc_cmd_stat): Likewise.
9901 (info_proc_cmd_status): Likewise.
9902 (info_proc_cmd_cwd): Likewise.
9903 (info_proc_cmd_cmdline): Likewise.
9904 (info_proc_cmd_exe): Likewise.
9905 (info_proc_cmd_all): Likewise.
9906 (_initialize_infcmd): Install "info proc" command and subcommands.
9908 * target.h (struct target_ops): Add to_info_proc.
9909 (target_info_proc): Add prototype.
9910 * target.c (target_info_proc): New function.
9912 * procfs.c (procfs_info_proc): Add prototype.
9913 (info_proc_cmd): Rename into ...
9914 (procfs_info_proc): ... this. Update argument types as appropriate
9915 for a to_info_proc implementation. Handle "what" argument.
9916 (procfs_target): Install procfs_info_proc.
9917 (_initialize_procfs): No longer install "info proc" command.
9919 * linux-nat.c: (enum info_proc_what): Remove.
9920 (linux_nat_info_proc_cmd_1): Rename into ...
9921 (linux_nat_info_proc): ... this. Update argument types as appropriate
9922 for a to_info_proc implementation.
9923 (linux_nat_info_proc_cmd): Remove.
9924 (linux_nat_info_proc_cmd_mappings): Likewise.
9925 (linux_nat_info_proc_cmd_stat): Likewise.
9926 (linux_nat_info_proc_cmd_status): Likewise.
9927 (linux_nat_info_proc_cmd_cwd): Likewise.
9928 (linux_nat_info_proc_cmd_cmdline): Likewise.
9929 (linux_nat_info_proc_cmd_exe): Likewise.
9930 (linux_nat_info_proc_cmd_all): Likewise.
9931 (linux_target_install_ops): Install linux_nat_info_proc.
9932 (_initialize_linux_nat): No longer install "info proc" command
9935 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9937 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9938 * config.in, configure: Regenerate.
9940 * target.h (struct target_ops): Add to_fileio_readlink.
9941 (target_fileio_readlink): Add prototype.
9942 * target.c (target_fileio_readlink): New function.
9944 * inf-child.c: Conditionally include <sys/param.h>.
9945 (inf_child_fileio_readlink): New function.
9946 (inf_child_target): Install it.
9948 * remote.c (PACKET_vFile_readlink): New enum value.
9949 (remote_hostio_readlink): New function.
9950 (init_remote_ops): Install it.
9951 (_initialize_remote): Handle vFile:readlink packet type.
9953 2012-01-20 Pedro Alves <palves@redhat.com>
9954 Ulrich Weigand <ulrich.weigand@linaro.org>
9956 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9957 * config.in, configure: Regenerate.
9959 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9960 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9961 (target_fileio_open): Add prototype.
9962 (target_fileio_pwrite): Likewise.
9963 (target_fileio_pread): Likewise.
9964 (target_fileio_close): Likewise.
9965 (target_fileio_unlink): Likewise.
9966 (target_fileio_read_alloc): Likewise.
9967 (target_fileio_read_stralloc): Likewise.
9969 * target.c: Include "gdb/fileio.h".
9970 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9971 (default_fileio_target): New function.
9972 (target_fileio_open): Likewise.
9973 (target_fileio_pwrite): Likewise.
9974 (target_fileio_pread): Likewise.
9975 (target_fileio_close): Likewise.
9976 (target_fileio_unlink): Likewise.
9977 (target_fileio_close_cleanup): Likewise.
9978 (target_fileio_read_alloc_1): Likewise.
9979 (target_fileio_read_alloc): Likewise.
9980 (target_fileio_read_stralloc): Likewise.
9982 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9983 <fcntl.h>, and <unistd.h>.
9984 (inf_child_fileio_open_flags_to_host): New function.
9985 (inf_child_errno_to_fileio_error): Likewise.
9986 (inf_child_fileio_open): Likewise.
9987 (inf_child_fileio_pwrite): Likewise.
9988 (inf_child_fileio_pread): Likewise.
9989 (inf_child_fileio_close): Likewise.
9990 (inf_child_fileio_unlink): Likewise.
9991 (inf_child_target): Install to_fileio routines.
9993 * remote.c (init_remote_ops): Install to_fileio routines.
9995 2012-01-20 Pedro Alves <palves@redhat.com>
9996 Ulrich Weigand <ulrich.weigand@linaro.org>
9998 * remote.c (remote_multi_process_p): Only check for multi-process
9999 protocol feature, do not check for extended protocol.
10000 (remote_supports_multi_process): Check for extended protocol here.
10001 (set_general_process): Likewise.
10002 (extended_remote_kill): Likewise.
10003 (remote_pid_to_str): Likewise.
10004 (remote_query_supported): Always query multiprocess mode.
10006 2012-01-20 Pedro Alves <palves@redhat.com>
10007 Ulrich Weigand <ulrich.weigand@linaro.org>
10009 * inferior.h (struct inferior): Add fake_pid_p.
10010 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10011 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10012 magic_null_ptid since the remote side doesn't provide a real PID.
10014 2012-01-19 Tom Tromey <tromey@redhat.com>
10016 * NEWS: Combine the two Python sections.
10018 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10020 * target.h (target_close): Update comment on the target's unpush state.
10022 2012-01-19 Pedro Alves <palves@redhat.com>
10024 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10025 linux_nat_async directly instead of going through the target
10027 * target.c (unpush_target): Close target after unpushing it, not
10030 2012-01-19 Gary Benson <gbenson@redhat.com>
10032 * mdebugread.c (sort_blocks): Replace integer constants with ones
10033 derived from FIRST_LOCAL_BLOCK.
10035 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10036 Jan Kratochvil <jan.kratochvil@redhat.com>
10039 * symfile.c (find_separate_debug_file): New function.
10040 (terminate_after_last_dir_separator): Likewise.
10041 (find_separate_debug_file_by_debuglink): Also try realpath.
10042 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10043 * configure: Regenerate.
10044 * config.in: Regenerate.
10046 2012-01-18 Doug Evans <dje@google.com>
10048 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10049 (main.o): Remove rule.
10050 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10051 (--with-sysroot): Rewrite.
10052 * configure: Regenerate.
10053 * config.in: Regenerate.
10055 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10057 * parse.c (initialize_expout): New function.
10058 (reallocate_expout): Likewise.
10059 (parse_exp_in_context): Use `initialize_expout' and
10060 `reallocate_expout' when appropriate.
10062 2012-01-18 Pedro Alves <palves@redhat.com>
10064 * record.c (struct record_breakpoint, record_breakpoint_p)
10065 (record_breakpoints): New.
10066 (record_insert_breakpoint, record_remove_breakpoint): Manage
10067 record breakpoints list. Only remove breakpoints from the
10068 inferior if they had been inserted there in the first place.
10070 2012-01-17 Doug Evans <dje@google.com>
10072 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10073 if we know we don't have a file name to look for.
10075 2012-01-17 Pedro Alves <palves@redhat.com>
10077 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10078 the frame's stop reason is UNWIND_UNAVAILABLE.
10080 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10082 Fix compilation error.
10083 * m2-exp.y (yyerror): Use ANSI C prototype.
10085 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10087 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10088 (growbuf_by_size): Likewise.
10089 (yyerror): Likewise.
10090 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10091 (modblock): Remove variable (was #if 0'ed).
10092 (parse_number): Convert prototype from K&R to ANSI C.
10093 (yyerror): Likewise.
10094 * objc-exp.y (parse_number): Likewise.
10095 (yyerror): Likewise.
10096 (yylex): Remove #if 0'ed code.
10097 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10098 (yyerror): Likewise.
10100 2012-01-16 Tom Tromey <tromey@redhat.com>
10103 * symtab.h (compare_filenames_for_search): Declare.
10104 * symtab.c (compare_filenames_for_search): New function.
10105 (iterate_over_some_symtabs): Use it.
10106 * symfile.h (struct quick_symbol_functions)
10107 <map_symtabs_matching_filename>: Change spec.
10108 * psymtab.c (partial_map_symtabs_matching_filename): Use
10109 compare_filenames_for_search. Update for new spec.
10110 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10111 compare_filenames_for_search. Update for new spec.
10112 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10114 2012-01-16 Tom Tromey <tromey@redhat.com>
10117 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10118 (struct main_type) <flag_flag_enum>: New field.
10119 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10120 * NEWS: Add entries.
10121 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10123 * python/lib/gdb/printing.py (_EnumInstance): New class.
10124 (FlagEnumerationPrinter): Likewise.
10126 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10128 * breakpoint.c (create_sals_from_address_default): New function.
10129 (create_breakpoints_sal_default): Likewise.
10130 (decode_linespec_default): Likewise.
10131 (is_marker_spec): Removed.
10132 (strace_marker_p): New function.
10133 (init_breakpoint_sal): Using `strace_marker_p' instead of
10135 (create_breakpoint): Call method `create_sals_from_address' from
10136 breakpoint_ops, replacing code that created SALs conditionally
10137 on the type of the breakpoint. Call method `create_breakpoints_sal',
10138 replacing code that created breakpoints conditionally on the type
10140 (base_breakpoint_create_sals_from_address): New function.
10141 (base_breakpoint_create_breakpoints_sal): Likewise.
10142 (base_breakpoint_decode_linespec): Likewise.
10143 (base_breakpoint_ops): Add methods
10144 `base_breakpoint_create_sals_from_address',
10145 `base_breakpoint_create_breakpoints_sal' and
10146 `base_breakpoint_decode_linespec'.
10147 (bkpt_create_sals_from_address): New function.
10148 (bkpt_create_breakpoints_sal): Likewise.
10149 (bkpt_decode_linespec): Likewise.
10150 (tracepoint_create_sals_from_address): Likewise.
10151 (tracepoint_create_breakpoints_sal): Likewise.
10152 (tracepoint_decode_linespec): Likewise.
10153 (strace_marker_create_sals_from_address): Likewise.
10154 (strace_marker_create_breakpoints_sal): Likewise.
10155 (strace_marker_decode_linespec): Likewise.
10156 (strace_marker_breakpoint_ops): New variable.
10157 (addr_string_to_sals): Remove `marker_spec'. Call method
10158 `decode_linespec' from breakpoint_ops, replacing code that decoded
10159 an address string into a SAL. Use `strace_marker_p' instead of
10161 (strace_command): Decide whether we are dealing with a static
10162 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10163 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10164 * breakpoint.h (linespec_result, linespec_sals): New forward
10166 (breakpoint_ops) <create_sals_from_address>,
10167 <create_breakpoints_sal>, <decode_linespec>: New methods.
10169 2012-01-14 Doug Evans <dje@google.com>
10171 * NEWS: Update text for "maint set python print-stack".
10172 It is deprecated in gdb 7.4 and deleted in 7.5.
10174 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10176 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10177 including curses.h.
10179 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10181 * configure: Regenerate.
10182 * config.in: Regenerate.
10184 2012-01-12 Keith Seitz <keiths@redhat.com>
10187 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10188 (ANONYMOUS_UNION_NAME): Define.
10189 (is_path_expr_parent): New function.
10190 (get_path_expr_parent): New function.
10191 (is_anonymous_child): New function.
10192 (create_child_with_value): If the child is anonymous and without
10193 a name, assign an object name to it.
10194 (c_describe_child): Use get_path_expr_parent to determine
10195 the parent expression.
10196 If there field represents an anonymous struct or union and
10197 has no name, set an appropriate display name and expression.
10198 (cplus_describe_child): Likewise.
10200 2012-01-12 Pedro Alves <palves@redhat.com>
10202 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10203 available when %ebp is found to be zero (outermost).
10205 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10207 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10208 an internal gdb_static_assert.
10209 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10211 2012-01-11 Tom Tromey <tromey@redhat.com>
10214 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10215 catch" and "catch throw".
10217 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10219 * blockframe.c (block_innermost_frame): Start search from selected
10220 frame, if present, or otherwise the current frame.
10222 * c-exp.y (variable): Update innermost_block for
10223 'block COLONCOLON NAME' clause.
10224 * m2-exp.y (variable): Ditto.
10225 * objc-exp.y (variable): Ditto.
10227 2012-01-10 Tom Tromey <tromey@redhat.com>
10230 * python/python.c (finish_python_initialization): Set sys.argv.
10232 2012-01-10 Doug Evans <dje@google.com>
10234 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10235 "want_line_info". All callers updated.
10236 (dwarf_decode_lines_1): New function.
10237 (handle_DW_AT_stmt_list): Add function comment.
10238 New arg "want_line_info". All callers updated.
10239 (read_file_scope,read_type_unit_scope): Move comment from
10240 handle_DW_AT_stmt_list to here.
10242 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10244 Fix regression after libiberty/ update for GCC PR 6057 and others.
10245 * c-exp.y (operator) <OPERATOR DELETE>
10246 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10247 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10248 (make_builtin_type, make_name): New variable i, add gdb_assert.
10249 (operator) <OPERATOR NEW>: Update ARGS to 3.
10250 (operator) <OPERATOR DELETE>: Add trailing space.
10251 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10252 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10253 * cp-support.c (cp_canonicalize_string): Check NULL from
10254 cp_comp_to_string, call warning and return.
10256 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10258 Fix duplicate .o files after omitting libbfd.a.
10259 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10260 (SFILES): Add corelow.c.
10261 (COMMON_OBS): Add corelow.o.
10262 (ALLDEPFILES): Remove corelow.c.
10263 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10264 * config/alpha/alpha-osf3.mh: Likewise.
10265 * config/alpha/fbsd.mh: Likewise.
10266 * config/arm/nbsdaout.mh: Likewise.
10267 * config/arm/nbsdelf.mh: Likewise.
10268 * config/i386/i386gnu.mh: Likewise.
10269 * config/ia64/hpux.mh: Likewise.
10270 * config/ia64/linux.mh: Likewise.
10271 * config/m32r/linux.mh: Likewise.
10272 * config/m68k/linux.mh: Likewise.
10273 * config/mips/irix5.mh: Likewise.
10274 * config/mips/irix6.mh: Likewise.
10275 * config/pa/hpux.mh: Likewise.
10276 * config/pa/linux.mh: Likewise.
10277 * config/powerpc/aix.mh: Likewise.
10278 * config/sparc/linux.mh: Likewise.
10279 * config/sparc/linux64.mh: Likewise.
10280 * config/sparc/sol2.mh: Likewise.
10281 * config/vax/vax.mh: Likewise.
10282 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10283 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10284 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10285 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10286 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10287 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10288 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10289 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10290 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10291 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10292 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10293 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10294 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10295 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10296 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10297 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10298 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10299 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10300 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10301 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10302 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10303 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10304 corelow.o from gdb_target_obs.
10305 * corefile.c (core_target): Update the comment on NULL value.
10306 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10307 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10308 MATCHES. Drop YUMMY set on NULL.
10309 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10310 reclaim CORE_DATA if it is already NULL.
10312 2012-01-09 Doug Evans <dje@google.com>
10314 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10315 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10317 2012-01-09 Keith Seitz <keiths@redhat.com>
10319 * breakpoint.c (wrapper.h): Don't include.
10321 2012-01-09 Keith Seitz <keiths@redhat.com>
10323 * Makefile.in (SFILES): Remove wrapper.c.
10324 (HFILES_NO_SRCDIR): Remove wrapper.h.
10325 (COMMON_OBS): Remove wrapper.o.
10326 * cli/cli-interp.c: Don't inlude wrapper.h.
10327 * corelow.c: Likewise.
10328 (core_open): Replace gdb_target_find_new_threads with
10329 TRY_CATCH around target_find_new_threads.
10330 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10331 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10332 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10333 evaluate_expression.
10334 (varobj_set_value): Likewise for evaluate_expression and
10336 (install_new_variable): Likewise for value_fetch_lazy.
10337 (adjust_value_for_child_access): Likewise for value_ind.
10338 (c_describe_child): Likewise for value_subscript and
10340 (c_value_of_root): Likewise for evaluate_expression.
10341 * wrapper.c: Remove.
10342 * wrapper.h: Remove.
10344 2012-01-09 Doug Evans <dje@google.com>
10346 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10347 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10348 "abfd" args with "section". All callers updated.
10349 Error checking code moved ...
10350 (error_check_comp_unit_head): ... here. New function.
10351 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10352 Delete arg "abfd". New arg "type_offset". All callers updated.
10353 (create_debug_types_hash_table): Simplify by using
10354 read_and_check_type_unit_head.
10356 * parser-defs.h (namecopy): Delete.
10357 * parse.c (namecopy, namecopy_size): Move into copy_name.
10359 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10361 Partially fix duplicate .o files after omitting libbfd.a.
10362 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10363 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10364 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10365 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10366 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10367 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10368 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10370 2012-01-09 Pedro Alves <palves@redhat.com>
10372 * MAINTAINERS: Update my email address.
10374 2012-01-08 Doug Evans <dje@google.com>
10376 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10377 n_type_units. Rename type_comp_units to all_type_units.
10379 (add_signatured_type_cu_to_table): Renamed from
10380 add_signatured_type_cu_to_list. All callers updated.
10382 * gdbtypes.h (struct cplus_struct_type): Delete member
10383 nfn_fields_total. All uses removed.
10385 2012-01-06 Doug Evans <dje@google.com>
10387 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10389 (dwarf2_find_comp_unit): Delete.
10390 (process_psymtab_comp_unit): Make result "void".
10391 Delete args buffer, info_ptr, buffer_size, and replace with
10392 "section". All callers updated.
10393 (dwarf2_build_psymtabs_hard): Simplify.
10395 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10396 Thiago Jung Bauermann <bauerman@br.ibm.com>
10398 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10399 before `struct gdb_exception'.
10400 * breakpoint.c (update_global_location_list_nothrow)
10401 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10402 * cp-abi.c (value_rtti_type): Likewise.
10403 * cp-support.c (cp_validate_operator): Likewise.
10404 * infrun.c (insert_exception_resume_breakpoint)
10405 (check_exception_resume, keep_going): Likewise.
10406 * mi-interp.c (mi_breakpoint_created)
10407 (mi_breakpoint_modified): Likewise.
10408 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10409 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10410 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10412 2012-01-05 Doug Evans <dje@google.com>
10414 * dwarf2read.c (statement_prologue): Delete, unused.
10416 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10417 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10419 * dwarf2read.c (comp_unit_header): Delete, unused.
10421 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10423 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10424 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10426 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10428 * infrun.c (normal_stop): Don't skip calling the normal_stop
10429 observers if the thread was doing a multi-step, but stopped for
10430 some reason other than stepping.
10432 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10434 * cli/cli-decode.h: Add comments.
10435 (CMD_LIST_AMBIGUOUS): Moved to command.h
10436 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10437 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10438 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10439 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10440 (add_com, add_com_alias, add_info, add_info_alias)
10441 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10443 * command.h: Add and adjust comments.
10444 (CMD_LIST_AMBIGUOUS): Moved here.
10445 (help_cmd, help_cmd_list): Delete declarations.
10447 2012-01-04 Doug Evans <dje@google.com>
10449 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10450 All callers updated.
10451 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10452 Replace all arguments with "per_cu". All callers updated.
10454 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10456 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10457 New arg "per_cu". All callers updated.
10459 Delete #if 0'd out code.
10460 * language.c (binop_result_type): Delete.
10461 (simple_type, ordered_type, same_type, integral_type): Delete.
10462 (numeric_type, character_type, string_type, boolean_type): Delete.
10463 (float_type, structured_type): Delete.
10464 * language.h: Update.
10466 2012-01-04 Tom Tromey <tromey@redhat.com>
10468 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10470 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10472 * corefile.c (close_exec_file): Delete.
10473 (reopen_exec_file): Remove commented out code that seems related
10474 to close_exec_file, which is being deleted here.
10475 * inferior.h (close_exec_file): Delete.
10476 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10478 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10480 * ada-lang.c: #include "cli/cli-utils.h".
10481 (get_selections): Use skip_spaces.
10482 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10483 (catch_ada_exception_command_split): Use skip_spaces.
10484 (ada_decode_assert_location): Likewise.
10486 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10488 * linespec.c (decode_line_internal): Check for C++ or Java
10489 compound constructs only if the current language is C, C++
10492 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10495 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10496 Joel Brobecker <brobecker@adacore.com>
10497 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10498 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10500 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10501 fall through into AT_ENTRY_POINT.
10502 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10503 DUMMY_ADDR with it.
10504 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10505 PPC_INSN_SIZE skip to 3 times.
10507 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10509 * linespec.c (add_minsym): Preserve function descriptors.
10511 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10513 * breakpoint.c (all_locations_are_pending): Consider locations
10514 in program spaces executing during startup pending as well.
10516 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10518 Copyright year update in most files of the GDB Project.
10520 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10522 * copyright.sh: Delete.
10523 * copyright.py: Rewrite.
10525 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10527 * gnulib/extra/update-copyright: New file, imported from gnulib.
10529 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10531 * README (Copyright and License Notices): New section.
10533 2012-01-03 Tom Tromey <tromey@redhat.com>
10536 * python/py-value.c (valpy_dereference, valpy_get_address
10537 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10538 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10539 (valpy_absolute, valpy_richcompare): Free intermediate values.
10541 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10543 * ada-lang.c: Reformat the copyright notice.
10545 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10547 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10548 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10549 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10550 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10551 Revert this part of:
10552 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10553 Build gdb directly from *.o files not using libgdb.a.
10554 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10556 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10558 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10559 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10560 Reformat the copyright header.
10562 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10564 Revert this part of:
10565 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10566 Remove the gdbtui binary.
10567 * gdb.c (main): Remove args.interpreter_p initialization.
10568 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10569 * main.h (struct captured_main_args): Remove interpreter_p.
10571 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10573 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10575 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10577 * top.c (print_gdb_version): Update copyright year.
10579 2012-01-02 Yao Qi <yao@codesourcery.com>
10581 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10583 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10584 Joel Brobecker <brobecker@adacore.com>
10586 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10587 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10589 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10590 fall through into AT_ENTRY_POINT.
10591 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10592 DUMMY_ADDR with it.
10593 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10594 PPC_INSN_SIZE skip to 3 times.
10596 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10598 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10600 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10602 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10604 Build gdb directly from *.o files not using libgdb.a.
10605 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10606 (COMMON_OBS): Remove solib-target.o.
10607 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10608 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10609 (LIBGDB_OBS, libgdb.a): Move it above.
10610 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10611 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10612 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10613 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10614 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10615 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10616 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10617 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10618 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10619 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10620 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10621 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10622 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10623 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10624 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10625 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10626 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10627 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10628 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10629 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10630 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10631 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10632 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10633 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10634 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10635 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10636 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10638 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10640 Remove the gdbtui binary.
10641 * .gitignore (/gdbtui): Remove.
10642 * Makefile.in (TUI): Remove.
10643 (SUBDIR_TUI_OBS): Remove tui-main.o.
10644 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10645 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10646 (tui-main.o): Remove.
10647 (all_object_files): Remove tui-main.o.
10648 * NEWS: New note for the gdbtui removal.
10649 * configure: Rebuilt.
10650 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10651 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10652 CONFIG_UNINSTALL respectively.
10653 * gdb.c (main): Remove args.interpreter_p initialization.
10654 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10655 * main.h (struct captured_main_args): Remove interpreter_p.
10656 * tui/tui-main.c: Remove.
10658 2012-01-01 Doug Evans <dje@google.com>
10660 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10661 (dwarf2_physname, read_import_statement): Ditto.
10662 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10663 (process_structure_scope read_subroutine_type): Ditto.
10664 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10665 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10666 (dwarf2_fetch_die_location_block): Ditto.
10667 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10669 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10670 All callers updated.
10671 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10672 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10673 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10675 * dwarf2read.c (load_cu): Move assert to more useful location.
10677 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10678 All callers updated.
10680 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10681 (dwarf2_elf_names): Minor reformat.
10682 (dwarf2_per_cu_data): Tweak comment.
10683 (dwarf2_read_section): Fix comment.
10684 (create_all_comp_units): Fix comment.
10685 (load_full_comp_unit): Fix comment.
10686 (process_full_comp_unit): Fix comment.
10687 (read_signatured_type): Fix comment.
10689 For older changes see ChangeLog-2011.
10695 version-control: never