1 2012-09-27 Joel Brobecker <brobecker@adacore.com>
3 * procfs.c (proc_get_LDT_entry): Make static.
5 2012-09-27 Joel Brobecker <brobecker@adacore.com>
7 * procfs.c (proc_find_memory_regions): Fix declaration.
9 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
11 * amd64-tdep.c (amd64_return_value): Revert previous change
12 that used TYPE_LENGTH directly.
13 * bfin-tdep.c (bfin_extract_return_value): Likewise.
14 (bfin_store_return_value): Likewise.
15 * cris-tdep.c (cris_store_return_value): Likewise.
16 (cris_extract_return_value): Likewise.
17 * h8300-tdep.c (h8300_extract_return_value): Likewise.
18 * hppa-tdep.c (hppa64_return_value): Likewise.
19 * lm32-tdep.c (lm32_store_return_value): Likewise.
20 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
21 * spu-tdep.c (spu_value_from_register): Likewise.
22 * vax-tdep.c (vax_return_value): Likewise.
24 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
26 * gdbtypes.c (lookup_array_range_type): Expand parameters
27 LOW_BOUND and HIGH_BOUND to LONGEST.
28 (lookup_string_range_type): Likewise.
29 * gdbtypes.h (lookup_array_range_type): Likewise.
30 (lookup_string_range_type): Likewise.
31 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
32 Expand HIGHBOUND to ssize_t.
33 (value_string): Likewise.
34 * value.h (value_cstring): Expand parameter LEN to ssize_t.
35 (value_string): Likewise.
37 2012-09-27 Yao Qi <yao@codesourcery.com>
40 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
41 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
44 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
46 * procfs.c: Add gdb_bfd header.
47 * rs6000-nat.c: Likewise.
48 * solib-pa64.c: Likewise.
49 * spu-linux-nat.c: Likewise.
50 * windows-nat.c: Likewise.
52 2012-09-26 Tom Tromey <tromey@redhat.com>
54 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
56 2012-09-26 Tom Tromey <tromey@redhat.com>
58 * dwarf2read.c (mark_common_block_symbol_computed): New function.
59 (read_common_block): Handle child DIEs with
60 DW_AT_data_member_location.
61 (new_symbol_full): Add special case for common blocks.
63 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
64 Tom Tromey <tromey@redhat.com>
66 * dwarf2read.c (read_common_block): Rewrite.
67 (new_symbol_full): Handle DW_TAG_common_block.
68 * f-lang.c (head_common_list, find_common_for_function):
70 * f-lang.h (struct common_entry, struct saved_f77_common,
71 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
72 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
73 BLANK_COMMON_NAME_LOCAL): Remove.
74 (struct common_block): New.
75 * f-valprint.c (list_all_visible_commons): Remove.
76 (info_common_command_for_block): New function.
77 (info_common_command): Use it.
78 * stack.c (iterate_over_block_locals): Special case for
80 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
82 (struct general_symbol_info) <value.common_block>: New field.
83 (SYMBOL_VALUE_COMMON_BLOCK): New define.
85 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
86 Tom Tromey <tromey@redhat.com>
88 * f-lang.c (allocate_saved_bf_node,
89 allocate_saved_function_node, allocate_saved_f77_common_node,
90 allocate_common_entry_node, tail_common_list, current_common,
91 saved_bf_list, saved_bf_list_end, current_head_bf_list,
92 tmp_bf_ptr, add_common_block, add_common_entry,
93 find_first_common_named, patch_common_entries,
94 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
95 global_remote_debug, get_bf_for_fcn, saved_function_list,
96 saved_function_list_end, clear_function_list, struct saved_fcn,
97 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
98 SAVED_BF, SAVED_BF_PTR): Remove.
99 * f-lang.h (tail_common_list, current_common,
100 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
101 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
102 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
103 real_main_c_value): Remove.
104 * f-valprint.c (there_is_a_visible_common_named): Remove.
106 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
108 * breakpoint.c (update_global_location_list): Ignore previous
109 duplicate status of a breakpoint when starting a new scan for
110 duplicate breakpoints.
112 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
114 * arm-tdep.c (arm_skip_prologue): Extending producer check to
115 support LLVM compiler.
117 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
119 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
120 * bfin-tdep.c (bfin_extract_return_value): Likewise.
121 (bfin_store_return_value): Likewise.
122 * cris-tdep.c (cris_store_return_value): Likewise.
123 (cris_extract_return_value): Likewise.
124 * h8300-tdep.c (h8300_extract_return_value): Likewise.
125 * hppa-tdep.c (hppa64_return_value): Likewise.
126 * lm32-tdep.c (lm32_store_return_value): Likewise.
127 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
128 * spu-tdep.c (spu_value_from_register): Likewise.
129 * vax-tdep.c (vax_return_value): Likewise.
131 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
133 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
134 parameter LEN to ssize_t.
136 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
138 * ada-valprint.c (ada_val_print_1): Eliminate single-use
140 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
142 (alpha_store_return_value): Likewise.
143 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
144 (amd64_push_arguments): Likewise.
145 * ax-gdb.c (gen_trace_static_fields): Likewise.
146 (gen_traced_pop): Likewise.
147 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
148 * breakpoint.c (update_watchpoint): Likewise.
149 * findcmd.c (parse_find_args): Use local variable for type
151 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
152 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
153 (h8300_store_return_value): Likewise.
154 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
155 Use i386_darwin_arg_type_alignment directly.
156 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
157 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
158 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
159 (m68hc11_extract_return_value): Likewise.
160 * mep-tdep.c (mep_push_dummy_call): Likewise.
161 * printcmd.c (float_type_from_length): Likewise.
162 * s390-tdep.c (s390_value_from_register): Likewise.
163 * stack.c (read_frame_arg): Likewise.
164 * tracepoint.c (encode_actions_1): Likewise.
165 * valops.c (value_fetch_lazy): Use local variable for type
166 instead of length. Use TYPE_LENGTH directly.
167 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
169 2012-09-25 Joel Brobecker <brobecker@adacore.com>
171 * symtab.c (skip_prologue_sal): Fix typo in comment.
173 2012-09-25 Joel Brobecker <brobecker@adacore.com>
175 * linespec.c (create_sals_line_offset): Fix typo in comment.
177 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
179 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
180 use plongest to print the array size.
182 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
184 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
185 * p-valprint.c (pascal_type_print_base): Likewise.
187 2012-09-22 Yao Qi <yao@codesourcery.com>
189 * remote.c (remote_get_trace_status): Remove setting default
190 values of fields of 'ts'.
192 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
194 Fix internal error on canonicalization of clang types.
195 * cp-name-parser.y (operator): New comment at make_operator call for
196 new, delete, new[] and delete[].
197 (exp): Use "sizeof ". Add new comment at make_operator call.
199 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
201 Fix disassemble without parameters in tailcall frame.
202 * cli/cli-cmds.c (disassemble_current_function): Use
203 get_frame_address_in_block.
205 2012-09-21 Tom Tromey <tromey@redhat.com>
207 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
208 TYPE_CODE_UNION>: Unify, removing a goto.
210 2012-09-21 Tom Tromey <tromey@redhat.com>
212 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
214 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
216 * findvar.c (read_frame_register_value): Mark the result value as
217 optimized out if any of the input registers have been optimized out.
219 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
221 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
223 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
225 * eval.c (evaluate_subexp_standard): Eliminate single-use
228 2012-09-21 Yao Qi <yao@codesourcery.com>
230 * mi/mi-interp.c: Declare mi_record_changed.
231 (mi_interpreter_init): Call observer_attach_record_changed.
232 (mi_record_changed): New.
233 * record.c (record_open): Call observer_notify_record_changed.
234 (cmd_record_stop): Call observer_notify_record_changed.
237 2012-09-20 Tom Tromey <tromey@redhat.com>
240 * python/python.c (finalize_python): New function.
241 (_initialize_python): Make a final cleanup.
243 2012-09-19 Doug Evans <dje@google.com>
245 * buildsym.h (param_symbols): Delete, unused.
246 (context_stack): Delete member "params", unused.
247 * buildsym.c (push_context): Update.
248 * dwarf2read.c (read_func_scope): Update.
250 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
252 * sh-tdep.c (sh_register_convert_to_virtual)
253 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
254 all callers. Just do a memcpy if not the little-endian case.
256 * h8300-tdep.c (h8300_gdbarch_init): Invoke
257 set_gdbarch_double_format and set_gdbarch_long_double_format.
258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
259 set_gdbarch_double_format.
260 * sh-tdep.c (sh_gdbarch_init): Likewise.
262 * NEWS: Document the removal of SH's 'regs' command.
263 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
266 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
268 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
271 2012-09-18 Joel Brobecker <brobecker@adacore.com>
273 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
274 language when iterating over symbols.
276 2012-09-18 Yao Qi <yao@codesourcery.com>
278 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
279 (mi_interpreter_init): Call observer_attach_tsv_created and
280 observer_attach_tsv_deleted.
281 (mi_tsv_created, mi_tsv_deleted): New.
282 * tracepoint.c (delete_trace_state_variable): Call
283 observer_notify_tsv_deleted.
284 (trace_variable_command): Call observer_notify_tsv_created.
285 (delete_trace_variable_command): Call
286 observer_notify_tsv_deleted.
287 (create_tsv_from_upload): Call observer_notify_tsv_created.
290 2012-09-18 Yao Qi <yao@codesourcery.com>
292 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
293 if traceframe changed.
294 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
296 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
297 (mi_interpreter_init): Hook mi_traceframe_changed to observer
298 'traceframe_changed'.
299 (mi_traceframe_changed): New.
300 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
302 * NEWS: Mention the new MI notification.
304 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
306 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
308 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
310 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
311 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
312 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
313 Extend code also for PaX support. Convert all gdb_assert to warning
316 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
318 Implement auto-load user conveniences suggested by Doug Evans.
319 * auto-load.c: Include top.h.
320 (file_is_auto_load_safe): New variable advice_printed. Print advice.
321 (_initialize_auto_load): New variable scripts_directory_help. Mention
322 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
323 scripts-directory. Document in online help one can use also files for
324 set auto-load safe-path.
325 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
326 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
328 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
330 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
333 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
335 * m2-valprint.c (m2_print_array_contents): Eliminate variable
336 ELTLEN and use TYPE_LENGTH directly.
337 (m2_val_print): Likewise.
338 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
339 variable LEN and use TYPE_LENGTH directly.
340 (m68k_svr4_store_return_value): Likewise.
341 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
342 ARGLEN and use TYPE_LENGTH directly.
343 (mips_o64_push_dummy_call): Likewise.
344 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
345 variable LENGTH and use TYPE_LENGTH directly.
346 (s390_function_arg_float): Likewise.
347 (s390_function_arg_integer): Likewise.
348 (s390_push_dummy_call): Likewise.
349 (s390_return_value_convention): Likewise.
350 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
351 TYPE_LENGTH directly.
353 2012-09-17 Yao Qi <yao@codesourcery.com>
355 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
356 Update comment to add_setshow_integer_cmd.
357 * cli/cli-setshow.c (do_set_command): Handle case
358 'var_zuinteger_unlimited'.
359 (do_show_command): Likewise.
360 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
361 for command 'remotetimeout'.
362 * command.h (enum var_types): New zuinteger_unlimited. Update comment
364 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
365 for command 'set listsize'.
367 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
369 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
372 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
375 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
376 (frame_pop): Drop also TAILCALL_FRAME frames.
377 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
379 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
380 Pedro Alves <palves@redhat.com>
383 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
384 function start if we are already at function start. Both for
385 reverse-next and for reverse-step into function without line number
388 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
390 Code cleanup - rename 'inline' depth to 'artificial' depth.
391 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
392 frame_id_artificial_p, extend the comment.
393 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
394 * frame.c (fprint_frame_id): Rename at a user, change debug output
395 text to "artificial=".
396 (skip_inlined_frames): Rename to ...
397 (skip_artificial_frames): ... here. Extend the comment.
398 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
399 (frame_id_inlined_p): Rename to ...
400 (frame_id_artificial_p): ... here. Rename at a user.
401 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
402 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
404 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
406 (frame_id_inlined_p): Rename to ...
407 (frame_id_artificial_p): ... here.
408 * inline-frame.c (inline_frame_this_id): Rename at a user.
410 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
412 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
413 vector variables using vector_size syntax rather than array
416 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
418 * valarith.c (value_concat): Replace unsafe ALLOCA with
421 2012-09-14 Pedro Alves <palves@redhat.com>
423 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
425 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
427 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
428 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
429 data-directory as appropriate.
431 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
433 * printcmd.c (ui_printf): Eliminate single-use variable
436 2012-09-14 Yao Qi <yao@codesourcery.com>
437 Pedro Alves <palves@redhat.com>
439 * valops.c (value_assign): Move observer_notify_target_changed
440 below to replace reinit_frame_cache.
442 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
444 Refactor Python "gdb" module into a proper Python package, by
445 introducing a new "_gdb" module for code implemented in C, and
446 using reload/__import__ instead of exec.
447 * python/lib/gdb/__init__.py: Import * from _gdb.
448 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
449 prompt_hook, sys.argv): Moved from finish_python_initialization.
450 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
451 (packages, auto_load_packages): New list and function replacing
452 module_dict and auto-loading code, using __file__ instead of
453 gdb.PYTHONDIR and reload/__import__ instead of exec.
454 (GdbSetPythonDirectory): Replacing function of the same name
455 from finish_python_initialization, using reload/__import__ instead
456 of exec, as well as call auto_load_packages.
457 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
458 gdb_python_module and not gdb_module.
459 * python/python-internal.h (gdb_python_module): Declare.
460 * python/python.c (gdb_python_module): New global.
461 (before_prompt_hook): Check gdb_python_module and not gdb_module.
462 (_initialize_python): Rename gdb module to _gdb.
463 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
464 (finish_python_initialization): Move Python code to
465 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
468 2012-09-13 Pedro Alves <palves@redhat.com>
470 * Makefile.in (COMMON_OBS): Add registry.o.
471 * registry.c: New file.
472 * registry.h (struct registry_container): Declare.
473 (registry_data_callback): New typedef.
474 (struct registry_data, struct registry_data_registration, struct
475 registry_data_registry): New type.
476 (register_data_with_cleanup, registry_alloc_data)
477 (registry_callback_adaptor, registry_clear_data)
478 (registry_container_free_data, registry_set_data, registry_data):
480 (DEFINE_REGISTRY): Refactor structures and functions as shims over
481 the new common structures and functions.
482 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
485 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
487 * remote.c (remote_insert_hw_breakpoint): Throw exception if
488 there is an error inserting hardware breakpoints and use the
489 error message from the target.
491 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
492 Catch this exception and print the error message contained within. Do not
493 print the default hardware error breakpoint message in this case.
495 2012-09-12 Doug Evans <dje@google.com>
497 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
500 2012-09-11 Doug Evans <dje@google.com>
502 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
503 .gdb_index symbol attributes if there are none.
505 2012-09-11 Joel Brobecker <brobecker@adacore.com>
507 * symtab.h (struct minimal_symbol) [has_size]: New field.
508 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
509 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
510 * printcmd.c (build_address_symbolic): Only filter out zero-sized
511 minimal symbols if the symbol's size is actually known.
512 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
513 of msymbol's size field. Add comment.
514 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
515 SET_MSYMBOL_SIZE to set the minimal symbol size.
517 2012-09-11 Joel Brobecker <brobecker@adacore.com>
519 * minsyms.c (install_minimal_symbols): Use memset to fill entire
520 minimal_symbol struct object, rather than setting some of its
523 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
525 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
526 passed_a_ptr flag when displaying typedef types.
528 2012-09-10 Joel Brobecker <brobecker@adacore.com>
530 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
531 the optimized_out flag is preserved.
533 2012-09-10 Anthony Green <green@moxielogic.com>
535 * moxie-tdep.c (moxie_analyze_prologue): Update for function
536 prologue changes in GCC.
538 2012-09-10 Keith Seitz <keiths@redhat.com>
541 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
542 (BOOL_CONVERSION_BADNESS): ... this.
543 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
544 (rank_one_type): Allow all boolean conversions
545 permitted by the standard.
547 2012-09-06 Tom Tromey <tromey@redhat.com>
549 * python/py-newobjfileevent.c (create_new_objfile_event_object):
550 Don't decref py_objfile.
552 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
554 Do not enable -lmcheck by default when Python is enabled with
556 * configure.ac: (python_has_threads) New variable, by testing
557 if WITH_THREAD is defined in Python.h.
558 Move --enable-lmcheck after --with-python.
559 Do not enable -lmcheck by default if python_has_threads=yes.
560 Warn if --enable-lmcheck and python_has_threads=yes.
561 * configure: Regenerate.
563 2012-08-31 Yao Qi <yao@codesourcery.com>
565 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
566 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
567 Update some commands.
568 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
569 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
572 2012-08-31 Yao Qi <yao@codesourcery.com>
574 * mi/mi-cmds.c (mi_cmds): Add 'static'.
576 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
578 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
580 2012-08-29 Doug Evans <dje@google.com>
582 * main.c (print_gdb_help): Remove reference to
583 --use-deprecated-index-sections.
585 2012-08-28 Yao Qi <yao@codesourcery.com>
587 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
588 (init_cmds): Call add_setshow_uinteger_cmd for command
589 'max-user-call-depth'.
590 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
591 declaration of 'max_user_call_depth'.
592 * frame.c (backtrace_limit): Add 'unsigned'.
593 (_initialize_frame): Call add_setshow_uinteger_cmd for command
595 * remote.c (remoteaddresssize): Add 'unsigned'.
596 (remote_address_masked): Change local var 'address_size' to
598 (_initialize_remote): Call add_setshow_uinteger_cmd for
600 * top.c (history_size): Add 'unsigned'.
601 (show_commands): Change local variables to 'unsigned'.
602 (set_history_size_command): Don't check history_size is negative.
603 Adjust the condition to call unstifle_history and set history_size
606 2012-08-28 Pedro Alves <palves@redhat.com>
610 * infcmd.c (default_print_one_register_info): New, factored out
611 from default_print_registers_info.
612 (default_print_registers_info): Use it. Mark value unavailable if
614 (registers_info): Print user registers with
615 default_print_one_register_info.
617 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
620 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
621 is not NULL before referencing it.
623 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
625 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
626 variable pc. Call find_pc_line instead of find_pc_overlay, restore
629 2012-08-27 Eli Zaretskii <eliz@gnu.org>
630 Jan Kratochvil <jan.kratochvil@redhat.com>
632 * auto-load.c (auto_load_objfile_script): Rename to ...
633 (auto_load_objfile_script_1): ... here, change variable realname to
634 parameter realname, document it, add return value, add variable retval.
635 (auto_load_objfile_script): New function.
637 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
639 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
640 followed by a whitespace.
642 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
645 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
646 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
647 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
650 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
652 * memattr.c (create_mem_region): Fix memory region overlapping
655 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
657 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
658 with xmalloc/cleanup.
659 * mt-tdep.c (mt_push_dummy_call): Likewise.
660 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
661 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
663 2012-08-24 Yao Qi <yao@codesourcery.com>
665 * jv-exp.y (push_expression_name): Add "." at the end of error
668 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
670 Document how to return from "python-interactive" to GDB.
671 * python/python.c (_initialize_python): Update documentation.
673 2012-08-23 Pedro Alves <palves@redhat.com>
675 * infrun.c (_initialize_infrun) <handle command help text>:
676 Mention that multiple signals are supported.
678 2012-08-23 Pedro Alves <palves@redhat.com>
680 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
683 2012-08-23 Yao Qi <yao@codesourcery.com>
685 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
686 (tfind_1): Don't call registers_changed, set_traceframe_num,
687 and clear_traceframe_info.
688 Call set_current_traceframe.
689 (set_current_traceframe): call set_traceframe_num.
691 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
693 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
694 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
696 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
698 Enable readline in Python in a GDB-specific way and block the
699 standard Python readline module to prevent conflicts with GDB.
700 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
701 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
702 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
703 * python/py-gdb-readline.c: New file.
704 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
706 * python/python.c (_initialize_python): Call
707 gdbpy_initialize_gdb_readline.
709 2012-08-22 Keith Seitz <keiths@redhat.com>
711 * defs.h: Include build-gnulib/config.h
713 2012-08-22 Joseph Myers <joseph@codesourcery.com>
715 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
718 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
720 Add a new "python-interactive" command that starts a standard
721 Python interactive prompt with "pi" as alias, and add "py" as
722 an alias to "python".
723 * NEWS: Mention the new commands.
724 * python/python.c (eval_python_command): New function.
725 (python_interactive_command): For "python-interactive" with
726 arguments, call eval_python_command. For "python-interactive"
727 without arguments, call PyRun_InteractiveLoop.
728 (_initialize_python): Add "python-interactive" command with
729 "pi" as alias, and add "py" as an alias to "python".
731 2012-08-22 Tom Tromey <tromey@redhat.com>
733 * defs.h (quit_flag): Don't declare.
734 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
735 (QUIT): Use new functions.
736 * event-top.c (command_handler): Use clear_quit_flag.
737 (handle_sigint): Use set_quit_flag.
738 (async_request_quit): Use check_quit_flag. Don't check
740 * exceptions.c (throw_exception): Use clear_quit_flag.
741 * main.c (captured_main): Use clear_quit_flag.
742 * python/python.c (clear_quit_flag, set_quit_flag)
743 (check_quit_flag): New functions.
744 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
746 * remote.c (remote_wait_as): Use check_quit_flag,
748 (remote_start_remote): Call QUIT.
749 * symfile.c (load_progress): Use check_quit_flag.
750 * top.c (command_loop): Use clear_quit_flag.
751 (command_line_input): Call QUIT.
752 * utils.c (quit_flag): Conditionally define.
753 (clear_quit_flag, check_quit_flag, set_quit_flag): New
755 (prompt_for_continue): Call QUIT. Use quit, not
757 * remote-mips.c (mips_expect_timeout): Call QUIT.
758 * monitor.c (monitor_expect): Call QUIT.
760 2012-08-22 Tom Tromey <tromey@redhat.com>
762 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
763 (async_init_signals): Update.
764 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
765 (SIGWINCH_HANDLER_BODY): Remove.
767 2012-08-22 Tom Tromey <tromey@redhat.com>
769 * jit.c (jit_object_close_impl): Don't malloc the objfile
771 * objfiles.c (allocate_objfile): Don't malloc the objfile
773 (free_objfile): Don't free the objfile name.
774 * objfiles.h (struct objfile) <name>: Update comment.
775 * symfile.c (reread_symbols): Fix reference counting. Don't
778 2012-08-22 Tom Tromey <tromey@redhat.com>
780 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
781 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
782 (symfile_bfd_open): Likewise.
783 (generic_load): Likewise.
784 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
785 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
787 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
789 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
790 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
791 (pmon_load_fast): Likewise.
792 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
793 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
794 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
795 (macho_check_dsym): Likewise.
796 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
797 (m32r_upload_command): Likewise.
798 * gdb_bfd.h (gdb_bfd_cache): Declare.
799 * gdb_bfd.c (struct gdb_bfd_data): New.
800 (gdb_bfd_cache): New global.
801 (struct gdb_bfd_cache_search): New.
802 (hash_bfd): New function.
804 (gdb_bfd_open): Likewise.
805 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
806 (gdb_bfd_unref): Remove closed BFD from cache. Update for
808 * exec.c (exec_file_attach): Use gdb_bfd_open.
809 * dsrec.c (load_srec): Use gdb_bfd_open.
811 2012-08-22 Tom Tromey <tromey@redhat.com>
813 * dwarf2read.c (macro_start_file): Update.
814 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
815 (free_objfile_per_bfd_storage): Destroy macro_cache.
816 (allocate_objfile, free_objfile): Update.
817 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
819 (struct objfile) <macro_cache>: Remove.
820 * symfile.c (reread_symbols): Update.
821 * symmisc.c (print_symbol_bcache_statistics): Update.
822 (print_objfile_statistics): Update.
824 2012-08-22 Tom Tromey <tromey@redhat.com>
826 * elfread.c (elf_symtab_read): Update.
827 * objfiles.c (objfiles_bfd_data): New global.
828 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
829 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
830 (allocate_objfile, free_objfile): Update.
831 (_initialize_objfiles): Initialize objfiles_bfd_data.
832 * objfiles.h (struct objfile_per_bfd_storage): New.
833 (struct objfile) <per_bfd>: New field.
834 <filename_cache>: Remove.
835 (set_objfile_per_bfd): Declare.
836 * symfile.c (reread_symbols): Update. Call
838 (allocate_symtab): Update.
839 * symmisc.c (print_symbol_bcache_statistics): Update.
840 (print_objfile_statistics): Print the size of the BFD obstack.
842 2012-08-22 Tom Tromey <tromey@redhat.com>
844 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
845 * gdb_bfd.c: Use DEFINE_REGISTRY.
846 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
847 (gdb_bfd_ref): Call bfd_alloc_data.
848 (gdb_bfd_unref): Call bfd_free_data.
850 2012-08-22 Tom Tromey <tromey@redhat.com>
852 * registry.h (struct registry_fields): New.
853 (REGISTRY_FIELDS): Redefine.
854 (REGISTRY_ACCESS_FIELD): New macro.
855 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
858 2012-08-22 Tom Tromey <tromey@redhat.com>
860 * auto-load.c (_initialize_auto_load): Update.
861 * solib-svr4.c (_initialize_svr4_solib): Update
862 * solib-dsbt.c (_initialize_dsbt_solib): Update.
863 * solib-darwin.c (_initialize_darwin_solib): Update.
864 * registry.h: New file.
865 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
866 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
867 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
868 (register_program_space_data_with_cleanup)
869 (register_program_space_data, program_space_alloc_data)
870 (clear_program_space_data, set_program_space_data)
871 (program_space_data): Don't declare.
872 * progspace.c: Use DEFINE_REGISTRY.
873 (struct program_space_data, struct
874 program_space_data_registration, struct
875 program_space_data_registry, program_space_data_registry)
876 (register_program_space_data_with_cleanup)
877 (register_program_space_data, program_space_alloc_data)
878 (program_space_free_data, clear_program_space_data)
879 (set_program_space_data, program_space_data): Remove.
880 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
881 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
882 (register_objfile_data_with_cleanup, register_objfile_data)
883 (clear_objfile_data, set_objfile_data, objfile_data): Don't
885 * objfiles.c: Use DEFINE_REGISTRY.
886 (struct objfile_data, struct objfile_data_registration, struct
887 objfile_data_registry, objfile_data_registry)
888 (register_objfile_data_with_cleanup, register_objfile_data)
889 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
890 (set_objfile_data, objfile_data): Remove.
891 (_initialize_objfiles): Update.
892 * jit.c (_initialize_jit): Update.
893 * inflow.c (_initialize_inflow): Update.
894 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
895 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
896 (register_inferior_data_with_cleanup, register_inferior_data)
897 (clear_inferior_data, set_inferior_data, inferior_data): Don't
899 * inferior.c: Use DEFINE_REGISTRY.
900 (struct inferior_data, struct inferior_data_registration, struct
901 inferior_data_registry, inferior_data_registry)
902 (register_inferior_data_with_cleanup, register_inferior_data)
903 (inferior_alloc_data, inferior_free_data clear_inferior_data)
904 (set_inferior_data, inferior_data): Remove.
905 * auxv.c (_initialize_auxv): Update.
906 * ada-lang.c (_initialize_ada_language): Update.
907 * breakpoint.c (_initialize_breakpoint): Update.
908 * i386-nat.c (i386_use_watchpoints): Update.
910 2012-08-22 Tom Tromey <tromey@redhat.com>
912 * exec.c (exec_close, exec_file_attach): Update.
913 (add_to_section_table): Initialize 'key' field.
914 (add_target_sections, remove_target_sections): Add 'key' argument.
915 * exec.h (add_target_sections, remove_target_sections): Add
917 * solib.c (solib_map_sections, update_solib_list, clear_solib)
918 (reload_shared_libraries_1): Update.
919 * target.h (struct target_section) <key>: New field.
921 2012-08-22 Tom Tromey <tromey@redhat.com>
923 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
925 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
927 * symfile.c (allocate_symtab): Use host_address_to_string
928 function instead of cast of pointer to long which is not
929 compatible with x86_64-w64-mingw32 build.
931 2012-08-19 Andrew Pinski <apinski@cavium.com>
933 * mips-tdep.c (is_octeon): New function.
934 (is_octeon_bbit_op): New function.
935 (mips32_next_pc): Handle Octeon's bbit instructions.
936 (mips32_instruction_has_delay_slot): Likewise.
938 2012-08-19 Andrew Pinski <apinski@cavium.com>
940 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
943 2012-08-19 Andrew Pinski <apinski@cavium.com>
945 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
947 2012-08-19 Keith Seitz <keiths@redhat.com>
950 * c-typeprint.c (c_type_print_varspec_prefix): Pass
951 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
953 2012-08-18 Eli Zaretskii <eliz@gnu.org>
955 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
956 The typo broke "make TAGS".
958 2012-08-17 Joel Brobecker <brobecker@adacore.com>
962 2012-08-17 Keith Seitz <keiths@redhat.com>
965 * gdbtypes.c (strict_type_checking): New variable.
966 (show_strict_type_checking): New function.
967 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
968 if strict type checking is disabled.
969 (_initialize_gdbtypes): Add "check type" subcommand.
970 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
972 2012-08-17 Keith Seitz <keiths@redhat.com>
974 * language.h (type_mode): Remove.
975 (type_check): Remove.
976 (struct language_defn): Remove la_type_check.
977 (STRICT_TYPE): Remove unused macro.
978 (type_error): Remove.
979 * language.c (set_type_range_case): Renamed to ...
980 (set_range_case): ... this. Update all callers.
981 Remove type_mode/type_check.
983 (type_check): Remove.
984 (show_type_command): Remove.
985 (set_type_command): Remove.
986 (language_info): Remove type checking output.
987 (type_error): Remove unused function.
988 (range_error): Update comment.
989 (unknown_language_defn): Remove la_type_check.
990 (auto_language_defn): Likewise.
991 (local_language_defn): Likewise.
992 (_initialize_language): Remove "check type" subcommand.
993 * ada-lang.c (ada_language_defn): Remove la_type_check.
994 * c-lang.c (c_language_defn): Likewise.
995 (cplus_language_defn): Likewise.
996 (asm_language_defn): Likewise.
997 (minimal_language_defn): Likewise.
998 * d-lang.c (d_language_defn): Likewise.
999 * f-lang.c (f_language_defn): Likewise.
1000 * go-lang.c (go_language_defn): Likewise.
1001 * jv-lang.c (java_language_defn): Likewise.
1002 * m2-lang.c (m2_language_defn): Likewise.
1003 * objc-lang.c (objc_language_defn): Likewise.
1004 * opencl-lang.c (opencl_language_defn): Likewise.
1005 * p-lang.c (pascal_language_defn): Likewise.
1007 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1009 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1011 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1013 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1015 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1016 using the regache. Use ia64_hpux_get_register_from_save_state_t
1017 to access the bsp and bspstore registers if not.
1019 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1021 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1022 * breakpoint.c (detach_breakpoints): Change pid parameter into
1023 a ptid. Adjust code accordingly.
1024 * infrun.c (handle_inferior_event): Delete variable child_pid.
1025 Update call to detach_breakpoints to pass the child ptid for
1027 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1028 assert that inferior_ptid's lwp is zero.
1029 (linux_handle_extended_wait): Update call to detach_breakpoints.
1030 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1033 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1035 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1036 parent, only call detach_breakpoints if tts.tts_event ==
1039 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1041 * dwarf2-frame.c (dwarf2_frame_cache): Use
1042 get_frame_address_in_block instead of get_frame_pc as
1043 the bound for executing the frame's FDE.
1045 2012-08-16 Yao Qi <yao@codesourcery.com>
1047 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1048 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1049 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1050 (c_type_print_varspec_suffix): Likewise.
1051 * eval.c (evaluate_subexp_standard): Likewise.
1052 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1053 (f_type_print_varspec_suffix): Likewise.
1054 * gdbtypes.c (is_scalar_type): Likewise.
1055 (recursive_dump_type): Likewise.
1056 * infcall.c (value_arg_coerce): Likewise.
1057 * m2-valprint.c (m2_val_print): Likewise.
1058 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1059 (pascal_type_print_varspec_suffix): Likewise.
1060 (pascal_type_print_base): Likewise.
1061 * p-valprint.c (pascal_val_print): Likewise.
1062 (pascal_val_print): Likewise.
1063 * valops.c (value_slice): Likewise.
1064 * valprint.c (scalar_type_p): Likewise.
1065 * valarith.c (value_bitstring_subscript): Remove.
1066 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1067 Remove comment on TYPE_CODE_BITSTRING.
1069 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1070 TYPE_CODE_BITSTRING.
1072 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1075 2012-08-16 Yao Qi <yao@codesourcery.com>
1077 * tracepoint.c (trace_find_none_command): Remove.
1078 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1080 2012-08-16 Yao Qi <yao@codesourcery.com>
1082 * remote.c (handle_notification): Remove parameter 'length'.
1083 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1085 2012-08-15 Keith Seitz <keiths@redhat.com>
1087 * gdbtypes.c (opaque_type_resolution): Make static.
1088 Add missing comment.
1089 (overload_debug): Add missing comment.
1090 (show_opaque_type_resolution): Likewise.
1091 (show_overload_debug): Likewise.
1092 (print_bit_vector): Remove unnecessary forward declaration.
1093 (print_arg_types): Likewise.
1094 (dump_fn_fieldlists): Likewise.
1095 (print_cplus_stuff): Likewise.
1097 2012-08-15 Tom Tromey <tromey@redhat.com>
1099 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1100 (gdb_bfd_ref): Initialize new field.
1101 (gdb_bfd_unref): Unref the archive BFD.
1102 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1105 2012-08-15 Tom Tromey <tromey@redhat.com>
1108 * python/py-bpevent.c (create_breakpoint_event_object): Update
1110 * python/py-event.c (evpy_add_attribute): Update comment.
1111 * python/py-exitedevent.c (create_exited_event_object): Fix
1112 reference counting and error handling.
1113 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1114 Fix reference counting.
1115 * python/py-signalevent.c (create_signal_event_object): Fix
1116 reference counting and error handling.
1117 * python/py-stopevent.c (emit_stop_event): Fix reference
1119 * python/py-threadevent.c (get_event_thread): Return a
1121 * python/py-type.c (convert_field): Fix reference counting.
1123 2012-08-15 Tom Tromey <tromey@redhat.com>
1125 * dwarf2read.c (dwarf_decode_macro_bytes)
1126 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1129 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1131 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1132 stepi, nexti, finish, next, step, jump, and continue commands.
1133 * infrun.c (_initialize_infrun): Update help text for the handle
1136 2012-08-14 Doug Evans <dje@google.com>
1138 * gdbtypes.c (struct extra): Delete, unused.
1140 * gdbtypes.c: Whitespace cleanup.
1141 (address_space_name_to_int): Remove "extern" from definition.
1142 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1144 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1145 TYPE_POINTER_TYPE (type).
1147 2012-08-14 Gary Benson <gbenson@redhat.com>
1149 * solib-svr4.c (svr4_free_library_list): Use free_so.
1151 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1153 * .gitignore: Add go-exp.c.
1155 2012-08-13 Doug Evans <dje@google.com>
1157 * value.c (show_convenience): Tweak comment.
1158 (_initialize_values): Mention convenience functions in the help text
1159 for "show convenience".
1161 2012-08-13 Yao Qi <yao@codesourcery.com>
1163 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1164 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1166 * eval.c (evaluate_subexp_standard): Likewise.
1167 * expprint.c (print_subexp_standard): Likewise.
1168 (dump_subexp_body_standard): Likewise.
1169 * parse.c (operator_length_standard): Likewise.
1171 2012-08-13 Yao Qi <yao@codesourcery.com>
1173 * std-operator.def: Remove OP_BITSTRING.
1174 * breakpoint.c (watchpoint_exp_is_const): Update.
1175 * eval.c (evaluate_subexp_standard): Remove handling to
1177 * expprint.c (print_subexp_standard): Likewise.
1178 (dump_subexp_body_standard): Likewise.
1179 * parse.c (operator_length_standard): Likewise.
1180 * valops.c (value_bitstring): Remove.
1181 * value.h: Remove the declaration of 'value_bitstring'.
1183 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1185 * linespec.c (find_methods): Remove unused variables `i1' and
1187 (decode_line_full): Likewise for `arg_start'.
1189 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1191 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1192 (zlib_decompress_section): Likewise for `section_data'.
1193 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1195 2012-08-10 Doug Evans <dje@google.com>
1197 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1198 * NEWS: Document them.
1199 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1201 * python/py-type.c (typy_array_1): New function.
1202 (typy_array): Call it.
1203 (typy_vector): New function.
1204 (type_object_methods): Add "vector".
1205 * python/lib/gdb/function/__init__.py: New file.
1206 * python/lib/gdb/function/strfns.py: New file.
1208 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1210 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1211 for TYPE_FIELD_BITPOS.
1212 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1214 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1217 * common/vec.h (VEC_merge): Define.
1218 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1219 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1220 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1221 * completer.c: Include gdb_signals.h.
1222 (signal_completer): Define.
1223 * completer.h (signal_completer): Add prototype.
1224 * infcmd.c (_initialize_infcmd): Assign the command
1225 completer for "signal" to handle_completer.
1226 * infrun.c: Include completer.h.
1227 (handle_completer): Define.
1228 (_initialize_infrun): Declare a new local variable c. Store the
1229 result of add_com("handle") to it. Assign the command
1230 completer for "handle" to handle_completer.
1232 2012-08-09 Yao Qi <yao@codesourcery.com>
1234 * cli/cli-decode.c (set_cmd_prefix): New.
1235 (lookup_cmd_for_prefixlist): New.
1236 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1237 of each cmd_list_element in *prefixlist.
1238 (add_setshow_cmd_full): set_cmd_prefix.
1239 (add_alias_cmd): Likewise.
1240 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1241 Declare 'auto_boolean_enums'.
1242 * cli/cli-setshow.c: Include "observer.h".
1243 (notify_command_param_changed_p): New.
1244 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1246 (do_setshow_command): Split it to ...
1247 (do_set_command, do_show_command): ... them. New.
1248 (do_set_command): Call observer_notify_command_param_changed if
1249 notify_command_param_changed_p returns true.
1250 (cmd_show_list): Caller update.
1251 * auto-load.c (set_auto_load_cmd): Likewise.
1252 * remote.c (show_remote_cmd): Likewise.
1253 * cli/cli-setshow.h: Update declarations.
1254 * top.c (execute_command): Call do_set_command and do_show_command.
1256 * NEWS: Mention new MI notification.
1257 * mi/mi-interp.c: Declare mi_command_param_changed.
1258 (mi_interpreter_init): Attach mi_command_param_changed to
1259 observer command_param_changed.
1260 (mi_command_param_changed): New.
1261 Remove mi_suppress_breakpoint_notifications.
1262 Define global variable mi_suppress_notification.
1263 (mi_breakpoint_created): Update.
1264 (mi_breakpoint_deleted): Likewise.
1265 (mi_breakpoint_modified): Likewise.
1266 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1267 'gdb-set' and set mi_suppress_notification.
1268 * mi/mi-main.h: (mi_suppress_notification): New struct.
1270 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1271 Jan Kratochvil <jan.kratochvil@redhat.com>
1273 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1275 2012-08-09 Yao Qi <yao@codesourcery.com>
1277 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1278 (skiplist): Move it to skip.c.
1279 (init_cmd_lists): Remove code setting enablebreaklist and
1281 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1282 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1284 * gdbcmd.h: Likewise.
1285 * skip.c (_initialize_step_skip): Move 'skiplist' from
1288 2012-08-09 Yao Qi <yao@codesourcery.com>
1290 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1291 * gnu-nat.c, symfile.c: Likewise.
1293 2012-08-08 Aaron Gamble <agamble@google.com>
1295 * utils.c (prompt_for_continue_wait_time): New static global.
1296 (make_command_stats_cleanup): Initialize it.
1297 (report_command_stats): Subtract time waiting for user.
1298 (prompt_for_continue): Track time waiting for user.
1299 (defaulted_query): Track time waiting for user.
1301 2012-08-08 Doug Evans <dje@google.com>
1303 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1305 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1306 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1307 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1308 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1309 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1310 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1312 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1313 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1314 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1315 (dump_prefix_expression): Handle OP_TYPE.
1317 2012-08-08 Keith Seitz <keiths@redhat.com>
1319 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1322 2012-08-08 Doug Evans <dje@google.com>
1324 * linux-thread-db.c: #include "gdb_vecs.h".
1325 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1327 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1328 (thread_db_load_search): Use a vector to iterate over path elements.
1329 Handle text appearing after "$pdir".
1331 * gdb_string.h: Moved to ...
1332 * common/gdb_string.h: ... here.
1333 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1334 gdb_string.h and gdb_assert.h.
1336 2012-08-08 Yao Qi <yao@codesourcery.com>
1338 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1339 (tic6x_value_to_register): Likewise.
1340 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1341 and set_gdbarch_value_to_register.
1343 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1344 Jean-Marc Saffroy <saffroy@gmail.com>
1347 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1348 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1349 * gcore.c (gcore_create_callback): New function comment. Add modified
1350 parameter. Only write modified regions. Set SEC_READONLY exactly
1351 according to MODIFIED.
1352 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1353 the passed modified value to FUNC.
1354 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1355 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1356 first. New variables modified and has_anonymous. Parse the lines of
1357 smaps file. Add the passed MODIFIED value to FUNC.
1358 * procfs.c (find_memory_regions_callback): Add the passed modified
1361 2012-08-06 Tom Tromey <tromey@redhat.com>
1363 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1364 (dwarf2_frame_cache): Use it.
1365 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1366 cache initialization constraint.
1368 2012-08-06 Tom Tromey <tromey@redhat.com>
1371 * varobj.c (update_dynamic_varobj_children): Don't call
1374 2012-08-06 Tom Tromey <tromey@redhat.com>
1377 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1379 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1381 * NEWS: New entry for 'cd' default parameters.
1382 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1384 2012-08-03 Tom Tromey <tromey@redhat.com>
1386 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1389 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1391 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1392 to attempting lseek/write.
1393 (inf_child_fileio_pread): Likewise for pread.
1395 2012-08-02 Yao Qi <yao@codesourcery.com>
1397 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1398 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1399 add_setshow_zinteger_cmd.
1400 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1401 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1402 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1403 instead of add_setshow_zinteger_cmd.
1404 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1405 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1406 instead of add_setshow_zinteger_cmd.
1407 * frame.c (frame_debug): Add 'unsigned'.
1408 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1409 add_setshow_zinteger_cmd.
1410 * frame.h: Update the declaration of 'frame_debug'.
1411 * gdbtypes.c (overload_debug): Add 'unsigned'.
1412 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1413 add_setshow_zinteger_cmd.
1414 * inferior.h: Update declaration of 'debug_infrun'.
1415 * infrun.c (debug_infrun): Add 'unsigned'.
1416 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1417 add_setshow_zinteger_cmd.
1418 * jit.c (jit_debug): Add 'unsigned'.
1419 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1420 add_setshow_zinteger_cmd.
1421 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1422 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1423 instead of add_setshow_zinteger_cmd.
1424 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1425 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1426 add_setshow_zinteger_cmd.
1427 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1428 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1429 instead of add_setshow_zinteger_cmd.
1430 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1431 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1432 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1433 intead of add_setshow_zinteger_cmd.
1434 * mips-tdep.c (mips_debug): Add 'unsigned'.
1435 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1436 instead of add_setshow_zinteger_cmd.
1437 * monitor.c (monitor_debug): Add 'unsigned'.
1438 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1439 add_setshow_zinteger_cmd.
1440 * observer.c (observer_debug): Add 'unsigned'.
1441 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1442 add_setshow_zinteger_cmd.
1443 * parse.c (expressiondebug): Add 'unsigned'.
1444 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1445 add_setshow_zinteger_cmd.
1446 * record.c (record_debug): Add 'unsigned'.
1447 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1448 add_setshow_zinteger_cmd.
1449 * record.h: Update the declaration of 'record_debug'.
1450 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1451 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1452 add_setshow_zinteger_cmd.
1453 * serial.c (global_serial_debug_p): Add 'unsigned'.
1454 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1455 add_setshow_zinteger_cmd.
1456 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1457 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1458 add_setshow_zinteger_cmd.
1459 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1460 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1461 add_setshow_zinteger_cmd.
1462 * target.c (targetdebug): Add 'unsigned'.
1463 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1464 add_setshow_zinteger_cmd.
1465 * valops.c (overload_debug): Add 'unsigned'.
1466 * varobj.c (varobjdebug): Add 'unsigned'.
1467 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1468 add_setshow_zinteger_cmd.
1469 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1470 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1471 instead of add_setshow_zinteger_cmd.
1473 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1474 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1475 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1476 instead of add_setshow_zinteger_cmd.
1477 * gdbarch.c, gdbarch.h: Re-generated.
1479 2012-08-02 Yao Qi <yao@codesourcery.com>
1481 * nto-tdep.c: Don't include cli/cli-decode.h and
1483 (_initialize_nto_tdep): Remove.
1484 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1486 Remove macro nto_internal_debugging.
1488 2012-08-01 Richard Henderson <rth@redhat.com>
1490 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1491 (mep-*-*) [gdb_target_obs]: Likewise.
1493 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1495 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1496 linux_get_siginfo_type.
1498 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1500 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1502 (call_function_by_hand) <ON_STACK>: Call write_memory with
1503 gdbarch_breakpoint_from_pc, if possible.
1504 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1507 2012-07-31 Yao Qi <yao@codesourcery.com>
1509 * tracepoint.c: Add 'static' for some variables.
1511 2012-07-31 Yao Qi <yao@codesourcery.com>
1513 * go32-nat.c: Declare _initialize_go32_nat.
1514 * ser-go32.c: Declare _initialize_ser_dos.
1515 * top.c (do_chdir_cleanup): Add 'static'.
1517 2012-07-30 Keith Seitz <keiths@redhat.com>
1519 * linespec.c (linespec_lex_number): A number followed
1520 by quotes is a valid number, too.
1522 2012-07-30 Tom Tromey <tromey@redhat.com>
1524 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1526 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1528 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1529 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1531 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1533 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1534 invalid or reevaluated to prevent prevent references to possibly
1535 delete'd type objects being left in the varobj.
1537 2012-07-27 Tom Tromey <tromey@redhat.com>
1538 Jan Kratochvil <jan.kratochvil@redhat.com>
1540 * copying.awk: Print buffer-read-only and vi ro markers.
1541 * copying.c: Rebuild.
1542 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1543 * gdbarch.c, gdbarch.h: Rebuild.
1544 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1545 buffer-read-only and vi ro markers.
1546 * features/arm-with-iwmmxt.c: Rebuild.
1547 * features/arm-with-m-fpa-layout.c: Rebuild.
1548 * features/arm-with-m-vfp-d16.c: Rebuild.
1549 * features/arm-with-m.c: Rebuild.
1550 * features/arm-with-neon.c: Rebuild.
1551 * features/arm-with-vfpv2.c: Rebuild.
1552 * features/arm-with-vfpv3.c: Rebuild.
1553 * features/i386/amd64-avx-linux.c: Rebuild.
1554 * features/i386/amd64-avx.c: Rebuild.
1555 * features/i386/amd64-linux.c: Rebuild.
1556 * features/i386/amd64.c: Rebuild.
1557 * features/i386/i386-avx-linux.c: Rebuild.
1558 * features/i386/i386-avx.c: Rebuild.
1559 * features/i386/i386-linux.c: Rebuild.
1560 * features/i386/i386-mmx-linux.c: Rebuild.
1561 * features/i386/i386-mmx.c: Rebuild.
1562 * features/i386/i386.c: Rebuild.
1563 * features/i386/x32-avx-linux.c: Rebuild.
1564 * features/i386/x32-avx.c: Rebuild.
1565 * features/i386/x32-linux.c: Rebuild.
1566 * features/i386/x32.c: Rebuild.
1567 * features/mips-dsp-linux.c: Rebuild.
1568 * features/mips-linux.c: Rebuild.
1569 * features/mips64-dsp-linux.c: Rebuild.
1570 * features/mips64-linux.c: Rebuild.
1571 * features/rs6000/powerpc-32.c: Rebuild.
1572 * features/rs6000/powerpc-32l.c: Rebuild.
1573 * features/rs6000/powerpc-403.c: Rebuild.
1574 * features/rs6000/powerpc-403gc.c: Rebuild.
1575 * features/rs6000/powerpc-405.c: Rebuild.
1576 * features/rs6000/powerpc-505.c: Rebuild.
1577 * features/rs6000/powerpc-601.c: Rebuild.
1578 * features/rs6000/powerpc-602.c: Rebuild.
1579 * features/rs6000/powerpc-603.c: Rebuild.
1580 * features/rs6000/powerpc-604.c: Rebuild.
1581 * features/rs6000/powerpc-64.c: Rebuild.
1582 * features/rs6000/powerpc-64l.c: Rebuild.
1583 * features/rs6000/powerpc-7400.c: Rebuild.
1584 * features/rs6000/powerpc-750.c: Rebuild.
1585 * features/rs6000/powerpc-860.c: Rebuild.
1586 * features/rs6000/powerpc-altivec32.c: Rebuild.
1587 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1588 * features/rs6000/powerpc-altivec64.c: Rebuild.
1589 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1590 * features/rs6000/powerpc-cell32l.c: Rebuild.
1591 * features/rs6000/powerpc-cell64l.c: Rebuild.
1592 * features/rs6000/powerpc-e500.c: Rebuild.
1593 * features/rs6000/powerpc-e500l.c: Rebuild.
1594 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1595 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1596 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1597 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1598 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1599 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1600 * features/rs6000/powerpc-vsx32.c: Rebuild.
1601 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1602 * features/rs6000/powerpc-vsx64.c: Rebuild.
1603 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1604 * features/rs6000/rs6000.c: Rebuild.
1605 * features/s390-linux32.c: Rebuild.
1606 * features/s390-linux32v1.c: Rebuild.
1607 * features/s390-linux32v2.c: Rebuild.
1608 * features/s390-linux64.c: Rebuild.
1609 * features/s390-linux64v1.c: Rebuild.
1610 * features/s390-linux64v2.c: Rebuild.
1611 * features/s390x-linux64.c: Rebuild.
1612 * features/s390x-linux64v1.c: Rebuild.
1613 * features/s390x-linux64v2.c: Rebuild.
1614 * features/tic6x-c62x-linux.c: Rebuild.
1615 * features/tic6x-c62x.c: Rebuild.
1616 * features/tic6x-c64x-linux.c: Rebuild.
1617 * features/tic6x-c64x.c: Rebuild.
1618 * features/tic6x-c64xp-linux.c: Rebuild.
1619 * features/tic6x-c64xp.c: Rebuild.
1621 2012-07-27 Tom Tromey <tromey@redhat.com>
1623 * c-exp.y (classify_name): Avoid assignment in condition.
1625 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1627 * amd64-windows-tdep.c: Include "frame.h".
1628 (amd64_windows_skip_trampoline_code): New function.
1629 (amd64_windows_init_abi): Add trampoline registration.
1631 2012-07-27 Yao Qi <yao@codesourcery.com>
1633 * tracepoint.c (cur_traceframe_number): Remove.
1634 (set_tfile_traceframe): Remove.
1635 (tfile_trace_find, tfile_fetch_registers): Update callers.
1636 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1637 (tfile_open, tfile_trace_find): Likewise.
1639 2012-07-27 Yao Qi <yao@codesourcery.com>
1641 * thread.c (switch_to_thread): Don't call registers_changed.
1643 2012-07-26 Tom Tromey <tromey@redhat.com>
1645 * Makefile.in (SFILES): Remove objc-exp.y.
1646 (YYFILES): Remove objc-exp.c.
1647 (YYOBJ): Remove objc-exp.o.
1648 (local-maintainer-clean): Don't mention objc-exp.c.
1649 * c-exp.y: Include objc-lang.h.
1650 (%union) <class>: New field.
1651 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1652 (exp): Clone subscript production for OBJC_LBRAC. Add various
1653 Objective C productions.
1654 (msglist, msgarglist, msgarg): New productions.
1655 (array_mod, func_mod, operator): Clone productions for
1657 (parse_string_or_char): Handle '@' strings.
1658 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1659 (classify_name): Check la_name_of_this. Recognize ObjC class
1661 * objc-exp.y: Remove.
1662 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1663 * objc-lang.h (objc_parse, objc_error): Don't declare.
1665 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1667 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1669 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1671 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1674 2012-07-26 Tom Tromey <tromey@redhat.com>
1676 * copying.c: Rebuild.
1677 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1680 2012-07-26 Tom Tromey <tromey@redhat.com>
1682 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1684 (print_objfile_statistics): Likewise.
1685 (maintenance_print_symbols): Likewise.
1686 (maintenance_print_msymbols): Likewise.
1687 (maintenance_print_objfiles): Likewise.
1688 * psymtab.c (print_partial_symbols): Call QUIT.
1689 (maintenance_print_psymbols): Likewise. Don't modify
1691 * copying.c (show_copying_command): Don't modify immediate_quit.
1692 (show_warranty_command): Likewise.
1693 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1695 2012-07-26 Keith Seitz <keiths@redhat.com>
1697 * linespec.c (linespec_lexer_lex_number): The input
1698 is also a valid number if the next character is a comma
1701 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1703 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1706 2012-07-26 Tristan Gingold <gingold@adacore.com>
1708 * machoread.c: Include gdb_bfd.h.
1710 2012-07-26 Tristan Gingold <gingold@adacore.com>
1712 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1715 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1717 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1719 (dwarf2_evaluate_loc_desc): Likewise.
1720 (dwarf2_loc_desc_needs_frame): Likewise.
1721 (locexpr_describe_location_1): Likewise.
1722 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1724 (struct dwarf2_loclist_baton): Likewise.
1725 * dwarf2read.c (struct dwarf_block): Likewise.
1726 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1727 (decode_locdesc): Expand SIZE and I to size_t.
1729 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1731 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1733 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1735 * doublest.c (convert_doublest_to_floatformat): If the exponent
1736 is too small, treat the value as zero. If the exponent is too
1737 large, treat the value as infinity.
1739 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1741 * configure.ac: Add --enable-lmcheck configure option.
1742 * configure: Regenerate.
1744 2012-07-25 Tom Tromey <tromey@redhat.com>
1746 * NEWS: Mention maint info bfds.
1747 * gdb_bfd.c (all_bfds): New global.
1748 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1749 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1752 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1754 * configure.tgt: Add v850*-*-rtems*.
1756 2012-07-25 Tom Tromey <tromey@redhat.com>
1758 * macrotab.c (macro_bcache_str): Remove cast.
1760 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1762 * linespec.c (linespec_lexer_lex_number): Update comments,
1763 change the return and add check to make sure the input is
1764 the decimal numbers.
1765 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1766 false, call linespec_lexer_lex_string.
1768 2012-07-24 Tom Tromey <tromey@redhat.com>
1770 * symfile.c (symbol_file_add): Don't open BFD twice.
1772 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1774 * breakpoint.c (create_breakpoint): Store condition for pending
1777 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1779 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1780 (m68k_return_value): Handle complex types like structures.
1781 (m68k_svr4_return_value): Likewise.
1783 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1785 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1786 parameters to bfd_get_section_name.
1788 2012-07-24 Yao Qi <yao@codesourcery.com>
1790 * cli/cli-setshow.c: Handle case 'var_uinteger'
1791 and 'var_zuninteger' together. Handle case 'var_integer' and
1792 'var_zinteger' together.
1794 2012-07-23 Keith Seitz <keiths@redhat.com>
1796 * linespec.c (convert_linespec_to_sal): Don't add
1797 any symbols to the result vector if symbol_to_sal
1800 2012-07-23 Keith Seitz <keiths@redhat.com>
1802 * linespec.c (decode_objc): Record the function name
1805 2012-07-23 Tom Tromey <tromey@redhat.com>
1807 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1809 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1810 (map_vmap): Acquire a reference to the BFD.
1812 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1814 * p-valprint.c (pascal_object_print_value): Replace potentially
1815 unsafe alloca with xmalloc/xfree.
1816 * valops.c (search_struct_method): Likewise.
1818 2012-07-23 Tom Tromey <tromey@redhat.com>
1820 * solib-svr4.c (enable_break): Update.
1821 * bfd-target.h (target_bfd_reopen): Update documentation.
1823 2012-07-23 Tom Tromey <tromey@redhat.com>
1825 * symfile.c (separate_debug_file_exists): Update.
1826 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1827 (reread_symbols): Update.
1828 * elfread.c (build_id_verify): Update.
1829 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1830 bfd_open_maybe_remote.
1832 2012-07-23 Tom Tromey <tromey@redhat.com>
1834 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1836 2012-07-23 Tom Tromey <tromey@redhat.com>
1838 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1840 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1842 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1843 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1845 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1846 * objfiles.c (allocate_objfile): Acquire a new reference.
1847 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1848 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1849 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1850 a cleanup for 'nbfd'.
1851 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1853 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1854 make a cleanup for 'abfd'.
1855 (symbol_file_add): Make a BFD cleanup.
1857 2012-07-23 Tom Tromey <tromey@redhat.com>
1859 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1860 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1861 * corelow.c (core_open): Use gdb_bfd_fopen.
1862 * dsrec.c (load_srec): Use gdb_bfd_openr.
1863 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1864 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1865 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1866 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1867 (gdb_bfd_fdopenr): New functions.
1868 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1869 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1870 (gdb_bfd_fdopenr): Declare.
1871 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1872 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1873 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1874 gdb_bfd_openr_next_archived_file.
1875 (macho_check_dsym): Use gdb_bfd_openr.
1876 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1877 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1878 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1879 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1881 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1882 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1883 gdb_bfd_openr_next_archived_file.
1884 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1886 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1888 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1889 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1890 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1891 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1892 (symfile_bfd_open): Use gdb_bfd_fopen.
1893 (generic_load): Use gdb_bfd_openr.
1894 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1896 2012-07-23 Tom Tromey <tromey@redhat.com>
1898 * bfd-target.c (target_bfd_reopen): Update.
1899 * cli/cli-dump.c (bfd_openr_with_cleanup)
1900 (bfd_openw_with_cleanup): Update.
1901 * corelow.c (core_open): Update.
1902 * dsrec.c (load_srec): Update.
1903 * exec.c (exec_file_attach): Update.
1904 * gcore.c (create_gcore_bfd): Update.
1905 * gdb_bfd.c (gdb_bfd_ref): Return void.
1906 (gdb_bfd_open): Update.
1907 * gdb_bfd.h (gdb_bfd_ref): Return void.
1909 * jit.c (jit_bfd_try_read_symtab): Update.
1910 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1911 * machoread.c (macho_symfile_read_all_oso): Update.
1912 (macho_check_dsym): Update.
1913 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1914 * remote-m32r-sdi.c (m32r_load): Update.
1915 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1916 * rs6000-nat.c (add_vmap): Update.
1917 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1919 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1920 * solib-spu.c (spu_bfd_open): Update.
1921 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1922 * spu-linux-nat.c (spu_bfd_open): Update.
1923 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1924 (generic_load): Update.
1925 * windows-nat.c (windows_make_so): Update.
1927 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1929 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1931 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1933 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1934 SIGTRAMP_FRAME unwinding.
1936 2012-07-20 Doug Evans <dje@google.com>
1938 * NEWS: Document new options "set/show use-deprecated-index-sections",
1939 and delete reference to --use-deprecated-index-sections.
1940 * symfile.h (use_deprecated_index_sections): Delete.
1941 * dwarf2read.c (use_deprecated_index_sections): Make static.
1942 (read_index_from_section): Update wording of how to load
1943 deprecated index sections.
1944 (_initialize_dwarf2_read): New options
1945 "set/show use-deprecated-index-sections".
1946 * main.c (captured_main): Delete --use-deprecated-index-sections.
1948 2012-07-20 Pedro Alves <palves@redhat.com>
1953 * infrun.c (handle_inferior_event) <new thread>: Don't special
1954 case minus_one_ptid.
1955 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1956 * linux-thread-db.c (thread_get_info_callback): Don't return early
1957 if the thread is zombie.
1958 (thread_from_lwp): Change return type to void. Rewrite stale
1960 (attach_thread): Don't return early if the thread is zombie,
1961 instead set its "dying" flag.
1962 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1963 (find_new_threads_callback): Don't return early if the thread is
1966 2012-07-20 Pedro Alves <palves@redhat.com>
1968 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1969 * target.c (target_wait): Likewise.
1970 (str_comma_list_concat_elem, do_option, target_options_to_string):
1972 * target.h (target_options_to_string): Declare.
1974 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 Tom Tromey <tromey@redhat.com>
1977 * dwarf2read.c (dwarf_decode_macros)
1978 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1979 DW_MACRO_GNU_transparent_include_alt>: New cases.
1980 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1981 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1983 2012-07-20 Tom Tromey <tromey@redhat.com>
1985 * dwarf2read.c (try_open_dwo_file): Don't call
1986 gdb_bfd_stash_filename.
1988 2012-07-20 Pedro Alves <palves@redhat.com>
1990 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1991 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1992 (i386_process_record): Tweak description comments.
1994 2012-07-20 Pedro Alves <palves@redhat.com>
1996 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1997 (i386_process_record): Use record_read_memory.
1998 * record.c (record_read_memory): New function.
1999 (record_arch_list_add_mem, record_exec_insn): Use
2001 * record.h (record_read_memory): Declare.
2003 2012-07-20 Yao Qi <yao@codesourcery.com>
2005 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2008 2012-07-19 Pedro Alves <palves@redhat.com>
2010 * record.c (record_resume): Ask the target beneath to report all
2013 2012-07-19 Doug Evans <dje@google.com>
2015 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2016 there's no section at address zero.
2017 (dwarf2_record_block_ranges): Ditto.
2019 2012-07-19 Yao Qi <yao@codesourcery.com>
2021 * command.h, remote.c: Fix a typo in comment.
2023 2012-07-19 Tom Tromey <tromey@redhat.com>
2026 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2027 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2028 OP_DECLTYPE>: New cases.
2029 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2030 (type_exp): Add new productions.
2031 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2033 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2035 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2036 OP_DECLTYPE>: New case.
2037 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2039 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2040 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2042 2012-07-19 Tom Tromey <tromey@redhat.com>
2044 * c-exp.y (enum token_flags): New.
2045 (struct token) <cxx_only>: Remove.
2047 (tokentab3, tokentab2, ident_tokens): Update.
2048 (lex_one_token): Update. Handle FLAG_SHADOW.
2050 2012-07-19 Tom Tromey <tromey@redhat.com>
2052 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2053 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2054 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2055 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2056 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2057 type_exp production where appropriate.
2058 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2059 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2060 <UNOP_MEMVAL_TYPE>: New case.
2061 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2062 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2063 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2064 <UNOP_MEMVAL_TYPE>: New case.
2065 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2066 UNOP_REINTERPRET_CAST>: Update.
2067 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2068 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2069 UNOP_REINTERPRET_CAST>: Update.
2070 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2071 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2072 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2075 2012-07-19 Yao Qi <yao@codesourcery.com>
2076 Jan Kratochvil <jan.kratochvil@redhat.com>
2078 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2079 and case 'var_optional_filename' together.
2080 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2081 instead of add_setshow_optional_filename_cmd for setshow command
2082 'args'. Set completer for 'set args'.
2084 2012-07-18 Doug Evans <dje@google.com>
2086 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2087 * common/gdb_vecs.c: New file, contents from utils.c.
2088 * common/host-defs.h: New file, contents from defs.h.
2089 * utils.h: New file, contents from defs.h.
2090 * defs.h: Move all declarations of objects defined in utils.c
2091 to utils.h (except QUIT() and related).
2092 #include "utils.h", "host-defs.h".
2093 * probe.h (probe_p): Move here from gdb_vecs.h.
2094 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2095 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2096 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2097 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2098 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2099 (COMMON_OBS): Add gdb_vecs.o.
2100 (gdb_vecs.o): New rule.
2102 2012-07-18 Keith Seitz <keiths@redhat.com>
2104 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2105 parameter. If non-zero, use SYMNAME as the canonical name
2108 (convert_linespec_to_sals): Use add_sal_to_sals for
2110 (decode_line_full): No need to "fill in missing canonical names"
2111 anymore. Simply make cleanups for the allocated names.
2113 2012-07-18 Keith Seitz <keiths@redhat.com>
2115 * linespec.c (struct linespec): Constify expression,
2116 source_filename, function_name, and label_name.
2117 (symbol_not_found_error): Make all parameters const.
2118 (linespec_parser_delete): No need to check for NULL
2119 when using xfree. Cast const char * to char * for xfree.
2121 2012-07-18 Keith Seitz <keiths@redhat.com>
2123 * breakpoint.c (invalid_thread_id_error): New function.
2124 (find_condition_and_thread): Use invalid_thread_id_error.
2125 (watch_command_1): Likewise.
2127 2012-07-18 Tom Tromey <tromey@redhat.com>
2129 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2130 * contrib/cc-with-tweaks.sh: New file.
2132 2012-07-18 Tom Tromey <tromey@redhat.com>
2134 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2135 (locate_dwz_sections): Recognize .gdb_index.
2136 (create_cus_from_index_list): New function.
2137 (create_cus_from_index): Use it. Handle .dwz data.
2138 (read_index_from_section): New function, extracted from
2140 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2143 2012-07-18 Tom Tromey <tromey@redhat.com>
2145 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2146 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2147 <is_dwz>: New field.
2148 (struct dwz_file): New.
2149 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2150 (locate_dwz_sections, dwarf2_get_dwz_file)
2151 (get_abbrev_section_for_cu): New functions.
2152 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2153 (read_and_check_type_unit_head): Add abbrev_section argument.
2154 (create_debug_types_hash_table): Update.
2155 (init_cutu_and_read_dies): Use proper abbrev section.
2156 (init_cutu_and_read_dies_no_follow): Likewise.
2157 (set_partial_user): Do nothing if PST==NULL.
2158 (read_comp_units_from_section): New function.
2159 (create_all_comp_units): Use it.
2160 (scan_partial_symbols, partial_die_parent_scope): Update.
2161 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2162 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2163 (find_partial_die): Add offset_in_dwz argument. Update.
2164 (guess_partial_die_structure_name, fixup_partial_die): Update.
2165 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2166 DW_FORM_GNU_strp_alt.
2167 (read_indirect_string_from_dwz): New function.
2168 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2169 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2170 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2171 (follow_die_offset): Add offset_in_dwz argument.
2172 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2173 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2174 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2175 Handle new macro forms.
2176 (dwarf_decode_macros): Update.
2177 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2178 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2179 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2180 (create_debug_types_hash_table): Use correct abbrev section.
2181 (get_debug_line_section): New function.
2182 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2183 (process_full_comp_unit): Pass 'required' argument to
2184 end_symtab_get_static_block.
2185 * buildsym.h (end_symtab_get_static_block): Update.
2186 * buildsym.c (end_symtab_get_static_block): Add 'required'
2188 (end_symtab, end_expandable_symtab): Update.
2190 2012-07-18 Tom Tromey <tromey@redhat.com>
2192 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2194 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2195 (zlib_decompress_section): Remove.
2196 (dwarf2_read_section): Use gdb_bfd_map_section.
2197 (munmap_section_buffer): Remove.
2198 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2199 munmap_section_buffer.
2200 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2201 (struct gdb_bfd_section_data): New.
2202 (free_one_bfd_section): New function.
2203 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2204 (get_section_descriptor, zlib_decompress_section)
2205 (gdb_bfd_map_section): New functions.
2206 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2208 2012-07-18 Tom Tromey <tromey@redhat.com>
2210 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2212 2012-07-18 Tom Tromey <tromey@redhat.com>
2214 * gdb_bfd.c (struct gdb_bfd_data): New.
2215 (gdb_bfd_cache): New global.
2216 (struct gdb_bfd_cache_search): New.
2217 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2218 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2219 * gdb_bfd.h (gdb_bfd_open): Declare.
2221 2012-07-18 Tom Tromey <tromey@redhat.com>
2223 * utils.c (make_cleanup_bfd_unref): Rename from
2224 make_cleanup_bfd_close.
2225 * defs.h (make_cleanup_bfd_unref): Rename from
2226 make_cleanup_bfd_close.
2227 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2228 (bfd_openw_with_cleanup): Update.
2229 * corelow.c (core_open): Update.
2230 * dsrec.c (load_srec): Update.
2231 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2232 * remote-m32r-sdi.c (m32r_load): Update.
2233 * remote-mips.c (mips_load_srec): Update.
2234 (pmon_load_fast): Update.
2235 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2237 (darwin_bfd_open): Update.
2238 * solib.c (solib_bfd_fopen): Update.
2239 * symfile-mem.c (symbol_file_add_from_memory): Update.
2240 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2241 (symfile_bfd_open): Update.
2242 (generic_load): Update.
2244 2012-07-18 Tom Tromey <tromey@redhat.com>
2246 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2247 (pmon_load_fast): Likewise.
2248 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2249 (m32r_upload_command): Likewise.
2250 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2251 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2252 Use make_cleanup_bfd_close.
2254 2012-07-18 Tom Tromey <tromey@redhat.com>
2256 * symfile.c (symfile_bfd_open): Don't copy name. Call
2257 gdb_bfd_stash_filename.
2258 (load_command): Open the new BFD before freeing the old.
2259 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2260 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2261 Call gdb_bfd_stash_filename.
2262 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2263 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2264 gdb_bfd_stash_filename.
2265 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2266 Free found_pathname.
2267 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2268 gdb_bfd_stash_filename.
2269 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2270 * machoread.c (macho_add_oso_symfile): Call
2271 gdb_bfd_stash_filename.
2272 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2273 gdb_bfd_stash_filename.
2274 (macho_check_dsym): Don't copy filename. Call
2275 gdb_bfd_stash_filename.
2276 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2277 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2278 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2279 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2280 * exec.c (exec_close): Don't free the BFD's filename.
2281 (exec_file_attach): Don't copy the filename. Call
2282 gdb_bfd_stash_filename.
2283 * corelow.c (core_close): Don't free the BFD's filename.
2284 (core_open): Call gdb_bfd_stash_filename.
2285 * corefile.c (reopen_exec_file): Remove #if 0 code.
2286 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2288 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2290 2012-07-18 Tom Tromey <tromey@redhat.com>
2292 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2294 (free_dwo_file): Use gdb_bfd_unref.
2295 * cli/cli-dump.c: Include gdb_bfd.h.
2296 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2297 (bfd_openr_with_cleanup): Likewise.
2298 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2300 * utils.c: Include gdb_bfd.h.
2301 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2302 * symfile.c: Include gdb_bfd.h.
2303 (separate_debug_file_exists): Use gdb_bfd_unref.
2304 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2305 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2306 (generic_load): Use gdb_bfd_ref.
2307 (reread_symbols): Use gdb_bfd_unref.
2308 * symfile-mem.c: Include gdb_bfd.h.
2309 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2310 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2311 * solib.c: Include gdb_bfd.h.
2312 (solib_bfd_fopen): Use gdb_bfd_ref.
2313 (solib_bfd_open): Use gdb_bfd_unref.
2314 (free_so_symbols): Use gdb_bfd_unref.
2315 (reload_shared_libraries_1): Use gdb_bfd_unref.
2316 * solib-spu.c: Include gdb_bfd.h.
2317 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2318 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2320 * solib-frv.c: Include gdb_bfd.h.
2321 (enable_break2): Use gdb_bfd_unref.
2322 * solib-dsbt.c: Include gdb_bfd.h.
2323 (enable_break2): Use gdb_bfd_unref.
2324 * solib-darwin.c: Include gdb_bfd.h.
2325 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2327 (darwin_bfd_open): Use gdb_bfd_unref.
2328 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2329 * remote-mips.c: Include gdb_bfd.h.
2330 (mips_load_srec): Use gdb_bfd_ref.
2331 (pmon_load_fast): Use gdb_bfd_ref.
2332 * remote-m32r-sdi.c: Include gdb_bfd.h.
2333 (m32r_load): Use gdb_bfd_ref.
2334 * record.c: Include gdb_bfd.h.
2335 (record_save_cleanups): Use gdb_bfd_unref.
2336 (cmd_record_save): Use gdb_bfd_unref.
2337 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2339 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2340 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2341 * objfiles.c: Include gdb_bfd.h.
2342 (free_objfile): Use gdb_bfd_unref.
2343 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2345 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2346 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2347 (macho_check_dsym): Likewise.
2348 * m32r-rom.c: Include gdb_bfd.h.
2349 (m32r_load): Use gdb_bfd_ref.
2350 (m32r_upload_command): Use gdb_bfd_ref.
2351 * jit.c: Include gdb_bfd.h.
2352 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2353 * gdb_bfd.h: New file.
2354 * gdb_bfd.c: New file.
2355 * gcore.c: Include gdb_bfd.h.
2356 (create_gcore_bfd): Use gdb_bfd_ref.
2357 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2358 (gcore_command): Use gdb_bfd_unref.
2359 * exec.c: Include gdb_bfd.h.
2360 (exec_close): Use gdb_bfd_unref.
2361 (exec_close_1): Use gdb_bfd_unref.
2362 (exec_file_attach): Use gdb_bfd_ref.
2363 * elfread.c: Include gdb_bfd.h.
2364 (build_id_verify): Use gdb_bfd_unref.
2365 * dsrec.c: Include gdb_bfd.h.
2366 (load_srec): Use gdb_bfd_ref.
2367 * corelow.c: Include gdb_bfd.h.
2368 (core_close): Use gdb_bfd_unref.
2369 (core_open): Use gdb_bfd_ref.
2370 * bfd-target.c: Include gdb_bfd.h.
2371 (target_bfd_xclose): Use gdb_bfd_unref.
2372 (target_bfd_reopen): Use gdb_bfd_ref.
2373 * Makefile.in (SFILES): Add gdb_bfd.c.
2374 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2375 (COMMON_OBS): Add gdb_bfd.o.
2377 2012-07-18 Keith Seitz <keiths@redhat.com>
2379 * breakpoint.c (find_condition_and_thread): Initialize
2381 (create_breakpiont): find_condition_and_thread will now
2382 initialize COND_STRING, THREAD, and REST (and TASK).
2383 (addr_string_to_sals): Likewise.
2385 2012-07-18 Pedro Alves <palves@redhat.com>
2387 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2388 Pull the single step breakpoints out of the target.
2390 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2392 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2393 * stap-probe.c (compile_probe_arg): Likewise.
2395 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2397 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2398 (elf_compile_to_ax): Likewise.
2399 * infrun.c (insert_exception_resume_from_probe): Likewise.
2400 (check_exception_resume): Remove `objfile' variable.
2401 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2402 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2403 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2404 (compare_entries): Rename to...
2405 (compare_probes): ...this. Adjust function to work with
2406 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2408 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2410 (print_ui_out_info): Adjust argument to be `struct probe *'.
2411 (info_probes_for_ops): Adjust internal computations to use
2413 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2414 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2415 gen_info_probes_table_values>: Remove `objfile' argument.
2416 (struct probe) <objfile>: New field.
2417 (find_probe_by_pc): Remove `objfile' argument.
2418 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2419 (stap_get_probe_argument_count): Likewise.
2420 (stap_get_arg): Likewise.
2421 (stap_evaluate_probe_argument): Likewise.
2422 (stap_compile_to_ax): Likewise.
2423 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2424 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2425 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2426 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2427 sym_compile_to_ax>: Likewise.
2429 2012-07-18 Terry Guo <terry.guo@arm.com>
2432 * defs.h (GDB_MI_MSG_WIDTH): New.
2433 * ser_base (ser_base_read_error_fd): New function.
2434 (do_ser_base_readchar): Poll error file descriptor as well as
2436 (generic_readchar): Refactor error handling.
2438 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2440 * NEWS: Create a new section for the next release branch.
2441 Rename the section of the current branch, now that it has
2444 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2446 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2447 * version.in: Bump version to 7.5.50.20120718-cvs.
2449 2012-07-17 Keith Seitz <keiths@redhat.com>
2451 * linespec.c (linespec_parse_line_offset): Make parameter
2454 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2457 * f-valprint.c (info_common_command): New variable frame_id.
2458 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2459 * printcmd.c (print_variable_and_value): Extend function comment.
2460 Add comment for invalidated FRAME.
2461 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2462 FI form FRAME_ID after each print_frame_local_vars.
2463 (struct print_variable_and_value_data): Change frame to frame_id.
2464 (do_print_variable_and_value): New variable frame, initialize it from
2465 p->frame_id. Add comment for invalidated FRAME.
2466 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2467 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2468 for invalidated FRAME.
2470 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2471 Pedro Alves <palves@redhat.com>
2473 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2476 2012-07-16 Tom Tromey <tromey@redhat.com>
2478 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2480 2012-07-15 Doug Evans <dje@google.com>
2482 * dwarf2read.c (stmt_list_hash): New struct.
2483 (type_unit_group): Embed "per_cu" member, remove pointer.
2484 New union member "t", move member "tus" into it, all uses updated.
2485 New member "hash", replaces member "line_offset, all uses updated.
2486 (quick_file_names): Replace member "offset" with "hash", all uses
2488 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2489 (hash_file_name_entry, eq_file_name_entry): Call them.
2490 (hash_type_unit_group, eq_type_unit_group): Ditto.
2491 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2492 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2493 (dw2_get_file_names): Update.
2494 (create_type_unit_group): Replace "per_cu" arg with "cu".
2495 All callers updated. Fix "quick" (.gdb_index) handling.
2496 (get_type_unit_group): Replace "per_cu" arg with "cu".
2497 All callers updated.
2498 (build_type_unit_groups): Don't reset tu_stats.
2500 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2501 "tab_cur_size". Change member "tab" to be a htab_t.
2502 (create_filename_seen_cache): Update.
2503 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2504 (filename_seen): Update.
2506 2012-07-13 Doug Evans <dje@google.com>
2508 * symtab.c (filename_seen): Update comment.
2510 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 Doug Evans <dje@google.com>
2513 * buildsym.c (end_symtab_1): Split it to ...
2514 (end_symtab_get_static_block): ... this ...
2515 (end_symtab_from_static_block): ... and this function.
2516 (end_symtab, end_expandable_symtab): Call them.
2517 * buildsym.h (end_symtab_get_static_block)
2518 (end_symtab_from_static_block): New declarations.
2519 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2520 Set its valid CU ranges.
2522 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2524 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2525 DW_OP_GNU_parameter_ref.
2527 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2529 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2530 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2532 2012-07-13 Doug Evans <dje@google.com>
2534 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2535 (filename_seen_cache): New struct.
2536 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2537 (create_filename_seen_cache): New function.
2538 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2539 (filename_seen): Delete arg "first". New arg "cache". All callers
2541 (output_source_filename_data): New struct.
2542 (output_source_filename): Delete arg "first". New arg "data".
2543 All callers updated.
2544 (sources_info): Delete local "first". New locals "data", "cleanups".
2545 Rewrite to use filename_seen_cache.
2546 (add_partial_filename_data): Delete member "first". New member
2547 "filename_seen_cache". All uses updated.
2548 (make_source_files_completion_list): Rewrite to use
2549 filename_seen_cache.
2551 2012-07-12 Doug Evans <dje@google.com>
2553 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2555 2012-07-10 Doug Evans <dje@google.com>
2558 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2559 all_type_unit_groups, type_unit_groups, tu_stats.
2560 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2561 All uses updated. Add type_unit_group to union "s".
2562 (type_unit_group): New struct.
2563 (IS_TYPE_UNIT_GROUP): New macro.
2564 (abbrev_table): Delete unused member "section".
2565 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2566 (dw2_get_cu): Assert not used with type_unit_group.
2567 (dw2_get_primary_cu): New function.
2568 (dw2_build_type_unit_groups_reader): New function.
2569 (dw2_build_type_unit_groups): New function.
2570 (dw2_get_file_names): Assert not called on type units.
2571 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2572 Redo loop to iterate over type unit groups instead of type units.
2573 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2574 (read_abbrev_offset): New function.
2575 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2577 (create_partial_symtab): New function.
2578 (process_psymtab_comp_unit_reader): Assert not used with type units.
2579 Call create_partial_symtab.
2580 (process_psymtab_type_unit): Delete.
2581 (hash_type_unit_group, eq_type_unit_group): New functions.
2582 (allocate_type_unit_groups_table): New function.
2583 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2584 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2585 (create_type_unit_group, get_type_unit_group): New functions.
2586 (tu_abbrev_offset): New struct.
2587 (sort_tu_by_abbrev_offset): New function.
2588 (add_type_unit_group_to_table): New function.
2589 (build_type_unit_groups): New function.
2590 (build_type_psymtabs_reader): New function.
2591 (build_type_psymtab_dependencies): New function.
2592 (build_type_psymtabs): Rewrite.
2593 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2594 is seen in a type unit.
2595 (process_queue): Move symtab expansion debugging printfs here.
2596 Call process_full_type_unit for type units.
2597 (compute_symtab_includes): Assert not called for type units.
2598 (process_cu_includes): Don't call compute_symtab_includes for
2600 (process_full_type_unit): New function.
2601 (process_imported_unit_die): Flag an error if called for type units.
2602 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2603 updated. Assert not called for type units.
2604 (read_file_scope): Call dwarf2_start_symtab.
2605 (setup_type_unit_groups): New function.
2606 (read_type_unit_scope): Rewrite.
2607 (abbrev_table_read_table): Initialize abbrev_table->offset.
2608 (abbrev_table_free_cleanup): New function.
2609 (dwarf2_start_symtab): New function.
2610 (load_full_type_unit): Assert not called for type unit groups.
2611 * buildsym.c (finish_block_internal): New arg "expandable".
2612 All callers updated.
2613 (start_symtab): Move most contents to ...
2614 (restart_symtab): ... here. New function.
2615 (reset_symtab_globals): New function.
2616 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2617 Call reset_symtab_globals.
2618 (end_symtab, end_expandable_symtab): New functions.
2619 (set_missing_symtab, augment_type_symtab): New functions.
2620 * buildsym.h (end_expandable_symtab): Declare.
2621 (augment_type_symtab, restart_symtab): Declare.
2622 * psympriv.h (struct partial_symtab): New member "anonymous".
2623 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2625 (read_psymtabs_with_filename): Ditto.
2626 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2627 (expand_symtabs_matching_via_partial): Ditto.
2628 (dump_psymtab): Update.
2629 * dictionary.c (dict_add_pending): New function.
2630 * dictionary.h (dict_add_pending): Declare.
2632 2012-07-09 Doug Evans <dje@google.com>
2634 * buildsym.c (start_subfile): Remove unnecessary check for
2637 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2639 * dwarf2read.c (load_full_type_unit): Simplify.
2641 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2642 to struct signatured_type **. All uses updated.
2644 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2645 All callers updated.
2647 2012-07-09 Tom Tromey <tromey@redhat.com>
2649 * c-exp.y (check_parameter_typelist): New function.
2650 (parameter_typelist): Call it.
2651 * eval.c (make_params): Handle '(void)' case.
2652 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2655 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2657 * common/linux-ptrace.c: Include gdb_assert.h.
2658 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2659 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2661 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2663 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2664 * linux-nat.c (linux_child_post_attach)
2665 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2667 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2669 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2670 nptl <2.7 bug workaround for core files.
2672 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2676 (save_siginfo): Remove.
2677 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2679 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2680 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2681 * linux-nat.h (struct lwp_info): Remove field siginfo.
2683 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2685 Code cleanup for the next patch.
2686 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2687 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2689 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2690 (ia64_linux_stopped_data_address):
2691 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2693 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2694 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2695 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2698 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2701 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2702 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2704 2012-07-06 Tom Tromey <tromey@redhat.com>
2706 * c-exp.y (DOTDOTDOT): New token.
2707 (func_mod, exp): Use parameter_typelist.
2708 (parameter_typelist): New production.
2709 (tokentab3): Add "..." token.
2710 * eval.c (make_params): Handle varargs.
2711 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2714 2012-07-06 Tom Tromey <tromey@redhat.com>
2717 * c-exp.y (%union) <tvec>: Change type.
2718 (func_mod): Now uses <tvec> type.
2719 (exp): Update for tvec change.
2720 (direct_abs_decl): Push the typelist.
2721 (func_mod): Return a typelist.
2722 (nonempty_typelist): Update for tvec change.
2723 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2724 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2725 * parse.c (pop_type_list): New function.
2726 (push_typelist): New function.
2727 (follow_types): Handle tp_function_with_arguments.
2728 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2729 (enum type_pieces) <tp_function_with_arguments>: New constant.
2730 (union type_stack_elt) <typelist_val>: New field.
2731 (push_typelist): Declare.
2733 2012-07-06 Tom Tromey <tromey@redhat.com>
2735 * c-exp.y (%union) <type_stack>: New field.
2736 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2737 (ptr_operator_ts): New production.
2739 * parse.c (type_stack_reserve): New function.
2740 (check_type_stack_depth): Use it.
2741 (pop_type_stack, append_type_stack, push_type_stack)
2742 (get_type_stack, type_stack_cleanup): New functions.
2743 (follow_types): Handle tp_type_stack.
2744 (_initialize_parse): Simplify initialization.
2745 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2747 (union type_stack_elt) <stack_val>: New field.
2748 (get_type_stack, append_type_stack, push_type_stack)
2749 (type_stack_cleanup): Declare.
2751 2012-07-06 Tom Tromey <tromey@redhat.com>
2753 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2755 (struct type_stack): New.
2756 * parse.c (type_stack, type_stack_size, type_stack_depth):
2758 (type_stack): New global.
2759 (parse_exp_in_context, check_type_stack_depth)
2760 (insert_into_type_stack, insert_type, push_type, push_type_int)
2761 (insert_type_address_space, pop_type, pop_type_int)
2762 (_initialize_parse): Update.
2764 2012-07-06 Tom Tromey <tromey@redhat.com>
2766 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2769 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2771 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2773 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2774 Jan Kratochvil <jan.kratochvil@redhat.com>
2776 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2777 alloca with xmalloc/xfree.
2779 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2781 * MAINTAINERS (Write After Approval): Add myself to the list.
2783 2012-07-05 Doug Evans <dje@google.com>
2785 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2787 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2789 * ax-gdb.c (cli/cli-utils.h): New include.
2790 (linespec.h): Ditto.
2791 (agent_eval_command_one): New function.
2792 (agent_command_1): Ditto.
2793 (agent_command): Call function agent_command_1.
2794 (agent_eval_command): Ditto.
2795 (_initialize_ax_gdb): Change help for "maint agent"
2796 and "maint agent-eval".
2798 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2800 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2801 * cli/cli-utils.c (check_for_argument): New function.
2802 * cli/cli-utils.h (check_for_argument): Ditto.
2804 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2806 * NEWS: Mention x32 ABI support.
2808 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2810 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2811 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2813 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2814 and pc_regnum_from_eax to -1. Update SP regnum from
2815 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2818 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2821 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2823 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2824 * dwarf2expr.h: Include gdbtypes.h.
2825 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2826 these forward declarations.
2827 (cu_offset, sect_offset): Move these ...
2828 * gdbtypes.h: Remove include dwarf2expr.h.
2829 (cu_offset, sect_offset): ... here.
2831 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2833 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2834 (amd64_linux_sigtramp_code): This.
2835 (amd64_x32_linux_sigtramp_code): New.
2836 (LINUX_SIGTRAMP_LEN): Updated.
2837 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2839 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2841 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2843 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2845 * config.in: Regenerate.
2846 * configure: Regenerate.
2847 * configure.ac: Remove check for gnu/libc-version.h.
2848 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2850 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2851 variables libc_version, libc_major and libc_minor. Replace sscanf by
2852 inferior_has_bug. Extend the comment.
2854 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2856 * linux-thread-db.c (inferior_has_bug): New function.
2857 (thread_db_find_new_threads_silently): Return boolean as checked by
2858 inferior_has_bug, describe it in the comments.
2859 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2860 earlier. Abort the initialization if it returned non-zero.
2861 (thread_db_new_objfile): Exclude debug files.
2862 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2865 2012-07-02 Doug Evans <dje@google.com>
2867 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2868 related to queue management.
2870 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2871 instead of "debug dwarf2-die" in debugging printfs.
2872 (create_debug_info_hash_table_reader): Ditto.
2873 (create_debug_info_hash_table): Ditto.
2874 (init_dwo_file): Ditto.
2875 (init_cutu_and_read_dies): Add debugging printf.
2876 (init_cutu_and_read_dies_no_follow): Ditto.
2877 (process_psymtab_comp_unit_reader): Ditto.
2879 2012-07-02 Stan Shebs <stan@codesourcery.com>
2881 Add target-side support for dynamic printf.
2882 * NEWS: Mention the additional style.
2883 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2884 (struct bp_location): New field cmd_bytecode.
2885 * breakpoint.c: Include format.h.
2886 (disconnected_dprintf): New global.
2887 (parse_cmd_to_aexpr): New function.
2888 (build_target_command_list): New function.
2889 (insert_bp_location): Call it.
2890 (remove_breakpoints_pid): Skip dprintf breakpoints.
2891 (print_one_breakpoint_location): Ditto.
2892 (dprintf_style_agent): New global.
2893 (dprintf_style_enums): Add dprintf_style_agent.
2894 (update_dprintf_command_list): Add agent case.
2895 (agent_printf_command): New function.
2896 (_initialize_breakpoint): Add new commands.
2897 * common/ax.def (printf): New bytecode.
2898 * ax.h (ax_string): Declare.
2899 * ax-gdb.h (gen_printf): Declare.
2900 * ax-gdb.c: Include cli-utils.h, format.h.
2901 (gen_printf): New function.
2902 (maint_agent_print_command): New function.
2903 (_initialize_ax_gdb): Add maint agent-printf command.
2904 * ax-general.c (ax_string): New function.
2905 (ax_print): Add printf disassembly.
2906 * Makefile.in (SFILES): Add format.c
2907 (COMMON_OBS): Add format.o.
2908 * common/format.h: New file.
2909 * common/format.c: New file.
2910 * printcmd.c: Include format.h.
2911 (ui_printf): Call parse_format_string.
2912 * remote.c (remote_state): New field breakpoint_commands.
2913 (PACKET_BreakpointCommands): New enum.
2914 (remote_breakpoint_commands_feature): New function.
2915 (remote_protocol_features): Add new BreakpointCommands entry.
2916 (remote_can_run_breakpoint_commands): New function.
2917 (remote_add_target_side_commands): New function.
2918 (remote_insert_breakpoint): Call it.
2919 (remote_insert_hw_breakpoint): Ditto.
2920 (_initialize_remote): Add new packet configuration for
2921 target-side breakpoint commands.
2922 * target.h (struct target_ops): New field
2923 to_can_run_breakpoint_commands.
2924 (target_can_run_breakpoint_commands): New macro.
2925 * target.c (update_current_target): Handle
2926 to_can_run_breakpoint_commands.
2928 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2930 Execute -ix and -iex only after system and user gdbinit files.
2931 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2932 processing down after gdbinit files.
2934 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2936 Add fnmatch-gnu module.
2937 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2938 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2939 * gnulib/aclocal.m4: Regenerate.
2940 * gnulib/config.in: Regenerate.
2941 * gnulib/configure: Regenerate.
2942 * gnulib/import/dummy.c: Remove.
2943 * gnulib/import/Makefile.am: Regenerate.
2944 * gnulib/import/Makefile.in: Likewise.
2945 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2946 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2947 * gnulib/import/alloca.c: New file.
2948 * gnulib/import/alloca.in.h: Likewise.
2949 * gnulib/import/config.charset: Likewise.
2950 * gnulib/import/fnmatch.c: Likewise.
2951 * gnulib/import/fnmatch.in.h: Likewise.
2952 * gnulib/import/fnmatch_loop.c: Likewise.
2953 * gnulib/import/localcharset.c: Likewise.
2954 * gnulib/import/localcharset.h: Likewise.
2955 * gnulib/import/m4/alloca.m4: Likewise.
2956 * gnulib/import/m4/codeset.m4: Likewise.
2957 * gnulib/import/m4/configmake.m4: Likewise.
2958 * gnulib/import/m4/fcntl-o.m4: Likewise.
2959 * gnulib/import/m4/fnmatch.m4: Likewise.
2960 * gnulib/import/m4/glibc21.m4: Likewise.
2961 * gnulib/import/m4/localcharset.m4: Likewise.
2962 * gnulib/import/m4/locale-fr.m4: Likewise.
2963 * gnulib/import/m4/locale-ja.m4: Likewise.
2964 * gnulib/import/m4/locale-zh.m4: Likewise.
2965 * gnulib/import/m4/mbrtowc.m4: Likewise.
2966 * gnulib/import/m4/mbsinit.m4: Likewise.
2967 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2968 * gnulib/import/m4/mbstate_t.m4: Likewise.
2969 * gnulib/import/m4/stdbool.m4: Likewise.
2970 * gnulib/import/m4/wchar_h.m4: Likewise.
2971 * gnulib/import/m4/wctype_h.m4: Likewise.
2972 * gnulib/import/m4/wint_t.m4: Likewise.
2973 * gnulib/import/mbrtowc.c: Likewise.
2974 * gnulib/import/mbsinit.c: Likewise.
2975 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2976 * gnulib/import/mbsrtowcs-state.c: Likewise.
2977 * gnulib/import/mbsrtowcs.c: Likewise.
2978 * gnulib/import/ref-add.sin: Likewise.
2979 * gnulib/import/ref-del.sin: Likewise.
2980 * gnulib/import/stdbool.in.h: Likewise.
2981 * gnulib/import/streq.h: Likewise.
2982 * gnulib/import/strnlen1.c: Likewise.
2983 * gnulib/import/strnlen1.h: Likewise.
2984 * gnulib/import/verify.h: Likewise.
2985 * gnulib/import/wchar.in.h: Likewise.
2986 * gnulib/import/wctype.in.h: Likewise.
2988 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2990 Support shell wildcards for 'set auto-load safe-path'.
2991 * auto-load.c: Include fnmatch.h.
2992 (filename_is_in_dir): Rename to ...
2993 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2994 it. Update function comment. Rename dir_len to pattern_len. New
2995 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2996 messages. Use gdb_filename_fnmatch.
2997 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2999 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3000 * defs.h (gdb_filename_fnmatch): New declaration.
3001 * utils.c: Include fnmatch.h.
3002 (gdb_filename_fnmatch): New function.
3004 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3006 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3007 `-probe' and `-probe-stap' options.
3009 2012-07-01 Yao Qi <yao@codesourcery.com>
3011 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3012 always_inserted_off, and always_inserted_enums.
3013 Change always_inserted_mode's type to 'enum auto_boolean'.
3014 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3016 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3017 of add_setshow_enum_cmd.
3018 * infrun.c: Remove can_use_displaced_stepping_auto,
3019 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3020 can_use_displaced_stepping_enum.
3021 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3022 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3023 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3024 add_setshow_enum_cmd.
3026 2012-06-30 Doug Evans <dje@google.com>
3028 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3029 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3030 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3032 2012-06-29 Doug Evans <dje@google.com>
3034 * linespec.c: #include "stack.h".
3035 (decode_line_with_current_source): Moved here from symtab.c and
3036 renamed from decode_line_spec. All callers updated.
3037 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3038 renamed from decode_line_spec_1. All callers updated.
3039 * linespec.h (decode_line_with_current_source): Move declaration here
3040 from symtab.h and renamed from decode_line_spec.
3041 (decode_line_with_last_displayed): Move declaration here from symtab.h
3042 and renamed from decode_line_spec_1.
3043 * macrocmd.c: #include "linespec.h".
3044 * symtab.c: Remove #include "linespec.h".
3046 2012-06-28 Doug Evans <dje@google.com>
3048 * dwarf2read.c (get_cu_length): New function.
3049 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3050 (create_debug_types_hash_table): Ditto.
3051 (init_cutu_and_read_dies): Ditto.
3052 (init_cutu_and_read_dies_no_follow): Ditto.
3054 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3056 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3057 (struct abbrev_table): Define.
3058 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3060 (init_cutu_and_read_dies): Update.
3061 (abbrev_table_alloc_abbrev): New function. Replaces
3062 dwarf_alloc_abbrev. All callers updated.
3063 (abbrev_table_add_abbrev): New function.
3064 (abbrev_table_lookup_abbrev): New function. Replaces
3065 dwarf2_lookup_abbrev. All callers updated.
3066 (abbrev_table_read_table): New function. Contents moved here from
3067 dwarf2_read_abbrevs.
3068 (dwarf2_read_abbrevs): Call it.
3069 (abbrev_table_free): New function.
3070 (dwarf2_free_abbrev_table): Call it.
3072 2012-06-28 Stan Shebs <stan@codesourcery.com>
3074 * osdata.c (info_osdata_command): Filter out "Title" columns
3076 * common/linux-osdata.c (struct osdata_type): Add title field.
3077 (osdata_table): Add titles to each entry.
3078 (linux_command_xfer_osdata): Add a column for title data.
3080 2012-06-28 Stan Shebs <stan@codesourcery.com>
3082 Make logging work for MI.
3084 * interps.h (interp_set_logging_ftype): New typedef.
3085 (struct interp_procs): New field set_logging_proc.
3086 (current_interp_set_logging): Declare.
3087 * interps.c (current_interp_set_logging): New function.
3088 * cli/cli-logging.c: Include interps.h.
3089 (set_logging_redirect): Call current_interp_set_logging.
3090 (pop_output_files): Ditto.
3091 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3092 * mi/mi-console.h (mi_console_set_raw): Declare.
3093 * mi/mi-console.c (mi_console_set_raw): New function.
3094 * mi/mi-interp.c (saved_raw_stdout): New global.
3095 (mi_set_logging): New function.
3096 (_initialize_mi_interp): Add it to interp procs.
3098 2012-06-28 Doug Evans <dje@google.com>
3100 * symtab.c (lookup_symbol_aux_objfile): Use
3101 ALL_OBJFILE_PRIMARY_SYMTABS.
3103 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3105 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3107 * common/buffer.c: Include inttypes.h and stdint.h.
3108 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3110 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3111 Pedro Alves <palves@redhat.com>
3113 * gdbthread.h (ALL_THREADS): New macro.
3114 (thread_list): Declare.
3115 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3116 going, but instead fall through to the stepping handling.
3117 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3118 the passed in signal. Adjust debug output.
3119 (resume_callback): Rename to ...
3120 (linux_nat_resume_callback): ... this. Pass the thread's last
3121 stop signal, if in "pass" state.
3122 (linux_nat_resume): Adjust to rename.
3123 (stop_wait_callback): New assertion. Don't respawn signals;
3124 instead let the LWP remain with SIGNALLED set.
3125 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3126 * remote.c (append_pending_thread_resumptions): New.
3127 (remote_vcont_resume): Call it.
3128 * target.h (target_resume): Extend comment.
3130 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3132 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3134 2012-06-27 Doug Evans <dje@google.com>
3136 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3137 Delete have_addr_base, unused. All uses updated.
3138 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3139 (dwarf2_get_pc_bounds): Add ranges_base.
3140 (dwarf2_record_block_ranges): Ditto.
3142 2012-06-27 Tom Tromey <tromey@redhat.com>
3145 * varobj.c (varobj_create): Update.
3146 (varobj_set_value): Update.
3147 * tracepoint.c (validate_actionline): Update.
3148 (encode_actions_1): Update.
3149 * parse.c (parse_exp_1): Add 'pc' argument.
3150 (parse_exp_in_context): Add 'pc' argument. Change how
3151 expression_context_pc is set.
3152 (parse_expression): Update.
3153 (parse_field_expression): Update.
3154 * expression.h (parse_exp_1): Update.
3155 * eval.c (parse_to_comma_and_eval): Update.
3156 * breakpoint.c (set_breakpoint_condition): Update.
3157 (update_watchpoint): Update.
3158 (init_breakpoint_sal): Update
3159 (find_condition_and_thread): Update.
3160 (watch_command_1): Update.
3161 (update_breakpoint_locations): Update.
3162 * ada-lang.c (ada_read_renaming_var_value): Update.
3163 (create_excep_cond_exprs): Update.
3165 2012-06-27 Doug Evans <dje@google.com>
3167 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3170 2012-06-26 Doug Evans <dje@google.com>
3172 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3174 (error_check_comp_unit_head): New arg abbrev_section. All callers
3176 (read_and_check_comp_unit_head): Ditto.
3177 (read_and_check_type_unit_head): Ditto.
3179 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3181 New attribute 'last' for gdb.Symtab_and_line.
3182 * NEWS (Python Scripting): Add entry about the new attribute.
3183 * python/py-symtab.c (salpy_get_last): New function which
3184 implements the get method for the 'last' attribute of
3185 gdb.Symtab_and_line.
3186 (sal_object_getset): Add entry for the 'last' attribute.
3188 2012-06-26 Doug Evans <dje@google.com>
3190 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3191 (dwo_sections): Add macinfo, macro.
3192 (dwarf2_locate_dwo_sections): Watch for macro sections.
3193 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3194 All callers updated. Handle DWO files.
3196 * NEWS: Mention new options "set debug dwarf2-read" and
3197 "set debug symtab-create".
3198 * dwarf2read.c (dwarf2_read_debug): New static global.
3199 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3200 (process_queue): Ditto.
3201 (process_full_comp_unit): Ditto.
3202 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3203 * elfread.c (elf_symfile_read): Add debugging printf.
3204 * minsyms.c (install_minimal_symbols): Ditto.
3205 * psymtab.c (allocate_psymtab): Ditto.
3206 * symfile.c (allocate_symtab): Ditto.
3207 * symtab.c (symtab_create_debug): New global.
3208 (_initialize_symtab): Add new option "set debug symtab-create".
3209 * symtab.h (symtab_create_debug): Declare.
3211 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3212 (lookup_dwo_type_unit): Ditto.
3214 2012-06-26 Roland McGrath <roland@hack.frob.com>
3215 H.J. Lu <hongjiu.lu@intel.com>
3217 * amd64-linux-nat.c: Include <sys/user.h>.
3218 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3219 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3220 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3222 * configure.ac: Check if the fs_base and gs_base members of
3223 `struct user_regs_struct' exist.
3224 * config.in: Regenerated.
3225 * configure: Likewise.
3227 2012-06-25 Michael Eager <eager@eagercon.com>
3230 * python/python.c (gdbpy_write): Check for interrupted output.
3232 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3234 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3235 register as a stack alignment in ARM mode.
3237 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3239 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3240 * gnulib/config.in: Regenerate.
3241 * gnulib/configure: Likewise.
3242 * gnulib/import/m4/extensions.m4: Update it.
3243 * gnulib/import/m4/gnulib-common.m4: Likewise.
3244 * gnulib/import/m4/memmem.m4: Likewise.
3245 * gnulib/import/m4/mmap-anon.m4: Likewise.
3246 * gnulib/import/m4/multiarch.m4: Likewise.
3247 * gnulib/import/stdint.in.h: Likewise.
3249 2012-06-24 Yao Qi <yao@codesourcery.com>
3251 * corefile.c (write_memory_with_notification): New.
3252 * gdbcore.h: Declare write_memory_with_notification.
3253 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3254 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3255 * valops.c (value_assign): Likewise.
3256 * python/py-inferior.c (infpy_write_memory): Call
3257 'write_memory_with_notification'.
3259 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3261 * cc-with-index.sh: Use also -ex "set auto-load no".
3263 2012-06-23 Doug Evans <dje@google.com>
3266 * NEWS: Document additions to .gdb_index.
3267 * dwarf2read.c: #include "gdb/gdb-index.h".
3268 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3269 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3270 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3271 (dwarf2_read_index): Recognize version 7.
3272 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3273 block_kind, domain): All callers updated.
3274 (dw2_find_symbol_file): Handle new index CU values.
3275 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3276 (add_index_entry): New args is_static, kind. All callers updated.
3277 (offset_type_compare, uniquify_cu_indices): New functions
3278 (symbol_kind): New function.
3279 (write_psymtabs_to_index): Remove duplicate CU values.
3280 (write_psymtabs_to_index): Write .gdb_index version 7.
3282 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3284 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3285 * configure: Regenerate.
3287 2012-06-20 Yao Qi <yao@codesourcery.com>
3289 * python/py-inferior.c: Update comments of infpy_read_memory
3290 and infpy_write_memory.
3292 2012-06-19 Tom Tromey <tromey@redhat.com>
3295 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3296 (push_type_address_space): Remove.
3297 * parse.c (insert_into_type_stack): New function.
3298 (insert_type): Likewise.
3299 (insert_type_address_space): Rename from push_type_address_space.
3300 Insert tp_space_identifier.
3301 * c-exp.y (ptr_operator): New production.
3302 (abs_decl): Use ptr_operator.
3303 (space_identifier): Call insert_type_address_space.
3304 (ptype): Don't use const_or_volatile_or_space_identifier.
3305 (const_or_volatile_noopt): Call insert_type.
3306 (conversion_type_id, conversion_declarator): New productions.
3307 (operator): Use conversion_type_id.
3309 2012-06-18 Doug Evans <dje@google.com>
3311 * symtab.h (minimal_symbol): New member created_by_gdb.
3312 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3314 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3315 (search_symbols): Call it instead of lookup_symbol.
3316 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3318 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3319 Adjust address for DW_OP_GNU_addr_index.
3320 * dwarf2expr.h (dwarf_expr_context): Update comment.
3321 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3322 all callers updated. Handle TLS vars described with
3323 DW_OP_GNU_const_index.
3324 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3325 and DW_OP_GNU_const_index.
3326 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3328 * block.c (find_block_in_blockvector): Make explicit the fact that we
3329 ignore GLOBAL_BLOCK.
3331 2012-06-18 Tom Tromey <tromey@redhat.com>
3333 * c-exp.y (operator): Remove trailing space after "delete" and
3336 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3337 Jan Kratochvil <jan.kratochvil@redhat.com>
3339 Switch i386 and derived targets to ON_STACK.
3340 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3341 (amd64_dicos_init_abi): Remove its installment.
3342 * dicos-tdep.c (dicos_init_abi): Remove the
3343 set_gdbarch_call_dummy_location call. Update the comment here.
3344 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3345 (i386_dicos_init_abi): Remove its installment.
3346 * i386-tdep.c (i386_push_dummy_code): New function.
3347 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3348 i386_push_dummy_code.
3350 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3352 Remove stale dummy frames.
3353 * breakpoint.c: Include dummy-frame.h.
3354 (longjmp_breakpoint_ops): New variable.
3355 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3356 bp_longjmp_call_dummy.
3357 (bpstat_what, bptype_string, print_one_breakpoint_location)
3358 (init_bp_location): Support bp_longjmp_call_dummy.
3359 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3360 (set_longjmp_breakpoint_for_call_dummy)
3361 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3363 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3364 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3365 FIXME comment and extend the other comment for bp_call_dummy.
3366 (set_longjmp_breakpoint_for_call_dummy)
3367 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3368 * dummy-frame.c: Include gdbthread.h.
3369 (pop_dummy_frame_bpt): New function.
3370 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3371 (dummy_frame_discard): New function.
3372 (cleanup_dummy_frames): Update the comment about longjmps.
3373 * dummy-frame.h (dummy_frame_discard): New declaration.
3374 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3375 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3376 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3377 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3378 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3379 keep_going if IS_LONGJMP and there is no other reason to stop.
3381 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3383 * remote-sim.c (sim_command_completer): Initialize
3386 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3388 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3389 * dwarf2loc.c (call_site_parameter_matches): Support
3390 CALL_SITE_PARAMETER_PARAM_OFFSET.
3391 (needs_dwarf_reg_entry_value): Push stub value.
3392 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3393 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3394 * gdbtypes.h (enum call_site_parameter_kind): New item
3395 CALL_SITE_PARAMETER_PARAM_OFFSET.
3396 (struct call_site.parameter.u): New field param_offset.
3398 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3400 Code cleanup: Generalize call_site.parameter key.
3401 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3402 variable dwarf_reg. New variable kind_u. Update parameters to
3403 push_dwarf_reg_entry_value.
3404 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3405 * dwarf2expr.h (enum call_site_parameter_kind)
3406 (union call_site_parameter_u): Forward declarations.
3407 (struct dwarf_expr_context_funcs): Update parameters and their
3408 description for push_dwarf_reg_entry_value.
3409 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3410 * dwarf2loc.c (call_site_parameter_matches): New function.
3411 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3412 description. Use call_site_parameter_matches.
3413 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3414 Update parameters and their description.
3415 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3416 New variable kind_u. Adjust the caller for updated parameters.
3417 (needs_dwarf_reg_entry_value): Update parameters.
3418 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3419 instead of attr. Update for the changed fields of struct
3420 call_site_parameter.
3421 * gdbtypes.h: Include dwarf2expr.h.
3422 (enum call_site_parameter_kind): New.
3423 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3424 fb_offset into new union u.
3426 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3428 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3429 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3432 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3434 * amd64-linux-nat.c (compat_x32_clock_t): New.
3435 (compat_x32_siginfo_t): Likewise.
3436 (compat_x32_siginfo_from_siginfo): Likewise.
3437 (siginfo_from_compat_x32_siginfo): Likewise.
3438 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3439 and siginfo_from_compat_x32_siginfo for x32.
3441 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3443 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3445 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3447 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3448 instead of gdbarch_ptr_bit.
3449 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3450 (amd64_supply_native_gregset): Likewise.
3451 (amd64_collect_native_gregset): Likewise.
3452 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3453 (amd64_supply_xsave): Likewise.
3454 (amd64_collect_fxsave): Likewise.
3455 (amd64_collect_xsave): Likewise.
3457 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3459 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3460 (amd64_linux_read_description): Check DS segment register for
3463 2012-06-15 Tom Tromey <tromey@redhat.com>
3465 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3466 init_cutu_and_read_dies.
3468 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3470 * MAINTAINERS (Write After Approval): Add myself to the list.
3472 2012-06-15 Tom Tromey <tromey@redhat.com>
3474 * valops.c (value_find_oload_method_list): Now static.
3475 * value.h (value_find_oload_method_list): Don't declare.
3477 2012-06-15 Tom Tromey <tromey@redhat.com>
3479 * valops.c (find_overload_match): Use value_ind.
3481 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3483 * infrun.c (handle_inferior_event): Correct indentation.
3485 2012-06-14 Doug Evans <dje@google.com>
3487 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3488 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3490 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3491 updated. Handle DEBUG_LOC_START_LENGTH.
3492 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3493 (loclist_describe_location): Ditto.
3495 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3498 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3499 after hiding inline functions.
3501 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3503 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3504 _initialize_inf_ttrace.
3506 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3508 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3509 _initialize_hppa_hpux_nat.
3511 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3513 * remote-sim.c (sim_command_completer): Change type of return
3514 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3516 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3517 Jan Kratochvil <jan.kratochvil@redhat.com>
3520 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3521 stack on a 16-byte boundary.
3523 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3525 * jit.c (finalize_symtab): Set function's return type to 'void' by
3528 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3529 H.J. Lu <hongjiu.lu@intel.com>
3531 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3532 Move bits common to both the classic LP64 and the new x32 ILP32
3534 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3535 (amd64_x32_linux_init_abi): New function.
3536 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3539 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3540 * i386-tdep.c (i386_pseudo_register_name): Make public.
3541 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3542 * amd64-tdep.c (amd64_dword_names): Add "eip".
3543 (amd64_x32_pseudo_register_type): New function
3544 (amd64_x32_init_abi): New function.
3546 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3549 * inferior.h (struct inferior_suspend_state): Comment out.
3550 (struct inferior): Comment out the field suspend.
3551 * infrun.c (struct infcall_suspend_state): Comment out the field
3553 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3556 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3558 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3559 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3560 function comment. Return ERROR for unresolved cases. Implement
3561 returning proper NAME.
3562 (yylex): Accept also NAME from classify_inner_name.
3563 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3564 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3566 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3568 2012-06-13 Tom Tromey <tromey@redhat.com>
3570 * breakpoint.c (condition_completer): New function.
3571 (_initialize_breakpoint): Use it.
3572 * value.c (complete_internalvar): New function.
3573 * value.h (complete_internalvar): Declare.
3575 2012-06-13 Tom Tromey <tromey@redhat.com>
3577 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3578 * breakpoint.c (catch_syscall_completer): Return a VEC.
3579 * cli/cli-cmds.c (complete_command): Update.
3580 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3581 (complete_on_enum): Likewise.
3582 * command.h: Include gdb_vecs.h.
3583 (completer_ftype): Change return type.
3584 (complete_on_cmdlist, complete_on_enum): Likewise.
3585 * completer.c (noop_completer, filename_completer)
3586 (location_completer): Return a VEC.
3587 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3589 (expression_completer, complete_line_internal, complete_line)
3590 (command_completer): Return a VEC.
3591 (gdb_completion_word_break_characters, line_completion_function):
3593 * completer.h: Include gdb_vecs.h.
3594 (complete_line, noop_completer, filename_completer)
3595 (expression_completer, location_completer, command_completer):
3597 * f-lang.c (f_word_break_characters): Return a VEC.
3598 * interps.c (interpreter_completer): Return a VEC.
3599 * language.h (struct language_defn)
3600 <la_make_symbol_completion_list>: Return a VEC.
3601 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3602 * symtab.c (free_completion_list): Take a VEC.
3603 (return_val_size, return_val_index): Remove.
3604 (return_val): Now a VEC.
3605 (completion_list_add_name): Update.
3606 (default_make_symbol_completion_list_break_on)
3607 (default_make_symbol_completion_list, make_symbol_completion_list)
3608 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3610 (add_filename_to_list): Update.
3611 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3613 (maybe_add_partial_symtab_filename): Update.
3614 (make_source_files_completion_list): Return a VEC.
3615 * symtab.h (default_make_symbol_completion_list_break_on)
3616 (default_make_symbol_completion_list, make_symbol_completion_list)
3617 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3618 (make_source_files_completion_list): Update.
3620 2012-06-13 Tom Tromey <tromey@redhat.com>
3622 * breakpoint.c (add_catch_command): Use completer_ftype.
3623 * breakpoint.h: Include command.h.
3624 (add_catch_command): Use completer_ftype.
3625 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3626 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3627 Use completer_ftype.
3628 * command.h (completer_ftype): New typedef.
3629 (set_cmd_completer): Use it.
3630 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3633 2012-06-13 Pedro Alves <palves@redhat.com>
3635 Partial revert of previous change.
3637 * serial.c (scb_base): New global.
3638 (serial_for_fd): New.
3639 (serial_open, serial_fdopen_ops): Link new serial in open serials
3641 (do_serial_close): Unlink serial from the open serials chain.
3643 2012-06-12 Pedro Alves <palves@redhat.com>
3645 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3647 (prepare_for_detach): No longer context switch here in non-stop
3649 (fetch_inferior_event): Ditto.
3650 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3651 to the event thread before removing breakpoints. Switch to the
3652 event thread before inserting breakpoints and resuming.
3653 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3654 event thread before resuming.
3655 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3656 Switch to the event thread before removing breakpoints.
3658 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3660 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3661 special characters correctly for the Windows shells. See
3662 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3664 [!__MINGW32__]: Remove extra double quote character from special
3667 2012-06-11 Stan Shebs <stan@codesourcery.com>
3669 * ui-out.h: Remove #if 0 declarations.
3670 * ui-out.c: Remove #if 0 functions.
3672 2012-06-11 Pedro Alves <palves@redhat.com>
3674 * ser-base.c (run_async_handler_and_reschedule): New.
3675 (fd_event, push_event): Use it.
3676 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3677 reference count to 1.
3678 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3680 (serial_is_open, serial_ref, serial_unref): New.
3681 * serial.h (serial_open): Adjust comment.
3682 (serial_is_open): Declare.
3683 (serial_close): Adjust comment.
3684 (serial_ref, serial_unref) Declare.
3685 (struct serial): New field 'refcnt'.
3687 2012-06-11 Pedro Alves <palves@redhat.com>
3689 Remove #if 0'd "connect" command, and unnecessary associated
3690 refcounting and serial reuse bits.
3692 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3693 * serial.c (last_serial_opened): Delete.
3695 (serial_open): Adjust.
3696 (serial_for_fd): Delete.
3697 (serial_fdopen_ops, do_serial_close): Adjust.
3698 (serial_fdopen_ops): Adjust.
3700 2012-06-11 Pedro Alves <palves@redhat.com>
3702 * serial.c (do_serial_close): Remove early return when SCB is
3705 2012-06-11 Tom Tromey <tromey@redhat.com>
3707 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3709 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 Fix regression by the "ambiguous linespec" series.
3712 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3713 get_last_displayed_symtab and get_last_displayed_line and depending
3716 2012-06-11 Tom Tromey <tromey@redhat.com>
3718 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3719 (dw2_find_symbol_file): Use it.
3721 2012-06-11 Michael Eager <eager@eagercon.com>
3723 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3724 * mips-linux-tdep.h (mips_signals): New
3726 2012-06-11 Tom Tromey <tromey@redhat.com>
3728 * infrun.c (handle_inferior_event)
3729 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3731 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3732 exception logic in all cases. Update comments.
3733 (insert_longjmp_resume_breakpoint): Set the exception resume
3736 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3738 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3740 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3742 * valarith.c (binop_types_user_defined_p): Fix a typo.
3744 2012-06-08 Yao Qi <yao@codesourcery.com>
3745 Chung-Lin Tang <cltang@codesourcery.com>
3747 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3748 * arch-utils.h: Declare.
3749 * gdbarch.sh: Add return_in_first_hidden_param_p.
3750 * gdbarch.c, gdbarch.h: Regenerated.
3751 * infcall.c (call_function_by_hand): Call
3752 gdbarch_return_in_first_hidden_param_p instead of
3753 language_pass_by_reference.
3755 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3756 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3757 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3758 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3759 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3760 `cplus_return_struct_by_reference'.
3761 (tic6x_return_value): Handle language cplusplus.
3762 (tic6x_return_in_first_hidden_param_p): New.
3763 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3765 2012-06-07 Doug Evans <dje@google.com>
3767 * dwarf2read.c (dwarf2_cu): Add comment.
3769 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3771 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3773 (mips_eabi_push_dummy_call): Likewise.
3774 (mips_n32n64_push_dummy_call): Likewise.
3775 (mips_o32_push_dummy_call): Likewise.
3776 (mips_o64_push_dummy_call): Likewise.
3778 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3780 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3782 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3784 * mips-tdep.c (mips_pseudo_register_type): Use
3785 mips_float_register_p.
3787 2012-06-06 Pedro Alves <palves@redhat.com>
3789 * infrun.c (handle_inferior_event): Remove calls to
3790 reinit_frame_cache that follow a context_switch call.
3792 2012-06-06 Pedro Alves <palves@redhat.com>
3794 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3795 context_switch and remove stale comment.
3797 2012-06-06 Pedro Alves <palves@redhat.com>
3799 * infrun.c (struct execution_control_state): Remove
3800 `new_thread_event' field.
3801 (handle_inferior_event): Simplify new threads handling; don't
3802 resume the inferior if we find a new thread.
3804 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3806 * NEWS: Document the deprecation of SH's 'regs' command.
3807 * inferior.h (all_registers_info): Add function declaration.
3808 * sh-tdep.c (sh_show_regs): Remove variable.
3809 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3810 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3811 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3812 (sh_show_regs_command): Remove functions.
3813 (sh_gdbarch_init): Don't set sh_show_regs.
3814 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3815 'info all-registers'.
3816 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3817 (sh64_show_regs): Remove functions.
3818 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3820 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3822 * configure.ac: Move development=true below AC_INIT.
3823 * configure: Regenerate.
3825 2012-06-05 Stan Shebs <stan@codesourcery.com>
3827 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3830 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3832 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3833 argument as ssize_t.
3834 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3835 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3836 * target.c (target_read_stack, target_write_memory)
3837 (target_write_raw_memory): Likewise.
3838 * target.h (target_read_stack, target_write_memory)
3839 (target_write_raw_memory): Likewise.
3841 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3843 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3844 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3845 * target.c (target_read_memory): Change LEN to ssize_t.
3846 * target.h (target_read_memory): Change LEN to ssize_t.
3848 2012-06-05 Pedro Alves <palves@redhat.com>
3852 * breakpoint.c (until_break_command): Only fetch the selected
3853 frame after decode_line_1.
3855 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3857 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3858 event breakpoint at _start, __start or main if a program
3859 interpreter is not found.
3861 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3863 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3865 * windows-tdep.c: #include "objfiles.h".
3866 (windows_iterate_over_objfiles_in_search_order): New function.
3867 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3868 iterate_over_objfiles_in_search_order gdbarch method to
3869 windows_iterate_over_objfiles_in_search_order.
3870 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3872 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3874 * gdbarch.sh: Add generation of
3875 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3876 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3877 (iterate_over_objfiles_in_search_order): New gdbarch method.
3878 * gdbarch.h, gdbarch.c: Regenerate.
3879 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3881 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3883 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3884 out of lookup_symbol_aux_symtabs.
3885 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3886 call to lookup_symbol_aux_objfile.
3887 (struct global_sym_lookup_data): New type.
3888 (lookup_symbol_global_iterator_cb): New function.
3889 (lookup_symbol_global): Search for symbol using
3890 gdbarch_iterate_over_objfiles_in_search_order and
3891 lookup_symbol_global_iterator_cb.
3892 * findvar.c (struct minsym_lookup_data): New type.
3893 (minsym_lookup_iterator_cb): New function.
3894 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3895 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3896 and minsym_lookup_iterator_cb.
3898 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3900 Revert the following patch:
3901 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3902 try locating the symbol in the symbol's own objfile first, before
3903 extending the search to all objfiles.
3904 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3905 out of lookup_symbol_aux_symtabs.
3906 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3907 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3908 Do not search EXCLUDE_OBJFILE.
3909 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3910 (lookup_symbol_global): Search for matches in the block's objfile
3911 first, before searching all other objfiles.
3913 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3915 * breakpoint.c (find_condition_and_thread): Stop parsing
3916 as soon as the first invalid keyword is found.
3918 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3920 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3922 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3924 * config/djgpp/djcheck.sh: Add copyright header.
3926 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3928 * copyright.py (update_files, main): Fix path to update-copyright
3931 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3933 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3934 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3935 for which a reminder to update by hand is printed.
3937 2012-06-04 Doug Evans <dje@google.com>
3939 * buildsym.c (make_blockvector): Add comment.
3941 2012-06-04 Pedro Alves <palves@redhat.com>
3943 * arch-utils.c (default_gdb_signal_from_target): Delete.
3944 * arch-utils.h (default_gdb_signal_from_target): Delete.
3945 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3946 gdbarch_gdb_signal_from_target_p.
3947 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3949 * gdbarch.h: Regenerate.
3950 * gdbarch.c: Regenerate.
3952 2012-06-04 Pedro Alves <palves@redhat.com>
3954 * gdbarch.sh (gdb_signal_from_target): Mention that the
3955 implementation of the method must be host independent.
3956 * gdbarch.h: Regenerate.
3958 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3960 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3962 (target_read_memory_bfd): New function.
3963 (symbol_file_add_from_memory): Use it.
3965 2012-06-03 Doug Evans <dje@google.com>
3967 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3969 (basic_lookup_transparent_type): Ditto.
3971 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3972 (ALL_PRIMARY_SYMTABS): Use it.
3973 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3974 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3975 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3976 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3977 (basic_lookup_transparent_type): Ditto.
3979 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3981 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3982 it to optimize resolution of demangled name.
3984 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3986 * configure.ac (development): Define new variable.
3987 Call AC_CHECK_LIB for mcheck if $development.
3988 (ERROR_ON_WARNING): Enable it by default only if $development.
3989 * config.in: Regenerate.
3990 * configure: Regenerate.
3992 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3994 * target.c (target_read_memory): Make LEN argument as size_t.
3995 * target.h (target_read_memory): Likewise.
3997 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3999 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4001 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4003 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4004 BookE interface for PowerPC server processors if not available
4005 in the Linux Kernel.
4007 2012-05-31 Keith Seitz <keiths@redhat.com>
4009 * linespec.c (decode_objc): Add cleanup to free
4011 (find_linespec_symbols): Add cleanup to free CLASSES.
4012 * symfile.c (find_separate_debug_file_by_debuglink): Add
4013 cleanup to free DEBUGLINK.
4014 * ui-out.c (clear_header_list): No need to check if
4015 HEADER_NEXT.COLHDR is NULL.
4016 Free HEADER_NEXT.COL_NAME.
4018 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4020 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4023 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4025 * configure.host (gdb_host_cpu): Handle tilegx*.
4026 (gdb_host): Handle tilegx-*-linux*.
4027 * tilegx-linux-nat.c: New file.
4028 * config/tilegx/linux.mh: New file.
4030 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4032 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4033 tilegx-linux-tdep.o.
4034 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4035 tilegx-linux-tdep.c.
4036 * configure.tgt: Handle tilegx-*-linux*.
4037 * tilegx-tdep.h: New file.
4038 * tilegx-tdep.c: New file.
4039 * tilegx-linux-tdep.c: New file.
4040 * regformats/reg-tilegx.dat: New file.
4042 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4044 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4045 accounting of hw watchpoints on ppc.
4047 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4049 * source.c (openp): Expand tilde in path entries.
4051 2012-05-29 Doug Evans <dje@google.com>
4053 * buildsym.c (block_compar): Fix comment.
4054 (end_symtab): Fix and clarify some comments.
4056 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4057 cleanup_undefined_types.
4058 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4059 All callers updated.
4061 2012-05-29 Tom Tromey <tromey@redhat.com>
4063 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4065 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4066 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4068 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4071 2012-05-29 Tristan Gingold <gingold@adacore.com>
4073 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4074 (struct darwin_info): ... New struct.
4075 (solib_darwin_pspace_data): New variable.
4076 (darwin_pspace_data_cleanup): New function.
4077 (get_darwin_info): Likewise.
4078 (darwin_dyld_version_ok, darwin_load_image_infos)
4079 (darwin_solib_get_all_image_info_addr_at_init)
4080 (darwin_solib_read_all_image_info_addr): Add info argument.
4082 (darwin_current_sos): Use per pspace structure.
4083 (darwin_solib_create_inferior_hook): Likewise.
4084 (darwin_clear_solib): Likewise.
4085 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4087 2012-05-28 Pedro Alves <palves@redhat.com>
4089 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4090 block that uses them. Clear ecss before handling each event.
4092 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4094 * solib-svr4.c (svr4_current_sos): New comment on
4095 svr4_current_sos_via_xfer_libraries fall back.
4097 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4099 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4100 it as a fallback for TYPE_IS_OPAQUE.
4101 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4102 symbols for lookup_symbol.
4104 2012-05-24 John Steele Scott <toojays@toojays.net>
4106 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4107 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4108 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4109 (check_producer): ... this new function, which also checks for ICC
4110 and caches the result.
4111 (producer_is_icc): New function.
4112 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4115 2012-05-24 Pedro Alves <palves@redhat.com>
4119 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4120 (default_gdb_signal_to_target): ... this. Add comment.
4121 (default_gdb_signal_from_host): Rename to ...
4122 (default_gdb_signal_from_target): ... this. Add comment.
4123 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4124 (default_gdb_signal_to_target): ... this.
4125 (default_gdb_signal_from_host): Rename to ...
4126 (default_gdb_signal_from_target): ... this.
4127 * corelow.c (core_open): Adjust to naming change. Replace comment.
4128 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4129 (gdb_signal_from_target): ... this. Adjust to
4130 default_gdb_signal_from_host naming change. Extend comment.
4131 (gdb_signal_to_host): Rename to ...
4132 (gdb_signal_to_target): ... this. Adjust to
4133 default_gdb_signal_to_host naming change.
4134 * gdbarch.h, gdbarch.c: Renegerate.
4136 2012-05-24 Pedro Alves <palves@redhat.com>
4140 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4142 2012-05-24 Pedro Alves <palves@redhat.com>
4146 Replace target_signal with gdb_signal throughout.
4148 2012-05-24 Pedro Alves <palves@redhat.com>
4152 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4153 string, instead of reusing the va_list argument.
4155 2012-05-24 Tom Tromey <tromey@redhat.com>
4157 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4160 2012-05-23 Doug Evans <dje@google.com>
4162 * symtab.c (search_symbols): Formatting fixes.
4163 (print_symbol_info): Formatting fixes.
4165 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4166 int64_t change to leb128 API.
4167 (read_encoded_value, decode_frame_entry_1): Ditto.
4168 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4169 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4170 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4171 (execute_stack_op): Ditto.
4172 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4173 (safe_read_uleb128, safe_read_sleb128): Ditto.
4174 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4175 (dwarf2_compile_expr_to_ax): Ditto.
4176 (locexpr_describe_location_piece): Ditto.
4177 (disassemble_dwarf_expression): Ditto.
4178 (locexpr_describe_location_1): Ditto.
4180 2012-05-23 Stan Shebs <stan@codesourcery.com>
4181 Kwok Cheung Yeung <kcy@codesourcery.com>
4183 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4184 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4185 (mi-cmd-info.o): New rule.
4186 * osdata.h (info_osdata_command): New declaration.
4187 * osdata.c (info_osdata_command): Change to non-static.
4188 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4189 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4190 * mi/mi-cmd-info.c: New file.
4192 2012-05-23 Doug Evans <dje@google.com>
4194 * symtab.c (search_symbols): Pass NULL for file_matcher to
4195 expand_symtabs_matching if there are no files to match.
4197 * gdbtypes.c (lookup_typename): Simplify.
4199 2012-05-23 Pedro Alves <palves@redhat.com>
4201 * arch-utils.h (default_target_signal_to_host): Delete.
4202 * arch-utils.c (default_target_signal_to_host): Delete.
4203 * gdbarch.sh (target_signal_to_host): Remove.
4204 * gdbarch.h, gdbarch.c: Regenerate.
4206 2012-05-22 Doug Evans <dje@google.com>
4208 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4210 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4211 (execute_cfa_program): Update to match API of leb128 functions.
4212 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4214 (read_unsigned_leb128, read_signed_leb128): Delete.
4215 (read_initial_length): Change type of buf argument to
4217 (read_encoded_value): Update to match API of leb128 functions.
4218 (decode_frame_entry): Change result to "const gdb_byte *", and
4219 similarly for "start" parameter.
4220 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4221 (dwarf2_build_frame_info): Change local frame_ptr to
4223 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4224 read_uleb128, read_sleb128. All callers updated.
4225 (safe_skip_leb128): New function.
4226 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4227 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4228 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4229 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4230 read_uleb128, read_sleb128.
4231 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4232 (execute_stack_op): Update to match API of leb128 functions.
4233 * dwarf2expr.h: #include "leb128.h".
4234 (read_uleb128, read_sleb128): Delete.
4235 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4236 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4237 * dwarf2loc.c (debug_loc_kind): New enum.
4238 (decode_debug_loc_addresses): New function.
4239 (decode_debug_loc_dwo_addresses): New function.
4240 (dwarf2_find_location_expression): Rewrite.
4241 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4242 (locexpr_describe_location_piece): Ditto.
4243 (disassemble_dwarf_expression): Ditto.
4244 (locexpr_describe_location_1): Ditto.
4245 (loclist_describe_location): Rewrite.
4246 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4247 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4248 (dwarf2_section_buffer_overflow_complaint): Renamed from
4249 dwarf2_macros_too_long_complaint. All callers updated.
4250 (skip_leb128): Delete.
4251 (init_cu_die_reader): Initialize reader->buffer_end.
4252 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4253 (skip_form_bytes): New arg buffer_end. All callers updated.
4254 Replace call to skip_leb128 with gdb_skip_leb128.
4255 (skip_unknown_opcode): New arg mac_end. All callers updated.
4256 (fill_in_loclist_baton): Initialize baton->from_dwo.
4258 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4260 * mips-linux-nat.c (mips_linux_read_description): Use a more
4261 verbose error message.
4263 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4265 * NEWS: Add MIPS/Linux DSP support.
4266 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4267 (SIGCONTEXT_DSPCTL): New macro.
4268 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4269 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4270 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4271 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4272 (N64_SIGCONTEXT_HI3): Likewise.
4273 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4274 (N64_SIGCONTEXT_LO3): Likewise.
4275 (N64_SIGCONTEXT_DSPCTL): Likewise.
4276 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4277 (mips_linux_o32_sigframe_init): Handle DSP registers.
4278 (mips_linux_n32n64_sigframe_init): Likewise.
4280 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4282 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4285 2012-05-22 Pedro Alves <palves@redhat.com>
4287 * target.h (store_waitstatus): Move declaration ...
4288 * inf-child.h (store_waitstatus): ... here.
4289 * target.c: Move inclusion of gdb_wait.h, and ...
4290 (store_waitstatus): ... this ...
4291 * inf-child.c: ... here.
4292 * linux-nat.c: Include inf-child.h.
4293 * rs6000-nat.c: Include inf-child.h.
4294 * spu-linux-nat.c: Include inf-child.h.
4296 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4298 * tracepoint.c (start_tracing): Add missing i18n markup.
4299 (stop_tracing, set_trace_user): Ditto.
4300 (set_trace_notes, set_trace_stop_notes): Ditto.
4302 2012-05-21 Tom Tromey <tromey@redhat.com>
4305 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4307 * value.h (value_cast_pointers): Update.
4308 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4309 (value_cast): Update.
4310 (update_search_result): New function.
4311 (do_search_struct_field): New, from search_struct_field. Check
4312 for ambiguous results.
4313 (search_struct_field): Rewrite.
4314 * infcall.c (value_arg_coerce): Update.
4315 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4316 value_cast_pointers.
4317 * ada-lang.c (ada_convert_actual): Update.
4319 2012-05-21 Tom Tromey <tromey@redhat.com>
4321 * macroexp.c (macro_stringify): Terminate the string.
4323 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4325 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4327 * auto-load.c (auto_load_expand_dir_vars): New function.
4328 (auto_load_safe_path_vec_update): Use it, remove the
4329 substitute_path_component call thanks to it.
4330 (auto_load_objfile_script): Remove the debug_file_directory processing.
4331 Use auto_load_expand_dir_vars, remove the substitute_path_component
4333 * configure: Regenerate.
4334 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4335 path. Escape $ also for $debugdir.
4336 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4337 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4339 2012-05-20 Doug Evans <dje@google.com>
4341 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4342 before use. Check for symtab->includes == NULL before scanning it.
4344 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4346 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4348 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4350 * NEWS: Add microMIPS support and "set mips compression",
4351 "show mips compression" commands.
4352 * mips-tdep.h (mips_isa): New enum.
4353 (gdbarch_tdep): Add mips_isa.
4354 (mips_pc_is_mips16): Update prototype.
4355 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4356 * mips-tdep.c (mips_compression_mips16): New variable.
4357 (mips_compression_micromips): Likewise.
4358 (mips_compression_strings): Likewise.
4359 (mips_compression_string): Likewise.
4360 (is_mips16_isa, is_micromips_isa): New functions.
4361 (is_mips16_addr): Rename to...
4362 (is_compact_addr): ... this.
4363 (unmake_mips16_addr): Likewise to...
4364 (unmake_compact_addr): ... this.
4365 (make_mips16_addr): Likewise to...
4366 (make_compact_addr): ... this.
4367 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4369 (mips_elf_make_msymbol_special): Handle microMIPS code.
4370 (msymbol_is_special): Rename to...
4371 (msymbol_is_mips16): ... this.
4372 (mips_make_symbol_special, mips_pc_is_mips16): Update
4374 (msymbol_is_mips, msymbol_is_micromips): New functions.
4375 (mips16_to_32_reg): Rename to...
4376 (mips_reg3_to_reg): ... this.
4377 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4378 (mips_pc_isa): Likewise.
4379 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4381 (mips_fetch_instruction): Pass return status instead of printing
4382 an error message if requested. Handle microMIPS code. Bail out
4384 (micromips_op): New macro.
4385 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4386 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4387 (b6s4_op, b7s3_reg): Likewise.
4388 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4389 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4390 (mips_insn_size): New function.
4391 (mips32_next_pc): Update mips_fetch_instruction call.
4392 (micromips_relative_offset7): New function.
4393 (micromips_relative_offset10): Likewise.
4394 (micromips_relative_offset16): Likewise.
4395 (micromips_pc_insn_size): Likewise.
4396 (micromips_bc1_pc): Likewise.
4397 (micromips_next_pc): Likewise.
4398 (unpack_mips16): Update mips_fetch_instruction call.
4399 (extended_mips16_next_pc): Update according to change to
4401 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4403 (mips16_scan_prologue): Update mips_fetch_instruction call.
4404 Update according to change to mips16_to_32_reg.
4405 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4406 (mips_insn16_frame_base_sniffer): Likewise.
4407 (micromips_decode_imm9): New function.
4408 (micromips_scan_prologue): Likewise.
4409 (mips_micro_frame_cache): Likewise.
4410 (mips_micro_frame_this_id): Likewise.
4411 (mips_micro_frame_prev_register): Likewise.
4412 (mips_micro_frame_sniffer): Likewise.
4413 (mips_micro_frame_unwind): New variable.
4414 (mips_micro_frame_base_address): New function.
4415 (mips_micro_frame_base): New variable.
4416 (mips_micro_frame_base_sniffer): New function.
4417 (mips32_scan_prologue): Update mips_fetch_instruction call.
4418 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4419 rather than for MIPS16.
4420 (mips_insn32_frame_base_sniffer): Likewise.
4421 (mips_addr_bits_remove): Handle microMIPS code.
4422 (deal_with_atomic_sequence): Rename to...
4423 (mips_deal_with_atomic_sequence): ... this. Update the type
4424 of the variable used to hold an instruction. Remove the ISA bit
4425 check. Update mips_fetch_instruction call.
4426 (micromips_deal_with_atomic_sequence): New function.
4427 (deal_with_atomic_sequence): Likewise.
4428 (mips_about_to_return): Handle microMIPS code. Update
4429 mips_fetch_instruction call.
4430 (heuristic_proc_start): Check for the standard MIPS ISA rather
4431 than for MIPS16. Update mips_pc_is_mips16 and
4432 mips_fetch_instruction calls. Handle microMIPS code.
4433 (mips_push_dummy_code): Handle microMIPS code.
4434 (mips_eabi_push_dummy_call): Likewise.
4435 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4436 (mips_o64_push_dummy_call): Handle microMIPS code.
4437 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4438 (is_delayed): Remove function.
4439 (mips_single_step_through_delay): Replace the call to is_delayed
4440 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4441 Handle microMIPS code.
4442 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4444 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4446 (micromips_in_function_epilogue_p): New function.
4447 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4449 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4451 (gdb_print_insn_mips): Likewise.
4452 (mips_breakpoint_from_pc): Likewise.
4453 (mips_remote_breakpoint_from_pc): New function.
4454 (mips32_instruction_has_delay_slot): Simplify making use of the
4455 updated mips_fetch_instruction interface.
4456 (micromips_instruction_has_delay_slot): New function.
4457 (mips16_instruction_has_delay_slot): Simplify making use of the
4458 updated mips_fetch_instruction interface.
4459 (mips_adjust_breakpoint_address): Check for the standard MIPS
4460 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4461 calls. Handle microMIPS code.
4462 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4463 (mips_skip_trampoline_code): Handle microMIPS code.
4464 (global_mips_compression): New function.
4465 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4466 file flags. Register the microMIPS remote breakpoint handler
4467 and heuristic frame unwinder.
4468 (show_mips_compression): New function.
4469 (_initialize_mips_tdep): Add the "set mips compression" and
4470 "show mips compression" commands.
4472 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4477 * amd64-darwin-tdep.c:
4478 * arm-symbian-tdep.c:
4482 * bfin-linux-tdep.c:
4489 * dwarf2-frame-tailcall.c:
4518 * microblaze-tdep.c:
4519 * mips-linux-tdep.c:
4527 * python/py-finishbreakpoint.c:
4528 * python/py-inferior.c:
4529 * python/py-infthread.c:
4533 * remote-m32r-sdi.c:
4537 * rs6000-aix-tdep.c:
4563 * amd64-darwin-tdep.c:
4564 * arm-symbian-tdep.c:
4565 * arm-tdep.c: Delete unused variables.
4567 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4569 Rename $ddir to $datadir.
4570 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4571 * auto-load.c (auto_load_safe_path_vec_update)
4572 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4573 * configure: Regenerate.
4574 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4575 Likewise. Remove the 'use $ddir' help string.
4577 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4580 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4582 2012-05-18 Tom Tromey <tromey@redhat.com>
4585 * valprint.h (struct value_print_options) <symbol_print>: New
4587 * valprint.c (user_print_options): Add default for symbol_print.
4588 (show_symbol_print): New function.
4589 (generic_val_print): Respect symbol_print.
4590 (_initialize_valprint): Add "print symbol" setting.
4591 * f-valprint.c (f_val_print): Respect symbol_print.
4592 * c-valprint.c (c_val_print): Respect symbol_print.
4594 * printcmd.c (print_address_symbolic): Return int. Ignore some
4596 (print_address_demangle): Return int.
4597 * defs.h: (print_address_symbolic): Return int.
4598 * value.h (print_address_demangle): Return int.
4600 2012-05-18 Tom Tromey <tromey@redhat.com>
4602 * valprint.c (val_print_string): Don't print leading space.
4603 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4604 print space before string or vtbl.
4605 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4607 * jv-valprint.c (java_value_print): Print space before string.
4608 * go-valprint.c (print_go_string): Print space before string.
4609 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4610 space before string.
4611 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4612 space before string or vtbl.
4613 * auxv.c (fprint_target_auxv): Print space after address.
4615 2012-05-18 Tom Tromey <tromey@redhat.com>
4617 * printcmd.c (print_address_demangle): Remove special case for 0.
4619 2012-05-18 Tom Tromey <tromey@redhat.com>
4621 * printcmd.c (print_address_demangle): Add 'opts' argument.
4622 * p-valprint.c (pascal_val_print): Update.
4623 * jv-valprint.c (java_val_print): Update.
4625 * valprint.c (generic_val_print): Update.
4626 (print_function_pointer_address): Add 'options' argument. Remove
4627 'addressprint' argument. Update.
4628 * m2-valprint.c (print_unpacked_pointer): Update.
4629 * gnu-v3-abi.c (print_one_vtable): Update.
4630 (gnuv3_print_method_ptr): Update.
4631 * f-valprint.c (f_val_print): Update.
4632 * cp-valprint.c (cp_print_value_fields): Update.
4633 * valprint.h (print_function_pointer_address): Update.
4634 * c-valprint.c (c_val_print): Update.
4636 2012-05-18 Tom Tromey <tromey@redhat.com>
4638 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4639 directly corresponding to the found psymtab.
4640 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4641 (dw2_find_pc_sect_symtab): Use it.
4642 * block.h (blockvector_contains_pc): Declare.
4643 * block.c (find_block_in_blockvector): New function.
4644 (blockvector_for_pc_sect): Use it.
4645 (blockvector_contains_pc): New function.
4647 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4649 * mips-tdep.h (mips_write_pc): New prototype.
4650 * mips-tdep.c (mips_write_pc): Make external, add description.
4651 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4654 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4656 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4658 (mips_unwind_pc, mips_write_pc): Likewise.
4659 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4662 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4664 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4665 proc_warn, proc_error, proc_get_status, proc_flags,
4666 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4667 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4668 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4669 proc_stop_process, proc_wait_for_stop, proc_run_process,
4670 proc_set_traced_signals, proc_set_traced_faults,
4671 proc_set_traced_sysentry, proc_set_traced_sysexit,
4672 proc_set_held_signals, proc_get_held_signals,
4673 proc_get_traced_signals, proc_get_traced_faults,
4674 proc_get_traced_sysentry, proc_get_traced_sysexit,
4675 proc_clear_current_fault, proc_set_current_signal,
4676 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4677 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4678 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4679 proc_get_current_thread, proc_get_current_thread,
4680 proc_get_current_thread, proc_update_threads,
4681 proc_update_threads, proc_update_threads, proc_update_threads,
4682 proc_iterate_over_threads, procfs_find_new_threads,
4683 procfs_pid_to_str): Make static. Remove advance declaration.
4684 (proc_cursig): Make static. Conditionalized defintion on
4685 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4686 (proc_syscall, proc_set_kill_on_last_close,
4687 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4688 proc_get_pending_signals, proc_get_signal_actions,
4689 proc_trace_signal, proc_ignore_signal): Delete.
4691 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4693 * coffread.c (cs_section_address): Passing proper argument for
4694 `bfd_get_section_vma'.
4695 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4696 `bfd_get_section_flags'.
4697 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4698 `bfd_get_section_vma'.
4700 2012-05-16 Tom Tromey <tromey@redhat.com>
4703 * macrotab.h: (macro_define_special): Declare.
4704 (enum macro_special_kind): New.
4705 (struct macro_definition) <argc, replacement>: Update comments.
4706 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4707 (macro_define_object_internal): New function.
4708 (macro_define_object): Use it.
4709 (macro_define_special): New function.
4710 (fixup_definition): New function.
4711 (macro_lookup_definition, foreach_macro_in_scope)
4712 (foreach_macro): Use fixup_definition.
4713 * macroexp.h (macro_stringify): Declare.
4714 * macroexp.c (free_buffer_return_text): New function.
4715 (stringify): Constify "arg".
4716 (macro_stringify): New function.
4717 * dwarf2read.c (macro_start_file): Call macro_define_special.
4719 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4720 Maciej W. Rozycki <macro@mips.com>
4722 * breakpoint.h (bp_location): Add related_address member.
4723 * inferior.h (get_return_value): Take a pointer to struct value
4724 instead of struct type for the function requested.
4725 * value.h (using_struct_return): Likewise.
4726 * gdbarch.sh (return_value): Take a pointer to struct value
4727 instead of struct type for the function requested.
4728 * breakpoint.c (set_breakpoint_location_function): Initialize
4729 related_address for bp_gnu_ifunc_resolver breakpoints.
4730 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4731 requested function's address to gdbarch_return_value.
4732 * eval.c (evaluate_subexp_standard): Pass the requested
4733 function's address to using_struct_return.
4734 * infcall.c (call_function_by_hand): Pass the requested
4735 function's address to using_struct_return and
4736 gdbarch_return_value.
4737 * infcmd.c (get_return_value): Take a pointer to struct value
4738 instead of struct type for the function requested.
4739 (print_return_value): Update accordingly.
4740 (finish_command_continuation): Likewise.
4741 * stack.c (return_command): Pass the requested function's
4742 address to using_struct_return and gdbarch_return_value.
4743 * value.c (using_struct_return): Take a pointer to struct value
4744 instead of struct type for the function requested. Pass the
4745 requested function's address to gdbarch_return_value.
4746 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4747 New function_value member, replacing function_type.
4748 (bpfinishpy_dealloc): Update accordingly.
4749 (bpfinishpy_pre_stop_hook): Likewise.
4750 (bpfinishpy_init): Likewise. Record the requested function's
4752 * mips-tdep.c (mips_fval_reg): New enum.
4753 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4754 words put in GP registers.
4755 (mips_o64_push_dummy_call): Update a comment.
4756 (mips_o32_return_value): Take a pointer to struct value instead
4757 of struct type for the function requested and use it to check if
4758 using the MIPS16 calling convention. Return the designated
4759 general purpose registers for floating-point values returned in
4761 (mips_o64_return_value): Likewise.
4762 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4763 (ppc_sysv_abi_broken_return_value): Likewise.
4764 (ppc64_sysv_abi_return_value): Likewise.
4765 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4766 value instead of struct type for the function requested.
4767 * amd64-tdep.c (amd64_return_value): Likewise.
4768 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4769 * arm-tdep.c (arm_return_value): Likewise.
4770 * avr-tdep.c (avr_return_value): Likewise.
4771 * bfin-tdep.c (bfin_return_value): Likewise.
4772 * cris-tdep.c (cris_return_value): Likewise.
4773 * frv-tdep.c (frv_return_value): Likewise.
4774 * h8300-tdep.c (h8300_return_value): Likewise.
4775 (h8300h_return_value): Likewise.
4776 * hppa-tdep.c (hppa32_return_value): Likewise.
4777 (hppa64_return_value): Likewise.
4778 * i386-tdep.c (i386_return_value): Likewise.
4779 * ia64-tdep.c (ia64_return_value): Likewise.
4780 * iq2000-tdep.c (iq2000_return_value): Likewise.
4781 * lm32-tdep.c (lm32_return_value): Likewise.
4782 * m32c-tdep.c (m32c_return_value): Likewise.
4783 * m32r-tdep.c (m32r_return_value): Likewise.
4784 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4785 * m68k-tdep.c (m68k_return_value): Likewise.
4786 (m68k_svr4_return_value): Likewise.
4787 * m88k-tdep.c (m88k_return_value): Likewise.
4788 * mep-tdep.c (mep_return_value): Likewise.
4789 * microblaze-tdep.c (microblaze_return_value): Likewise.
4790 * mn10300-tdep.c (mn10300_return_value): Likewise.
4791 * moxie-tdep.c (moxie_return_value): Likewise.
4792 * mt-tdep.c (mt_return_value): Likewise.
4793 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4794 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4795 (ppc_sysv_abi_broken_return_value): Likewise.
4796 (ppc64_sysv_abi_return_value): Likewise.
4797 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4798 * rl78-tdep.c (rl78_return_value): Likewise.
4799 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4800 * rx-tdep.c (rx_return_value): Likewise.
4801 * s390-tdep.c (s390_return_value): Likewise.
4802 * score-tdep.c (score_return_value): Likewise.
4803 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4804 (sh_return_value_fpu): Likewise.
4805 * sh64-tdep.c (sh64_return_value): Likewise.
4806 * sparc-tdep.c (sparc32_return_value): Likewise.
4807 * sparc64-tdep.c (sparc64_return_value): Likewise.
4808 * spu-tdep.c (spu_return_value): Likewise.
4809 * tic6x-tdep.c (tic6x_return_value): Likewise.
4810 * v850-tdep.c (v850_return_value): Likewise.
4811 * vax-tdep.c (vax_return_value): Likewise.
4812 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4813 * xtensa-tdep.c (xtensa_return_value): Likewise.
4814 * gdbarch.c: Regenerate.
4815 * gdbarch.h: Regenerate.
4817 2012-05-15 Tom Tromey <tromey@redhat.com>
4819 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4821 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4823 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4824 of command in two error message.
4826 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4828 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4830 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4832 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4834 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4836 * NEWS (show auto-load scripts-directory): Add forgotten command.
4838 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4840 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4843 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4845 * amd64-tdep.c: Include features/i386/x32.c and
4846 features/i386/x32-avx.c.
4847 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4848 initialize_tdesc_x32_avx.
4850 2012-05-14 Stan Shebs <stan@codesourcery.com>
4853 * breakpoint.h (enum bptype): New type bp_dprintf.
4854 (struct breakpoint): New field extra_string.
4855 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4856 (create_breakpoint): Add extra_string arg.
4857 * breakpoint.c (dprintf_breakpoint_ops): New.
4858 (is_breakpoint): Add bp_dprintf.
4859 (bpstat_what): Add dprintf case.
4860 (bptype_string): Ditto.
4861 (print_one_breakpoint_location): Ditto.
4862 (init_bp_location): Ditto.
4863 (bkpt_print_mention): Ditto.
4864 (dprintf_style_enums): New array.
4865 (dprintf_style): New global.
4866 (dprintf_function): New global.
4867 (dprintf_channel): New global.
4868 (update_dprintf_command_list): New function.
4869 (update_dprintf_commands): New function.
4870 (init_breakpoint_sal): Add extra_string argument, handle it.
4871 (create_breakpoint_sal): Add extra_string argument.
4872 (create_breakpoints_sal): Add extra_string argument, update callers.
4873 (find_condition_and_thread): Add extra argument.
4874 (create_breakpoint): Add extra_string argument, record it.
4875 (dprintf_command): New function.
4876 (break_command_1): Add arg to create_breakpoint call.
4877 (handle_gnu_v3_exceptions): Ditto.
4878 (trace_command): Ditto.
4879 (ftrace_command): Ditto.
4880 (strace_command): Ditto.
4881 (bkpt_print_mention): Add dprintf case.
4882 (create_breakpoint_sal_default): Add extra_string argument.
4883 (_initialize_breakpoint): Add new commands.
4884 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4885 * python/py-breakpoint.c (bppy_init): Ditto.
4886 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4888 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4890 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4892 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4894 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4897 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4899 Add a new function gdb.find_pc_line to the Python API.
4900 * NEWS (Python Scripting): Add entry about the new function.
4901 * python/python.c (gdbpy_find_pc_line): New function which
4902 implements gdb.find_pc_line.
4903 (GdbMethods): Add entry for the new function.
4905 2012-05-12 Pedro Alves <palves@redhat.com>
4907 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4908 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4910 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4912 * inferior.c: Include completer.h
4913 (initialize_inferiors): Set completer of add-inferior to
4916 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4918 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4919 gdbarch_ptr_bit for x32 core dump.
4921 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4923 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4924 and features/i386/x32-avx-linux.c.
4926 2012-05-11 Stan Shebs <stan@codesourcery.com>
4927 Kwok Cheung Yeung <kcy@codesourcery.com>
4929 * NEWS: Describe new info os commands.
4930 * common/linux-osdata.c (PID_T, TIME_T): Define.
4931 (MAX_PID_T_STRLEN): New.
4932 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4934 (command_from_pid): Add comment. Change to use PID_T.
4935 (commandline_from_pid): Change to use PID_T.
4936 (user_from_pid): Add comment.
4937 (get_process_owner): Add comment. Change to use PID_T and
4939 (get_number_of_cpu_cores): Add comment.
4940 (get_cores_used_by_process): Add comment. Change to use PID_T and
4942 (linux_xfer_osdata_processes): Change to use PID_T and
4944 (compare_processes): New function.
4945 (linux_xfer_osdata_processgroups): New function.
4946 (linux_xfer_osdata_threads): Change to use PID_T.
4947 (linux_xfer_osdata_fds): New function.
4948 (format_socket_state, print_sockets): New functions.
4949 (union socket_addr): New union.
4950 (linux_xfer_osdata_isockets): New function.
4951 (time_from_time_t, group_from_gid): New functions.
4952 (linux_xfer_osdata_shm): New function.
4953 (linux_xfer_osdata_sem): New function.
4954 (linux_xfer_osdata_msg): New function.
4955 (linux_xfer_osdata_modules): New function.
4956 (osdata_table): Add new entries.
4957 * common/buffer.c (buffer_xml_printf): Add support for long and
4958 long long format specifiers.
4960 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4962 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4963 (tdesc_x32_avx_linux): Likewise.
4965 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4967 Implement multi-component --with-auto-load-dir.
4968 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4970 (--with-auto-load-safe-path): Update the default value description.
4971 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4973 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4974 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4975 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4976 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4977 "set auto-load scripts-directory".
4978 * config.in: Regenerate.
4979 * configure: Regenerate.
4980 * configure.ac (--with-auto-load-dir): New configure option.
4981 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4983 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4985 Provide $ddir substitution for --with-auto-load-safe-path.
4986 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4988 * auto-load.c: Include observer.h.
4989 (auto_load_safe_path_vec_update): Call substitute_path_component for
4990 each component. New variable ddir_subst.
4991 (auto_load_gdb_datadir_changed): New function.
4992 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4993 AUTO_LOAD_SAFE_PATH. New comment.
4994 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4995 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4996 * config.in: Regenerate.
4997 * configure: Regenerate.
4998 * configure.ac (--auto-load-safe-path): Rename
4999 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5000 GDB_DATADIR/auto-load.
5001 * defs.h (substitute_path_component): New declaration.
5002 * top.c: Include observer.h.
5003 (set_gdb_datadir): New function.
5004 (init_main): Install it for "set data-directory".
5005 * utils.c (substitute_path_component): New function.
5007 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5009 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5010 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5011 DEBUG_FILE_DIRECTORY. Handle multiple components of
5012 DEBUG_FILE_DIRECTORY.
5014 2012-05-10 Tom Tromey <tromey@redhat.com>
5016 * dwarf2read.c (recursively_write_psymbols): New function.
5017 (write_psymtabs_to_index): Use it.
5019 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5021 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5022 (load_partial_comp_unit): Update.
5023 (queue_comp_unit): Add argument 'pretend_language'.
5024 (process_queue): Update.
5025 (psymtab_to_symtab_1): Skip dependencies that have a user.
5026 (load_partial_comp_unit_reader): Give meaning to the 'data'
5028 (load_full_comp_unit): Add 'pretend_language' argument.
5029 (process_full_comp_unit): Add 'pretend_language' argument. Set
5031 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5033 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5034 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5036 (prepare_one_comp_unit): Add 'pretend_language' argument.
5038 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5039 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5040 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5041 (dw2_do_instantiate_symtab): Check whether symtab was read in
5043 (dw2_instantiate_symtab): Add assertion. Call
5044 process_cu_includes.
5045 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5046 (partial_symtab_p): New typedef.
5047 (set_partial_user): New function.
5048 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5049 (scan_partial_symbols): Add imported CU to imported_symtabs.
5050 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5051 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5052 (get_symtab, recursively_compute_inclusions)
5053 (compute_symtab_includes, process_cu_includes)
5054 (process_imported_unit_die): New functions.
5055 (process_die) <DW_TAG_imported_unit>: New case.
5056 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5058 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5060 (struct partial_die_info) <locdesc>: Remove.
5062 (process_psymtab_comp_unit): Add 'read_partial' argument.
5064 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5065 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5066 (add_partial_symbol): Update.
5067 (process_die): Handle DW_TAG_partial_unit.
5068 (read_file_scope): Update comment.
5069 (load_partial_dies): Handle DW_TAG_imported_unit.
5070 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5071 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5073 2012-05-10 Tom Tromey <tromey@redhat.com>
5075 * cc-with-dwz.sh: New file.
5077 2012-05-10 Tom Tromey <tromey@redhat.com>
5079 * symtab.h (struct symtab) <includes, user>: New fields.
5080 * block.h (struct block_iterator) <d, idx, which>: New fields.
5081 * block.c (initialize_block_iterator, find_iterator_symtab)
5082 (block_iterator_step, block_iter_name_step)
5083 (block_iter_match_step): New functions.
5084 (block_iterator_first, block_iterator_next)
5085 (block_iter_name_first, block_iter_name_next)
5086 (block_iter_match_first, block_iter_match_next): Rewrite.
5087 (get_block_symtab): New function.
5089 2012-05-10 Tom Tromey <tromey@redhat.com>
5091 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5093 * jit.c (finalize_symtab): Use allocate_global_block,
5095 * buildsym.c (finish_block_internal): New function, from old
5097 (finish_block): Rewrite.
5098 (end_symtab): Use finish_block_internal, set_block_symtab.
5099 * block.h (struct global_block): New.
5100 (allocate_global_block, set_block_symtab): Declare.
5101 * block.c (allocate_global_block, set_block_symtab): New
5104 2012-05-10 Tom Tromey <tromey@redhat.com>
5106 * psymtab.c (partial_map_expand_apply): Add assertion.
5107 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5108 (psymtab_to_symtab): Find unshared psymtab.
5109 (dump_psymtab): Print including psymtabs.
5110 (recursively_search_psymtabs): New function.
5111 (expand_symtabs_matching_via_partial): Use it.
5112 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5114 (enum psymtab_search_status): New.
5116 2012-05-10 Tom Tromey <tromey@redhat.com>
5118 * tracepoint.c (scope_info): Update.
5119 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5120 (find_pc_sect_symtab, search_symbols)
5121 (default_make_symbol_completion_list_break_on)
5122 (make_file_symbol_completion_list): Update.
5123 * symmisc.c (dump_symtab_1): Update.
5124 * stack.c (print_frame_args, iterate_over_block_locals)
5125 (print_frame_labels, iterate_over_block_arg_vars): Update.
5126 * python/py-block.c (block_object) <dict>: Remove.
5128 <iter>: Change type.
5129 (blpy_iter): Update.
5130 (blpy_block_syms_iternext): Update.
5131 * psymtab.c (map_block): Use block iterators.
5132 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5133 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5134 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5135 * infrun.c (check_exception_resume): Update.
5136 * cp-support.c (make_symbol_overload_list_block): Update.
5137 * coffread.c (patch_opaque_types): Update.
5138 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5139 * block.h (struct block_iterator): New.
5140 (block_iterator_first, block_iterator_next, block_iter_name_first)
5141 (block_iter_name_next, block_iter_match_first)
5142 (block_iter_match_next): Declare.
5143 (ALL_BLOCK_SYMBOLS): Redefine.
5144 * block.c (block_iterator_first, block_iterator_next)
5145 (block_iter_name_first, block_iter_name_next)
5146 (block_iter_match_first, block_iter_match_next): New functions.
5147 * ada-lang.c (ada_add_block_symbols)
5148 (ada_make_symbol_completion_list): Use block iterator.
5150 2012-05-10 Tom Tromey <tromey@redhat.com>
5152 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5153 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5154 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5155 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5156 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5159 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5161 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5162 print-file-var-lib2.c, print-file-var-main.c and
5163 print-file-var.exp (located in gdb/testsuite/gdb.base).
5165 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5167 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5168 try locating the symbol in the symbol's own objfile first, before
5169 extending the search to all objfiles.
5170 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5171 out of lookup_symbol_aux_symtabs.
5172 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5173 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5174 Do not search EXCLUDE_OBJFILE.
5175 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5176 (lookup_symbol_global): Search for matches in the block's objfile
5177 first, before searching all other objfiles.
5179 2012-05-10 Tristan Gingold <gingold@adacore.com>
5181 * printcmd.c (set_command): Add pre/post inc/dec.
5183 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5185 * gdb.1: Document -ex option.
5187 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5189 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5190 * inferior.h (AT_SYMBOL): Delete.
5192 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5194 * mips-tdep.c (mips_push_dummy_code): New function.
5195 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5196 ON_STACK and install mips_push_dummy_code as our gdbarch
5197 push_dummy_code routine.
5199 2012-05-09 Pedro Alves <palves@redhat.com>
5201 * target.c (set_maintenance_target_async_permitted): Rename to ...
5202 (set_target_async_command): ... this.
5203 (show_maintenance_target_async_permitted): Rename to ...
5204 (show_target_async_command): ... this.
5205 (initialize_targets): Adjust.
5207 2012-05-08 Doug Evans <dje@google.com>
5209 * go-exp.y (classify_name): Add missing assignment of fields of
5212 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5214 Display the ">" prompt in interactive mode while reading canned
5215 commands, even when the current interpreter is MI.
5217 * interps.c (interp_set_temp): New function.
5219 * interps.h (interp_set_temp): Add prototype.
5221 * cli/cli-script.c (restore_interp): New cleanup function.
5222 (read_command_lines): Temporarily override the current interpreter
5223 with CLI and arrange for restoring the original one.
5225 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5227 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5229 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5231 * probe.c (parse_probes): Move conditional to check for
5232 debuginfo files from here...
5233 * stap-probe.c (stap_get_probes): ... to here.
5235 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5236 H.J. Lu <hongjiu.lu@intel.com>
5238 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5239 `movl %esp, %ebp' for the X32 ABI.
5241 2012-05-07 Tom Tromey <tromey@redhat.com>
5243 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5245 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5246 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5247 (dwarf_stack_op_name): Remove.
5248 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5249 (decode_locdesc): Use get_DW_OP_name.
5250 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5251 (dwarf2_compile_expr_to_ax): Likewise.
5252 (disassemble_dwarf_expression): Likewise.
5253 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5255 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5257 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5258 (sh_linux_sigtramp_cache): New function.
5259 (sh_linux_sigreturn_init): New function.
5260 (sh_linux_rt_sigreturn_init): New function.
5261 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5263 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5265 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5266 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5267 (sh_linux_init_abi): Add init calls to register new tramp_frame
5268 definitions under 32-bit SH, update comments.
5270 2012-05-07 Pedro Alves <palves@redhat.com>
5274 * amd64-linux-tdep.c: Include glibc-tdep.h.
5275 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5276 gdbarch_skip_solib_resolver callback.
5278 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5280 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5281 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5282 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5283 (add_auto_load_safe_path): Change the error message.
5284 (_initialize_auto_load): Change the "safe-path" help text.
5285 * configure: Regenerate
5286 * configure.ac (--without-auto-load-safe-path): Set
5287 WITH_AUTO_LOAD_SAFE_PATH to /.
5289 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5291 * stap-probe.h: Do not include unecessary `probe.h'.
5293 2012-05-05 Alan Modra <amodra@gmail.com>
5295 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5296 bfd_und_section_ptr.
5297 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5298 and bfd_com_section_ptr.
5300 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5302 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5304 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5306 * windows-nat.h (segment_register_p_ftype): New typedef.
5307 (windows_set_segment_register_p): Add declaration.
5308 * windows-nat.c (segment_register_p): New static global.
5309 (windows_set_segment_register_p): New function.
5310 (do_windows_fetch_inferior_registers): Add special handling
5311 for segment registers.
5312 * amd64-windows-nat.c: #include "amd64-tdep.h".
5313 (amd64_windows_segment_register_p): New function.
5314 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5315 * i386-windows-nat.c: #include "i386-tdep.h".
5316 (i386_windows_segment_register_p): New function.
5317 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5319 2012-05-04 Tristan Gingold <gingold@adacore.com>
5321 * printcmd.c (set_command): Emit a warning if the expression is not
5324 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5326 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5329 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5331 * stap-probe.c (stap_is_operator): Change declaration.
5332 (stap_get_opcode): Change return value.
5333 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5334 `stap_parse_argument_1'.
5336 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5338 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5341 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5343 Add two new methods global_block and static_block to gdb.Symtab
5345 * NEWS (Python scripting): Add entry about the new methods.
5346 * python/py-symtab.c (stpy_global_block): New function which
5347 implements the gdb.Symtab.global_block() method.
5348 (stpy_static_block): New function which implements the
5349 gdb.Symtab.static_block() method.
5350 (symtab_object_methods): Add entries for the two new methods.
5352 2012-05-03 Doug Evans <dje@google.com>
5354 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5357 2012-05-03 Yao Qi <yao@codesourcery.com>
5359 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5361 (i386_process_record): Ditto.
5363 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5365 * infcall.c (unwind_on_signal_p): Make static.
5367 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5369 * sol-thread.c (solaris_pid_to_str): Make static.
5370 (_initialize_sol_thread): Add prototype.
5372 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5374 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5376 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5378 * MAINTAINERS: Remove myself.
5380 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5382 Fix --without-auto-load-safe-path for MS-Windows host platform.
5383 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5385 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5387 * gdb_curses.h: Undefine KEY_EVENT before including curses
5388 headers. Move "#undef MOUSE_MOVED" before any curses header
5391 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5393 * features/i386/i386-mmx-linux.c: Regenerate.
5394 * features/rs6000/powerpc-32.c: Likewise.
5395 * features/rs6000/powerpc-32l.c: Likewise.
5396 * features/rs6000/powerpc-403.c: Likewise.
5397 * features/rs6000/powerpc-403gc.c: Likewise.
5398 * features/rs6000/powerpc-405.c: Likewise.
5399 * features/rs6000/powerpc-505.c: Likewise.
5400 * features/rs6000/powerpc-601.c: Likewise.
5401 * features/rs6000/powerpc-602.c: Likewise.
5402 * features/rs6000/powerpc-603.c: Likewise.
5403 * features/rs6000/powerpc-604.c: Likewise.
5404 * features/rs6000/powerpc-64.c: Likewise.
5405 * features/rs6000/powerpc-64l.c: Likewise.
5406 * features/rs6000/powerpc-750.c: Likewise.
5407 * features/rs6000/powerpc-860.c: Likewise.
5408 * features/rs6000/powerpc-e500.c: Likewise.
5409 * features/rs6000/powerpc-e500l.c: Likewise.
5410 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5411 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5412 * features/rs6000/rs6000.c: Likewise.
5414 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5416 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5418 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5419 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5420 (stap_parse_argument) <e>: Likewise.
5421 (handle_stap_probe) <byte_order>: Likewise.
5423 2012-04-30 Doug Evans <dje@google.com>
5425 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5426 init_and_read_dies_worker. All callers updated.
5427 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5428 replaced with init_cutu_and_read_dies.
5429 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5430 (find_partial_die): Remove FIXME. Don't free current CU.
5432 2012-04-30 Sterling Augustine <saugustine@google.com>
5434 * contrib: New directory.
5435 * contrib/test_pubnames_and_indexes.py: New file.
5437 2012-04-30 Doug Evans <dje@google.com>
5439 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5440 All callers updated.
5441 (init_cu_die_reader): Verify the section is non-empty.
5442 (dwarf_decode_line_header): Don't dereference section->asection
5443 until we know the section is present.
5445 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5447 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5450 2012-04-29 Yao Qi <yao@codesourcery.com>
5452 * gdb-code-style.el: New hook gdb-markup-hook
5453 and gdb-comment-hook.
5455 2012-04-28 Doug Evans <dje@google.com>
5457 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5458 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5460 * symfile.h (dwarf2_debug_sections): New member addr.
5461 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5462 (ctx_no_get_addr_index): New function.
5463 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5464 (ctx_no_get_addr_index): Declare.
5465 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5466 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5467 (dwarf_expr_ctx_funcs): Update.
5468 (needs_get_addr_index): New function.
5469 (needs_frame_ctx_funcs): Update.
5470 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5471 * dwarf2read.c: #include "gdbcore.h".
5472 (dwarf2_per_objfile): New members addr, dwo_files.
5473 (dwarf2_elf_names): Add entry for addr.
5474 (struct dwo_section_names): New type.
5475 (dwo_section_names): New static global.
5476 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5477 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5478 old debug_types_section member updated to use this.
5479 Rename member debug_types_section to info_or_types_section,
5481 (signatured_type): Rename member type_offset to type_offset_in_tu,
5482 all uses updated. New member type_offset_in_section.
5483 (struct dwo_sections): New type.
5484 (struct dwo_unit): New type.
5485 (struct dwo_file): New type.
5486 (die_reader_specs): New member dwo_file.
5487 (dwarf2_locate_sections): Watch for .debug_addr.
5488 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5489 (dwarf2_read_section): Get bfd of section from bfd's asection,
5491 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5492 (create_signatured_type_table_from_index): Initialize
5493 sig_type->info_or_types_section.
5494 (dw2_get_file_names): Statement lists for type units with DWO files
5495 live in the DWO file.
5496 (create_debug_types_hash_table): New function.
5497 (create_all_type_units): Rewrite.
5498 (init_cu_die_reader): New arg dwo_file, all callers updated.
5499 (init_and_read_dies_worker): Get section from
5500 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5501 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5502 continue reading the CU/TU from there.
5503 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5504 updated. Get section from this_cu->info_or_types_section.
5505 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5506 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5507 DW_FORM_GNU_str_index.
5508 (hash_dwo_file, eq_dwo_file): New functions.
5509 (allocate_dwo_file_hash_table): New function.
5510 (hash_dwo_unit, eq_dwo_unit): New functions.
5511 (allocate_dwo_unit_table): New function.
5512 (dwarf2_locate_dwo_sections): New function.
5513 (struct create_dwo_info_table_data): New type.
5514 (create_debug_info_hash_table_reader): New function.
5515 (create_debug_info_hash_table): New function.
5516 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5517 (lookup_dwo_file): New function.
5518 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5519 (free_dwo_file, free_dwo_file_cleanup): New functions.
5520 (free_dwo_file_from_slot, free_dwo_files): New functions.
5521 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5522 (dwarf2_record_block_ranges): Ditto.
5523 (read_partial_die): Ditto.
5524 (process_enumeration_scope): Update to use type_offset_in_section.
5525 (read_full_die_1): New function.
5526 (read_full_die): Rewrite.
5527 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5528 DW_FORM_GNU_str_index.
5529 (read_addr_index_1, read_addr_index): New functions.
5530 (read_addr_index_from_leb128): New function.
5531 (struct dwarf2_read_addr_index_data): New type.
5532 (dwarf2_read_addr_index_reader): New function.
5533 (dwarf2_read_addr_index): New function.
5534 (read_str_index): New function.
5535 (leb128_size): New function.
5536 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5537 If processing a type unit from a DWO file, get the line section
5539 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5540 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5541 DW_FORM_GNU_str_index.
5542 (lookup_die_type): Check whether section offset of type's die is
5543 known before looking it up. Remove assert. Condition can
5544 legimately happen for inter-cu type references.
5545 (dwarf_attr_name): Handle Fission attributes.
5546 (dwarf_form_name): Handle Fission forms.
5547 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5548 DW_FORM_GNU_str_index.
5549 (follow_die_sig): Update to use type_offset_in_section.
5550 (decode_locdesc): New case DW_OP_GNU_addr_index.
5551 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5552 DW_FORM_GNU_str_index.
5553 (cu_debug_loc_section): New function.
5554 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5555 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5556 Free DWO files if present.
5557 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5559 Refactor DIE reading.
5560 * dwarf2read.c (dwarf2_per_objfile): Replace members
5561 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5562 (die_reader_specs): New member "die_section". Temporarily make
5563 member "buffer" non-const, pending constifying all info_ptr uses.
5564 (die_reader_func_ftype): New typedef.
5565 (dw2_get_file_names_reader): New function.
5566 (dw2_get_file_names): Rewrite.
5567 (read_and_check_type_unit_head): Rename arg type_offset to
5569 (create_all_type_units): Improve debugging message.
5570 Improve dummy type unit check.
5571 (init_cu_die_reader): New arg "section". All callers updated.
5572 (init_and_read_dies_worker): New function.
5573 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5574 (init_cutu_and_read_dies_no_follow): New function.
5575 (init_cutu_and_read_dies_simple): New function.
5576 (process_psymtab_comp_unit_reader): New function.
5577 (process_psymtab_comp_unit): Delete args section,
5578 is_debug_types_section. Rewrite. All callers updated.
5579 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5580 All callers updated. Rewrite.
5581 (load_partial_comp_unit_reader): New function.
5582 (load_partial_comp_unit): Rewrite.
5583 (skip_children): New arg reader. Delete args buffer, cu.
5584 All callers updated.
5585 (skip_one_die): New arg reader. Delete args buffer, cu.
5586 All callers updated.
5587 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5588 All callers updated.
5589 (load_full_comp_unit_reader): New function.
5590 (load_full_comp_unit): Rewrite.
5591 (read_comp_unit): Delete.
5592 (read_die_and_children_1): Delete, contents moved ...
5593 (read_die_and_children): ... here.
5594 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5595 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5596 All callers updated.
5597 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5598 All callers updated.
5599 (find_partial_die): Rewrite load_all_dies support.
5600 (read_attribute_value): New arg reader. Delete args abfd, cu.
5601 All callers updated.
5602 (read_attribute): New arg reader. Delete args abfd, cu.
5603 All callers updated.
5604 (load_full_type_unit): Add assert.
5605 (read_signatured_type_reader): New function.
5606 (read_signatured_type): Rewrite.
5607 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5608 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5609 All callers updated. Set per_cu->cu = NULL after freeing it.
5610 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5611 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5612 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5613 (set_die_type): Update.
5614 (get_die_type_at_offset): Update.
5615 (read_file_scope): Call prepare_one_comp_unit.
5616 (read_type_unit_scope): Ditto.
5617 (prepare_one_comp_unit): Set producer if present.
5619 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5621 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5622 gettext function on `error'.
5624 2012-04-27 Doug Evans <dje@google.com>
5626 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5629 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5630 Tom Tromey <tromey@redhat.com>
5632 * breakpoint.c (struct breakpoint_objfile_data)
5633 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5634 <exception_probes>: New fields.
5635 (free_breakpoint_probes): New function.
5636 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5637 `_Unwind_DebugHook'.
5638 (create_exception_master_breakpoint): Likewise.
5639 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5640 * infrun.c: Including necessary header files for handling SystemTap
5642 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5643 via SystemTap probes.
5644 (check_exception_resume): Remove `func' argument. Handle exception
5645 unwinding breakpoint set via a SystemTap probe.
5646 (insert_exception_resume_from_probe): New function.
5648 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5649 Tom Tromey <tromey@redhat.com>
5650 Jan Kratochvil <jan.kratochvil@redhat.com>
5652 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5653 (COMMON_OBS): Likewise.
5654 (HFILES_NO_SRCDIR): Add `probe'.
5655 * NEWS: Mention support for static and SystemTap probes.
5656 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5657 SystemTap probes' arguments parser.
5658 * arm-linux-tdep.c: Including headers needed to perform the parsing
5659 of SystemTap probes' arguments.
5660 (arm_stap_is_single_operand): New function.
5661 (arm_stap_parse_special_token): Likewise.
5662 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5663 probes' arguments parser.
5664 * ax-gdb.c (require_rvalue): Removing static declaration.
5665 (gen_expr): Likewise.
5666 * ax-gdb.h (gen_expr): Declaring function.
5667 (require_rvalue): Likewise.
5668 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5669 (bkpt_probe_breakpoint_ops): New variable.
5670 (momentary_breakpoint_from_master): Set the `probe' value.
5671 (add_location_to_breakpoint): Likewise.
5672 (break_command_1): Using proper breakpoint_ops according to the
5673 argument passed by the user in the command line.
5674 (bkpt_probe_insert_location): New function.
5675 (bkpt_probe_remove_location): Likewise.
5676 (bkpt_probe_create_sals_from_address): Likewise.
5677 (bkpt_probe_decode_linespec): Likewise.
5678 (tracepoint_probe_create_sals_from_address): Likewise.
5679 (tracepoint_probe_decode_linespec): Likewise.
5680 (tracepoint_probe_breakpoint_ops): New variable.
5681 (trace_command): Using proper breakpoint_ops according to the
5682 argument passed by the user in the command line.
5683 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5684 static probes on breakpoints and tracepoints.
5685 * breakpoint.h (struct bp_location) <probe>: New field.
5686 * cli-utils.c (skip_spaces_const): New function.
5687 (extract_arg): Likewise.
5688 * cli-utils.h (skip_spaces_const): Likewise.
5689 (extract_arg): Likewise.
5690 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5691 * configure.ac: Append `stap-probe.o' to be generated when ELF
5693 * configure: Regenerate.
5694 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5695 * elfread.c: Include `probe.h' and `arch-utils.h'.
5696 (probe_key): New variable.
5697 (elf_get_probes): New function.
5698 (elf_get_probe_argument_count): Likewise.
5699 (elf_evaluate_probe_argument): Likewise.
5700 (elf_compile_to_ax): Likewise.
5701 (elf_symfile_relocate_probe): Likewise.
5702 (stap_probe_key_free): Likewise.
5703 (elf_probe_fns): New variable.
5704 (elf_sym_fns): Add `sym_probe_fns' value.
5705 (elf_sym_fns_lazy_psyms): Likewise.
5706 (elf_sym_fns_gdb_index): Likewise.
5707 (_initialize_elfread): Initialize objfile cache for static
5709 * gdb_vecs.h (struct probe): New forward declaration.
5710 (probe_p): New VEC declaration.
5711 * gdbarch.c: Regenerate.
5712 * gdbarch.h: Regenerate.
5713 * gdbarch.sh (stap_integer_prefix): New variable.
5714 (stap_integer_suffix): Likewise.
5715 (stap_register_prefix): Likewise.
5716 (stap_register_suffix): Likewise.
5717 (stap_register_indirection_prefix): Likewise.
5718 (stap_register_indirection_suffix): Likewise.
5719 (stap_gdb_register_prefix): Likewise.
5720 (stap_gdb_register_suffix): Likewise.
5721 (stap_is_single_operand): New function.
5722 (stap_parse_special_token): Likewise.
5723 (struct stap_parse_info): Forward declaration.
5724 * i386-tdep.c: Including headers needed to perform the parsing
5725 of SystemTap probes' arguments.
5726 (i386_stap_is_single_operand): New function.
5727 (i386_stap_parse_special_token): Likewise.
5728 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5729 probes' arguments parser.
5730 * i386-tdep.h (i386_stap_is_single_operand): New function.
5731 (i386_stap_parse_special_token): Likewise.
5732 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5733 * mipsread.c (ecoff_sym_fns): Likewise.
5734 * objfiles.c (objfile_relocate1): Support relocation for static
5736 * parse.c (prefixify_expression): Remove static declaration.
5737 (initialize_expout): Likewise.
5738 (reallocate_expout): Likewise.
5739 * parser-defs.h (initialize_expout): Declare function.
5740 (reallocate_expout): Likewise.
5741 (prefixify_expression): Likewise.
5742 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5743 of SystemTap probes' arguments.
5744 (ppc_stap_is_single_operand): New function.
5745 (ppc_stap_parse_special_token): Likewise.
5746 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5747 probes' arguments parser.
5748 * probe.c: New file, for generic statically defined probe support.
5749 * probe.h: Likewise.
5750 * s390-tdep.c: Including headers needed to perform the parsing of
5751 SystemTap probes' arguments.
5752 (s390_stap_is_single_operand): New function.
5753 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5754 probes' arguments parser.
5755 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5756 * stap-probe.c: New file, for SystemTap probe support.
5757 * stap-probe.h: Likewise.
5758 * symfile.h: Include `gdb_vecs.h'.
5759 (struct sym_probe_fns): New struct.
5760 (struct sym_fns) <sym_probe_fns>: New field.
5761 * symtab.c (init_sal): Initialize `probe' field.
5762 * symtab.h (struct probe): Forward declaration.
5763 (struct symtab_and_line) <probe>: New field.
5764 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5766 (stop_tracing): Likewise.
5767 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5769 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5770 Tom Tromey <tromey@redhat.com>
5772 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5773 and to compile agent expressions.
5774 * infrun.c (siginfo_make_value): New argument `ignore'.
5775 (siginfo_funcs): New struct.
5776 (_initialize_infrun): New argument when calling
5777 `create_internalvar_type_lazy'.
5778 * thread.c (thread_id_make_value): New argument `ignore'.
5779 (thread_funcs): New struct.
5780 (_initialize_thread): New argument when calling
5781 `create_internalvar_type_lazy'.
5782 * tracepoint.c (sdata_make_value): New argument `ignore'.
5783 (sdata_funcs): New struct.
5784 (_initialize_tracepoint): New argument when calling
5785 `create_internalvar_type_lazy'.
5786 * value.c (make_value): New struct.
5787 (create_internalvar_type_lazy): New argument `data'.
5788 (compile_internalvar_to_ax): New function.
5789 (value_of_internalvar): Properly handling `make_value' case.
5790 (clear_internalvar): Likewise.
5791 (show_convenience): Adding `TRY_CATCH' block.
5792 * value.h (internalvar_make_value): Delete, replace by...
5793 (struct internalvar_funcs): ... this.
5794 (create_internalvar_type_lazy) <fun>: Delete argument.
5795 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5796 (compile_internalvar_to_ax): New function.
5797 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5798 (tlb_funcs): New struct.
5799 (_initialize_windows_tdep): New argument when calling
5800 `create_internalvar_type_lazy'.
5802 2012-04-27 Mark Wielaard <mjw@redhat.com>
5804 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5805 see whether it is an address or a constant offset from DW_AT_low_pc.
5806 (dwarf2_record_block_ranges): Likewise.
5807 (read_partial_die): Likewise.
5809 2012-04-26 Mark Wielaard <mjw@redhat.com>
5811 * MAINTAINERS (Write After Approval): Add myself to the list.
5813 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5815 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5816 (proc_prettyprint_signal): Likewise.
5817 (proc_prettyprint_faultset): Likewise.
5818 (proc_prettyprint_fault): Likewise.
5819 (proc_prettyprint_actionset): Likewise.
5820 (proc_prettyprint_flags): Move to new proc-flags.c section.
5821 (proc_prettyfprint_flags): New prototype.
5822 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5823 (proc_syscall, proc_cursig): Likewise.
5824 (proc_set_kill_on_last_close): Likewise.
5825 (proc_unset_kill_on_last_close): Likewise.
5826 (proc_set_watchpoint): Make static.
5827 (proc_delete_dead_threads): Likewise.
5828 (procfs_set_watchpoint): Likewise.
5829 (_initialize_procfs): Add prototype.
5830 * proc-events.c: Include proc-utils.h.
5831 (init_syscall_table): Make static.
5832 * proc-api.c (_initialize_proc_api): Add prototype.
5833 * proc-flags.c: Include proc-utils.h.
5835 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5837 * configure.ac: Add AC_ARG_PROGRAM.
5838 * configure: Regenerate.
5840 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5842 Fix DW_AT_lower_bound defaults for DWARF-4+.
5843 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5844 high. New variable low_default_is_valid. Implement DWARF-4+
5845 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5846 no default by the DWARF standard.
5848 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5849 Maciej W. Rozycki <macro@codesourcery.com>
5851 * infrun.c (handle_inferior_event): Move the check for return
5852 trampolines ahead of the check for function trampolines.
5853 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5854 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5855 (mips_str_mips16_ret_stub): Likewise.
5856 (mips_str_call_fp_stub): Likewise.
5857 (mips_str_call_stub): Likewise.
5858 (mips_str_fn_stub): Likewise.
5859 (mips_str_pic): Likewise.
5860 (mips_in_frame_stub): New function.
5861 (mips_unwind_pc): Return the return address rather than the PC
5862 if the PC of an intermediate frame is inside a call thunk.
5863 (mips_is_stub_suffix): New function.
5864 (mips_is_stub_mode): Likewise.
5865 (mips_get_mips16_fn_stub_pc): Likewise.
5866 (mips_skip_mips16_trampoline_code): Update to handle all the
5867 currently generated stub types. Don't recurse into __fn_stub
5868 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5869 Use cooked register accesses.
5870 (mips_in_return_stub): Reintroduce function.
5871 (mips_skip_trampoline_code): Traverse trampolines recursively.
5872 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5874 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5878 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5880 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5881 * features/arm-with-m-vfp-d16.xml: New file. Describes
5882 Cortex-M with VFPv4-sp-d16 FPU register layout.
5883 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5884 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5885 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5886 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5887 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5889 2012-04-25 Doug Evans <dje@google.com>
5891 * cli/cli-decode.c (print_doc_line): Use stream instead of
5894 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5896 * features/arm-with-iwmmxt.c: Regenerate.
5897 * features/arm-with-m-fpa-layout.c: Likewise.
5898 * features/arm-with-m.c: Likewise.
5899 * features/arm-with-neon.c: Likewise.
5900 * features/arm-with-vfpv2.c: Likewise.
5901 * features/arm-with-vfpv3.c: Likewise.
5902 * features/mips-dsp-linux.c: Likewise.
5903 * features/mips-linux.c: Likewise.
5904 * features/mips64-dsp-linux.c: Likewise.
5905 * features/mips64-linux.c: Likewise.
5906 * features/s390-linux32.c: Likewise.
5907 * features/s390-linux32v1.c: Likewise.
5908 * features/s390-linux32v2.c: Likewise.
5909 * features/s390-linux64.c: Likewise.
5910 * features/s390-linux64v1.c: Likewise.
5911 * features/s390-linux64v2.c: Likewise.
5912 * features/s390x-linux64.c: Likewise.
5913 * features/s390x-linux64v1.c: Likewise.
5914 * features/s390x-linux64v2.c: Likewise.
5915 * features/tic6x-c62x-linux.c: Likewise.
5916 * features/tic6x-c62x.c: Likewise.
5917 * features/tic6x-c64x-linux.c: Likewise.
5918 * features/tic6x-c64x.c: Likewise.
5919 * features/tic6x-c64xp-linux.c: Likewise.
5920 * features/tic6x-c64xp.c: Likewise.
5921 * target-descriptions.c: Only generate `field_type' and `type'
5922 variables when needed.
5924 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5926 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5928 2012-04-25 Doug Evans <dje@google.com>
5930 Initial pass at Go language support.
5932 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5934 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5935 (YYFILES): Add go-exp.c.
5936 (YYOBJ): Add go-exp.o.
5937 (local-maintainer-clean): Delete go-exp.c.
5938 * defs.h (enum language): Add language_go.
5939 * dwarf2read.c: #include "go-lang.h".
5940 (fixup_go_packaging): New function.
5941 (process_full_comp_unit): Call it when processing Go CUs.
5942 (dwarf2_physname): Add Go support.
5943 (read_file_scope): Handle missing language spec for GNU Go.
5944 (set_cu_language): Handle DW_LANG_Go.
5945 * go-exp.y: New file.
5946 * go-lang.h: New file.
5947 * go-lang.c: New file.
5948 * go-typeprint.c: New file.
5949 * go-valprint.c: New file.
5950 * symtab.c: #include "go-lang.h".
5951 (symbol_set_language): Handle language_go.
5952 (symbol_find_demangled_name, symbol_set_names): Ditto.
5953 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5955 2012-04-24 Jim Meyering <meyering@redhat.com>
5957 avoid a few strncpy-induced buffer overruns
5958 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5959 fname and psargs before trying to concatenate.
5960 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5961 "name" before applying strchr.
5963 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5965 * CONTRIBUTE: Use unified diff instead of context diff when
5968 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5970 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5971 code. Handle JR.HB correctly.
5973 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5976 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5977 with the other MIPS16 helpers.
5979 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5981 * observer.sh: Conditionally declare `args', thus cleaning up
5982 unused instances of this variable.
5984 2012-04-24 Yao Qi <yao@codesourcery.com>
5986 Revert this patch to allow breakpoint always-inserted
5988 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5989 * breakpoint.c: Include record.h.
5990 (breakpoints_always_inserted_mode): Return false when the record
5993 * breakpoint.c (iterate_over_bp_locations): New.
5994 * breakpoint.h: Declare.
5995 New typedef walk_bp_location_callback.
5996 * record.c (record_open): Call record_init_record_breakpoints.
5997 (record_sync_record_breakpoints): New.
5998 (record_init_record_breakpoints): New.
5999 * NEWS: Mention supporting breakpoint always-inserted mode in
6002 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6004 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6007 2012-04-24 Yao Qi <yao@codesourcery.com>
6009 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6010 (is_catchpoint): ... it.
6011 (print_one_breakpoint_location): Caller update.
6012 * breakpoint.h: Update declaration.
6014 2012-04-23 David S. Miller <davem@davemloft.net>
6016 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6018 2012-04-23 Tom Tromey <tromey@redhat.com>
6020 * buildsym.c (add_free_pendings): Remove.
6021 * buildsym.h (add_free_pendings): Remove.
6023 2012-04-23 Doug Evans <dje@google.com>
6025 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6026 attr.u.unsnd instead of attr.u.addr.
6027 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6028 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6030 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6031 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6033 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6035 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6037 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6038 (mips_o32_return_value): Likewise.
6039 (mips_o64_return_value): Likewise.
6041 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6043 * ada-lang.c (ada_evaluate_subexp): Add cases for
6044 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6045 their treatment in eval.c.
6047 2012-04-21 David S. Miller <davem@davemloft.net>
6049 * sparc-tdep.c (X_DISP10): Define.
6050 (sparc_analyze_control_transfer): Handle compare-and-branch.
6052 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6054 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6055 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6057 2012-04-20 Nigel Stephens <nigel@mips.com>
6058 Maciej W. Rozycki <macro@codesourcery.com>
6060 * mips-tdep.c (mips_float_register_p): New function.
6061 (mips_convert_register_float_case_p): Use mips_float_register_p.
6062 (mips_register_type): Likewise.
6063 (mips_print_register): Likewise.
6064 (print_gp_register_row): Likewise.
6065 (mips_print_registers_info): Likewise.
6067 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6069 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6072 2012-04-20 Andrew Pinski <apinski@cavium.com>
6074 * MAINTAINERS (Write After Approval): Add myself to the list.
6076 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6078 * MAINTAINERS: Update my e-mail address.
6080 2012-04-20 Pedro Alves <palves@redhat.com>
6082 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6084 * configure: Regenerate.
6086 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6088 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6090 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6092 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6094 Fix compilation compatibility with python-2.4
6095 * python/py-type.c (convert_field): Cast ADDRSTRING for
6096 PyObject_SetAttrString as non-const. New comment.
6098 2012-04-19 Tom Tromey <tromey@redhat.com>
6100 * top.c (quit_target): Use all_cleanups.
6101 * main.c (captured_command_loop): Use all_cleanups.
6102 * exceptions.c (throw_exception): Use all_cleanups.
6104 2012-04-19 Pedro Alves <palves@redhat.com>
6106 * Makefile.in (GNULIB_BUILDDIR): New.
6107 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6108 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6109 (CLEANDIRS). Remove gnulib/import.
6110 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6112 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6113 (gnulib/import/Makefile): Replace gnulib/import with
6114 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6115 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6116 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6117 acx_configure_dir.m4.
6118 * acinclude.m4: Include acx_configure_dir.m4.
6119 * acx_configure_dir.m4: New file.
6120 * aclocal.m4: Regenerate.
6121 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6122 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6123 (GNULIB): New variable.
6124 (GNULIB_STDINT_H): Adjust.
6125 (AC_OUTPUT): Don't output gnulib/Makefile.
6126 * gdb/defs.h: Include build-gnulib/config.h.
6127 * aclocal.m4: Regenerate.
6128 * config.in: Regenerate.
6129 * configure: Regenerate.
6131 * gnulib/Makefile.in: New file.
6132 * gnulib/configure.ac: New file.
6133 * gnulib/aclocal.m4: New file.
6134 * gnulib/config.in: New file.
6135 * gnulib/configure: New file.
6136 * gnulib/: Re-run gnulib-tool to adjust.
6138 2012-04-19 Doug Evans <dje@google.com>
6140 * cleanups.h (struct cleanup): Move to cleanups.c.
6141 (make_cleanup_dtor_ftype): New typedef.
6142 (make_cleanup_dtor): Use it.
6143 (ALL_CLEANUPS): Replace with ...
6144 (all_cleanups): ... this. Declare. All uses updated.
6145 * cleanups.c: #include "gdb_assert.h".
6146 (sentinel_cleanup): New static global.
6147 (SENTINEL_CLEANUP): Define.
6148 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6149 (make_my_cleanup2): Assert result is non-NULL.
6150 (all_cleanups): New function.
6151 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6154 2012-04-19 Pedro Alves <palves@redhat.com>
6156 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6157 Adjust paths to gnulib imported files.
6159 2012-04-19 Pedro Alves <palves@redhat.com>
6161 * gnulib/: Move whole directory ...
6162 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6163 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6164 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6165 (aclocal_m4_deps): Adjust.
6166 * aclocal.m4: Regenerate.
6167 * configure: Regenerate.
6168 * configure.ac: Adjust AC_OUTPUT output.
6170 2012-04-19 Yao Qi <yao@codesourcery.com>
6172 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6174 * vec.c: Move it ...
6175 * common/vec.c: ... here.
6176 * vec.h: Move it ...
6177 * common/vec.h: ... here.
6179 2012-04-19 Yao Qi <yao@codesourcery.com>
6181 * gdb-code-style.el: New.
6183 2012-04-18 Pedro Alves <palves@redhat.com>
6185 Update gnulib from latest git.
6186 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6188 * gnulib/Makefile.am: Update.
6189 * gnulib/dummy.c: Update.
6190 * gnulib/extra/arg-nonnull.h: Update.
6191 * gnulib/extra/c++defs.h: Update.
6192 * gnulib/extra/update-copyright: Update.
6193 * gnulib/extra/warn-on-use.h: Update.
6194 * gnulib/inttypes.in.h: Update.
6195 * gnulib/m4/00gnulib.m4: Update.
6196 * gnulib/m4/extensions.m4: Update.
6197 * gnulib/m4/gnulib-cache.m4: Update.
6198 * gnulib/m4/gnulib-common.m4: Update.
6199 * gnulib/m4/gnulib-comp.m4: Update.
6200 * gnulib/m4/gnulib-tool.m4: Update.
6201 * gnulib/m4/include_next.m4: Update.
6202 * gnulib/m4/inttypes-pri.m4: Update.
6203 * gnulib/m4/inttypes.m4: Update.
6204 * gnulib/m4/longlong.m4: Update.
6205 * gnulib/m4/memchr.m4: Update.
6206 * gnulib/m4/memmem.m4: Update.
6207 * gnulib/m4/mmap-anon.m4: Update.
6208 * gnulib/m4/multiarch.m4: Update.
6209 * gnulib/m4/onceonly.m4: Update.
6210 * gnulib/m4/stddef_h.m4: Update.
6211 * gnulib/m4/stdint.m4: Update.
6212 * gnulib/m4/string_h.m4: Update.
6213 * gnulib/m4/warn-on-use.m4: Update.
6214 * gnulib/m4/wchar_h.m4: Update.
6215 * gnulib/m4/wchar_t.m4: Update.
6216 * gnulib/m4/wint_t.m4: Update.
6217 * gnulib/memchr.c: Update.
6218 * gnulib/memmem.c: Update.
6219 * gnulib/stddef.in.h: Update.
6220 * gnulib/stdint.in.h: Update.
6221 * gnulib/str-two-way.h: Update.
6222 * gnulib/string.in.h: Update.
6223 * gnulib/wchar.in.h: Update.
6225 * gnulib/extra/arg-nonnull.h: Delete.
6226 * gnulib/extra/c++defs.h: Delete.
6227 * gnulib/extra/warn-on-use.h: Delete.
6228 * gnulib/m4/wchar_h.m4: Delete.
6229 * gnulib/m4/wint_t.m4: Delete.
6230 * gnulib/wchar.in.h: Delete.
6232 * gnulib/extra/snippets/arg-nonnull.h: New.
6233 * gnulib/extra/snippets/c++defs.h: New.
6234 * gnulib/extra/snippets/warn-on-use.h: New.
6236 * aclocal.m4: Regenerate.
6237 * config.in: Regenerate.
6238 * configure: Regenerate.
6239 * gnulib/Makefile.in: Regenerate.
6241 2012-04-18 Pedro Alves <palves@redhat.com>
6243 Reimport the update-copyright module from gnulib
6244 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6246 * configure: Regenerate.
6247 * gnulib/Makefile.am: Update.
6248 * gnulib/Makefile.in: Regenerate.
6249 * gnulib/extra/update-copyright: Update.
6250 * gnulib/m4/gnulib-cache.m4: Update.
6251 * gnulib/m4/gnulib-comp.m4: Update.
6253 2012-04-18 Tristan Gingold <gingold@adacore.com>
6255 * configure.ac (aix): Put -lpthread into libs.
6256 * configure: Regenerate.
6258 2012-04-18 Tom Tromey <tromey@redhat.com>
6260 * linespec.c (convert_linespec_to_sals): Don't use
6262 (compare_msymbols): Arguments are minsym_and_objfile, not
6263 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6265 2012-04-18 Pedro Alves <palves@redhat.com>
6267 Revert gnulib/ part of:
6268 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6269 Copyright year update in most files (performed by copyright.sh).
6271 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6273 Fix 64-bit constants on 32-bit hosts.
6274 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6275 from unsigned long to ULONGEST.
6276 (read_signed_leb128): Change declaration return type from long to
6278 (dwarf2_const_value_attr): Change declaration parameter value from long
6280 (dwarf2_compute_name): Change variable value from long to LONGEST.
6281 (read_unsigned_leb128): Change return type, variable result and some
6282 casts from unsigned long to ULONGEST.
6283 (read_signed_leb128): Change return type, variable result and some
6284 casts from long to LONGEST.
6285 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6286 value from long to LONGEST.
6287 (dwarf2_const_value): Change variable value from long to LONGEST.
6288 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6289 plongest and hex_string.
6290 * symtab.h (struct general_symbol_info): Change ivalue from long to
6291 LONGEST, remove the comment.
6292 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6293 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6295 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6298 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6299 * ada-lang.c (ada_discrete_type_high_bound)
6300 (ada_discrete_type_low_bound): Fix function comment. Use
6301 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6302 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6303 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6304 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6305 Use TYPE_FIELD_ENUMVAL.
6306 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6307 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6308 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6309 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6311 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6312 * dwarf2read.c (process_enumeration_scope): Likewise.
6313 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6315 (class StructMainTypePrettyPrinter): Support also
6316 FIELD_LOC_KIND_ENUMVAL.
6317 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6319 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6320 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6321 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6322 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6324 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6325 accommodate enumval.
6326 (struct call_site): Adjust loc_kind to accommodate enumval.
6327 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6328 (TYPE_FIELD_ENUMVAL): New macros.
6329 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6330 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6332 * p-typeprint.c (pascal_type_print_base): Likewise.
6333 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6335 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6336 * python/py-type.c (convert_field): New variable addrstring. Use
6337 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6338 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6339 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6340 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6342 * valprint.c (generic_val_print): Likewise.
6344 2012-04-17 Doug Evans <dje@google.com>
6346 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6348 * dwarf2read.c: Whitespace fixes.
6349 (lookup_signatured_type): Tweak comment.
6350 (get_die_type_at_offset): Fix comment.
6352 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6354 * xcoffread.c (xcoff_secnum_to_sections): New function.
6355 (secnum_to_section, secnum_to_bfd_section): Reimplement
6356 using xcoff_secnum_to_sections. Rename "secnum" parameter
6358 (RECORD_MINIMAL_SYMBOL): Delete.
6359 (record_minimal_symbol): New function.
6360 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6361 by call to record_minimal_symbol and set misc_func_recorded
6362 to 1. Set last_csect_sec to the XCOFF section index instead
6363 of GDB's section_offset index. Update calls to
6364 prim_record_minimal_symbol_and_info to pass the BFD section
6367 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6369 * xcoffread.c (read_xcoff_symtab): Delete variables
6370 last_csect_val and last_csect_sec and associated code.
6372 2012-04-17 Doug Evans <dje@google.com>
6374 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6375 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6376 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6377 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6379 * cleanups.h: New file.
6380 * cleanups.c: New file.
6381 * Makefile.in (SFILES): Add cleanups.c.
6382 (HFILES_NO_SRCDIR): Add cleanups.h.
6383 (COMMON_OBS): Add cleanups.o.
6384 * defs.h (struct cleanup): Moved to cleanups.h.
6385 (do_cleanups,do_final_cleanups): Ditto.
6386 (discard_cleanups,discard_final_cleanups): Ditto
6387 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6388 (save_cleanups,save_final_cleanups): Ditto.
6389 (restore_cleanups,restore_final_cleanups): Ditto.
6390 (null_cleanup): Ditto.
6391 (make_my_cleanup,make_my_cleanup2): Ditto.
6392 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6393 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6394 (do_cleanups,do_final_cleanups): Ditto.
6395 (discard_cleanups,discard_final_cleanups): Ditto
6396 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6397 (save_cleanups,save_final_cleanups): Ditto.
6398 (restore_cleanups,restore_final_cleanups): Ditto.
6399 (null_cleanup): Ditto.
6400 (make_my_cleanup,make_my_cleanup2): Ditto.
6401 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6403 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6405 (make_cleanup_dyn_string_delete): Ditto.
6406 (make_cleanup_ui_file_delete): Ditto.
6407 (make_cleanup_ui_out_redirect_pop): Ditto.
6408 (make_cleanup_free_section_addr_info): Ditto.
6409 (make_cleanup_restore_integer): Ditto.
6410 (make_cleanup_unpush_target): Ditto.
6411 (make_cleanup_value_free_to_mark): Ditto.
6412 (make_cleanup_value_free): Ditto.
6413 (make_cleanup_free_so): Ditto.
6415 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6417 New option "set debug auto-load".
6418 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6419 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6420 (auto_load_safe_path_vec_update)
6421 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6423 (file_is_auto_load_safe): New parameters debug_fmt and ....
6424 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6425 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6426 caller by explanatory string.
6427 (_initialize_auto_load): Register "set debug auto-load".
6428 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6430 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6431 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6432 by explanatory string.
6433 * main.c (captured_main): Likewise.
6434 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6435 (source_section_scripts): Likewise.
6437 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6439 New option "set auto-load safe-path".
6440 * NEWS: New commands "set auto-load safe-path"
6441 and "show auto-load safe-path".
6442 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6443 (auto_load_safe_path, auto_load_safe_path_vec)
6444 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6445 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6446 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6447 (source_gdb_script_for_objfile): New variable is_safe. Call
6448 file_is_auto_load_safe. Return if it is not.
6449 (struct loaded_script): New field loaded.
6450 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6451 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6452 output "Missing" to "No".
6453 (_initialize_auto_load): New variable cmd. Initialize
6454 auto_load_safe_path. Register "set auto-load safe-path",
6455 "show auto-load safe-path" and "add-auto-load-safe-path".
6456 * auto-load.h (maybe_add_script): Add parameter loaded.
6457 (file_is_auto_load_safe): New declaration.
6458 * config.in: Regenerate.
6459 * configure: Regenerate.
6460 * configure.ac: New parameters --with-auto-load-safe-path
6461 and --without-auto-load-safe-path.
6462 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6463 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6464 * main.c (captured_main): Check file_is_auto_load_safe for
6466 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6467 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6468 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6471 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6473 auto-load: Implementation.
6474 * NEWS: New descriptions for "info auto-load",
6475 "info auto-load gdb-scripts", "info auto-load python-scripts",
6476 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6477 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6478 and "show auto-load-scripts". New description for "set auto-load",
6479 "show auto-load", "set auto-load gdb-scripts",
6480 "show auto-load gdb-scripts", "set auto-load python-scripts",
6481 "show auto-load python-scripts", "set auto-load local-gdbinit",
6482 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6483 "show auto-load libthread-db".
6484 * auto-load.c: Remove include python/python-internal.h. Add includes
6485 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6487 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6488 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6489 (gdbpy_global_auto_load): Rename to ...
6490 (global_auto_load): ... here.
6491 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6492 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6493 (script_language_gdb, source_gdb_script_for_objfile): New.
6494 (struct loaded_script): New field language.
6495 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6497 (maybe_add_script): Add parameter language. Drop redundant
6498 entry.full_path initialization. Initialize entry.language and
6500 (auto_load_objfile_script): Change parameter suffix to language.
6501 Remove the call of maybe_add_script.
6502 Call language->source_script_for_objfile.
6503 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6505 (collect_matching_scripts): Adjust it for
6506 struct collect_matching_scripts_data.
6507 (auto_load_info_scripts_pattern_nl): New variable.
6508 (info_auto_load_scripts): Rename to ...
6509 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6510 for struct collect_matching_scripts_data.
6511 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6512 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6513 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6514 (auto_load_info_cmdlist_get): New.
6515 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6516 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6517 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6518 "info auto-load local-gdbinit".
6519 * auto-load.h (struct script_language): New.
6520 (gdbpy_global_auto_load): Rename to ...
6521 (global_auto_load): ... here.
6522 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6523 (auto_load_local_gdbinit_loaded): New declarations.
6524 (maybe_add_script): New parameter language.
6525 (auto_load_objfile_script): Change parameter suffix to language.
6526 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6527 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6528 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6530 * linux-thread-db.c: Include auto-load.h and ctype.h.
6531 (auto_load_thread_db, show_auto_load_thread_db): New.
6532 (struct thread_db_info): New field filename.
6533 (delete_thread_db_info): Call xfree for FILENAME.
6534 (try_thread_db_load): Initialize FILENAME.
6535 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6536 if !AUTO_LOAD_THREAD_DB.
6537 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6538 (_initialize_thread_db): Install auto_load_thread_db
6539 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6540 as "info auto-load libthread-db".
6541 * main.c (captured_main): Rename gdbpy_global_auto_load to
6542 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6543 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6544 (print_gdb_help): Extend the help for 'local init file'.
6545 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6546 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6547 (auto_load_scripts): Rename to ...
6548 (auto_load_python_scripts): ... here, update the comment.
6549 (gdbpy_load_auto_script_for_objfile): New declaration.
6550 (show_auto_load_python_scripts, script_language_python)
6551 (gdbpy_load_auto_script_for_objfile): New.
6552 (source_section_scripts): Refactor the code.
6553 (load_auto_scripts_for_objfile): Rename to ...
6554 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6555 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6556 (info_auto_load_python_scripts): New.
6557 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6558 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6559 Register "set auto-load-scripts" as its deprecated alias. Register
6560 "info auto-load python-scripts". Register "info auto-load-scripts" as
6561 its deprecated alias.
6562 (load_auto_scripts_for_objfile): Rename to ...
6563 (gdbpy_load_auto_scripts_for_objfile): ... here.
6564 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6565 (gdbpy_load_auto_scripts_for_objfile): ... here.
6567 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6569 auto-load: Move files.
6570 * Makefile.in (SFILES): Add auto-load.c.
6571 (HFILES_NO_SRCDIR): Add auto-load.h.
6572 (COMMON_OBS): Add auto-load.o.
6573 (distclean): Change .gdbinit for gdb-gdb.gdb.
6574 * auto-load.c: New file, with parts from python/py-auto-load.c.
6575 * auto-load.h: New file, with parts from python/python.h.
6576 * configure: Regenerate.
6577 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6578 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6579 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6580 * main.c: Include auto-load.h.
6581 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6582 command.h, observer.h and progspace.h to auto-load.c. Add include
6584 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6585 (struct loaded_script, auto_load_pspace_data)
6586 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6587 (hash_loaded_script_entry, eq_loaded_script_entry)
6588 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6589 (maybe_add_script): Move to auto-load.c.
6590 (source_section_scripts): Change maybe_add_script parameters passing,
6591 use script_not_found_warning_print.
6592 (clear_section_scripts, auto_load_objfile_script)
6593 (auto_load_new_objfile, loaded_script_ptr)
6594 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6595 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6596 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6597 auto_load_new_objfile and info_auto_load_scripts initizations to
6599 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6601 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6604 * charset.c (find_charset_names): Remove variables ix and elt.
6605 Use free_char_ptr_vec.
6606 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6607 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6608 debugdir_end. New variable debugdir_len.
6609 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6610 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6612 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6613 and elt. Use free_char_ptr_vec.
6614 * source.c (add_path): Remove variables argv, arg and argv_index.
6615 New variables dir_vec, back_to, ix and name.
6616 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6617 make_cleanup_freeargv. Remove variable separator. Simplify the code
6618 no longer expecting DIRNAME_SEPARATOR.
6619 (openp): Remove variable p, p1 and len. New variables dir_vec,
6620 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6621 no longer expecting DIRNAME_SEPARATOR.
6622 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6623 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6625 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6626 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6627 (dirnames_to_char_ptr_vec): New functions.
6629 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6632 * source.c (add_path): Remove always true conditional 'p == 0' and
6633 unindent its code block.
6635 2012-04-17 Pedro Alves <palves@redhat.com>
6637 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6638 (FIELD_BITPOS_LVAL): ... this.
6639 (FIELD_BITPOS): New.
6640 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6641 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6642 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6644 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6646 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6647 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6648 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6651 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6653 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6654 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6655 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6656 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6657 * jv-lang.c (java_link_class_type): Likewise, once.
6658 * stabsread.c (read_enum_type): Likewise.
6660 2012-04-16 Yao Qi <yao@codesourcery.com>
6662 * common/agent.c (agent_run_command): Add one more parameter `len'.
6664 * common/agent.h: Update declaration.
6665 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6667 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6669 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6672 * value.c (value_actual_type): New function.
6673 * value.h (value_actual_type): New declaration.
6674 * varobj.c (update_type_if_necessary): New function.
6675 (varobj_create): Call value_actual_type instead of
6677 (install_dynamic_child): distinct changed and type changed MI variable
6679 (update_dynamic_varobj_children): Updated for install_dynamic_child
6680 change. All callers updated.
6681 (varobj_update): Support for MI variable object type change if
6682 the value changed and RTTI is used to determine the type.
6683 (create_child_with_value): Call value_actual_type instead of
6685 (adjust_value_for_child_access): Extended with a new parameter which
6686 specify whether the given value should be casted to enclosing type.
6687 All callers updated.
6689 2012-04-14 Yao Qi <yao@codesourcery.com>
6691 Import gnulib module inttypes from git
6692 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6693 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6694 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6695 gnulib/m4/inttypes-pri.m4
6696 * aclocal.m4, config.in, configure: Regenerated.
6697 * gnulib/Makefile.am: Update.
6698 * gnulib/Makefile.in: Update.
6699 * gnulib/m4/gnulib-cache.m4: Update.
6700 * gnulib/m4/gnulib-comp.m4: Update.
6701 * gnulib/inttypes.in.h: New.
6702 * gnulib/m4/inttypes-pri.m4: New.
6703 * gnulib/m4/inttypes.m4: New.
6705 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6707 * infrun.c (resume): Update PC address to the real PC after
6708 preparing to do displaced stepping.
6710 2012-04-12 Doug Evans <dje@google.com>
6712 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6713 All callers updated.
6715 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6717 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6719 2012-04-12 Doug Evans <dje@google.com>
6721 * dwarf2read.c (create_all_type_units): Renamed from
6722 create_debug_types_hash_table. All callers updated.
6724 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6725 local type_sig to sig_type, type_offset to type_offset_in_tu.
6726 (hash_signatured_type): Renamed from hash_type_signature,
6727 all callers updated.
6728 (eq_signatured_type): Renamed from eq_type_signature,
6729 all callers updated.
6730 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6731 (process_enumeration_scope): Ditto.
6732 (lookup_signatured_type_at_offset): Ditto.
6733 (load_full_type_unit, read_signatured_type): Ditto.
6735 2012-04-12 Yao Qi <yao@codesourcery.com>
6737 * remote.c (async_remote_interrupt): Correct function name in
6739 (async_remote_interrupt_twice): Ditto.
6741 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6743 * source.c (find_and_open_source): Consistently pass resulting
6744 full path through xfullpath.
6746 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6748 Provide more specific displaced-stepping memory error message.
6749 * infrun.c (displaced_step_prepare): New variable status. Call
6750 target_read_memory instead of read_memory, provide more specific
6753 2012-04-11 Tristan Gingold <gingold@adacore.com>
6756 * darwin-nat.c (darwin_execvp): Revert previous patch.
6758 2012-04-11 Tristan Gingold <gingold@adacore.com>
6761 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6764 2012-04-11 Tristan Gingold <gingold@adacore.com>
6766 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6769 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6771 New command 'explore' which helps explore values and types in
6773 * NEWS: Add an entry about the new 'explore' command.
6774 * data-directory/Makefile.in: Add gdb/command/explore.py
6775 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6776 command using the GDB Python API.
6778 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6780 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6781 extension in jump target calculation.
6783 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6785 * mips-tdep.c (mips32_next_pc): Handle JALX.
6787 2012-04-10 Yao Qi <yao@codesourcery.com>
6789 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6791 2012-04-10 Yao Qi <yao@codesourcery.com>
6793 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6794 and gnulib/m4/gnulib-tool.m4.
6796 2012-04-10 Doug Evans <dje@google.com>
6798 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6799 (load_partial_dies): Clarify comment.
6800 (find_partial_die): Support rereading type units.
6801 Clarify CU handling, if we know offset is in CU, don't search for the
6802 containing CU. Add comment regarding memory waste.
6804 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6806 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6807 i386/x32-avx and i386/x32-avx-linux.
6808 (i386/x32-expedite): New.
6809 (i386/x32-linux-expedite): Likewise.
6810 (i386/x32-avx-expedite): Likewise.
6811 (i386/x32-avx-linux-expedite): Likewise.
6812 ($(outdir)/i386/x32.dat): Likewise.
6813 ($(outdir)/i386/x32-linux.dat): Likewise.
6814 ($(outdir)/i386/x32-avx.dat): Likewise.
6815 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6817 * features/i386/x32-avx-linux.xml: New file.
6818 * features/i386/x32-avx.xml: Likewise.
6819 * features/i386/x32-core.xml: Likewise.
6820 * features/i386/x32-linux.xml: Likewise.
6821 * features/i386/x32.xml: Likewise.
6823 * features/i386/x32-avx-linux.c: New. Generated.
6824 * features/i386/x32-avx.c: Likewise.
6825 * features/i386/x32-linux.c: Likewise.
6826 * features/i386/x32.c: Likewise.
6827 * regformats/i386/x32-avx-linux.dat: Likewise.
6828 * regformats/i386/x32-avx.dat: Likewise.
6829 * regformats/i386/x32-linux.dat: Likewise.
6830 * regformats/i386/x32.dat: Likewise.
6832 2012-04-10 Tristan Gingold <gingold@adacore.com>
6834 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6835 code to kill the inferior.
6837 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6839 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6841 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6843 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6844 (yyvsp): New defines.
6845 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6847 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6849 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6851 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6853 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6856 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6858 * sparc64-tdep.c (sparc64_store_arguments)
6859 (sparc64_store_arguments): Fix coding style.
6861 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6863 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6864 complex floats, adjust some related comments and tighten a related
6866 (sparc64_extract_return_value): Handle complex floats.
6868 2012-04-07 Doug Evans <dje@google.com>
6870 * dwarf2read.c (load_partial_dies): Change condition to assert.
6872 2012-04-06 Doug Evans <dje@google.com>
6874 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6877 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6879 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6881 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6882 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6885 2012-04-05 Keith Seitz <keiths@redhat.com>
6887 * linespec.c (decode_compound): Remove.
6888 (enum offset_relative_sign): New enum.
6889 (struct line_offset): New struct.
6890 (struct linespec): New struct.
6891 (struct linespec_state): Move file_symtabs,
6892 user_filename, and user_function into struct linespec.
6893 Make result an anonymous struct holding vectors of
6894 symbolp and minsym_and_objfile_d.
6895 Add language member.
6896 (enum ls_token_type): New enum.
6897 (linespec_keywords): New array.
6898 (struct ls_token): New struct.
6899 (struct ls_parser): New struct.
6900 (linespec_lexer_lex_number): New function.
6901 (linespec_lexer_lex_keyword): New function.
6902 (is_ada_operator): New function.
6903 (skip_quote_char): New function.
6904 (copy_token_string): New function.
6905 (is_closing_quote_enclosed): New function.
6906 (find_parameter_list_end): New function.
6907 (linespec_lexer_lex_string): New function.
6908 (linespec_lexer_lex_one): New function.
6909 (linespec_lexer_consume_token): New function.
6910 (linespec_lexer_peek_token): New function.
6911 (cplusplus_error): Remove unused function.
6912 (find_methods): Update comment.
6913 (find_toplevel_char): Return const.
6914 (is_objc_method_format): Remove unused function.
6915 (find_toplevel_string): New function.
6916 (is_linespec_boundary): Remove.
6917 (symbol_not_found_error): New function.
6918 (find_method_overload_end): Remove function.
6919 (unexpected_linespec_error): New function.
6920 (keep_name_info): Remove.
6921 (linespec_parse_line_offset): New function.
6922 (linespec_parse_basic): New function.
6923 (canonicalize_linespec): New function.
6924 (decode_line_internal): Remove.
6925 (create_sals_line_offset): New function adapted from
6927 (convert_linespec_to_sals): New function.
6928 (parse_linespec): New function.
6929 (linespec_parser_new): New function.
6930 (linespec_state_destructor): Change parameter type to
6931 struct linespec_state *.
6932 Add language parameter.
6933 Remove freeing of moved members.
6934 (linespec_parser_delete): New function.
6935 (decode_line_full): Use parse_linespec and linespec_parser_new.
6936 (decode_line_1): Likewise.
6937 (decode_indirect): Rename to ...
6938 (linespec_expression_to_pc): ... this and rewrite
6939 to simply find CORE_ADDR, storing this result for later
6941 (locate_first_half): Remove.
6942 (deocde_objc): Add parameter LS.
6943 Initialize new struct collect_info members.
6944 Handle minimal symbols, too.
6945 (decode_compound): Delete.
6946 (lookup_prefix_sym): Rewrite.
6947 (compare_msymbols): New function.
6948 (find_method): Rewrite.
6949 Do not call cplusplus_error.
6950 (symtabs_from_filename): Rewrite.
6951 (collect_function_symbols): Delete.
6952 (find_function_symbols): Rewrite without ARGPTR-style
6954 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6955 (decode_dollar): Adapted and renamed to ...
6956 (linespec_parse_variable): ... this.
6957 (find_linespec_symbols): New function.
6958 (decode_label): Adapted and renamed to ...
6959 (find_label_symbols): ... this.
6960 (decode_digits_list_mode): Add and use LS argument.
6961 (decode_digits_ordinary): Likewise.
6962 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6963 If in list mode, allow any symbol class. Otherwise, only
6964 permit LOC_BLOCK symbols.
6965 (minsym_found): Update comments.
6966 (search_minsyms_for_name): Do not convert the matching symbol
6967 into a SAL. Simply push the symbol and objfile into the
6969 (decode_variable): Delete. Contents adapted into
6970 find_linespec_symbols.
6972 * cp-support.c (SKIP_SPACE): Remove.
6973 (operator_tokens): Remove unused global.
6974 (cp_validate_operator): Remove.
6975 * cp-support.h (cp_validate_operator): Remove declaration.
6977 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6979 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6980 for TYPE_VPTR_FIELDNO.
6981 * valprint.c (valprint_check_validity): Make it global, move the
6982 function comment ...
6983 * value.h (valprint_check_validity): ... to this new declaration.
6985 2012-04-02 Tristan Gingold <gingold@adacore.com>
6987 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6988 the STATE32 api for i386 state.
6989 (i386_darwin_store_inferior_registers): Likewise.
6991 2012-04-02 Tristan Gingold <gingold@adacore.com>
6993 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6995 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6998 2012-04-02 Tristan Gingold <gingold@adacore.com>
7001 * darwin-nat.c (darwin_execvp): Set binary preference.
7003 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7005 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7007 2012-03-30 Tom Tromey <tromey@redhat.com>
7009 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7010 of TRY_CATCH. Fix error handling.
7011 * python/py-value.c (convert_value_from_python): Move 'old'
7012 declaration to innermost scope.
7014 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7015 Andrey Smirnov <andrew.smirnov@gmail.com>
7017 -Wshadow warning fix.
7018 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7019 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7020 Adjust code accordingly.
7022 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7024 * ada-lang.c (symbol_completion_add): Rename parameter
7025 "encoded" into "encoded_p". Ajust code and documentation
7028 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7029 Andrey Smirnov <andrew.smirnov@gmail.com>
7031 -Wshadow warning fix.
7032 * ada-lang.c (symbol_completion_add): Rename parameter
7033 "wild_match" into wild_match_p. Update code and documentation
7036 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7038 * ada-lang.c (symbol_completion_match): Rename parameter
7039 "encoded" into "encoded_p". Ajust code and documentation
7042 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7043 Andrey Smirnov <andrew.smirnov@gmail.com>
7045 -Wshadow warning fix.
7046 * ada-lang.c (symbol_completion_match): Rename parameter
7047 "wild_match" into "wild_match_p". Adjust code and function
7048 documentation accordingly.
7050 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7051 Andrey Smirnov <andrew.smirnov@gmail.com>
7053 -Wshadow warning fix.
7054 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7055 "symbol_info" into "info". Adjust code accordingly.
7056 (ada_lookup_symbol): Likewise.
7058 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7060 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7061 of this function's documentation.
7063 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7064 Andrey Smirnov <andrew.smirnov@gmail.com>
7066 -Wshadow warning fix.
7067 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7068 variable into "wild_match_p". Adjust code accordingly.
7070 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7071 Andrey Smirnov <andrew.smirnov@gmail.com>
7073 -Wshadow warning fix.
7074 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7075 parameter into "wild_match_p". Adjust code accordingly.
7076 Document this parameter in the function description.
7078 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7079 Andrey Smirnov <andrew.smirnov@gmail.com>
7081 -Wshadow warning fix.
7082 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7083 "wild_match" parameter to "wild_match_p" (-Wshadow).
7085 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7087 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7088 in function documentation.
7090 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7091 Andrey Smirnov <andrew.smirnov@gmail.com>
7093 -Wshadow warning fix.
7094 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7095 variable into wild_match_p. Adjust code accordingly.
7097 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7098 Andrey Smirnov <andrew.smirnov@gmail.com>
7100 * ada-valprint.c (ada_val_print_1): Move the code handling
7101 TYPE_CODE_ENUM inside its own lexical block. Declare
7102 variables len and val there, instead of in the function's
7103 top level block. Avoid declaring deref_val again in a way
7104 that shadows another variable of the same name declared
7105 in one of the up-level blocks. Just re-use the up-level
7108 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7110 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7111 Replace block_found argument by symbol_info. Adjust
7112 implementation accordingly. Add function documentation.
7113 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7115 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7116 * ada-exp.y (write_object_renaming): Adjust to new
7117 ada_lookup_encoded_symbol API.
7119 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7121 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7124 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7126 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7127 (v850_register_name): Add the mpu and fpu register names.
7128 (v850e_register_name): Add the mpu and fpu register names.
7129 (v850e2_register_name): New function.
7130 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7133 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7135 * NEWS: Add entry for Ada varobj support.
7137 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7139 * varobj.c (default_value_is_changeable_p): New function,
7140 extracted from varobj_value_is_changeable_p. Add declaration.
7141 (ada_value_is_changeable_p): New function, extracted from
7142 varobj_value_is_changeable_p. Add declaration.
7143 (struct language_specific): New field "value_is_changeable_p".
7144 (languages): Add entries for new field.
7145 (varobj_create): Set language before calling install_new_value.
7146 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7147 "value_is_changeable_p" language callback.
7149 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7151 * ada-varobj.h, ada-varobj.c: New files.
7152 * Makefile.in (SFILES): Add ada-varobj.c.
7153 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7154 (COMMON_OBS): Add ada-varobj.o.
7156 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7158 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7159 (struct language_specific): New field "value_has_mutated".
7160 (languages): Set field "value_has_mutated" in each entry of array.
7161 (varobj_value_has_mutated): New function.
7162 (varobj_udpdate): Add handling of type mutation.
7163 (value_of_root): Add handling of type mutation.
7164 (ada_value_has_mutated): New function.
7166 2012-03-28 Pedro Alves <palves@redhat.com>
7168 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7169 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7171 2012-03-28 Tom Tromey <tromey@redhat.com>
7173 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7174 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7177 2012-03-28 Tom Tromey <tromey@redhat.com>
7179 * .dir-locals.el: New file.
7181 2012-03-28 Pedro Alves <palves@redhat.com>
7183 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7185 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7187 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7190 2012-03-27 Pedro Alves <palves@redhat.com>
7192 Eliminate struct ui_stream.
7194 * ui-out.h (struct ui_stream): Delete.
7195 (ui_out_field_stream): Adjust prototype.
7196 (ui_out_stream_new, ui_out_stream_delete)
7197 (make_cleanup_ui_out_stream_delete): Delete declarations.
7198 * ui-out.c (ui_out_field_stream): Change prototype to take a
7199 ui_file instead of a ui_stream. Adjust.
7200 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7201 (make_cleanup_ui_out_stream_delete): Delete.
7202 * breakpoint.c (print_breakpoint_location)
7203 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7204 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7205 * disasm.c (dump_insns): Ditto.
7206 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7208 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7209 ui_stream/ui_out_stream_new.
7210 * infcmd.c (print_return_value): Ditto.
7211 * osdata.c (info_osdata_command): Don't allocate a local
7213 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7214 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7215 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7216 allocate a local ui_stream.
7217 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7218 instead of ui_stream/ui_out_stream_new.
7219 (list_args_or_locals): Don't allocate a local ui_stream.
7220 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7221 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7222 ui_stream/ui_out_stream_new.
7223 * cli/cli-setshow.c (do_setshow_command): Ditto.
7225 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7227 * arm-linux-tdep.c (arm_linux_init_abi): Call
7228 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7229 * arm-tdep.c (arm_process_record): New function.
7230 (deallocate_reg_mem): New function.
7231 (decode_insn): New function.
7232 (thumb_record_branch): New function.
7233 (thumb_record_ldm_stm_swi(): New function.
7234 (thumb_record_misc): New function.
7235 (thumb_record_ld_st_stack): New function.
7236 (thumb_record_ld_st_imm_offset): New function.
7237 (thumb_record_ld_st_reg_offset(): New function.
7238 (thumb_record_add_sub_cmp_mov): New function.
7239 (thumb_record_shift_add_sub): New function.
7240 (arm_record_coproc_data_proc): New function.
7241 (arm_record_coproc): New function.
7242 (arm_record_b_bl): New function.
7243 (arm_record_ld_st_multiple): New function.
7244 (arm_record_ld_st_reg_offset): New function.
7245 (arm_record_ld_st_imm_offset): New function.
7246 (arm_record_data_proc_imm): New function.
7247 (arm_record_data_proc_misc_ld_str): New function.
7248 (arm_record_extension_space): New function.
7249 (arm_record_strx): New function.
7250 (sbo_sbz): New function.
7251 (struct insn_decode_record): New structure for arm insn record.
7252 (REG_ALLOC): New macro for reg allocations.
7253 (MEM_ALLOC): New macro for memory allocations.
7254 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7256 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7258 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7259 (store_register): Likewise.
7261 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7263 * MAINTAINERS (Write After Approval): Add myself to the list.
7265 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7267 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7268 Describe also the option "auto".
7270 2012-03-22 Richard Henderson <rth@redhat.com>
7272 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7273 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7275 2012-03-22 Richard Henderson <rth@redhat.com>
7277 * jit.c (jit_read_code_entry): Compute alignment and offset of
7278 int64_t member before computing entry_size.
7280 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7282 Python scripting: Add new method Value.referenced_value to
7283 gdb.Value which can dereference pointer as well as reference
7285 * NEWS: Add entry under 'Python scripting' about the new method
7286 Value.referenced_value on gdb.Value objects.
7287 * python/py-value.c (valpy_referenced_value): New function
7288 defining a new method on gdb.Value objects which can dereference
7289 pointer and reference values.
7291 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7293 * MAINTAINERS (Write After Approval): Add myself to the list.
7295 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7297 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7298 in addition to "main".
7300 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7302 * expression.h (op_name): Add declaration.
7303 * expprint.c (op_name): Remove declaration. Make non-static.
7304 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7306 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7308 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7310 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7311 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7312 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7313 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7314 (linux_nat_get_siginfo): Likewise.
7315 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7316 (linux_nat_get_siginfo): Likewise.
7317 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7318 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7319 * procfs.c (gdb_siginfo_t): Likewise.
7321 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7323 * .gitignore: Ignore more files.
7325 2012-03-20 Pedro Alves <palves@redhat.com>
7327 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7330 2012-03-20 Yao Qi <yao@codesourcery.com>
7332 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7335 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7337 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7338 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7339 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7341 * dwarf2expr.h (cu_offset, sect_offset): New types.
7342 (struct dwarf_expr_context_funcs) <dwarf_call>
7343 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7345 (struct dwarf_expr_context) <len>: Improve the comment.
7346 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7347 cu_offset and sect_offset.
7348 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7349 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7350 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7351 * dwarf2loc.h: Include dwarf2expr.h.
7352 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7354 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7355 Improve the comment.
7356 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7357 (struct signatured_type, struct line_header, struct partial_die_info)
7358 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7359 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7360 (get_die_type_at_offset, create_cus_from_index)
7361 (create_signatured_type_table_from_index, dw2_get_file_names)
7362 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7363 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7364 (create_debug_types_hash_table, process_psymtab_comp_unit)
7365 (load_partial_comp_unit, create_all_comp_units)
7366 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7367 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7368 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7369 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7370 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7371 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7372 (find_partial_die, read_attribute_value, lookup_die_type)
7373 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7374 (is_ref_attr): New function comment.
7375 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7376 Use cu_offset and sect_offset.
7377 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7378 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7379 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7380 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7381 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7382 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7383 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7386 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7389 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7390 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7392 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7394 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7396 * NEWS: Describe new options --init-command=FILE, -ix and
7397 --init-eval-command=COMMAND, -iex.
7398 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7399 CMDARG_INIT_COMMAND.
7400 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7401 "init-command", "init-eval-command", "ix" and "iex" to the variable
7402 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7403 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7404 (print_gdb_help): Describe --init-command=FILE, -ix and
7405 --init-eval-command=COMMAND, -iex.
7407 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7410 * main.c (struct cmdarg): Move it here from main. Add more comments.
7411 (cmdarg_s, VEC (cmdarg_s)): New.
7412 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7413 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7414 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7415 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7418 2012-03-19 Tom Tromey <tromey@redhat.com>
7420 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7422 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7425 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7428 2012-03-16 Chris January <chris.january@allinea.com>
7430 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7433 2012-03-16 Chris January <chris.january@allinea.com>
7435 * source.c (add_path): Use memmove instead of strcpy because the
7438 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7440 * value.h (set_value_parent): Add declaration.
7441 * value.c (set_value_parent): New function.
7442 (value_address): If VALUE->PARENT is not NULL, then use it as
7443 the base address instead of VALUE->LOCATION.address.
7444 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7445 the same as OBJ's address. Adjust V's offset accordingly.
7448 2012-03-16 Gary Benson <gbenson@redhat.com>
7450 PR breakpoints/10738
7451 * dwarf2read.c (use_deprecated_index_sections): New global.
7452 (struct partial_die_info): New member may_be_inlined.
7453 (read_partial_die): Set may_be_inlined where appropriate.
7454 (add_partial_subprogram): Add partial symbols for partial
7455 DIEs that may be inlined.
7456 (new_symbol_full): Add inlined subroutines to the current
7458 (write_psymtabs_to_index): Bump version number.
7459 (dwarf2_read_index): Read only version 6 indices unless
7460 use_deprecated_index_sections is set.
7461 * linespec.c (symbol_and_data_callback): New structure.
7462 (iterate_inline_only): New function.
7463 (iterate_over_all_matching_symtabs): New argument
7464 "include_inline". If nonzero, also call the callback for
7465 symbols representing inlined subroutines.
7466 (lookup_prefix_sym): Pass extra argument to the above.
7467 (find_function_symbols): Likewise.
7468 (add_matching_symbols_to_info): Likewise.
7469 * NEWS: Mention that GDB can now set breakpoints on inlined
7472 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7474 * p-typeprint.c (pascal_type_print_method_args):
7475 Fix display of parameter of methods.
7477 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7479 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7480 Add missing prototype.
7482 2012-03-16 Yao Qi <yao@codesourcery.com>
7483 Jan Kratochvil <jan.kratochvil@redhat.com>
7485 Fix false compilation warning.
7486 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7488 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7489 Pedro Alves <pedro@codesourcery.com>
7491 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7492 (arm_register_g_packet_guesses): New function.
7493 (arm_gdbarch_init): Don't force a target description with
7494 registers when the executable is detected as M-profile. Instead
7495 set gdbarch->tdep->is_m. Register `g' packet guesses.
7496 (_initialize_arm_tdep): Initialize the new target description.
7497 * features/arm-with-m-fpa-layout.xml: New description.
7498 * features/arm-with-m-fpa-layout.c: New, generated.
7500 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7502 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7503 Update function description.
7504 (insert_bp_location): Do not wipe bl->target_info out.
7505 * mem-break.c: #include "gdb_string.h".
7506 (default_memory_insert_breakpoint): Do not call target_read_memory
7507 with a pointer to the breakpoint's shadow_contents buffer. Use
7508 a local buffer instead.
7509 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7511 2012-03-15 Tom Tromey <tromey@redhat.com>
7513 * NEWS: Mention "info vtbl", not "info vtable".
7514 * cp-support.c (info_vtbl_command): Fix comment.
7515 (_initialize_cp_support): Fix text.
7517 2012-03-15 Tom Tromey <tromey@redhat.com>
7519 * cp-valprint.c (cp_print_value_fields): Use
7520 print_function_pointer_address for vtable slot.
7522 2012-03-15 Tom Tromey <tromey@redhat.com>
7524 * gnu-v3-abi.c (struct value_and_voffset): New.
7525 (hash_value_and_voffset, eq_value_and_voffset)
7526 (compare_value_and_voffset, compute_vtable_size)
7527 (print_one_vtable, gnuv3_print_vtable): New functions.
7528 (init_gnuv3_ops): Initialize 'print_vtable' field.
7529 * cp-support.c (info_vtbl_command): New function.
7530 (_initialize_cp_support): Add "info vtbl".
7531 * cp-abi.h (cplus_print_vtable): Declare.
7532 (struct cp_abi_ops) <print_vtable>: New field.
7533 * cp-abi.c (cplus_print_vtable): New function.
7536 2012-03-15 Tom Tromey <tromey@redhat.com>
7538 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7539 iterate_over_symbols.
7541 2012-03-14 Doug Evans <dje@google.com>
7543 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7544 DW_OP_GNU_parameter_ref.
7546 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7548 Fix double prompt of 'interpreter-exec mi'.
7549 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7550 (mi_interpreter_resume): use it.
7551 (mi_execute_command_input_handler): New function.
7552 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7553 mi_execute_command_input_handler.
7555 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7557 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7559 (darwin_debug_port_info): Make static.
7560 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7561 * machoread.c (_initialize_machoread): Add prototype.
7562 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7563 (i386_darwin_set_control, i386_darwin_get_control)
7564 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7565 i386_darwin_get_status, i386_darwin_get_control):
7566 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7568 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7570 * ax-gdb.c (gen_usual_unary): Remove special handling of
7571 enum and bool types.
7573 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7575 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7577 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7579 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7581 2012-03-13 Chris January <chris.january@allinea.com>
7583 * aix-thread.c (fill_sprs): Store the floating point registers
7584 at the correct offsets into vals.
7586 2012-03-13 Doug Evans <dje@google.com>
7588 * NEWS: Mention symbol-reloading has been deleted.
7589 * symfile.c (symbol_reloading): Delete.
7590 (show_symbol_reloading): Delete.
7591 (_initialize_symfile): Delete set/show symbol-reloading.
7593 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7594 read_in_chain until we have successfully read it in.
7595 (load_full_comp_unit): Ditto.
7596 (read_signatured_type): Add comment.
7598 2012-03-13 Chris January <chris.january@allinea.com>
7600 * stabsread.c (fix_common_block): Change type of valu argument
7603 2012-03-13 Chris January <chris.january@allinea.com>
7605 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7608 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7610 * common/linux-procfs.c (linux_proc_get_int): New, from
7611 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7613 (linux_proc_get_tgid): Only call linux_proc_get_int.
7614 (linux_proc_get_tracerpid): New.
7615 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7616 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7617 linux_proc_pid_has_state.
7618 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7619 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7620 (linux_ptrace_attach_warnings): New.
7621 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7623 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7624 (linux_nat_attach): New variables ex, buffer, message and message_s.
7625 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7627 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7629 * Makefile.in (linux-ptrace.o): New.
7630 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7632 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7633 * common/linux-ptrace.c: New file.
7634 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7635 * config/arm/linux.mh: Likewise.
7636 * config/i386/linux.mh: Likewise.
7637 * config/i386/linux64.mh: Likewise.
7638 * config/ia64/linux.mh: Likewise.
7639 * config/m32r/linux.mh: Likewise.
7640 * config/m68k/linux.mh: Likewise.
7641 * config/mips/linux.mh: Likewise.
7642 * config/pa/linux.mh: Likewise.
7643 * config/powerpc/linux.mh: Likewise.
7644 * config/powerpc/ppc64-linux.mh: Likewise.
7645 * config/powerpc/spu-linux.mh: Likewise.
7646 * config/s390/s390.mh: Likewise.
7647 * config/sparc/linux.mh: Likewise.
7648 * config/sparc/linux64.mh: Likewise.
7649 * config/xtensa/linux.mh: Likewise.
7650 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7651 common/linux-procfs.c.
7652 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7654 2012-03-13 Hui Zhu <teawater@gmail.com>
7655 Pedro Alves <palves@redhat.com>
7657 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7658 CREATE_BREAKPOINT_FLAGS_INSERTED.
7659 (create_breakpoint_sal, create_breakpoints_sal)
7660 (base_breakpoint_create_breakpoints_sal)
7661 (tracepoint_create_breakpoints_sal)
7662 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7664 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7665 (ftrace_command, strace_command): Adjust.
7666 (create_tracepoint_from_upload): Pass
7667 CREATE_BREAKPOINT_FLAGS_INSERTED.
7668 * breakpoint.h (enum breakpoint_create_flags): New.
7669 (create_breakpoint): New flags parameter.
7670 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7671 * python/py-breakpoint.c (bppy_init): Adjust.
7672 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7673 * spu-tdep.c (spu_catch_start): Adjust.
7675 2012-03-13 Pedro Alves <palves@redhat.com>
7676 Hui Zhu <teawater@gmail.com>
7677 Yao Qi <yao@codesourcery.com>
7679 * remote.c (struct remote_state): New field `starting_up'.
7680 (remote_start_remote): Set and clear it.
7681 (remote_can_download_tracepoint): If starting up, return false.
7683 2012-03-13 Yao Qi <yao@codesourcery.com>
7685 * inferior.h (struct inferior): Remove fields any_syscall_count,
7686 syscalls_counts and total_syscalls_count. Move them to new
7687 struct catch_syscall_inferior_data in breakpoint.c.
7688 * breakpoint.c: Call DEF_VEC_I(int).
7689 (struct catch_syscall_inferior_data): New.
7690 (get_catch_syscall_inferior_data): New.
7691 (catch_syscall_inferior_data_cleanup): New.
7692 (insert_catch_syscall): Update to access data in
7693 struct catch_syscall_inferior_data.
7694 (insert_catch_syscall): Likewise.
7695 (remove_catch_syscall): Likewise.
7696 (remove_catch_syscall): Likewise.
7697 (is_syscall_catchpoint_enabled): Likewise.
7698 (add_catch_command): Likewise.
7699 (_initialize_breakpoint): Register cleanup.
7700 * breakpoint.h: Removed DEF_VEC_I(int).
7701 * dwarf2loc.c: Call DEF_VEC_I(int).
7702 * mi/mi-main.c: Likewise.
7704 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7706 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7708 2012-03-12 Chris January <chris.january@allinea.com>
7710 * aix-thread.c (_initialize_aix_thread): Add prototype.
7711 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7712 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7714 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7716 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7717 include of "amd64-nat.h".
7719 2012-03-12 Tom Tromey <tromey@redhat.com>
7721 * buildsym.c (record_pending_block): Now static.
7722 * buildsym.h: (record_pending_block): Remove.
7724 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7726 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7728 2012-03-09 Tom Tromey <tromey@redhat.com>
7730 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7731 producer_is_gxx_lt_4_6>: New fields.
7732 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7734 2012-03-09 Tom Tromey <tromey@redhat.com>
7736 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7738 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7740 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7743 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7745 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7747 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7749 Fix -Wmissing-prototypes build.
7750 * arm-linux-nat.c (get_thread_id): Make it static.
7751 * xtensa-linux-nat.c (get_thread_id): Likewise.
7753 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7755 * server.c (process_point_options): If a conditional expression
7756 is found, only print a message if remote_debug is nonzero.
7758 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7760 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7761 of internal error for unknown/unsupported types.
7763 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7765 Fix CU relative vs. absolute DIE offsets.
7766 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7767 offset to offset_in_cu.
7768 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7770 (dwarf2_fetch_die_location_block): Rename parameter offset to
7771 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7773 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7775 * libunwind-frame.c: Rename to ...
7776 * ia64-libunwind-tdep.c: ... here.
7777 * libunwind-frame.h: Rename to ...
7778 * ia64-libunwind-tdep.h: ... here.
7779 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7780 ia64-libunwind-tdep.h.
7781 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7782 * README (--with-libunwind): Rename to ...
7783 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7784 * config.in: Regenerate.
7785 * configure: Regenerate.
7786 * configure.ac: New option --with-libunwind-ia64, make the
7787 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7788 Remove AC_DEFINE for HAVE_LIBUNWIND.
7789 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7790 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7791 Rename libunwind-frame in the general comment.
7792 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7793 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7794 Move forward declarations inside #ifndef. Rename libunwind-frame in
7795 the general comment.
7796 * ia64-tdep.c: Rename libunwind-frame.h #include to
7797 ia64-libunwind-tdep.h.
7798 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7799 (ia64_libunwind_descr): Rename libunwind-frame to
7800 ia64-libunwind-tdep in these function comments.
7801 * ia64-tdep.h: Rename libunwind-frame.h #include to
7802 ia64-libunwind-tdep.h.
7803 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7804 ia64-libunwind-tdep in that data comment.
7806 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7808 * libunwind-frame.h (struct frame_unwind): New declaration.
7810 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7812 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7813 "set breakpoint condition-evaluation" command.
7815 2012-03-08 Tristan Gingold <gingold@adacore.com>
7817 * sparc-stub.c: Move to stubs/
7818 * sh-stub.c: Likewise.
7819 * m68k-stub.c: Likewise.
7820 * m32r-stub.c: Likewise.
7821 * i386-stub.c: Likewise.
7823 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7825 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7826 linux_get_siginfo_type.
7828 * m68klinux-nat.c: Include "gdb_proc_service.h".
7829 (PTRACE_GET_THREAD_AREA): Define.
7830 (ps_get_thread_area): New function.
7832 2012-03-08 Yao Qi <yao@codesourcery.com>
7834 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7836 (remote_query_attached): Likewise.
7837 (remote_static_tracepoint_marker_at): Likewise.
7838 (remote_set_permissions): Likewise.
7839 (remote_detach_1, extended_remote_attach_1): Likewise.
7840 (send_g_packet, remote_vkill): Likewise.
7841 (extended_remote_disable_randomization): Likewise.
7842 (remote_add_target_side_condition): Likewise.
7843 (remote_insert_breakpoint): Likewise.
7844 (remote_remove_breakpoint): Likewise.
7845 (remote_insert_watchpoint): Likewise.
7846 (remote_remove_watchpoint): Likewise.
7847 (remote_insert_hw_breakpoint): Likewise.
7848 (remote_insert_hw_breakpoint): Likewise.
7849 (remote_remove_hw_breakpoint): Likewise.
7850 (remote_download_command_source): Likewise.
7851 (remote_download_tracepoint): Likewise.
7852 (remote_download_trace_state_variable): Likewise.
7853 (remote_disable_tracepoint): Likewise.
7854 (remote_trace_set_readonly_regions): Likewise.
7855 (remote_get_tracepoint_status): Likewise.
7856 (remote_trace_find): Likewise.
7857 (remote_get_trace_state_variable_value): Likewise.
7858 (remote_set_disconnected_tracing): Likewise.
7859 (remote_set_circular_trace_buffer): Likewise.
7860 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7861 (remote_use_agent): Likewise.
7862 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7865 2012-03-07 Pedro Alves <palves@redhat.com>
7867 * NEWS: Mention QProgramSignals.
7868 * inferior.h (update_signals_program_target): Declare.
7869 * infrun.c: (update_signals_program_target): New.
7870 (handle_command): Update the target of the new program signals
7872 * remote.c (PACKET_QProgramSignals): New enum.
7873 (last_program_signals_packet): New global.
7874 (remote_program_signals): New.
7875 (remote_start_remote): Update the target with the program signals
7877 (remote_protocol_features): Add entry for QPassSignals.
7878 (remote_open_1): Free anc clear last_program_signals_packet.
7879 (init_remote_ops): Install remote_program_signals.
7880 * target.c (update_current_target): Adjust.
7881 (target_program_signals): New.
7882 * target.h (struct target_ops) <to_program_signals>: New field.
7883 (target_program_signals): Declare.
7885 2012-03-07 Pedro Alves <palves@redhat.com>
7887 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7890 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7892 * m68klinux-nat.c (getregs_supplies): Make static.
7893 (getfpregs_supplies): Likewise.
7894 (have_ptrace_getregs): Likewise.
7896 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7898 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7899 in call to get_die_type_at_offset.
7901 2012-03-06 Stan Shebs <stan@codesourcery.com>
7903 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7904 * mi/mi-cmd-disas.c: Ditto.
7905 * mi/mi-cmd-env.c: Ditto.
7906 * mi/mi-cmd-file.c: Ditto.
7907 * mi/mi-cmd-stack.c: Ditto.
7908 * mi/mi-cmd-target.c: Ditto.
7909 * mi/mi-cmd-var.c: Ditto.
7910 * mi/mi-cmds.c: Ditto.
7911 * mi/mi-cmds.h: Ditto.
7912 * mi/mi-console.c: Ditto.
7913 * mi/mi-getopt.c: Ditto.
7914 * mi/mi-getopt.h: Ditto.
7915 * mi/mi-interp.c: Ditto.
7916 * mi/mi-main.c: Ditto.
7917 * mi/mi-out.c: Ditto.
7918 * mi/mi-parse.c: Ditto.
7919 * mi/mi-parse.h: Ditto.
7920 * mi/mi-symbol-cmds.c: Ditto.
7922 * mi/mi-getopt.h: Move mi_opt struct up.
7923 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7925 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7927 2012-03-06 Tom Tromey <tromey@redhat.com>
7929 * proc-service.c (ps_pglobal_lookup): Set the current program
7932 2012-03-06 Pedro Alves <palves@redhat.com>
7934 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7936 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7938 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7940 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7943 * common/linux-osdata.c (linux_common_core_of_thread): New function
7945 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7946 call by linux_common_core_of_thread.
7947 (linux_nat_core_of_thread_1): Remove.
7948 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7949 * linux-thread-db.c: Include linux-osdata.h.
7950 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7951 linux_common_core_of_thread.
7953 2012-03-05 Tom Tromey <tromey@redhat.com>
7955 * value.c (value_primitive_field): Don't fetch contents for
7958 2012-03-05 Tom Tromey <tromey@redhat.com>
7960 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7962 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7964 * s390-nat.c: Include "gregset.h".
7966 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7968 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7969 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7970 (libunwind_load): New variable so_error, use it for dlerror. Try to
7971 load also LIBUNWIND_SO_7.
7973 2012-03-05 Pedro Alves <palves@redhat.com>
7975 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7976 is not NULL, and remove resulting dead code.
7978 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7980 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7981 prologue to sh_analyze_prologue.
7982 (sh_analyze_prologue): Make better use of such an upper limit, and
7983 generally be more cautious about accessing memory.
7985 2012-03-05 Tom Tromey <tromey@redhat.com>
7987 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7988 _initialize_ia64_hpux_tdep.
7990 2012-03-05 Pedro Alves <palves@redhat.com>
7994 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7995 the register state is clear, supply explicit zero, instead of
7996 marking the register unavailable.
7998 2012-03-05 Tristan Gingold <gingold@adacore.com>
8000 * NEWS: Mention OpenVMS ia64 new target.
8002 2012-03-05 Tristan Gingold <gingold@adacore.com>
8004 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8005 (ia64_unw_accessors, ia64_unw_rse_accessors)
8006 (ia64_libunwind_descr): Declare.
8007 * ia64-vms-tdep.c: New file.
8008 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8009 (ia64_libunwind_descr): Make them public.
8010 * configure.tgt: Add ia64-*-*vms*.
8011 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8012 (ALLDEPFILES): Add ia64-vms-tdep.c
8014 2012-03-05 Tristan Gingold <gingold@adacore.com>
8016 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8017 * remote.c (PACKET_qXfer_uib): New enum value.
8018 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8019 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8020 (_initialize_remote): Call add_packet_config_cmd for
8023 2012-03-05 Tristan Gingold <gingold@adacore.com>
8025 * osabi.c (gdb_osabi_names): Add OpenVMS.
8026 (generic_elf_osabi_sniffer): Likewise.
8027 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8029 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8031 Removed unused code.
8032 * libunwind-frame.c (libunwind_frame_unwind)
8033 (libunwind_frame_base_address): Remove.
8034 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8036 2012-03-04 Yao Qi <yao@codesourcery.com>
8038 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8039 remove trailing new line.
8040 (agent_run_command, agent_run_command): Add _ markup.
8041 (agent_capability_check): Likewise.
8043 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8045 * breakpoint.c (set_condition_evaluation_mode): Set
8046 CONDITION_EVALUATION_MODE unconditionally.
8048 2012-03-03 Yao Qi <yao@codesourcery.com>
8050 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8051 * common/agent.h: Update declaration.
8052 * inf-child.c (inf_child_use_agent): New.
8053 (inf_child_can_use_agent): New.
8054 (inf_child_target): Initialize fields `to_use_agent'
8055 and `to_can_use_agent'.
8056 * agent.c (agent_new_objfile): New.
8057 (_initialize_agent): Add agent_new_objfile to new_objfile
8060 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8062 (linux_target_install_ops): Initialize field
8063 `to_static_tracepoint_markers_by_strid'.
8064 * remote.c (free_current_marker): Move it to ...
8065 * tracepoint.c (free_current_marker): ... here. New.
8066 (cleanup_target_stop): New.
8067 * tracepoint.h: Declare free_current_marker.
8068 * NEWS: Add one entry about `info static-tracepoint-marker'.
8070 2012-03-03 Yao Qi <yao@codesourcery.com>
8072 * common/agent.c (agent_loaded_p): New.
8073 (agent_look_up_symbols): New global.
8074 * common/agent.h: Declare agent_loaded_p.
8076 2012-03-03 Yao Qi <yao@codesourcery.com>
8078 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8079 (agent_capability_check, agent_capability_invalidate): New.
8080 (symbol_list): New array element.
8081 * common/agent.h (enum agent_capa): New.
8082 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8084 2012-03-03 Yao Qi <yao@codesourcery.com>
8086 * target.h (struct target_ops) <to_use_agent>: New field.
8087 (struct target_ops) <to_can_use_agent>: New field.
8088 (target_use_agent, target_can_use_agent): New macro.
8089 * target.c (update_current_target): Update.
8090 * remote.c: New enum `PACKET_QAgent'.
8091 (remote_protocol_features): Add a new element.
8092 (remote_use_agent, remote_can_use_agent): New.
8093 (init_remote_ops): Initialize field `can_use_agent' with
8094 remote_can_use_agent. Intiailize field `use_agent' with
8096 * common/agent.c (use_agent): New global.
8097 * common/agent.h: Declare it.
8098 * tracepoint.c (info_static_tracepoint_markers_command): Add
8100 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8101 (COMMON_OBS): Add common/agent.o and agent.o
8102 (common-agent.o): New rule.
8105 2012-03-03 Yao Qi <yao@codesourcery.com>
8107 * common/agent.c: New.
8108 * common/agent.h: New.
8109 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8111 * configure, configh.in: Regenerated.
8113 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8115 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8116 unless it exists for this architecture.
8118 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8120 * language.h (struct language_defn): New "method" la_read_var_value.
8121 * findvar.c: #include "language.h".
8122 (default_read_var_value): Renames read_var_value. Rewrite
8123 function description.
8124 (read_var_value): New function.
8125 * value.h (default_read_var_value): Add prototype.
8126 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8128 (ada_language_defn): Add entry for la_read_var_value.
8129 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8130 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8131 language_defn structures to add entry for new la_read_var_value
8134 2012-03-02 Tom Tromey <tromey@redhat.com>
8135 Pedro Alves <palves@redhat.com>
8137 PR breakpoints/13776:
8138 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8140 (delete_longjmp_breakpoint_at_next_stop): New.
8141 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8142 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8143 before deleting the inferior. Add comments.
8144 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8145 breakpoints immediately, but only on next stop. Move that code
8146 next to where we mark other breakpoints for deletion.
8148 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8150 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8152 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8155 2012-03-02 Pedro Alves <palves@redhat.com>
8157 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8159 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8161 Fix -Wmissing-prototypes build.
8162 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8163 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8164 (gdbsim_has_memory): Likewise.
8166 2012-03-02 Yao Qi <yao@codesourcery.com>
8168 Fix -Wmissing-prototypes build.
8169 * charset.c (phony_iconv_open): Make static.
8170 (phony_iconv_close, phony_iconv): Likewise.
8171 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8172 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8174 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8175 * ser-mingw.c (create_select_thread): Make static.
8176 * windows-termcap.c (tgetent): New prototype.
8177 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8179 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8181 Fix -Wmissing-prototypes build.
8182 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8183 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8184 (_initialize_loadable): New prototypes.
8186 2012-03-02 Doug Evans <dje@google.com>
8188 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8189 abbrev table, read_comp_unit will do it.
8191 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8193 Fix -Wmissing-prototypes build.
8194 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8195 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8196 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8197 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8198 (_initialize_arm_symbian_tdep): New prototype.
8199 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8200 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8201 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8203 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8204 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8206 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8207 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8208 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8210 * moxie-tdep.c (moxie_process_record): Likewise.
8211 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8212 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8213 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8214 (_initialize_rl78_tdep): New prototype.
8215 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8216 (_initialize_rx_tdep): New prototype.
8217 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8218 (_initialize_darwin_solib): New prototype.
8219 * solib-spu.c: Include solib-spu.h.
8220 (_initialize_spu_solib): New prototype.
8221 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8222 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8223 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8224 (tic6x_software_single_step): Make it static.
8225 (_initialize_tic6x_tdep): New prototype.
8227 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8229 Fix -Wmissing-prototypes build.
8230 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8231 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8233 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8235 Fix -Wmissing-prototypes build.
8236 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8237 (frv_have_stopped_data_address): Remove.
8239 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8241 Fix -Wmissing-prototypes build.
8242 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8243 * sh-tdep.c: Include sh64-tdep.h.
8244 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8245 * sh64-tdep.c: Include sh64-tdep.h.
8246 * sh64-tdep.h: New file.
8248 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8250 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8252 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8254 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8255 sp_regnum once the gdbarch_init_osabi hook has been called.
8257 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8259 * mips-tdep.c (mips32_bc1_pc): New function.
8260 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8261 BPOSGE32 and BPOSGE64 instructions.
8262 (deal_with_atomic_sequence): Likewise.
8263 (mips32_instruction_has_delay_slot): Likewise.
8265 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8266 Chris Dearman <chris@mips.com>
8267 Maciej W. Rozycki <macro@codesourcery.com>
8268 Joseph Myers <joseph@codesourcery.com>
8270 * features/mips-dsp.xml: New file.
8271 * features/mips64-dsp.xml: New file.
8272 * features/mips-dsp-linux.xml: New file.
8273 * features/mips64-dsp-linux.xml: New file.
8274 * features/Makefile (WHICH): Add mips-dsp-linux and
8276 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8277 * features/mips-dsp-linux.c: New file.
8278 * features/mips64-dsp-linux.c: New file.
8279 * regformats/mips-dsp-linux.dat: New file.
8280 * regformats/mips64-dsp-linux.dat: New file.
8281 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8283 (mips64_linux_register_addr): Likewise.
8284 (mips64_linux_regsets_fetch_registers): Likewise.
8285 (mips64_linux_regsets_store_registers): Likewise.
8286 (mips64_linux_fetch_registers): Update call to
8287 mips64_linux_regsets_fetch_registers.
8288 (mips64_linux_store_registers): Update call to
8289 mips64_linux_regsets_store_registers.
8290 (mips_linux_read_description): Probe for DSP registers.
8291 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8292 and initialize_tdesc_mips64_dsp_linux.
8293 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8294 Remove padding of no longer used embedded register slots.
8295 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8296 (MIPS_RESTART_REGNUM): Redefine enum value.
8297 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8299 (mips_tx39_reg_names): Likewise.
8300 (mips_linux_reg_names): New array of register names for Linux
8302 (mips_register_name): Check for a null pointer in
8303 mips_processor_reg_names and return an empty string.
8304 (mips_register_type): Exclude embedded registers for the IRIX
8306 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8307 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8309 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8310 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8311 (mips_gdbarch_init): Likewise. Initialize internal register
8312 indices for the Linux ABI. Use dynamic numbers to refer to
8313 registers, as applicable, while parsing the target description.
8314 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8316 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8318 * frame.h (read_frame_register_unsigned): Fix typo in function
8321 2012-03-01 Pedro Alves <palves@redhat.com>
8323 * jit-reader.in [!__cplusplus]
8324 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8326 2012-03-01 Pedro Alves <palves@redhat.com>
8328 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8329 * configure: Regenerate.
8331 2012-03-01 Pedro Alves <palves@redhat.com>
8333 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8334 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8335 (ftrace_command, strace_command): Make static.
8336 * d-lang.c (_initialize_d_language): Declare.
8337 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8338 * dwarf2loc.c (_initialize_dwarf2loc):
8339 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8340 * exec.c (exec_get_section_table): Make static.
8341 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8342 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8343 * inferior.c (remove_inferior_command, add_inferior_command)
8344 (clone_inferior_command): Make static.
8345 * linux-nat.c (linux_nat_thread_address_space)
8346 (linux_nat_core_of_thread): Make static.
8347 * linux-tdep.c (_initialize_linux_tdep): Declare.
8348 * objc-lang.c (_initialize_objc_lang): Declare.
8349 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8351 (_initialize_opencl_language): Declare.
8352 * record.c (_initialize_record): Declare.
8353 * remote.c (demand_private_info, remote_get_tib_address)
8354 (remote_supports_cond_tracepoints)
8355 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8357 * skip.c (_initialize_step_skip): Declare.
8358 * symtab.c (skip_prologue_using_lineinfo): Make static.
8359 * tracepoint.c (delete_trace_state_variable)
8360 (trace_variable_command, delete_trace_variable_command)
8361 (get_uploaded_tsv, find_matching_tracepoint_location)
8362 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8364 * value.c (pack_unsigned_long): Make static.
8365 * varobj.c (varobj_ensure_python_env): Make static.
8366 * windows-tdep.c (_initialize_windows_tdep): Declare.
8367 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8369 2012-03-01 Pedro Alves <palves@redhat.com>
8371 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8373 (linux_init_abi): Install it as has_shared_address_space gdbarch
8376 2012-03-01 Pedro Alves <palves@redhat.com>
8378 * observer.c (observer_test_first_notification_function)
8379 (observer_test_second_notification_function)
8380 (observer_test_third_notification_function): Add declarations.
8382 2012-03-01 Pedro Alves <palves@redhat.com>
8384 * common/signals.c (default_target_signal_to_host)
8385 (default_target_signal_from_host): Move ...
8386 * arch-utils.c: ... here.
8387 * arch-utils.h (default_target_signal_to_host)
8388 (default_target_signal_from_host): Declare.
8390 * common/signals.c (target_signal_from_command): Move ...
8391 * infrun.c: ... here.
8392 * inferior.h (target_signal_from_command): Declare.
8393 * target.h (target_signal_from_command)
8394 (default_target_signal_from_host, default_target_signal_to_host):
8395 Delete declarations.
8397 * common/signals.c (_initialize_signals): Delete.
8399 2012-03-01 Pedro Alves <palves@redhat.com>
8401 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8402 both __cplusplus and !__cplusplus.
8404 2012-03-01 Pedro Alves <palves@redhat.com>
8406 * psymtab.c (find_and_open_source): Delete declaration.
8407 * source.c (find_and_open_source): Move comment ...
8408 * source.h (find_and_open_source): ... to this new declaration.
8410 2012-03-01 Pedro Alves <palves@redhat.com>
8412 * inline-frame.c: Include inline-frame.h.
8414 2012-03-01 Pedro Alves <palves@redhat.com>
8416 * tui/tui-data.c (set_gen_win_origin): Delete.
8417 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8418 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8420 2012-03-01 Pedro Alves <palves@redhat.com>
8422 * remote.c (encode_actions): Delete declaration.
8423 * tracepoint.c (encode_actions): Make extern.
8424 * tracepoint.h (encode_actions): Declare.
8426 2012-03-01 Pedro Alves <palves@redhat.com>
8428 * python/py-breakpoint.c: Include python.h.
8429 * python/py-continueevent.c (create_continue_event_object): Make
8431 * python/py-lazy-string.c (stpy_get_type): Make static.
8432 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8434 * python/py-utils.c (unicode_to_target_python_string): Make
8436 * python/py-value.c: Include python.h.
8438 2012-03-01 Pedro Alves <palves@redhat.com>
8440 * inferior.c (delete_threads_of_inferior): Delete.
8442 2012-03-01 Pedro Alves <palves@redhat.com>
8444 Import fallback definitions from glibc.
8446 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8447 ps_prochandle): Forward declare.
8448 (ps_err_e): Use glibc's comments.
8449 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8450 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8451 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8452 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8453 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8454 (struct ps_prochandle): Adjust comment.
8456 2012-03-01 Pedro Alves <palves@redhat.com>
8458 * ada-lang.c (ada_modulus_from_name): Delete.
8459 * ada-lex.l (lexer_init): Make static.
8461 2012-03-01 Pedro Alves <palves@redhat.com>
8465 * frame.c (read_frame_register_unsigned): New.
8466 * frame.h (read_frame_register_unsigned): Declare.
8467 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8469 (print_i387_control_word): New parameter `control_p'. Handle it.
8470 (i387_print_float_info): Handle unavailable float registers.
8472 2012-03-01 Keith Seitz <keiths@redhat.com>
8474 * linespec.c (decode_line_2): Sort the list of methods
8475 alphabetically before presenting the user with a selection
8478 2012-03-01 Doug Evans <dje@google.com>
8480 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8482 (dwarf2_read_abbrevs): Remove corresponding initialization.
8484 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8486 * NEWS: Mention new python command class gdb.COMMAND_USER.
8487 * cli/cli-cmds.c (show_user): Print error when used on a python
8489 (init_cli_cmds): Update documentation strings for "show user" and
8490 "set/show max-user-call-depth" to clarify that it does not apply to
8492 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8494 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8496 * top.c (execute_command): Only execute a user-defined command as a
8497 legacy macro if c->user_commands is set.
8499 2012-03-01 Tom Tromey <tromey@redhat.com>
8501 * valprint.h (struct generic_val_print_decorations): New.
8502 (generic_val_print): Declare.
8503 * valprint.c (generic_val_print): New function.
8504 * p-valprint.c (p_decorations): New global.
8505 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8506 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8507 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8508 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8509 * m2-valprint.c (m2_decorations): New global.
8510 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8511 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8512 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8513 TYPE_CODE_ERROR>: Call generic_val_print.
8514 * f-valprint.c (f_decorations): New global.
8515 (f_val_print): Use print_function_pointer_address.
8516 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8517 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8518 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8520 * c-valprint.c (c_decorations): New global.
8521 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8522 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8523 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8524 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8525 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8526 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8529 2012-03-01 Tom Tromey <tromey@redhat.com>
8531 * valprint.c (val_print): Update.
8532 * p-valprint (pascal_val_print): Return void.
8533 * p-lang.h (pascal_val_print): Return void.
8534 * m2-valprint.c (m2_val_print): Return void.
8535 * m2-lang.h (m2_val_print): Return void.
8536 * language.h (struct language_defn) <la_val_print>: Return void.
8537 * language.c (unk_lang_val_print): Return void.
8538 * jv-valprint.c (java_val_print): Return void.
8539 * jv-lang.h (java_val_print): Return void.
8540 * f-valprint.c (f_val_print): Return void.
8541 * f-lang.h (f_val_print): Return void.
8542 * d-valprint.c (d_val_print): Return void.
8543 (dynamic_array_type): Update.
8544 * d-lang.h (d_val_print): Return void.
8545 * c-valprint.c (c_val_print): Return void.
8546 * c-lang.h (c_val_print): Return void.
8547 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8549 * ada-lang.h (ada_val_print): Return void.
8551 2012-03-01 Tom Tromey <tromey@redhat.com>
8553 * value.h (val_print): Return void.
8554 * valprint.c (val_print): Return void.
8556 2012-03-01 Tom Tromey <tromey@redhat.com>
8558 * value.h (common_val_print): Return void.
8559 * valprint.c (common_val_print): Return void.
8561 2012-03-01 Tom Tromey <tromey@redhat.com>
8563 * value.h (value_print): Return void.
8564 * valprint.c (value_print): Return void.
8565 * p-valprint.c (pascal_value_print): Return void.
8566 * p-lang.h (pascal_value_print): Return void.
8567 * language.h (struct language_defn) <la_value_print>: Return
8569 * language.c (unk_lang_value_print): Return void.
8570 * jv-valprint.c (java_value_print): Return void.
8571 * jv-lang.h (java_value_print): Return void.
8572 * f-valprint.c (c_value_print): Don't declare.
8574 * c-valprint.c (c_value_print): Return void.
8575 * c-lang.h (c_value_print): Return void.
8576 * ada-valprint.c (ada_value_print): Return void.
8577 * ada-lang.h (ada_value_print): Return void.
8579 2012-03-01 Tom Tromey <tromey@redhat.com>
8581 * value.c (value_primitive_field): Handle virtual base classes.
8583 2012-03-01 Tom Tromey <tromey@redhat.com>
8585 * gdbtypes.h (struct vbase): Remove.
8587 2012-03-01 Tom Tromey <tromey@redhat.com>
8589 * c-valprint.c (print_function_pointer_address): Move...
8590 * valprint.c: ... here. Make non-static.
8591 * m2-valprint.c (print_function_pointer_address): Remove.
8592 * valprint.h (print_function_pointer_address): Declare.
8594 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8596 * NEWS: Document the fact that one can provide a condition when
8597 creating an Ada exception catchpoint.
8599 2012-03-01 Tom Tromey <tromey@redhat.com>
8601 * valprint.c (val_print_type_code_flags): Fix placement of
8604 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8606 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8607 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8608 environment variable before calling update-copyright.
8610 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8612 * gnulib/extra/update-copyright: Update to the latest from
8613 gnulib's git repository.
8614 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8615 variable to 2 instead of 1.
8617 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8619 * varobj.c (c_value_of_variable): Remove dead code.
8621 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8623 * ada-lex.p (processId): Do not modify already encoded IDs.
8624 Update function documentation.
8626 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8628 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8629 "name" with "struct symbol *name_sym".
8630 * ada-exp.y (write_var_or_type): Update call to
8631 ada_find_renaming_symbol.
8632 "name" with "struct symbol *name_sym". Adjust Implementation
8633 accordingly. Adjust the function documentation.
8635 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8637 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8638 * ada-lang.c (ada_find_any_type): Add advance declaration.
8639 Make static. Replace ada_find_any_symbol by
8640 ada_find_any_type_symbol.
8641 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8642 Improve function description. Make static.
8643 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8644 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8646 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8648 * ada-lang.c (struct tag_args): Delete.
8649 (ada_get_tsd_type): Function body moved up in source file.
8650 (ada_tag_name_1, ada_tag_name_2): Delete.
8651 (ada_get_tsd_from_tag): New function.
8652 (ada_tag_name_from_tsd): New function.
8653 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8654 to determine the tag name.
8656 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8658 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8660 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8663 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8665 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8667 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8669 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8672 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8674 * ada-lang.c (constrained_packed_array_type): If there is a
8675 parallel XA type, use it to determine the array index type.
8677 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8679 * ada-valprint.c (ada_val_print_1): If our value is a reference
8680 to an array descriptor, dereference it before converting it
8683 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8685 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8686 creating fixed value.
8687 (ada_value_ind, ada_coerce_ref, assign_component)
8688 (ada_evaluate_subexp): Remove call to unwrap_value before
8689 call to ada_to_fixed_value.
8691 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8693 * ada-lang.c (to_fixed_array_type): Set result's type name.
8695 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8697 * ada-lang.c (catch_ada_exception_command_split): Add new
8698 argument cond_string. Add support for condition at end of
8699 "catch exception" commands.
8700 (ada_decode_exception_location): Add new argument cond_string.
8701 Update call to catch_ada_exception_command_split.
8702 (create_ada_exception_catchpoint): Add new argument cond_string.
8703 Set the breakpoint condition if needed.
8704 (catch_ada_exception_command): Update call to
8705 ada_decode_exception_location.
8706 (ada_decode_assert_location): Add function documentation.
8707 Add support for condition at end of "catch assert" command.
8708 (catch_assert_command): Update calls to ada_decode_assert_location
8709 and create_ada_exception_catchpoint.
8711 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8713 Fix disp-step-syscall.exp: fork: single step over fork.
8714 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8715 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8716 comment, change parameters gdbarch and ptid to regcache. Remove
8717 parameter regcache, initialize gdbarch from regcache here.
8718 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8720 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8722 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8723 'syscall'. Make the 'int' check more strict.
8725 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8727 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8728 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8729 (i386_linux_intx80_sysenter_syscall_record): ... here.
8730 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8731 Use the renamed function name.
8733 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8735 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8736 * breakpoint.c (until_break_command): Likewise.
8737 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8738 * infcall.c (call_function_by_hand): Likewise.
8739 * infcmd.c (finish_forward): Likewise.
8740 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8742 2012-02-28 Tristan Gingold <gingold@adacore.com>
8744 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8745 avoid variable assignments inside condition.
8747 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8749 Fix static analysis issue found by cppcheck.
8750 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8751 uninitialized BUF for size 2.
8753 2012-02-27 Chris Dearman <chris@mips.com>
8754 Nathan Froyd <froydnj@codesourcery.com>
8755 Maciej W. Rozycki <macro@codesourcery.com>
8757 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8758 (mips16_instruction_has_delay_slot): Likewise.
8759 (mips_segment_boundary): Likewise.
8760 (mips_adjust_breakpoint_address): Likewise.
8761 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8763 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8764 Maciej W. Rozycki <macro@codesourcery.com>
8766 * infrun.c (handle_inferior_event): Don't proceed through
8767 shared library trampolines if stepping at the machine
8770 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8772 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8775 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8777 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8778 (sh_stub_unwind_sniffer): New functions.
8779 (sh_stub_unwind): New variable.
8780 (sh_gdbarch_init): Wire everything.
8782 2012-02-27 Pedro Alves <palves@redhat.com>
8784 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8785 (linux_nat_post_attach_wait): Adjust to use
8786 linux_proc_pid_is_stopped.
8787 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8788 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8789 based on pid_is_stopped from both linux-nat.c and
8790 gdbserver/linux-low.c, and renamed.
8792 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8794 * remote.c (remote_watchpoint_addr_within_range): New function.
8795 (init_remote_ops): Use it.
8797 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8799 * target.h (target_watchpoint_addr_within_range): Document macro.
8801 2012-02-24 Pedro Alves <palves@redhat.com>
8803 * stack.c (set_last_displayed_sal): Issue internal_error instead
8804 of warning, and issue it after clearing the last displayed sal.
8806 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8807 Pedro Alves <palves@redhat.com>
8809 * breakpoint.c (until_break_command): Install breakpoints after
8810 all frame manipulations.
8812 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8814 * remote.c (remote_supports_cond_breakpoints): New forward
8816 (remote_add_target_side_condition): New function.
8817 (remote_insert_breakpoint): Add target-side breakpoint
8818 conditional if supported.
8819 (remote_insert_hw_breakpoint): Likewise.
8820 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8823 * target.c (update_current_target): Inherit
8824 to_supports_evaluation_of_breakpoint_conditions.
8825 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8827 * target.h (struct target_ops)
8828 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8829 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8831 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8832 (condition_evaluation_both, condition_evaluation_auto,
8833 condition_evaluation_host, condition_evaluation_target,
8834 condition_evaluation_enums, condition_evaluation_mode_1,
8835 condition_evaluation_mode): New static globals.
8836 (translate_condition_evaluation_mode): New function.
8837 (breakpoint_condition_evaluation_mode): New function.
8838 (gdb_evaluates_breakpoint_condition_p): New function.
8839 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8840 (mark_breakpoint_modified): New function.
8841 (mark_breakpoint_location_modified): New function.
8842 (set_condition_evaluation_mode): New function.
8843 (show_condition_evaluation_mode): New function.
8844 (bp_location_compare_addrs): New function.
8845 (get_first_location_gte_addr): New helper function.
8846 (set_breakpoint_condition): Free condition bytecode if locations
8847 has become unconditional. Call mark_breakpoint_modified (...).
8848 (condition_command): Call update_global_location_list (1) for
8850 (breakpoint_xfer_memory): Use is_breakpoint (...).
8851 (is_breakpoint): New function.
8852 (parse_cond_to_aexpr): New function.
8853 (build_target_condition_list): New function.
8854 (insert_bp_location): Handle target-side conditional
8855 breakpoints and call build_target_condition_list (...).
8856 (update_inserted_breakpoint_locations): New function.
8857 (insert_breakpoint_locations): Handle target-side conditional
8859 (bpstat_check_breakpoint_conditions): Add comment.
8860 (bp_condition_evaluator): New function.
8861 (bp_location_condition_evaluator): New function.
8862 (print_breakpoint_location): Print information on where the condition
8864 (print_one_breakpoint_location): Likewise.
8865 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8866 breakpoint location.
8867 (force_breakpoint_reinsertion): New functions.
8868 (update_global_location_list): Handle target-side breakpoint
8870 Reinsert locations that are already inserted if conditions have
8872 (bp_location_dtor): Free agent expression bytecode.
8873 (disable_breakpoint): Call mark_breakpoint_modified (...).
8874 Call update_global_location_list (...) with parameter 1 for breakpoints.
8875 (disable_command): Call mark_breakpoint_location_modified (...).
8876 Call update_global_location_list (...) with parameter 1 for breakpoints.
8877 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8878 (enable_command): mark_breakpoint_location_modified (...).
8879 (_initialize_breakpoint): Update documentation and add
8880 condition-evaluation breakpoint subcommand.
8882 * breakpoint.h: Include ax.h.
8883 (condition_list): New data structure.
8884 (condition_status): New enum.
8885 (bp_target_info) <cond_list>: New field.
8886 (bp_location) <condition_changed, cond_bytecode>: New fields.
8887 (is_breakpoint): New prototype.
8889 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8891 * remote.c (remote_state) <cond_breakpoints>: New field.
8892 (PACKET_ConditionalBreakpoints): New enum.
8893 (remote_cond_breakpoint_feature): New function.
8894 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8895 (remote_supports_cond_breakpoints): New function.
8896 (_initialize_remote): Add new packet configuration for
8897 target-side conditional breakpoints.
8899 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8901 * NEWS: Mention target-side conditional breakpoint support,
8902 new condition-evaluation breakpoint subcommand and remote
8905 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8907 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8910 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8912 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8913 (after_prologue): Remove.
8915 2012-02-23 Tom Tromey <tromey@redhat.com>
8917 * jv-valprint.c (java_val_print): Remove dead code.
8919 2012-02-23 Tristan Gingold <gingold@adacore.com>
8921 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8922 known_tasks_element and known_tasks_length fields.
8923 (read_known_tasks_array): Change argument type. Use pointer type
8924 and number of elements from DATA. Adjust.
8925 (read_known_tasks_list): Likewise.
8926 (get_known_tasks_addr): Remove.
8927 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8928 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8929 type and array length. Merge former get_known_tasks_addr code.
8931 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8934 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8935 it after set_momentary_breakpoint.
8937 2012-02-22 Sterling Augustine <saugustine@google.com>
8940 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8942 2012-02-22 Gary Benson <gbenson@redhat.com>
8944 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8945 (find_slot_in_mapped_hash): Likewise.
8947 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8950 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8951 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8952 * configure: Regenerate.
8954 2012-02-21 Tristan Gingold <gingold@adacore.com>
8955 Pedro Alves <palves@redhat.com>
8957 * ia64-tdep.c: Do not include libunwind-ia64.h.
8958 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8959 Include libunwind-ia64.h instead of libunwind.h.
8960 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8961 for libunwind.h existence.
8962 * configure, config.in: Regenerate.
8964 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8966 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8967 instead of value_rtti_target_type.
8968 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8969 instead of value_rtti_target_type.
8970 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8971 value_rtti_target_type.
8972 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8973 (value_rtti_target_type): Rename to ...
8974 (value_rtti_indirect_type): ... here and make it indirect. Update
8976 * value.c (readjust_indirect_value_type): New function.
8977 (coerce_ref): Support for enclosing type setting for references
8978 with readjust_indirect_value_type.
8979 * value.h (readjust_value_type): New declaration.
8980 (value_rtti_target_type): Rename to ...
8981 (value_rtti_indirect_type): ... here.
8983 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8985 * MAINTAINERS (Write After Approval): Add myself to the list.
8987 2012-02-20 Doug Evans <dje@google.com>
8989 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8990 Rename objfile_p_char parameter to objfilep.
8991 (build_objfile_section_table): Result is now void. All callers
8993 * objfiles.h (struct objfile): Tweak comments, whitespace.
8994 (build_objfile_section_table): Update.
8996 * elfread.c (elf_symfile_segments): Fix warning text.
8998 2012-02-20 Tom Tromey <tromey@redhat.com>
9001 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9002 particular set of file names once.
9003 (dw2_map_symbol_filenames): Likewise.
9005 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9008 * main.c (write_files): Remove the declaration.
9009 (external_editor_command): Move the declaration ...
9010 [GDBTK] (external_editor_command): ... here. Fix the comment.
9012 2012-02-20 Tom Tromey <tromey@redhat.com>
9014 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9017 2012-02-20 Tristan Gingold <gingold@adacore.com>
9019 * darwin-nat.h (enum darwin_msg_state): Add comments.
9021 2012-02-20 Tristan Gingold <gingold@adacore.com>
9023 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9026 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9028 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9029 between function description and implementation.
9031 2012-02-17 Tom Tromey <tromey@redhat.com>
9034 * python/py-event.c (event_object_getset): New global.
9035 (event_object_type): Reference it.
9036 * python/py-type.c (field_object_getset): New global.
9037 (field_object_type): Reference it.
9038 * python/python-internal.h (gdb_py_generic_dict): Declare.
9039 * python/py-utils.c (gdb_py_generic_dict): New function.
9041 2012-02-17 Tristan Gingold <gingold@adacore.com>
9043 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9045 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9047 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9048 TYPE_CALLING_CONVENTION annotation.
9050 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9052 * MAINTAINERS: Add rx to target ISA section.
9053 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9054 (ALLDEPFILES): Add rx-tdep.c.
9056 2012-02-16 Tom Tromey <tromey@redhat.com>
9058 * symfile.c (symbol_file_add_main_1): Use inferior's
9060 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9061 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9063 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9065 (follow_exec): Use inferior's symfile_flags.
9066 * inferior.h (struct inferior) <symfile_flags>: New field.
9068 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9071 * remote-sim.c (gdbsim_create_inferior): Call error() when
9072 sim_create_inferior() fails.
9074 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9076 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9078 2012-02-16 Tom Tromey <tromey@redhat.com>
9081 * thread.c (struct current_thread_cleanup) <was_removable>: New
9083 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9084 (make_cleanup_restore_current_thread): Initialize new field.
9086 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9088 * MAINTAINERS: Add rl78 to target ISA section.
9089 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9090 (ALLDEPFILES): Add rl78-tdep.c.
9091 * NEWS: Mention rl78 as a new target.
9093 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9095 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9097 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9099 2012-02-15 Tom Tromey <tromey@redhat.com>
9102 * infcmd.c (registers_info): Print just the current register's
9105 2012-02-15 Tom Tromey <tromey@redhat.com>
9107 * python/py-symbol.c (sympy_value): Use _().
9109 2012-02-15 Pedro Alves <palves@redhat.com>
9111 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9112 output to be like native targets'.
9113 (remote_pid_to_str): Special case the null ptid.
9115 2012-02-14 Stan Shebs <stan@codesourcery.com>
9117 * NEWS: Mention enable count command.
9118 * breakpoint.h (struct breakpoint): New field enable_count.
9119 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9120 (enable_breakpoint): Add arg to call.
9121 (struct disp_data): New struct.
9122 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9123 (do_map_enable_once_breakpoint): Create a struct and pass it.
9124 (do_map_enable_delete_breakpoint): Ditto.
9125 (do_map_enable_count_breakpoint): New function.
9126 (enable_count_command): New function.
9127 (bpstat_stop_status): Decrement enable_count.
9128 (print_one_breakpoint_location): Report enable count.
9129 (_initialize_breakpoint): Add enable count command.
9131 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9133 * rl78-tdep.c (reggroups.h): Include.
9134 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9135 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9136 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9137 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9138 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9139 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9140 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9141 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9142 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9143 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9144 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9145 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9146 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9147 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9148 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9149 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9150 beginning of register list.
9151 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9152 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9153 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9154 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9155 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9156 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9157 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9158 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9159 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9160 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9161 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9162 the pseudo registers. Rearrange other pseudo registers too so
9163 that the bank registers appear at the end.
9164 (rl78_register_type): Account for the fact that the byte sized
9165 bank registers are now pseudo-registers.
9166 (rl78_register_name): Rearrange the register name array. Make
9167 initial set of raw banked registers inaccessible.
9168 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9169 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9170 case for copying bytes back and forth between raw and pseudo
9171 versions of the banked registers. Update other cases to reflect
9173 (rl78_return_value): Update to account for changed names of
9175 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9176 rl78_register_sim_regno().
9178 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9180 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9181 the name parameter being passed to find_pc_partial_function().
9183 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9185 * MAINTAINERS: Step down from being ia64 target maintainer.
9187 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9189 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9190 compilation warning.
9192 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9194 Fix crash on loaded shlibs without loaded exec_bfd.
9195 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9196 (set_section_command): Replace exec_bfd by p->bfd.
9198 2012-02-10 Tom Tromey <tromey@redhat.com>
9200 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9201 when we have a C++ qualified name.
9203 2012-02-10 Pedro Alves <palves@redhat.com>
9205 * inferior.c (inferior_pid_to_str): New.
9206 (print_inferior, inferior_command): Use it.
9208 2012-02-10 Pedro Alves <palves@redhat.com>
9210 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9212 * configure: Regenerate.
9214 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9216 * linespec.c (decode_line_internal): Fix comment correctness.
9218 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9221 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9222 * amd64bsd-nat.c: Add support for debug registers (adapted from
9224 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9225 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9226 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9227 (amd64bsd_dr_get_control): New functions.
9228 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9229 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9230 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9231 watchpoints initialization.
9232 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9234 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9236 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9238 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9240 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9242 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9244 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9246 * language.h (symbol_name_cmp_ftype): Renames
9247 symbol_name_match_p_ftype.
9248 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9249 la_get_symbol_name_match_p.
9250 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9251 ada_get_symbol_name_match_p. Update comment.
9252 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9253 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9254 Renames symbol_name_match_p. Update field type.
9255 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9256 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9257 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9258 "la_get_symbol_name_cmp" in comments.
9259 * language.c: Likewise.
9261 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9263 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9265 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9266 (amd64_sol2_gregset32_reg_offs): Likewise.
9268 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9270 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9271 of the returned BFD is allocated by GDB.
9273 2012-02-07 Tom Tromey <tromey@redhat.com>
9276 * python/python-internal.h (frame_object_type): Declare.
9277 * python/py-symbol.c (sympy_needs_frame): New function.
9278 (sympy_value): New function.
9279 (symbol_object_getset): Add "needs_frame".
9280 (symbol_object_methods): Add "value".
9281 * python/py-frame.c (frame_object_type): No longer static.
9283 2012-02-07 Tom Tromey <tromey@redhat.com>
9286 * python/py-symbol.c (sympy_line): New function.
9287 (symbol_object_getset): Add "line".
9289 2012-02-07 Tom Tromey <tromey@redhat.com>
9291 * charset.c (find_charset_names): Check 'in' against NULL.
9293 2012-02-06 Doug Evans <dje@google.com>
9295 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9296 and fields.name members from char * to const char *. All uses updated.
9297 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9298 from char * to const char *. All uses updated.
9299 (type_name_no_tag): Update.
9300 (lookup_unsigned_typename, lookup_signed_typename): Update.
9301 * gdbtypes.c (type_name_no_tag): Change result type
9302 from char * to const char *. All callers updated.
9303 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9304 name parameter from char * to const char *.
9305 * symtab.h (struct cplus_specific): Change type of demangled_name
9306 member from char * to const char *. All uses updated.
9307 (struct general_symbol_info): Change type of name and
9308 mangled_lang.demangled_name members from char * to const char *.
9310 (symbol_get_demangled_name, symbol_natural_name): Update.
9311 (symbol_demangled_name, symbol_search_name): Update.
9312 * symtab.c (symbol_get_demangled_name): Change result type
9313 from char * to const char *. All callers updated.
9314 (symbol_natural_name, symbol_demangled_name): Ditto.
9315 (symbol_search_name): Ditto.
9316 (completion_list_add_name): Change type of symname,sym_text,
9317 text,word parameters from char * to const char *.
9318 (completion_list_objc_symbol): Change type of sym_text,
9319 text,word parameters from char * to const char *.
9320 * ada-lang.c (find_struct_field): Change type of name parameter
9321 from char * to const char *.
9322 (encoded_ordered_before): Similarly for N0,N1 parameters.
9323 (old_renaming_is_invisible): Similarly for function_name parameter.
9324 (ada_type_name): Change result type from char * to const char *.
9325 All callers updated.
9326 * ada-lang.h (ada_type_name): Update.
9327 * buildsym.c (hashname): Change type of name parameter
9328 from char * to const char *.
9329 * buildsym.h (hashname): Update.
9330 * dbxread.c (end_psymtab): Change type of include_list parameter
9331 from char ** to const char **.
9332 * dwarf2read.c (determine_prefix): Change result type
9333 from char * to const char *. All callers updated.
9334 * f-lang.c (find_common_for_function): Change type of name, funcname
9335 parameters from char * to const char *.
9336 * f-lang.c (find_common_for_function): Update.
9337 * f-valprint.c (list_all_visible_commons): Change type of funcname
9338 parameters from char * to const char *.
9339 * gdbarch.sh (static_transform_name): Change type of name parameter
9340 and result from char * to const char *.
9341 * gdbarch.c: Regenerate.
9342 * gdbarch.h: Regenerate.
9343 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9344 of name parameter from char * to const char *.
9345 * jv-lang.c (java_primitive_type_from_name): Ditto.
9346 (java_demangled_signature_length): Similarly for signature parameter.
9347 (java_demangled_signature_copy): Ditto.
9348 (java_demangle_type_signature): Ditto.
9349 * jv-lang.h (java_primitive_type_from_name): Update.
9350 (java_demangle_type_signature): Update.
9351 * objc-lang.c (specialcmp): Change type of a,b parameters
9352 from char * to const char *.
9353 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9354 from char * to const char *. All callers updated.
9355 * p-lang.h (is_pascal_string_type): Update.
9356 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9357 of name parameter from char * to const char *.
9358 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9359 * utils.c (fprintf_symbol_filtered): Ditto.
9360 * defs.h (fprintf_symbol_filtered): Update.
9361 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9362 * stabsread.h (end_psymtab): Update.
9363 * stack.c (find_frame_funname): Change type of funname parameter
9364 from char ** to const char **.
9365 * stack.h (find_frame_funname): Update.
9366 * typeprint.c (type_print): Change type of varstring parameter
9367 from char * to const char *.
9368 * value.h (type_print): Update.
9369 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9370 from char * to const char *. All callers updated.
9371 (xcoff_end_psymtab): Change type of include_list parameter
9372 from char ** to const char **. All callers updated.
9373 (swap_sym): Similarly for name parameter. All callers updated.
9374 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9376 (process_coff_symbol): Use xstrdup.
9377 * stabsread.c (stabs_method_name_from_physname): Renamed from
9378 update_method_name_from_physname. Change result type from void
9379 to char *. All callers updated.
9380 (read_member_functions): In has_destructor case, store name in objfile
9381 obstack instead of malloc space. In !has_stub case, fix mem leak.
9383 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9385 * configure: Rebuild.
9386 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9389 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9391 * configure.tgt (rl78-*-elf): New target.
9392 * rl78-tdep.c: New file.
9394 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9396 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9397 and continue the loop. Add QUIT statement.
9399 2012-02-03 Tom Tromey <tromey@redhat.com>
9402 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9403 bfd_lookup_symbol_from_symtab.
9404 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9405 gdb_bfd_lookup_symbol_from_symtab.
9407 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9409 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9410 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9411 symbol. Add assertion that sym2 is never NULL.
9413 2012-02-02 Doug Evans <dje@google.com>
9415 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9416 "name" parameter to const char ** from char **. All callers updated.
9417 (find_pc_partial_function): Ditto.
9418 (cache_pc_function_name): Change type to const char * from char *.
9419 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9420 (find_pc_partial_function): Update.
9421 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9422 type of "name" parameter to const char * from char *.
9424 * arch-utils.c (generic_in_solib_return_trampoline): Change
9425 type of "name" parameter to const char * from char *.
9426 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9427 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9428 type of "name" parameter to const char * from char *.
9429 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9430 * gdbarch.c: Regenerate.
9431 * gdbarch.h: Regenerate.
9432 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9433 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9434 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9435 type of "name" parameter to const char * from char *.
9436 * skip.c (skip_function_pc): Ditto.
9437 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9438 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9439 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9440 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9441 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9442 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9443 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9444 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9445 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9447 2012-02-02 Pedro Alves <palves@redhat.com>
9449 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9450 the current inferior has no execution. Make sure the current
9451 remote process matches gdb's current inferior.
9453 2012-02-02 Tom Tromey <tromey@redhat.com>
9456 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9459 2012-02-02 Tom Tromey <tromey@redhat.com>
9462 * symtab.c (lookup_language_this): Set block_found.
9464 2012-02-01 Tom Tromey <tromey@redhat.com>
9467 * jit.c (struct jit_inferior_data): Rewrite.
9468 (struct jit_objfile_data): New.
9469 (get_jit_objfile_data): New function.
9470 (add_objfile_entry): Update.
9471 (jit_read_descriptor): Return int. Replace descriptor_addr
9472 argument with inf_data. Update. Don't call error.
9473 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9475 (jit_inferior_init): Don't look up descriptor. Don't call error.
9476 (jit_reset_inferior_data_and_breakpoints)
9477 (jit_inferior_created_observer): Remove.
9478 (jit_inferior_exit_hook): Update.
9479 (jit_executable_changed_observer): Remove.
9480 (jit_event_handler): Update.
9481 (free_objfile_data): Reset inferior data if needed.
9482 (_initialize_jit): Update.
9484 2012-02-01 Tom Tromey <tromey@redhat.com>
9486 * jit.c (bfd_open_from_target_memory): Move higher in file.
9488 2012-02-01 Tristan Gingold <gingold@adacore.com>
9490 * libunwind-frame.c (libunwind_load): Display message if dlopen
9493 2012-02-01 Gary Benson <gbenson@redhat.com>
9495 * symtab.h (symbol_found_callback_ftype): New typedef.
9496 (iterate_over_symbols): Use the above.
9497 * symtab.c (iterate_over_symbols): Likewise.
9498 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9499 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9500 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9501 (iterate_name_matcher): Document return values.
9502 (collect_one_symbol): Likewise.
9503 (collect_function_symbols): Likewise.
9504 (collect_symbols): Likewise.
9506 2012-02-01 Tom Tromey <tromey@redhat.com>
9508 * ada-lang.c (resolve_subexp): Update.
9509 (ada_lookup_symbol_list): Add 'full_search' argument.
9510 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9511 ada_lookup_symbol_list.
9512 (ada_lookup_encoded_symbol): Update.
9513 (get_var_value): Update.
9514 * ada-exp.y (block_lookup): Update.
9515 (write_var_or_type): Update.
9516 (write_name_assoc): Update.
9517 * ada-lang.h (ada_lookup_symbol_list): Update.
9519 2012-01-31 Tom Tromey <tromey@redhat.com>
9521 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9524 2012-01-31 Doug Evans <dje@google.com>
9526 * symtab.h: Remove outdated comment.
9527 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9529 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9531 Fix build error in Darwin port.
9532 * i386-darwin-nat.c: Include i386-nat.h.
9534 2012-01-30 Tom Tromey <tromey@redhat.com>
9536 PR breakpoints/13568:
9537 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9538 argument. Check for recursive includes.
9539 (dwarf_decode_macros): Create an include hash.
9541 2012-01-30 Michael Eager <eager@eagercon.com>
9543 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9544 * ppc-linux-tdep.c: Include glibc-tdep.h.
9545 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9546 (powerpc_linux_in_plt_stub): New function.
9547 (powerpc_linux_in_dynsym_resolve_code): New function.
9548 (ppc_skip_trampoline_code): New function.
9549 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9550 Use glibc_skip_solib_resolver.
9552 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9554 Code cleanup: Make 1440 bytes of data segment read-only.
9555 * arch-utils.c (endian_enum): Make it const char *const [].
9556 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9558 * breakpoint.c (always_inserted_enums): Likewise.
9559 * cli/cli-cmds.c (script_ext_enums): Likewise.
9560 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9561 enumlist parameter const char *const *.
9562 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9563 const char *const *.
9564 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9565 parameter const char *const *.
9566 * cris-tdep.c (cris_modes): Make it const char *const [].
9567 * filesystem.c (target_file_system_kinds): Likewise.
9568 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9569 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9570 (can_use_displaced_stepping_enum, scheduler_enums)
9571 (exec_direction_names): Likewise.
9572 * language.c (_initialize_language): Make the type_or_range_names and
9573 case_sensitive_names variables const char *const [].
9574 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9575 * python/python.c (python_excp_enums): Likewise.
9576 * remote.c (interrupt_sequence_modes): Likewise.
9577 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9578 * serial.c (logbase_enums): Likewise.
9579 * sh-tdep.c (sh_cc_enum): Likewise.
9580 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9582 * symtab.c (multiple_symbols_modes): Likewise.
9583 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9585 * utils.c (internal_problem_modes): Likewise.
9587 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9589 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9590 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9593 2012-01-27 Doug Evans <dje@google.com>
9595 * configure.ac (with_python): Fix absolute path handling for win32.
9596 * configure: Regenerate.
9598 2012-01-26 Doug Evans <dje@google.com>
9600 * symtab.c: Whitespace cleanup, no code changes.
9602 * symtab.c (lookup_symbol_in_language): Improve comment.
9603 (lookup_symbol_aux): Fix comment.
9605 * psymtab.c (add_psymbol_to_list): Result is now "void".
9606 * psympriv.h (add_psymbol_to_list): Update.
9608 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9610 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9612 Do not open script filenames twice.
9613 * cli/cli-cmds.c (source_script_from_stream): Pass to
9614 source_python_script also STREAM.
9615 * python/py-auto-load.c (source_section_scripts): Pass to
9616 source_python_script_for_objfile also STREAM.
9617 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9619 * python/python-internal.h (source_python_script_for_objfile): New
9620 parameter file, rename parameter file to filename.
9621 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9622 instead if !_WIN32. Update the function comment.
9623 (source_python_script, source_python_script_for_objfile)
9624 (source_python_script): New parameter file, rename parameter file to
9625 filename. Pass FILENAME to python_run_simple_file.
9626 * python/python.h (source_python_script): New parameter file, rename
9627 parameter file to filename.
9629 2012-01-26 Pedro Alves <palves@redhat.com>
9631 * corelow.c (core_has_fake_pid): Delete.
9632 (core_close): Delete references to `core_has_fake_pid'.
9633 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9634 (core_open): Delete references to `core_has_fake_pid'.
9635 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9638 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9640 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9641 Remove language parameter from name_matcher. Adjust the comment.
9642 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9643 Remove language parameter.
9644 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9645 * linespec.c (iterate_name_matcher): Likewise.
9646 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9647 name_matcher. Adjust call accordingly.
9648 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9649 (maintenance_check_symtabs): Adjust type of parameter "fun".
9650 * psymtab.h (maintenance_check_symtabs): Likewise.
9652 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9654 * language.h (symbol_name_match_p_ftype): New typedef.
9655 (struct language_defn): Replace field la_symbol_name_compare
9656 by la_get_symbol_name_match_p.
9657 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9658 (ada_language_defn): Use it.
9659 * linespec.c (struct symbol_matcher_data): New type.
9660 (iterate_name_matcher): Rewrite.
9661 (iterate_over_all_matching_symtabs): Pass a pointer to
9662 a symbol_matcher_data struct to expand_symtabs_matching
9663 instead of just the lookup name.
9664 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9665 opencl-lang.c, p-lang.c, language.c: Delete field
9666 la_symbol_name_compare, and replace by NULL for new field
9667 la_get_symbol_name_match_p.
9668 * symfile.h (struct quick_symbol_functions): Update comment.
9670 2012-01-25 Tom Tromey <tromey@redhat.com>
9672 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9675 2012-01-24 Tom Tromey <tromey@redhat.com>
9678 * solib.c (update_solib_list): Update the program space's
9679 added_solibs and deleted_solibs fields.
9680 * progspace.h (struct program_space) <added_solibs,
9681 deleted_solibs>: New fields.
9682 (clear_program_space_solib_cache): Declare.
9683 * progspace.c (release_program_space): Call
9684 clear_program_space_solib_cache.
9685 (clear_program_space_solib_cache): New function.
9686 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9687 bpstat_stop_status. Use handle_solib_event.
9688 * breakpoint.c: Include gdb_regex.h.
9689 (print_solib_event): New function.
9690 (bpstat_print): Use print_solib_event.
9691 (bpstat_stop_status): Add special case for bp_shlib_event.
9692 (handle_solib_event): New function.
9693 (bpstat_what): Use handle_solib_event.
9694 (struct solib_catchpoint): New.
9695 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9696 (breakpoint_hit_catch_solib, check_status_catch_solib)
9697 (print_it_catch_solib, print_one_catch_solib)
9698 (print_mention_catch_solib, print_recreate_catch_solib): New
9700 (catch_solib_breakpoint_ops): New global.
9701 (catch_load_or_unload, catch_load_command_1)
9702 (catch_unload_command_1): New functions.
9703 (internal_bkpt_check_status): Add special case for
9705 (internal_bkpt_print_it): Use print_solib_event.
9706 (initialize_breakpoint_ops): Initialize
9707 catch_solib_breakpoint_ops.
9708 (_initialize_breakpoint): Register "catch load" and "catch
9710 * breakpoint.h (handle_solib_event): Declare.
9711 * NEWS: Add entry for "catch load" and "catch unload".
9713 2012-01-24 Tom Tromey <tromey@redhat.com>
9715 * ada-lang.c: Include gdb_vecs.h.
9716 * charset.c: Include gdb_vecs.h.
9717 * tracepoint.h: Include gdb_vecs.h.
9718 * gdb_vecs.h: New file.
9720 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9722 * breakpoint.c (breakpoint_hit_catch_fork)
9723 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9724 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9725 * infrun.c (inferior_has_forked, inferior_has_vforked)
9726 (inferior_has_execd, inferior_has_called_syscall): Delete.
9727 (handle_syscall_event): Get syscall_number from the execution
9728 control state's wait status.
9729 (wait_for_inferior): Don't clear syscall_number.
9731 2012-01-24 Pedro Alves <palves@redhat.com>
9733 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9734 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9735 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9736 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9738 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9739 false for events other than TARGET_SIGNAL_TRAP.
9740 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9742 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9743 events other than TARGET_SIGNAL_TRAP.
9744 (tracepoint_breakpoint_hit): Add `ws' parameter.
9745 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9747 (bpstat_stop_status): Same.
9748 (pc_at_non_inline_function): Same.
9749 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9750 to pass the current event's waitstatus to bpstat_stop_status
9751 and pc_at_non_inline_function.
9753 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9756 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9757 Update the function comment for it.
9758 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9759 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9762 2012-01-24 Pedro Alves <palves@redhat.com>
9764 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9765 outside `bs->stop' block.
9766 (bpstat_what): Rework bp_shlib_event handling.
9767 (internal_bkpt_check_status): If the breakpoint is a
9768 bp_shlib_event, then set bs->stop and bs->print if
9769 stop_on_solib_events is set.
9771 2012-01-24 Gary Benson <gbenson@redhat.com>
9773 Delete #if 0'd out code.
9774 * stack.c (print_frame_label_vars): Remove.
9775 (catch_info): Likewise.
9776 (_initialize_stack): Remove "info catch" command.
9777 * NEWS: Mention the above.
9779 2012-01-24 Pedro Alves <palves@redhat.com>
9781 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9783 (remote_notice_new_inferior): If the remote end doesn't support
9784 the multiprocess extensions, then the PID is fake.
9785 (add_current_inferior_and_thread): New.
9786 (remote_start_remote): Use it.
9787 (extended_remote_attach_1): Adjust.
9788 (extended_remote_create_inferior_1): Use
9789 add_current_inferior_and_thread.
9791 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9793 Fix watchpoints to be specific for each inferior.
9794 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9795 current_program_space.
9796 * i386-nat.c (i386_inferior_data_cleanup): New.
9797 (i386_inferior_data_get): Replace variable inf_data_local by an
9799 (i386_use_watchpoints): Initialize i386_inferior_data.
9800 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9801 specific iterate_over_lwps.
9803 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9805 Fix watchpoints across inferior fork.
9806 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9807 comment for linux_nat_iterate_watchpoint_lwps.
9808 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9809 linux_nat_iterate_watchpoint_lwps.
9810 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9811 * i386-linux-nat.c (update_debug_registers_callback): Update the
9812 comment for linux_nat_iterate_watchpoint_lwps.
9813 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9814 linux_nat_iterate_watchpoint_lwps.
9815 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9816 * i386-nat.c: Include inferior.h.
9817 (dr_mirror): Remove.
9818 (i386_inferior_data, struct i386_inferior_data)
9819 (i386_inferior_data_get): New.
9820 (i386_debug_reg_state): Use i386_inferior_data_get.
9821 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9822 (i386_insert_watchpoint, i386_remove_watchpoint)
9823 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9824 (i386_remove_hw_breakpoint): New variable state, use
9825 i386_debug_reg_state instead of DR_MIRROR.
9826 * linux-nat.c (delete_lwp): New declaration.
9827 (num_lwps): Move here from downwards.
9828 (delete_lwp_cleanup): New.
9829 (linux_child_follow_fork): Create new child_lp, call
9830 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9832 (num_lwps): Move upwards.
9833 (linux_nat_iterate_watchpoint_lwps): New.
9834 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9835 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9837 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9841 2012-01-23 Pedro Alves <palves@redhat.com>
9843 * top.c (caution): Rename to ...
9844 (confirm): ... this.
9845 (show_caution): Rename to ...
9846 (show_confirm): ... this.
9847 (quit_cover): Adjust.
9848 (init_main): Adjust.
9849 * top.h (caution): Rename to ...
9850 (confirm): ... this.
9851 * utils.c (internal_vproblem, defaulted_query): Adjust.
9853 2012-01-23 Pedro Alves <palves@redhat.com>
9855 * top.c (caution): Update comment.
9856 (execute_command): Don't consider the current value of `caution'.
9858 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9860 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9862 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9864 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9865 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9866 * target.c (target_fileio_pwrite): Remove buffer address from
9868 (target_fileio_pread): Likewise.
9870 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9872 * NEWS: Document remote "info proc" and "generate-core-file".
9874 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9876 * gdbarch.sh (find_memory_regions): New callback.
9877 * gdbarch.c, gdbarch.h: Regenerate.
9879 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9880 callback before falling back to target method.
9882 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9883 (linux_target_install_ops): No longer install it.
9885 * linux-tdep.c (linux_find_memory_regions): New function.
9886 (linux_init_abi): Install it.
9888 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9890 * gdbarch.sh (make_corefile_notes): New architecture callback.
9891 * gdbarch.c: Regenerate.
9892 * gdbarch.h: Likewise.
9894 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9895 before target_make_corefile_notes. If NULL is returned, the
9896 target does not support core file generation.
9898 * linux-nat.c: Include "linux-tdep.h".
9899 (find_signalled_thread, find_stop_signal): Remove.
9900 (linux_nat_do_thread_registers): Likewise.
9901 (struct linux_nat_corefile_thread_data): Likewise.
9902 (linux_nat_corefile_thread_callback): Likewise.
9903 (iterate_over_spus): Likewise.
9904 (struct linux_spu_corefile_data): Likewise.
9905 (linux_spu_corefile_callback): Likewise.
9906 (linux_spu_make_corefile_notes): Likewise.
9907 (linux_nat_collect_thread_registers): New function.
9908 (linux_nat_make_corefile_notes): Replace contents by call to
9909 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9910 as native-only callback.
9912 * linux-tdep.h: Include "bfd.h".
9913 (struct regcache): Add forward declaration.
9914 (linux_collect_thread_registers_ftype): New typedef.
9915 (linux_make_corefile_notes): Add prototype.
9916 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9917 "regset.h", and "elf-bfd.h".
9918 (find_signalled_thread, find_stop_signal): New functions.
9919 (linux_spu_make_corefile_notes): Likewise.
9920 (linux_collect_thread_registers): Likewise.
9921 (struct linux_corefile_thread_data): New data structure.
9922 (linux_corefile_thread_callback): New funcion.
9923 (linux_make_corefile_notes): Likewise.
9924 (linux_make_corefile_notes_1): Likewise.
9925 (linux_init_abi): Install it.
9927 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9929 * gdbarch.sh (info_proc): New callback.
9930 * gdbarch.c, gdbarch.h: Regenerate.
9932 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9933 before falling back to the target info_proc callback.
9935 * linux-nat.c: Do not include "cli/cli-utils.h".
9936 (linux_nat_info_proc): Remove.
9937 (linux_target_install_ops): No longer install it.
9939 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9940 (read_mapping): New function.
9941 (linux_info_proc): Likewise.
9942 (linux_init_abi): Install it.
9944 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9946 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9947 * infcmd.c: (info_proc_cmd_1): New function.
9948 (info_proc_cmd): New function, moved here from equivalent routine
9949 orignally in linux-nat.c.
9950 (info_proc_cmd_mappings): Likewise.
9951 (info_proc_cmd_stat): Likewise.
9952 (info_proc_cmd_status): Likewise.
9953 (info_proc_cmd_cwd): Likewise.
9954 (info_proc_cmd_cmdline): Likewise.
9955 (info_proc_cmd_exe): Likewise.
9956 (info_proc_cmd_all): Likewise.
9957 (_initialize_infcmd): Install "info proc" command and subcommands.
9959 * target.h (struct target_ops): Add to_info_proc.
9960 (target_info_proc): Add prototype.
9961 * target.c (target_info_proc): New function.
9963 * procfs.c (procfs_info_proc): Add prototype.
9964 (info_proc_cmd): Rename into ...
9965 (procfs_info_proc): ... this. Update argument types as appropriate
9966 for a to_info_proc implementation. Handle "what" argument.
9967 (procfs_target): Install procfs_info_proc.
9968 (_initialize_procfs): No longer install "info proc" command.
9970 * linux-nat.c: (enum info_proc_what): Remove.
9971 (linux_nat_info_proc_cmd_1): Rename into ...
9972 (linux_nat_info_proc): ... this. Update argument types as appropriate
9973 for a to_info_proc implementation.
9974 (linux_nat_info_proc_cmd): Remove.
9975 (linux_nat_info_proc_cmd_mappings): Likewise.
9976 (linux_nat_info_proc_cmd_stat): Likewise.
9977 (linux_nat_info_proc_cmd_status): Likewise.
9978 (linux_nat_info_proc_cmd_cwd): Likewise.
9979 (linux_nat_info_proc_cmd_cmdline): Likewise.
9980 (linux_nat_info_proc_cmd_exe): Likewise.
9981 (linux_nat_info_proc_cmd_all): Likewise.
9982 (linux_target_install_ops): Install linux_nat_info_proc.
9983 (_initialize_linux_nat): No longer install "info proc" command
9986 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9988 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9989 * config.in, configure: Regenerate.
9991 * target.h (struct target_ops): Add to_fileio_readlink.
9992 (target_fileio_readlink): Add prototype.
9993 * target.c (target_fileio_readlink): New function.
9995 * inf-child.c: Conditionally include <sys/param.h>.
9996 (inf_child_fileio_readlink): New function.
9997 (inf_child_target): Install it.
9999 * remote.c (PACKET_vFile_readlink): New enum value.
10000 (remote_hostio_readlink): New function.
10001 (init_remote_ops): Install it.
10002 (_initialize_remote): Handle vFile:readlink packet type.
10004 2012-01-20 Pedro Alves <palves@redhat.com>
10005 Ulrich Weigand <ulrich.weigand@linaro.org>
10007 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10008 * config.in, configure: Regenerate.
10010 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10011 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10012 (target_fileio_open): Add prototype.
10013 (target_fileio_pwrite): Likewise.
10014 (target_fileio_pread): Likewise.
10015 (target_fileio_close): Likewise.
10016 (target_fileio_unlink): Likewise.
10017 (target_fileio_read_alloc): Likewise.
10018 (target_fileio_read_stralloc): Likewise.
10020 * target.c: Include "gdb/fileio.h".
10021 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10022 (default_fileio_target): New function.
10023 (target_fileio_open): Likewise.
10024 (target_fileio_pwrite): Likewise.
10025 (target_fileio_pread): Likewise.
10026 (target_fileio_close): Likewise.
10027 (target_fileio_unlink): Likewise.
10028 (target_fileio_close_cleanup): Likewise.
10029 (target_fileio_read_alloc_1): Likewise.
10030 (target_fileio_read_alloc): Likewise.
10031 (target_fileio_read_stralloc): Likewise.
10033 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10034 <fcntl.h>, and <unistd.h>.
10035 (inf_child_fileio_open_flags_to_host): New function.
10036 (inf_child_errno_to_fileio_error): Likewise.
10037 (inf_child_fileio_open): Likewise.
10038 (inf_child_fileio_pwrite): Likewise.
10039 (inf_child_fileio_pread): Likewise.
10040 (inf_child_fileio_close): Likewise.
10041 (inf_child_fileio_unlink): Likewise.
10042 (inf_child_target): Install to_fileio routines.
10044 * remote.c (init_remote_ops): Install to_fileio routines.
10046 2012-01-20 Pedro Alves <palves@redhat.com>
10047 Ulrich Weigand <ulrich.weigand@linaro.org>
10049 * remote.c (remote_multi_process_p): Only check for multi-process
10050 protocol feature, do not check for extended protocol.
10051 (remote_supports_multi_process): Check for extended protocol here.
10052 (set_general_process): Likewise.
10053 (extended_remote_kill): Likewise.
10054 (remote_pid_to_str): Likewise.
10055 (remote_query_supported): Always query multiprocess mode.
10057 2012-01-20 Pedro Alves <palves@redhat.com>
10058 Ulrich Weigand <ulrich.weigand@linaro.org>
10060 * inferior.h (struct inferior): Add fake_pid_p.
10061 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10062 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10063 magic_null_ptid since the remote side doesn't provide a real PID.
10065 2012-01-19 Tom Tromey <tromey@redhat.com>
10067 * NEWS: Combine the two Python sections.
10069 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10071 * target.h (target_close): Update comment on the target's unpush state.
10073 2012-01-19 Pedro Alves <palves@redhat.com>
10075 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10076 linux_nat_async directly instead of going through the target
10078 * target.c (unpush_target): Close target after unpushing it, not
10081 2012-01-19 Gary Benson <gbenson@redhat.com>
10083 * mdebugread.c (sort_blocks): Replace integer constants with ones
10084 derived from FIRST_LOCAL_BLOCK.
10086 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10087 Jan Kratochvil <jan.kratochvil@redhat.com>
10090 * symfile.c (find_separate_debug_file): New function.
10091 (terminate_after_last_dir_separator): Likewise.
10092 (find_separate_debug_file_by_debuglink): Also try realpath.
10093 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10094 * configure: Regenerate.
10095 * config.in: Regenerate.
10097 2012-01-18 Doug Evans <dje@google.com>
10099 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10100 (main.o): Remove rule.
10101 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10102 (--with-sysroot): Rewrite.
10103 * configure: Regenerate.
10104 * config.in: Regenerate.
10106 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10108 * parse.c (initialize_expout): New function.
10109 (reallocate_expout): Likewise.
10110 (parse_exp_in_context): Use `initialize_expout' and
10111 `reallocate_expout' when appropriate.
10113 2012-01-18 Pedro Alves <palves@redhat.com>
10115 * record.c (struct record_breakpoint, record_breakpoint_p)
10116 (record_breakpoints): New.
10117 (record_insert_breakpoint, record_remove_breakpoint): Manage
10118 record breakpoints list. Only remove breakpoints from the
10119 inferior if they had been inserted there in the first place.
10121 2012-01-17 Doug Evans <dje@google.com>
10123 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10124 if we know we don't have a file name to look for.
10126 2012-01-17 Pedro Alves <palves@redhat.com>
10128 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10129 the frame's stop reason is UNWIND_UNAVAILABLE.
10131 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10133 Fix compilation error.
10134 * m2-exp.y (yyerror): Use ANSI C prototype.
10136 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10138 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10139 (growbuf_by_size): Likewise.
10140 (yyerror): Likewise.
10141 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10142 (modblock): Remove variable (was #if 0'ed).
10143 (parse_number): Convert prototype from K&R to ANSI C.
10144 (yyerror): Likewise.
10145 * objc-exp.y (parse_number): Likewise.
10146 (yyerror): Likewise.
10147 (yylex): Remove #if 0'ed code.
10148 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10149 (yyerror): Likewise.
10151 2012-01-16 Tom Tromey <tromey@redhat.com>
10154 * symtab.h (compare_filenames_for_search): Declare.
10155 * symtab.c (compare_filenames_for_search): New function.
10156 (iterate_over_some_symtabs): Use it.
10157 * symfile.h (struct quick_symbol_functions)
10158 <map_symtabs_matching_filename>: Change spec.
10159 * psymtab.c (partial_map_symtabs_matching_filename): Use
10160 compare_filenames_for_search. Update for new spec.
10161 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10162 compare_filenames_for_search. Update for new spec.
10163 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10165 2012-01-16 Tom Tromey <tromey@redhat.com>
10168 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10169 (struct main_type) <flag_flag_enum>: New field.
10170 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10171 * NEWS: Add entries.
10172 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10174 * python/lib/gdb/printing.py (_EnumInstance): New class.
10175 (FlagEnumerationPrinter): Likewise.
10177 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10179 * breakpoint.c (create_sals_from_address_default): New function.
10180 (create_breakpoints_sal_default): Likewise.
10181 (decode_linespec_default): Likewise.
10182 (is_marker_spec): Removed.
10183 (strace_marker_p): New function.
10184 (init_breakpoint_sal): Using `strace_marker_p' instead of
10186 (create_breakpoint): Call method `create_sals_from_address' from
10187 breakpoint_ops, replacing code that created SALs conditionally
10188 on the type of the breakpoint. Call method `create_breakpoints_sal',
10189 replacing code that created breakpoints conditionally on the type
10191 (base_breakpoint_create_sals_from_address): New function.
10192 (base_breakpoint_create_breakpoints_sal): Likewise.
10193 (base_breakpoint_decode_linespec): Likewise.
10194 (base_breakpoint_ops): Add methods
10195 `base_breakpoint_create_sals_from_address',
10196 `base_breakpoint_create_breakpoints_sal' and
10197 `base_breakpoint_decode_linespec'.
10198 (bkpt_create_sals_from_address): New function.
10199 (bkpt_create_breakpoints_sal): Likewise.
10200 (bkpt_decode_linespec): Likewise.
10201 (tracepoint_create_sals_from_address): Likewise.
10202 (tracepoint_create_breakpoints_sal): Likewise.
10203 (tracepoint_decode_linespec): Likewise.
10204 (strace_marker_create_sals_from_address): Likewise.
10205 (strace_marker_create_breakpoints_sal): Likewise.
10206 (strace_marker_decode_linespec): Likewise.
10207 (strace_marker_breakpoint_ops): New variable.
10208 (addr_string_to_sals): Remove `marker_spec'. Call method
10209 `decode_linespec' from breakpoint_ops, replacing code that decoded
10210 an address string into a SAL. Use `strace_marker_p' instead of
10212 (strace_command): Decide whether we are dealing with a static
10213 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10214 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10215 * breakpoint.h (linespec_result, linespec_sals): New forward
10217 (breakpoint_ops) <create_sals_from_address>,
10218 <create_breakpoints_sal>, <decode_linespec>: New methods.
10220 2012-01-14 Doug Evans <dje@google.com>
10222 * NEWS: Update text for "maint set python print-stack".
10223 It is deprecated in gdb 7.4 and deleted in 7.5.
10225 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10227 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10228 including curses.h.
10230 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10232 * configure: Regenerate.
10233 * config.in: Regenerate.
10235 2012-01-12 Keith Seitz <keiths@redhat.com>
10238 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10239 (ANONYMOUS_UNION_NAME): Define.
10240 (is_path_expr_parent): New function.
10241 (get_path_expr_parent): New function.
10242 (is_anonymous_child): New function.
10243 (create_child_with_value): If the child is anonymous and without
10244 a name, assign an object name to it.
10245 (c_describe_child): Use get_path_expr_parent to determine
10246 the parent expression.
10247 If there field represents an anonymous struct or union and
10248 has no name, set an appropriate display name and expression.
10249 (cplus_describe_child): Likewise.
10251 2012-01-12 Pedro Alves <palves@redhat.com>
10253 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10254 available when %ebp is found to be zero (outermost).
10256 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10258 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10259 an internal gdb_static_assert.
10260 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10262 2012-01-11 Tom Tromey <tromey@redhat.com>
10265 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10266 catch" and "catch throw".
10268 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10270 * blockframe.c (block_innermost_frame): Start search from selected
10271 frame, if present, or otherwise the current frame.
10273 * c-exp.y (variable): Update innermost_block for
10274 'block COLONCOLON NAME' clause.
10275 * m2-exp.y (variable): Ditto.
10276 * objc-exp.y (variable): Ditto.
10278 2012-01-10 Tom Tromey <tromey@redhat.com>
10281 * python/python.c (finish_python_initialization): Set sys.argv.
10283 2012-01-10 Doug Evans <dje@google.com>
10285 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10286 "want_line_info". All callers updated.
10287 (dwarf_decode_lines_1): New function.
10288 (handle_DW_AT_stmt_list): Add function comment.
10289 New arg "want_line_info". All callers updated.
10290 (read_file_scope,read_type_unit_scope): Move comment from
10291 handle_DW_AT_stmt_list to here.
10293 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10295 Fix regression after libiberty/ update for GCC PR 6057 and others.
10296 * c-exp.y (operator) <OPERATOR DELETE>
10297 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10298 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10299 (make_builtin_type, make_name): New variable i, add gdb_assert.
10300 (operator) <OPERATOR NEW>: Update ARGS to 3.
10301 (operator) <OPERATOR DELETE>: Add trailing space.
10302 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10303 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10304 * cp-support.c (cp_canonicalize_string): Check NULL from
10305 cp_comp_to_string, call warning and return.
10307 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10309 Fix duplicate .o files after omitting libbfd.a.
10310 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10311 (SFILES): Add corelow.c.
10312 (COMMON_OBS): Add corelow.o.
10313 (ALLDEPFILES): Remove corelow.c.
10314 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10315 * config/alpha/alpha-osf3.mh: Likewise.
10316 * config/alpha/fbsd.mh: Likewise.
10317 * config/arm/nbsdaout.mh: Likewise.
10318 * config/arm/nbsdelf.mh: Likewise.
10319 * config/i386/i386gnu.mh: Likewise.
10320 * config/ia64/hpux.mh: Likewise.
10321 * config/ia64/linux.mh: Likewise.
10322 * config/m32r/linux.mh: Likewise.
10323 * config/m68k/linux.mh: Likewise.
10324 * config/mips/irix5.mh: Likewise.
10325 * config/mips/irix6.mh: Likewise.
10326 * config/pa/hpux.mh: Likewise.
10327 * config/pa/linux.mh: Likewise.
10328 * config/powerpc/aix.mh: Likewise.
10329 * config/sparc/linux.mh: Likewise.
10330 * config/sparc/linux64.mh: Likewise.
10331 * config/sparc/sol2.mh: Likewise.
10332 * config/vax/vax.mh: Likewise.
10333 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10334 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10335 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10336 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10337 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10338 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10339 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10340 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10341 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10342 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10343 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10344 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10345 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10346 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10347 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10348 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10349 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10350 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10351 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10352 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10353 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10354 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10355 corelow.o from gdb_target_obs.
10356 * corefile.c (core_target): Update the comment on NULL value.
10357 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10358 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10359 MATCHES. Drop YUMMY set on NULL.
10360 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10361 reclaim CORE_DATA if it is already NULL.
10363 2012-01-09 Doug Evans <dje@google.com>
10365 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10366 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10368 2012-01-09 Keith Seitz <keiths@redhat.com>
10370 * breakpoint.c (wrapper.h): Don't include.
10372 2012-01-09 Keith Seitz <keiths@redhat.com>
10374 * Makefile.in (SFILES): Remove wrapper.c.
10375 (HFILES_NO_SRCDIR): Remove wrapper.h.
10376 (COMMON_OBS): Remove wrapper.o.
10377 * cli/cli-interp.c: Don't inlude wrapper.h.
10378 * corelow.c: Likewise.
10379 (core_open): Replace gdb_target_find_new_threads with
10380 TRY_CATCH around target_find_new_threads.
10381 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10382 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10383 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10384 evaluate_expression.
10385 (varobj_set_value): Likewise for evaluate_expression and
10387 (install_new_variable): Likewise for value_fetch_lazy.
10388 (adjust_value_for_child_access): Likewise for value_ind.
10389 (c_describe_child): Likewise for value_subscript and
10391 (c_value_of_root): Likewise for evaluate_expression.
10392 * wrapper.c: Remove.
10393 * wrapper.h: Remove.
10395 2012-01-09 Doug Evans <dje@google.com>
10397 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10398 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10399 "abfd" args with "section". All callers updated.
10400 Error checking code moved ...
10401 (error_check_comp_unit_head): ... here. New function.
10402 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10403 Delete arg "abfd". New arg "type_offset". All callers updated.
10404 (create_debug_types_hash_table): Simplify by using
10405 read_and_check_type_unit_head.
10407 * parser-defs.h (namecopy): Delete.
10408 * parse.c (namecopy, namecopy_size): Move into copy_name.
10410 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10412 Partially fix duplicate .o files after omitting libbfd.a.
10413 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10414 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10415 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10416 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10417 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10418 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10419 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10421 2012-01-09 Pedro Alves <palves@redhat.com>
10423 * MAINTAINERS: Update my email address.
10425 2012-01-08 Doug Evans <dje@google.com>
10427 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10428 n_type_units. Rename type_comp_units to all_type_units.
10430 (add_signatured_type_cu_to_table): Renamed from
10431 add_signatured_type_cu_to_list. All callers updated.
10433 * gdbtypes.h (struct cplus_struct_type): Delete member
10434 nfn_fields_total. All uses removed.
10436 2012-01-06 Doug Evans <dje@google.com>
10438 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10440 (dwarf2_find_comp_unit): Delete.
10441 (process_psymtab_comp_unit): Make result "void".
10442 Delete args buffer, info_ptr, buffer_size, and replace with
10443 "section". All callers updated.
10444 (dwarf2_build_psymtabs_hard): Simplify.
10446 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10447 Thiago Jung Bauermann <bauerman@br.ibm.com>
10449 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10450 before `struct gdb_exception'.
10451 * breakpoint.c (update_global_location_list_nothrow)
10452 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10453 * cp-abi.c (value_rtti_type): Likewise.
10454 * cp-support.c (cp_validate_operator): Likewise.
10455 * infrun.c (insert_exception_resume_breakpoint)
10456 (check_exception_resume, keep_going): Likewise.
10457 * mi-interp.c (mi_breakpoint_created)
10458 (mi_breakpoint_modified): Likewise.
10459 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10460 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10461 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10463 2012-01-05 Doug Evans <dje@google.com>
10465 * dwarf2read.c (statement_prologue): Delete, unused.
10467 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10468 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10470 * dwarf2read.c (comp_unit_header): Delete, unused.
10472 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10474 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10475 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10477 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10479 * infrun.c (normal_stop): Don't skip calling the normal_stop
10480 observers if the thread was doing a multi-step, but stopped for
10481 some reason other than stepping.
10483 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10485 * cli/cli-decode.h: Add comments.
10486 (CMD_LIST_AMBIGUOUS): Moved to command.h
10487 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10488 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10489 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10490 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10491 (add_com, add_com_alias, add_info, add_info_alias)
10492 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10494 * command.h: Add and adjust comments.
10495 (CMD_LIST_AMBIGUOUS): Moved here.
10496 (help_cmd, help_cmd_list): Delete declarations.
10498 2012-01-04 Doug Evans <dje@google.com>
10500 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10501 All callers updated.
10502 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10503 Replace all arguments with "per_cu". All callers updated.
10505 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10507 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10508 New arg "per_cu". All callers updated.
10510 Delete #if 0'd out code.
10511 * language.c (binop_result_type): Delete.
10512 (simple_type, ordered_type, same_type, integral_type): Delete.
10513 (numeric_type, character_type, string_type, boolean_type): Delete.
10514 (float_type, structured_type): Delete.
10515 * language.h: Update.
10517 2012-01-04 Tom Tromey <tromey@redhat.com>
10519 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10521 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10523 * corefile.c (close_exec_file): Delete.
10524 (reopen_exec_file): Remove commented out code that seems related
10525 to close_exec_file, which is being deleted here.
10526 * inferior.h (close_exec_file): Delete.
10527 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10529 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10531 * ada-lang.c: #include "cli/cli-utils.h".
10532 (get_selections): Use skip_spaces.
10533 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10534 (catch_ada_exception_command_split): Use skip_spaces.
10535 (ada_decode_assert_location): Likewise.
10537 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10539 * linespec.c (decode_line_internal): Check for C++ or Java
10540 compound constructs only if the current language is C, C++
10543 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10546 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10547 Joel Brobecker <brobecker@adacore.com>
10548 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10549 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10551 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10552 fall through into AT_ENTRY_POINT.
10553 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10554 DUMMY_ADDR with it.
10555 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10556 PPC_INSN_SIZE skip to 3 times.
10558 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10560 * linespec.c (add_minsym): Preserve function descriptors.
10562 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10564 * breakpoint.c (all_locations_are_pending): Consider locations
10565 in program spaces executing during startup pending as well.
10567 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10569 Copyright year update in most files of the GDB Project.
10571 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10573 * copyright.sh: Delete.
10574 * copyright.py: Rewrite.
10576 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10578 * gnulib/extra/update-copyright: New file, imported from gnulib.
10580 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10582 * README (Copyright and License Notices): New section.
10584 2012-01-03 Tom Tromey <tromey@redhat.com>
10587 * python/py-value.c (valpy_dereference, valpy_get_address
10588 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10589 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10590 (valpy_absolute, valpy_richcompare): Free intermediate values.
10592 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10594 * ada-lang.c: Reformat the copyright notice.
10596 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10598 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10599 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10600 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10601 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10602 Revert this part of:
10603 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10604 Build gdb directly from *.o files not using libgdb.a.
10605 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10607 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10609 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10610 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10611 Reformat the copyright header.
10613 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10615 Revert this part of:
10616 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10617 Remove the gdbtui binary.
10618 * gdb.c (main): Remove args.interpreter_p initialization.
10619 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10620 * main.h (struct captured_main_args): Remove interpreter_p.
10622 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10624 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10626 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10628 * top.c (print_gdb_version): Update copyright year.
10630 2012-01-02 Yao Qi <yao@codesourcery.com>
10632 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10634 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10635 Joel Brobecker <brobecker@adacore.com>
10637 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10638 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10640 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10641 fall through into AT_ENTRY_POINT.
10642 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10643 DUMMY_ADDR with it.
10644 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10645 PPC_INSN_SIZE skip to 3 times.
10647 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10649 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10651 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10653 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10655 Build gdb directly from *.o files not using libgdb.a.
10656 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10657 (COMMON_OBS): Remove solib-target.o.
10658 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10659 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10660 (LIBGDB_OBS, libgdb.a): Move it above.
10661 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10662 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10663 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10664 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10665 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10666 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10667 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10668 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10669 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10670 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10671 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10672 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10673 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10674 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10675 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10676 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10677 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10678 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10679 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10680 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10681 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10682 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10683 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10684 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10685 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10686 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10687 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10689 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10691 Remove the gdbtui binary.
10692 * .gitignore (/gdbtui): Remove.
10693 * Makefile.in (TUI): Remove.
10694 (SUBDIR_TUI_OBS): Remove tui-main.o.
10695 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10696 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10697 (tui-main.o): Remove.
10698 (all_object_files): Remove tui-main.o.
10699 * NEWS: New note for the gdbtui removal.
10700 * configure: Rebuilt.
10701 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10702 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10703 CONFIG_UNINSTALL respectively.
10704 * gdb.c (main): Remove args.interpreter_p initialization.
10705 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10706 * main.h (struct captured_main_args): Remove interpreter_p.
10707 * tui/tui-main.c: Remove.
10709 2012-01-01 Doug Evans <dje@google.com>
10711 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10712 (dwarf2_physname, read_import_statement): Ditto.
10713 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10714 (process_structure_scope read_subroutine_type): Ditto.
10715 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10716 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10717 (dwarf2_fetch_die_location_block): Ditto.
10718 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10720 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10721 All callers updated.
10722 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10723 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10724 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10726 * dwarf2read.c (load_cu): Move assert to more useful location.
10728 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10729 All callers updated.
10731 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10732 (dwarf2_elf_names): Minor reformat.
10733 (dwarf2_per_cu_data): Tweak comment.
10734 (dwarf2_read_section): Fix comment.
10735 (create_all_comp_units): Fix comment.
10736 (load_full_comp_unit): Fix comment.
10737 (process_full_comp_unit): Fix comment.
10738 (read_signatured_type): Fix comment.
10740 For older changes see ChangeLog-2011.
10746 version-control: never