1 2012-09-27 Joel Brobecker <brobecker@adacore.com>
3 * procfs.h (procfs_find_LDT_entry): Add declaration.
4 * sol-thread.c (ps_lgetLDT): Delete local declaration of
5 function procfs_find_LDT_entry.
7 2012-09-27 Joel Brobecker <brobecker@adacore.com>
9 * procfs.c (proc_get_LDT_entry): Make static.
11 2012-09-27 Joel Brobecker <brobecker@adacore.com>
13 * procfs.c (proc_find_memory_regions): Fix declaration.
15 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
17 * amd64-tdep.c (amd64_return_value): Revert previous change
18 that used TYPE_LENGTH directly.
19 * bfin-tdep.c (bfin_extract_return_value): Likewise.
20 (bfin_store_return_value): Likewise.
21 * cris-tdep.c (cris_store_return_value): Likewise.
22 (cris_extract_return_value): Likewise.
23 * h8300-tdep.c (h8300_extract_return_value): Likewise.
24 * hppa-tdep.c (hppa64_return_value): Likewise.
25 * lm32-tdep.c (lm32_store_return_value): Likewise.
26 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
27 * spu-tdep.c (spu_value_from_register): Likewise.
28 * vax-tdep.c (vax_return_value): Likewise.
30 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
32 * gdbtypes.c (lookup_array_range_type): Expand parameters
33 LOW_BOUND and HIGH_BOUND to LONGEST.
34 (lookup_string_range_type): Likewise.
35 * gdbtypes.h (lookup_array_range_type): Likewise.
36 (lookup_string_range_type): Likewise.
37 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
38 Expand HIGHBOUND to ssize_t.
39 (value_string): Likewise.
40 * value.h (value_cstring): Expand parameter LEN to ssize_t.
41 (value_string): Likewise.
43 2012-09-27 Yao Qi <yao@codesourcery.com>
46 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
47 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
50 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
52 * procfs.c: Add gdb_bfd header.
53 * rs6000-nat.c: Likewise.
54 * solib-pa64.c: Likewise.
55 * spu-linux-nat.c: Likewise.
56 * windows-nat.c: Likewise.
58 2012-09-26 Tom Tromey <tromey@redhat.com>
60 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
62 2012-09-26 Tom Tromey <tromey@redhat.com>
64 * dwarf2read.c (mark_common_block_symbol_computed): New function.
65 (read_common_block): Handle child DIEs with
66 DW_AT_data_member_location.
67 (new_symbol_full): Add special case for common blocks.
69 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
70 Tom Tromey <tromey@redhat.com>
72 * dwarf2read.c (read_common_block): Rewrite.
73 (new_symbol_full): Handle DW_TAG_common_block.
74 * f-lang.c (head_common_list, find_common_for_function):
76 * f-lang.h (struct common_entry, struct saved_f77_common,
77 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
78 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
79 BLANK_COMMON_NAME_LOCAL): Remove.
80 (struct common_block): New.
81 * f-valprint.c (list_all_visible_commons): Remove.
82 (info_common_command_for_block): New function.
83 (info_common_command): Use it.
84 * stack.c (iterate_over_block_locals): Special case for
86 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
88 (struct general_symbol_info) <value.common_block>: New field.
89 (SYMBOL_VALUE_COMMON_BLOCK): New define.
91 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
92 Tom Tromey <tromey@redhat.com>
94 * f-lang.c (allocate_saved_bf_node,
95 allocate_saved_function_node, allocate_saved_f77_common_node,
96 allocate_common_entry_node, tail_common_list, current_common,
97 saved_bf_list, saved_bf_list_end, current_head_bf_list,
98 tmp_bf_ptr, add_common_block, add_common_entry,
99 find_first_common_named, patch_common_entries,
100 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
101 global_remote_debug, get_bf_for_fcn, saved_function_list,
102 saved_function_list_end, clear_function_list, struct saved_fcn,
103 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
104 SAVED_BF, SAVED_BF_PTR): Remove.
105 * f-lang.h (tail_common_list, current_common,
106 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
107 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
108 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
109 real_main_c_value): Remove.
110 * f-valprint.c (there_is_a_visible_common_named): Remove.
112 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
114 * breakpoint.c (update_global_location_list): Ignore previous
115 duplicate status of a breakpoint when starting a new scan for
116 duplicate breakpoints.
118 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
120 * arm-tdep.c (arm_skip_prologue): Extending producer check to
121 support LLVM compiler.
123 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
125 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
126 * bfin-tdep.c (bfin_extract_return_value): Likewise.
127 (bfin_store_return_value): Likewise.
128 * cris-tdep.c (cris_store_return_value): Likewise.
129 (cris_extract_return_value): Likewise.
130 * h8300-tdep.c (h8300_extract_return_value): Likewise.
131 * hppa-tdep.c (hppa64_return_value): Likewise.
132 * lm32-tdep.c (lm32_store_return_value): Likewise.
133 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
134 * spu-tdep.c (spu_value_from_register): Likewise.
135 * vax-tdep.c (vax_return_value): Likewise.
137 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
139 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
140 parameter LEN to ssize_t.
142 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
144 * ada-valprint.c (ada_val_print_1): Eliminate single-use
146 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
148 (alpha_store_return_value): Likewise.
149 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
150 (amd64_push_arguments): Likewise.
151 * ax-gdb.c (gen_trace_static_fields): Likewise.
152 (gen_traced_pop): Likewise.
153 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
154 * breakpoint.c (update_watchpoint): Likewise.
155 * findcmd.c (parse_find_args): Use local variable for type
157 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
158 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
159 (h8300_store_return_value): Likewise.
160 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
161 Use i386_darwin_arg_type_alignment directly.
162 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
163 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
164 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
165 (m68hc11_extract_return_value): Likewise.
166 * mep-tdep.c (mep_push_dummy_call): Likewise.
167 * printcmd.c (float_type_from_length): Likewise.
168 * s390-tdep.c (s390_value_from_register): Likewise.
169 * stack.c (read_frame_arg): Likewise.
170 * tracepoint.c (encode_actions_1): Likewise.
171 * valops.c (value_fetch_lazy): Use local variable for type
172 instead of length. Use TYPE_LENGTH directly.
173 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
175 2012-09-25 Joel Brobecker <brobecker@adacore.com>
177 * symtab.c (skip_prologue_sal): Fix typo in comment.
179 2012-09-25 Joel Brobecker <brobecker@adacore.com>
181 * linespec.c (create_sals_line_offset): Fix typo in comment.
183 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
185 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
186 use plongest to print the array size.
188 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
190 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
191 * p-valprint.c (pascal_type_print_base): Likewise.
193 2012-09-22 Yao Qi <yao@codesourcery.com>
195 * remote.c (remote_get_trace_status): Remove setting default
196 values of fields of 'ts'.
198 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
200 Fix internal error on canonicalization of clang types.
201 * cp-name-parser.y (operator): New comment at make_operator call for
202 new, delete, new[] and delete[].
203 (exp): Use "sizeof ". Add new comment at make_operator call.
205 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
207 Fix disassemble without parameters in tailcall frame.
208 * cli/cli-cmds.c (disassemble_current_function): Use
209 get_frame_address_in_block.
211 2012-09-21 Tom Tromey <tromey@redhat.com>
213 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
214 TYPE_CODE_UNION>: Unify, removing a goto.
216 2012-09-21 Tom Tromey <tromey@redhat.com>
218 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
220 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
222 * findvar.c (read_frame_register_value): Mark the result value as
223 optimized out if any of the input registers have been optimized out.
225 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
227 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
229 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
231 * eval.c (evaluate_subexp_standard): Eliminate single-use
234 2012-09-21 Yao Qi <yao@codesourcery.com>
236 * mi/mi-interp.c: Declare mi_record_changed.
237 (mi_interpreter_init): Call observer_attach_record_changed.
238 (mi_record_changed): New.
239 * record.c (record_open): Call observer_notify_record_changed.
240 (cmd_record_stop): Call observer_notify_record_changed.
243 2012-09-20 Tom Tromey <tromey@redhat.com>
246 * python/python.c (finalize_python): New function.
247 (_initialize_python): Make a final cleanup.
249 2012-09-19 Doug Evans <dje@google.com>
251 * buildsym.h (param_symbols): Delete, unused.
252 (context_stack): Delete member "params", unused.
253 * buildsym.c (push_context): Update.
254 * dwarf2read.c (read_func_scope): Update.
256 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
258 * sh-tdep.c (sh_register_convert_to_virtual)
259 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
260 all callers. Just do a memcpy if not the little-endian case.
262 * h8300-tdep.c (h8300_gdbarch_init): Invoke
263 set_gdbarch_double_format and set_gdbarch_long_double_format.
264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
265 set_gdbarch_double_format.
266 * sh-tdep.c (sh_gdbarch_init): Likewise.
268 * NEWS: Document the removal of SH's 'regs' command.
269 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
272 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
274 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
277 2012-09-18 Joel Brobecker <brobecker@adacore.com>
279 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
280 language when iterating over symbols.
282 2012-09-18 Yao Qi <yao@codesourcery.com>
284 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
285 (mi_interpreter_init): Call observer_attach_tsv_created and
286 observer_attach_tsv_deleted.
287 (mi_tsv_created, mi_tsv_deleted): New.
288 * tracepoint.c (delete_trace_state_variable): Call
289 observer_notify_tsv_deleted.
290 (trace_variable_command): Call observer_notify_tsv_created.
291 (delete_trace_variable_command): Call
292 observer_notify_tsv_deleted.
293 (create_tsv_from_upload): Call observer_notify_tsv_created.
296 2012-09-18 Yao Qi <yao@codesourcery.com>
298 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
299 if traceframe changed.
300 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
302 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
303 (mi_interpreter_init): Hook mi_traceframe_changed to observer
304 'traceframe_changed'.
305 (mi_traceframe_changed): New.
306 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
308 * NEWS: Mention the new MI notification.
310 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
312 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
314 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
316 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
317 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
318 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
319 Extend code also for PaX support. Convert all gdb_assert to warning
322 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
324 Implement auto-load user conveniences suggested by Doug Evans.
325 * auto-load.c: Include top.h.
326 (file_is_auto_load_safe): New variable advice_printed. Print advice.
327 (_initialize_auto_load): New variable scripts_directory_help. Mention
328 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
329 scripts-directory. Document in online help one can use also files for
330 set auto-load safe-path.
331 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
332 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
334 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
336 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
339 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
341 * m2-valprint.c (m2_print_array_contents): Eliminate variable
342 ELTLEN and use TYPE_LENGTH directly.
343 (m2_val_print): Likewise.
344 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
345 variable LEN and use TYPE_LENGTH directly.
346 (m68k_svr4_store_return_value): Likewise.
347 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
348 ARGLEN and use TYPE_LENGTH directly.
349 (mips_o64_push_dummy_call): Likewise.
350 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
351 variable LENGTH and use TYPE_LENGTH directly.
352 (s390_function_arg_float): Likewise.
353 (s390_function_arg_integer): Likewise.
354 (s390_push_dummy_call): Likewise.
355 (s390_return_value_convention): Likewise.
356 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
357 TYPE_LENGTH directly.
359 2012-09-17 Yao Qi <yao@codesourcery.com>
361 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
362 Update comment to add_setshow_integer_cmd.
363 * cli/cli-setshow.c (do_set_command): Handle case
364 'var_zuinteger_unlimited'.
365 (do_show_command): Likewise.
366 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
367 for command 'remotetimeout'.
368 * command.h (enum var_types): New zuinteger_unlimited. Update comment
370 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
371 for command 'set listsize'.
373 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
375 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
378 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
381 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
382 (frame_pop): Drop also TAILCALL_FRAME frames.
383 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
385 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
386 Pedro Alves <palves@redhat.com>
389 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
390 function start if we are already at function start. Both for
391 reverse-next and for reverse-step into function without line number
394 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
396 Code cleanup - rename 'inline' depth to 'artificial' depth.
397 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
398 frame_id_artificial_p, extend the comment.
399 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
400 * frame.c (fprint_frame_id): Rename at a user, change debug output
401 text to "artificial=".
402 (skip_inlined_frames): Rename to ...
403 (skip_artificial_frames): ... here. Extend the comment.
404 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
405 (frame_id_inlined_p): Rename to ...
406 (frame_id_artificial_p): ... here. Rename at a user.
407 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
408 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
410 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
412 (frame_id_inlined_p): Rename to ...
413 (frame_id_artificial_p): ... here.
414 * inline-frame.c (inline_frame_this_id): Rename at a user.
416 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
418 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
419 vector variables using vector_size syntax rather than array
422 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
424 * valarith.c (value_concat): Replace unsafe ALLOCA with
427 2012-09-14 Pedro Alves <palves@redhat.com>
429 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
431 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
433 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
434 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
435 data-directory as appropriate.
437 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
439 * printcmd.c (ui_printf): Eliminate single-use variable
442 2012-09-14 Yao Qi <yao@codesourcery.com>
443 Pedro Alves <palves@redhat.com>
445 * valops.c (value_assign): Move observer_notify_target_changed
446 below to replace reinit_frame_cache.
448 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
450 Refactor Python "gdb" module into a proper Python package, by
451 introducing a new "_gdb" module for code implemented in C, and
452 using reload/__import__ instead of exec.
453 * python/lib/gdb/__init__.py: Import * from _gdb.
454 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
455 prompt_hook, sys.argv): Moved from finish_python_initialization.
456 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
457 (packages, auto_load_packages): New list and function replacing
458 module_dict and auto-loading code, using __file__ instead of
459 gdb.PYTHONDIR and reload/__import__ instead of exec.
460 (GdbSetPythonDirectory): Replacing function of the same name
461 from finish_python_initialization, using reload/__import__ instead
462 of exec, as well as call auto_load_packages.
463 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
464 gdb_python_module and not gdb_module.
465 * python/python-internal.h (gdb_python_module): Declare.
466 * python/python.c (gdb_python_module): New global.
467 (before_prompt_hook): Check gdb_python_module and not gdb_module.
468 (_initialize_python): Rename gdb module to _gdb.
469 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
470 (finish_python_initialization): Move Python code to
471 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
474 2012-09-13 Pedro Alves <palves@redhat.com>
476 * Makefile.in (COMMON_OBS): Add registry.o.
477 * registry.c: New file.
478 * registry.h (struct registry_container): Declare.
479 (registry_data_callback): New typedef.
480 (struct registry_data, struct registry_data_registration, struct
481 registry_data_registry): New type.
482 (register_data_with_cleanup, registry_alloc_data)
483 (registry_callback_adaptor, registry_clear_data)
484 (registry_container_free_data, registry_set_data, registry_data):
486 (DEFINE_REGISTRY): Refactor structures and functions as shims over
487 the new common structures and functions.
488 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
491 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
493 * remote.c (remote_insert_hw_breakpoint): Throw exception if
494 there is an error inserting hardware breakpoints and use the
495 error message from the target.
497 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
498 Catch this exception and print the error message contained within. Do not
499 print the default hardware error breakpoint message in this case.
501 2012-09-12 Doug Evans <dje@google.com>
503 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
506 2012-09-11 Doug Evans <dje@google.com>
508 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
509 .gdb_index symbol attributes if there are none.
511 2012-09-11 Joel Brobecker <brobecker@adacore.com>
513 * symtab.h (struct minimal_symbol) [has_size]: New field.
514 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
515 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
516 * printcmd.c (build_address_symbolic): Only filter out zero-sized
517 minimal symbols if the symbol's size is actually known.
518 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
519 of msymbol's size field. Add comment.
520 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
521 SET_MSYMBOL_SIZE to set the minimal symbol size.
523 2012-09-11 Joel Brobecker <brobecker@adacore.com>
525 * minsyms.c (install_minimal_symbols): Use memset to fill entire
526 minimal_symbol struct object, rather than setting some of its
529 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
531 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
532 passed_a_ptr flag when displaying typedef types.
534 2012-09-10 Joel Brobecker <brobecker@adacore.com>
536 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
537 the optimized_out flag is preserved.
539 2012-09-10 Anthony Green <green@moxielogic.com>
541 * moxie-tdep.c (moxie_analyze_prologue): Update for function
542 prologue changes in GCC.
544 2012-09-10 Keith Seitz <keiths@redhat.com>
547 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
548 (BOOL_CONVERSION_BADNESS): ... this.
549 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
550 (rank_one_type): Allow all boolean conversions
551 permitted by the standard.
553 2012-09-06 Tom Tromey <tromey@redhat.com>
555 * python/py-newobjfileevent.c (create_new_objfile_event_object):
556 Don't decref py_objfile.
558 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
560 Do not enable -lmcheck by default when Python is enabled with
562 * configure.ac: (python_has_threads) New variable, by testing
563 if WITH_THREAD is defined in Python.h.
564 Move --enable-lmcheck after --with-python.
565 Do not enable -lmcheck by default if python_has_threads=yes.
566 Warn if --enable-lmcheck and python_has_threads=yes.
567 * configure: Regenerate.
569 2012-08-31 Yao Qi <yao@codesourcery.com>
571 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
572 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
573 Update some commands.
574 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
575 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
578 2012-08-31 Yao Qi <yao@codesourcery.com>
580 * mi/mi-cmds.c (mi_cmds): Add 'static'.
582 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
584 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
586 2012-08-29 Doug Evans <dje@google.com>
588 * main.c (print_gdb_help): Remove reference to
589 --use-deprecated-index-sections.
591 2012-08-28 Yao Qi <yao@codesourcery.com>
593 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
594 (init_cmds): Call add_setshow_uinteger_cmd for command
595 'max-user-call-depth'.
596 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
597 declaration of 'max_user_call_depth'.
598 * frame.c (backtrace_limit): Add 'unsigned'.
599 (_initialize_frame): Call add_setshow_uinteger_cmd for command
601 * remote.c (remoteaddresssize): Add 'unsigned'.
602 (remote_address_masked): Change local var 'address_size' to
604 (_initialize_remote): Call add_setshow_uinteger_cmd for
606 * top.c (history_size): Add 'unsigned'.
607 (show_commands): Change local variables to 'unsigned'.
608 (set_history_size_command): Don't check history_size is negative.
609 Adjust the condition to call unstifle_history and set history_size
612 2012-08-28 Pedro Alves <palves@redhat.com>
616 * infcmd.c (default_print_one_register_info): New, factored out
617 from default_print_registers_info.
618 (default_print_registers_info): Use it. Mark value unavailable if
620 (registers_info): Print user registers with
621 default_print_one_register_info.
623 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
626 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
627 is not NULL before referencing it.
629 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
631 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
632 variable pc. Call find_pc_line instead of find_pc_overlay, restore
635 2012-08-27 Eli Zaretskii <eliz@gnu.org>
636 Jan Kratochvil <jan.kratochvil@redhat.com>
638 * auto-load.c (auto_load_objfile_script): Rename to ...
639 (auto_load_objfile_script_1): ... here, change variable realname to
640 parameter realname, document it, add return value, add variable retval.
641 (auto_load_objfile_script): New function.
643 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
645 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
646 followed by a whitespace.
648 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
651 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
652 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
653 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
656 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
658 * memattr.c (create_mem_region): Fix memory region overlapping
661 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
663 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
664 with xmalloc/cleanup.
665 * mt-tdep.c (mt_push_dummy_call): Likewise.
666 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
667 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
669 2012-08-24 Yao Qi <yao@codesourcery.com>
671 * jv-exp.y (push_expression_name): Add "." at the end of error
674 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
676 Document how to return from "python-interactive" to GDB.
677 * python/python.c (_initialize_python): Update documentation.
679 2012-08-23 Pedro Alves <palves@redhat.com>
681 * infrun.c (_initialize_infrun) <handle command help text>:
682 Mention that multiple signals are supported.
684 2012-08-23 Pedro Alves <palves@redhat.com>
686 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
689 2012-08-23 Yao Qi <yao@codesourcery.com>
691 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
692 (tfind_1): Don't call registers_changed, set_traceframe_num,
693 and clear_traceframe_info.
694 Call set_current_traceframe.
695 (set_current_traceframe): call set_traceframe_num.
697 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
699 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
700 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
702 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
704 Enable readline in Python in a GDB-specific way and block the
705 standard Python readline module to prevent conflicts with GDB.
706 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
707 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
708 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
709 * python/py-gdb-readline.c: New file.
710 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
712 * python/python.c (_initialize_python): Call
713 gdbpy_initialize_gdb_readline.
715 2012-08-22 Keith Seitz <keiths@redhat.com>
717 * defs.h: Include build-gnulib/config.h
719 2012-08-22 Joseph Myers <joseph@codesourcery.com>
721 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
724 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
726 Add a new "python-interactive" command that starts a standard
727 Python interactive prompt with "pi" as alias, and add "py" as
728 an alias to "python".
729 * NEWS: Mention the new commands.
730 * python/python.c (eval_python_command): New function.
731 (python_interactive_command): For "python-interactive" with
732 arguments, call eval_python_command. For "python-interactive"
733 without arguments, call PyRun_InteractiveLoop.
734 (_initialize_python): Add "python-interactive" command with
735 "pi" as alias, and add "py" as an alias to "python".
737 2012-08-22 Tom Tromey <tromey@redhat.com>
739 * defs.h (quit_flag): Don't declare.
740 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
741 (QUIT): Use new functions.
742 * event-top.c (command_handler): Use clear_quit_flag.
743 (handle_sigint): Use set_quit_flag.
744 (async_request_quit): Use check_quit_flag. Don't check
746 * exceptions.c (throw_exception): Use clear_quit_flag.
747 * main.c (captured_main): Use clear_quit_flag.
748 * python/python.c (clear_quit_flag, set_quit_flag)
749 (check_quit_flag): New functions.
750 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
752 * remote.c (remote_wait_as): Use check_quit_flag,
754 (remote_start_remote): Call QUIT.
755 * symfile.c (load_progress): Use check_quit_flag.
756 * top.c (command_loop): Use clear_quit_flag.
757 (command_line_input): Call QUIT.
758 * utils.c (quit_flag): Conditionally define.
759 (clear_quit_flag, check_quit_flag, set_quit_flag): New
761 (prompt_for_continue): Call QUIT. Use quit, not
763 * remote-mips.c (mips_expect_timeout): Call QUIT.
764 * monitor.c (monitor_expect): Call QUIT.
766 2012-08-22 Tom Tromey <tromey@redhat.com>
768 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
769 (async_init_signals): Update.
770 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
771 (SIGWINCH_HANDLER_BODY): Remove.
773 2012-08-22 Tom Tromey <tromey@redhat.com>
775 * jit.c (jit_object_close_impl): Don't malloc the objfile
777 * objfiles.c (allocate_objfile): Don't malloc the objfile
779 (free_objfile): Don't free the objfile name.
780 * objfiles.h (struct objfile) <name>: Update comment.
781 * symfile.c (reread_symbols): Fix reference counting. Don't
784 2012-08-22 Tom Tromey <tromey@redhat.com>
786 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
787 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
788 (symfile_bfd_open): Likewise.
789 (generic_load): Likewise.
790 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
791 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
793 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
795 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
796 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
797 (pmon_load_fast): Likewise.
798 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
799 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
800 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
801 (macho_check_dsym): Likewise.
802 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
803 (m32r_upload_command): Likewise.
804 * gdb_bfd.h (gdb_bfd_cache): Declare.
805 * gdb_bfd.c (struct gdb_bfd_data): New.
806 (gdb_bfd_cache): New global.
807 (struct gdb_bfd_cache_search): New.
808 (hash_bfd): New function.
810 (gdb_bfd_open): Likewise.
811 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
812 (gdb_bfd_unref): Remove closed BFD from cache. Update for
814 * exec.c (exec_file_attach): Use gdb_bfd_open.
815 * dsrec.c (load_srec): Use gdb_bfd_open.
817 2012-08-22 Tom Tromey <tromey@redhat.com>
819 * dwarf2read.c (macro_start_file): Update.
820 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
821 (free_objfile_per_bfd_storage): Destroy macro_cache.
822 (allocate_objfile, free_objfile): Update.
823 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
825 (struct objfile) <macro_cache>: Remove.
826 * symfile.c (reread_symbols): Update.
827 * symmisc.c (print_symbol_bcache_statistics): Update.
828 (print_objfile_statistics): Update.
830 2012-08-22 Tom Tromey <tromey@redhat.com>
832 * elfread.c (elf_symtab_read): Update.
833 * objfiles.c (objfiles_bfd_data): New global.
834 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
835 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
836 (allocate_objfile, free_objfile): Update.
837 (_initialize_objfiles): Initialize objfiles_bfd_data.
838 * objfiles.h (struct objfile_per_bfd_storage): New.
839 (struct objfile) <per_bfd>: New field.
840 <filename_cache>: Remove.
841 (set_objfile_per_bfd): Declare.
842 * symfile.c (reread_symbols): Update. Call
844 (allocate_symtab): Update.
845 * symmisc.c (print_symbol_bcache_statistics): Update.
846 (print_objfile_statistics): Print the size of the BFD obstack.
848 2012-08-22 Tom Tromey <tromey@redhat.com>
850 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
851 * gdb_bfd.c: Use DEFINE_REGISTRY.
852 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
853 (gdb_bfd_ref): Call bfd_alloc_data.
854 (gdb_bfd_unref): Call bfd_free_data.
856 2012-08-22 Tom Tromey <tromey@redhat.com>
858 * registry.h (struct registry_fields): New.
859 (REGISTRY_FIELDS): Redefine.
860 (REGISTRY_ACCESS_FIELD): New macro.
861 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
864 2012-08-22 Tom Tromey <tromey@redhat.com>
866 * auto-load.c (_initialize_auto_load): Update.
867 * solib-svr4.c (_initialize_svr4_solib): Update
868 * solib-dsbt.c (_initialize_dsbt_solib): Update.
869 * solib-darwin.c (_initialize_darwin_solib): Update.
870 * registry.h: New file.
871 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
872 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
873 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
874 (register_program_space_data_with_cleanup)
875 (register_program_space_data, program_space_alloc_data)
876 (clear_program_space_data, set_program_space_data)
877 (program_space_data): Don't declare.
878 * progspace.c: Use DEFINE_REGISTRY.
879 (struct program_space_data, struct
880 program_space_data_registration, struct
881 program_space_data_registry, program_space_data_registry)
882 (register_program_space_data_with_cleanup)
883 (register_program_space_data, program_space_alloc_data)
884 (program_space_free_data, clear_program_space_data)
885 (set_program_space_data, program_space_data): Remove.
886 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
887 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
888 (register_objfile_data_with_cleanup, register_objfile_data)
889 (clear_objfile_data, set_objfile_data, objfile_data): Don't
891 * objfiles.c: Use DEFINE_REGISTRY.
892 (struct objfile_data, struct objfile_data_registration, struct
893 objfile_data_registry, objfile_data_registry)
894 (register_objfile_data_with_cleanup, register_objfile_data)
895 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
896 (set_objfile_data, objfile_data): Remove.
897 (_initialize_objfiles): Update.
898 * jit.c (_initialize_jit): Update.
899 * inflow.c (_initialize_inflow): Update.
900 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
901 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
902 (register_inferior_data_with_cleanup, register_inferior_data)
903 (clear_inferior_data, set_inferior_data, inferior_data): Don't
905 * inferior.c: Use DEFINE_REGISTRY.
906 (struct inferior_data, struct inferior_data_registration, struct
907 inferior_data_registry, inferior_data_registry)
908 (register_inferior_data_with_cleanup, register_inferior_data)
909 (inferior_alloc_data, inferior_free_data clear_inferior_data)
910 (set_inferior_data, inferior_data): Remove.
911 * auxv.c (_initialize_auxv): Update.
912 * ada-lang.c (_initialize_ada_language): Update.
913 * breakpoint.c (_initialize_breakpoint): Update.
914 * i386-nat.c (i386_use_watchpoints): Update.
916 2012-08-22 Tom Tromey <tromey@redhat.com>
918 * exec.c (exec_close, exec_file_attach): Update.
919 (add_to_section_table): Initialize 'key' field.
920 (add_target_sections, remove_target_sections): Add 'key' argument.
921 * exec.h (add_target_sections, remove_target_sections): Add
923 * solib.c (solib_map_sections, update_solib_list, clear_solib)
924 (reload_shared_libraries_1): Update.
925 * target.h (struct target_section) <key>: New field.
927 2012-08-22 Tom Tromey <tromey@redhat.com>
929 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
931 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
933 * symfile.c (allocate_symtab): Use host_address_to_string
934 function instead of cast of pointer to long which is not
935 compatible with x86_64-w64-mingw32 build.
937 2012-08-19 Andrew Pinski <apinski@cavium.com>
939 * mips-tdep.c (is_octeon): New function.
940 (is_octeon_bbit_op): New function.
941 (mips32_next_pc): Handle Octeon's bbit instructions.
942 (mips32_instruction_has_delay_slot): Likewise.
944 2012-08-19 Andrew Pinski <apinski@cavium.com>
946 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
949 2012-08-19 Andrew Pinski <apinski@cavium.com>
951 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
953 2012-08-19 Keith Seitz <keiths@redhat.com>
956 * c-typeprint.c (c_type_print_varspec_prefix): Pass
957 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
959 2012-08-18 Eli Zaretskii <eliz@gnu.org>
961 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
962 The typo broke "make TAGS".
964 2012-08-17 Joel Brobecker <brobecker@adacore.com>
968 2012-08-17 Keith Seitz <keiths@redhat.com>
971 * gdbtypes.c (strict_type_checking): New variable.
972 (show_strict_type_checking): New function.
973 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
974 if strict type checking is disabled.
975 (_initialize_gdbtypes): Add "check type" subcommand.
976 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
978 2012-08-17 Keith Seitz <keiths@redhat.com>
980 * language.h (type_mode): Remove.
981 (type_check): Remove.
982 (struct language_defn): Remove la_type_check.
983 (STRICT_TYPE): Remove unused macro.
984 (type_error): Remove.
985 * language.c (set_type_range_case): Renamed to ...
986 (set_range_case): ... this. Update all callers.
987 Remove type_mode/type_check.
989 (type_check): Remove.
990 (show_type_command): Remove.
991 (set_type_command): Remove.
992 (language_info): Remove type checking output.
993 (type_error): Remove unused function.
994 (range_error): Update comment.
995 (unknown_language_defn): Remove la_type_check.
996 (auto_language_defn): Likewise.
997 (local_language_defn): Likewise.
998 (_initialize_language): Remove "check type" subcommand.
999 * ada-lang.c (ada_language_defn): Remove la_type_check.
1000 * c-lang.c (c_language_defn): Likewise.
1001 (cplus_language_defn): Likewise.
1002 (asm_language_defn): Likewise.
1003 (minimal_language_defn): Likewise.
1004 * d-lang.c (d_language_defn): Likewise.
1005 * f-lang.c (f_language_defn): Likewise.
1006 * go-lang.c (go_language_defn): Likewise.
1007 * jv-lang.c (java_language_defn): Likewise.
1008 * m2-lang.c (m2_language_defn): Likewise.
1009 * objc-lang.c (objc_language_defn): Likewise.
1010 * opencl-lang.c (opencl_language_defn): Likewise.
1011 * p-lang.c (pascal_language_defn): Likewise.
1013 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1015 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1017 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1019 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1021 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1022 using the regache. Use ia64_hpux_get_register_from_save_state_t
1023 to access the bsp and bspstore registers if not.
1025 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1027 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1028 * breakpoint.c (detach_breakpoints): Change pid parameter into
1029 a ptid. Adjust code accordingly.
1030 * infrun.c (handle_inferior_event): Delete variable child_pid.
1031 Update call to detach_breakpoints to pass the child ptid for
1033 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1034 assert that inferior_ptid's lwp is zero.
1035 (linux_handle_extended_wait): Update call to detach_breakpoints.
1036 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1039 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1041 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1042 parent, only call detach_breakpoints if tts.tts_event ==
1045 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1047 * dwarf2-frame.c (dwarf2_frame_cache): Use
1048 get_frame_address_in_block instead of get_frame_pc as
1049 the bound for executing the frame's FDE.
1051 2012-08-16 Yao Qi <yao@codesourcery.com>
1053 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1054 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1055 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1056 (c_type_print_varspec_suffix): Likewise.
1057 * eval.c (evaluate_subexp_standard): Likewise.
1058 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1059 (f_type_print_varspec_suffix): Likewise.
1060 * gdbtypes.c (is_scalar_type): Likewise.
1061 (recursive_dump_type): Likewise.
1062 * infcall.c (value_arg_coerce): Likewise.
1063 * m2-valprint.c (m2_val_print): Likewise.
1064 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1065 (pascal_type_print_varspec_suffix): Likewise.
1066 (pascal_type_print_base): Likewise.
1067 * p-valprint.c (pascal_val_print): Likewise.
1068 (pascal_val_print): Likewise.
1069 * valops.c (value_slice): Likewise.
1070 * valprint.c (scalar_type_p): Likewise.
1071 * valarith.c (value_bitstring_subscript): Remove.
1072 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1073 Remove comment on TYPE_CODE_BITSTRING.
1075 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1076 TYPE_CODE_BITSTRING.
1078 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1081 2012-08-16 Yao Qi <yao@codesourcery.com>
1083 * tracepoint.c (trace_find_none_command): Remove.
1084 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1086 2012-08-16 Yao Qi <yao@codesourcery.com>
1088 * remote.c (handle_notification): Remove parameter 'length'.
1089 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1091 2012-08-15 Keith Seitz <keiths@redhat.com>
1093 * gdbtypes.c (opaque_type_resolution): Make static.
1094 Add missing comment.
1095 (overload_debug): Add missing comment.
1096 (show_opaque_type_resolution): Likewise.
1097 (show_overload_debug): Likewise.
1098 (print_bit_vector): Remove unnecessary forward declaration.
1099 (print_arg_types): Likewise.
1100 (dump_fn_fieldlists): Likewise.
1101 (print_cplus_stuff): Likewise.
1103 2012-08-15 Tom Tromey <tromey@redhat.com>
1105 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1106 (gdb_bfd_ref): Initialize new field.
1107 (gdb_bfd_unref): Unref the archive BFD.
1108 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1111 2012-08-15 Tom Tromey <tromey@redhat.com>
1114 * python/py-bpevent.c (create_breakpoint_event_object): Update
1116 * python/py-event.c (evpy_add_attribute): Update comment.
1117 * python/py-exitedevent.c (create_exited_event_object): Fix
1118 reference counting and error handling.
1119 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1120 Fix reference counting.
1121 * python/py-signalevent.c (create_signal_event_object): Fix
1122 reference counting and error handling.
1123 * python/py-stopevent.c (emit_stop_event): Fix reference
1125 * python/py-threadevent.c (get_event_thread): Return a
1127 * python/py-type.c (convert_field): Fix reference counting.
1129 2012-08-15 Tom Tromey <tromey@redhat.com>
1131 * dwarf2read.c (dwarf_decode_macro_bytes)
1132 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1135 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1137 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1138 stepi, nexti, finish, next, step, jump, and continue commands.
1139 * infrun.c (_initialize_infrun): Update help text for the handle
1142 2012-08-14 Doug Evans <dje@google.com>
1144 * gdbtypes.c (struct extra): Delete, unused.
1146 * gdbtypes.c: Whitespace cleanup.
1147 (address_space_name_to_int): Remove "extern" from definition.
1148 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1150 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1151 TYPE_POINTER_TYPE (type).
1153 2012-08-14 Gary Benson <gbenson@redhat.com>
1155 * solib-svr4.c (svr4_free_library_list): Use free_so.
1157 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1159 * .gitignore: Add go-exp.c.
1161 2012-08-13 Doug Evans <dje@google.com>
1163 * value.c (show_convenience): Tweak comment.
1164 (_initialize_values): Mention convenience functions in the help text
1165 for "show convenience".
1167 2012-08-13 Yao Qi <yao@codesourcery.com>
1169 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1170 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1172 * eval.c (evaluate_subexp_standard): Likewise.
1173 * expprint.c (print_subexp_standard): Likewise.
1174 (dump_subexp_body_standard): Likewise.
1175 * parse.c (operator_length_standard): Likewise.
1177 2012-08-13 Yao Qi <yao@codesourcery.com>
1179 * std-operator.def: Remove OP_BITSTRING.
1180 * breakpoint.c (watchpoint_exp_is_const): Update.
1181 * eval.c (evaluate_subexp_standard): Remove handling to
1183 * expprint.c (print_subexp_standard): Likewise.
1184 (dump_subexp_body_standard): Likewise.
1185 * parse.c (operator_length_standard): Likewise.
1186 * valops.c (value_bitstring): Remove.
1187 * value.h: Remove the declaration of 'value_bitstring'.
1189 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1191 * linespec.c (find_methods): Remove unused variables `i1' and
1193 (decode_line_full): Likewise for `arg_start'.
1195 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1197 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1198 (zlib_decompress_section): Likewise for `section_data'.
1199 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1201 2012-08-10 Doug Evans <dje@google.com>
1203 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1204 * NEWS: Document them.
1205 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1207 * python/py-type.c (typy_array_1): New function.
1208 (typy_array): Call it.
1209 (typy_vector): New function.
1210 (type_object_methods): Add "vector".
1211 * python/lib/gdb/function/__init__.py: New file.
1212 * python/lib/gdb/function/strfns.py: New file.
1214 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1216 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1217 for TYPE_FIELD_BITPOS.
1218 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1220 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1223 * common/vec.h (VEC_merge): Define.
1224 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1225 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1226 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1227 * completer.c: Include gdb_signals.h.
1228 (signal_completer): Define.
1229 * completer.h (signal_completer): Add prototype.
1230 * infcmd.c (_initialize_infcmd): Assign the command
1231 completer for "signal" to handle_completer.
1232 * infrun.c: Include completer.h.
1233 (handle_completer): Define.
1234 (_initialize_infrun): Declare a new local variable c. Store the
1235 result of add_com("handle") to it. Assign the command
1236 completer for "handle" to handle_completer.
1238 2012-08-09 Yao Qi <yao@codesourcery.com>
1240 * cli/cli-decode.c (set_cmd_prefix): New.
1241 (lookup_cmd_for_prefixlist): New.
1242 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1243 of each cmd_list_element in *prefixlist.
1244 (add_setshow_cmd_full): set_cmd_prefix.
1245 (add_alias_cmd): Likewise.
1246 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1247 Declare 'auto_boolean_enums'.
1248 * cli/cli-setshow.c: Include "observer.h".
1249 (notify_command_param_changed_p): New.
1250 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1252 (do_setshow_command): Split it to ...
1253 (do_set_command, do_show_command): ... them. New.
1254 (do_set_command): Call observer_notify_command_param_changed if
1255 notify_command_param_changed_p returns true.
1256 (cmd_show_list): Caller update.
1257 * auto-load.c (set_auto_load_cmd): Likewise.
1258 * remote.c (show_remote_cmd): Likewise.
1259 * cli/cli-setshow.h: Update declarations.
1260 * top.c (execute_command): Call do_set_command and do_show_command.
1262 * NEWS: Mention new MI notification.
1263 * mi/mi-interp.c: Declare mi_command_param_changed.
1264 (mi_interpreter_init): Attach mi_command_param_changed to
1265 observer command_param_changed.
1266 (mi_command_param_changed): New.
1267 Remove mi_suppress_breakpoint_notifications.
1268 Define global variable mi_suppress_notification.
1269 (mi_breakpoint_created): Update.
1270 (mi_breakpoint_deleted): Likewise.
1271 (mi_breakpoint_modified): Likewise.
1272 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1273 'gdb-set' and set mi_suppress_notification.
1274 * mi/mi-main.h: (mi_suppress_notification): New struct.
1276 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1277 Jan Kratochvil <jan.kratochvil@redhat.com>
1279 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1281 2012-08-09 Yao Qi <yao@codesourcery.com>
1283 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1284 (skiplist): Move it to skip.c.
1285 (init_cmd_lists): Remove code setting enablebreaklist and
1287 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1288 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1290 * gdbcmd.h: Likewise.
1291 * skip.c (_initialize_step_skip): Move 'skiplist' from
1294 2012-08-09 Yao Qi <yao@codesourcery.com>
1296 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1297 * gnu-nat.c, symfile.c: Likewise.
1299 2012-08-08 Aaron Gamble <agamble@google.com>
1301 * utils.c (prompt_for_continue_wait_time): New static global.
1302 (make_command_stats_cleanup): Initialize it.
1303 (report_command_stats): Subtract time waiting for user.
1304 (prompt_for_continue): Track time waiting for user.
1305 (defaulted_query): Track time waiting for user.
1307 2012-08-08 Doug Evans <dje@google.com>
1309 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1311 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1312 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1313 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1314 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1315 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1316 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1318 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1319 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1320 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1321 (dump_prefix_expression): Handle OP_TYPE.
1323 2012-08-08 Keith Seitz <keiths@redhat.com>
1325 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1328 2012-08-08 Doug Evans <dje@google.com>
1330 * linux-thread-db.c: #include "gdb_vecs.h".
1331 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1333 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1334 (thread_db_load_search): Use a vector to iterate over path elements.
1335 Handle text appearing after "$pdir".
1337 * gdb_string.h: Moved to ...
1338 * common/gdb_string.h: ... here.
1339 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1340 gdb_string.h and gdb_assert.h.
1342 2012-08-08 Yao Qi <yao@codesourcery.com>
1344 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1345 (tic6x_value_to_register): Likewise.
1346 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1347 and set_gdbarch_value_to_register.
1349 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1350 Jean-Marc Saffroy <saffroy@gmail.com>
1353 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1354 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1355 * gcore.c (gcore_create_callback): New function comment. Add modified
1356 parameter. Only write modified regions. Set SEC_READONLY exactly
1357 according to MODIFIED.
1358 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1359 the passed modified value to FUNC.
1360 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1361 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1362 first. New variables modified and has_anonymous. Parse the lines of
1363 smaps file. Add the passed MODIFIED value to FUNC.
1364 * procfs.c (find_memory_regions_callback): Add the passed modified
1367 2012-08-06 Tom Tromey <tromey@redhat.com>
1369 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1370 (dwarf2_frame_cache): Use it.
1371 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1372 cache initialization constraint.
1374 2012-08-06 Tom Tromey <tromey@redhat.com>
1377 * varobj.c (update_dynamic_varobj_children): Don't call
1380 2012-08-06 Tom Tromey <tromey@redhat.com>
1383 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1385 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1387 * NEWS: New entry for 'cd' default parameters.
1388 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1390 2012-08-03 Tom Tromey <tromey@redhat.com>
1392 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1395 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1397 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1398 to attempting lseek/write.
1399 (inf_child_fileio_pread): Likewise for pread.
1401 2012-08-02 Yao Qi <yao@codesourcery.com>
1403 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1404 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1405 add_setshow_zinteger_cmd.
1406 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1407 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1408 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1409 instead of add_setshow_zinteger_cmd.
1410 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1411 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1412 instead of add_setshow_zinteger_cmd.
1413 * frame.c (frame_debug): Add 'unsigned'.
1414 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1415 add_setshow_zinteger_cmd.
1416 * frame.h: Update the declaration of 'frame_debug'.
1417 * gdbtypes.c (overload_debug): Add 'unsigned'.
1418 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1419 add_setshow_zinteger_cmd.
1420 * inferior.h: Update declaration of 'debug_infrun'.
1421 * infrun.c (debug_infrun): Add 'unsigned'.
1422 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1423 add_setshow_zinteger_cmd.
1424 * jit.c (jit_debug): Add 'unsigned'.
1425 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1426 add_setshow_zinteger_cmd.
1427 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1428 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1429 instead of add_setshow_zinteger_cmd.
1430 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1431 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1432 add_setshow_zinteger_cmd.
1433 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1434 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1435 instead of add_setshow_zinteger_cmd.
1436 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1437 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1438 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1439 intead of add_setshow_zinteger_cmd.
1440 * mips-tdep.c (mips_debug): Add 'unsigned'.
1441 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1442 instead of add_setshow_zinteger_cmd.
1443 * monitor.c (monitor_debug): Add 'unsigned'.
1444 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1445 add_setshow_zinteger_cmd.
1446 * observer.c (observer_debug): Add 'unsigned'.
1447 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1448 add_setshow_zinteger_cmd.
1449 * parse.c (expressiondebug): Add 'unsigned'.
1450 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1451 add_setshow_zinteger_cmd.
1452 * record.c (record_debug): Add 'unsigned'.
1453 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1454 add_setshow_zinteger_cmd.
1455 * record.h: Update the declaration of 'record_debug'.
1456 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1457 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1458 add_setshow_zinteger_cmd.
1459 * serial.c (global_serial_debug_p): Add 'unsigned'.
1460 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1461 add_setshow_zinteger_cmd.
1462 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1463 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1464 add_setshow_zinteger_cmd.
1465 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1466 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1467 add_setshow_zinteger_cmd.
1468 * target.c (targetdebug): Add 'unsigned'.
1469 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1470 add_setshow_zinteger_cmd.
1471 * valops.c (overload_debug): Add 'unsigned'.
1472 * varobj.c (varobjdebug): Add 'unsigned'.
1473 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1474 add_setshow_zinteger_cmd.
1475 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1476 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1477 instead of add_setshow_zinteger_cmd.
1479 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1480 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1481 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1482 instead of add_setshow_zinteger_cmd.
1483 * gdbarch.c, gdbarch.h: Re-generated.
1485 2012-08-02 Yao Qi <yao@codesourcery.com>
1487 * nto-tdep.c: Don't include cli/cli-decode.h and
1489 (_initialize_nto_tdep): Remove.
1490 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1492 Remove macro nto_internal_debugging.
1494 2012-08-01 Richard Henderson <rth@redhat.com>
1496 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1497 (mep-*-*) [gdb_target_obs]: Likewise.
1499 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1501 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1502 linux_get_siginfo_type.
1504 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1506 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1508 (call_function_by_hand) <ON_STACK>: Call write_memory with
1509 gdbarch_breakpoint_from_pc, if possible.
1510 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1513 2012-07-31 Yao Qi <yao@codesourcery.com>
1515 * tracepoint.c: Add 'static' for some variables.
1517 2012-07-31 Yao Qi <yao@codesourcery.com>
1519 * go32-nat.c: Declare _initialize_go32_nat.
1520 * ser-go32.c: Declare _initialize_ser_dos.
1521 * top.c (do_chdir_cleanup): Add 'static'.
1523 2012-07-30 Keith Seitz <keiths@redhat.com>
1525 * linespec.c (linespec_lex_number): A number followed
1526 by quotes is a valid number, too.
1528 2012-07-30 Tom Tromey <tromey@redhat.com>
1530 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1532 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1534 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1535 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1537 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1539 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1540 invalid or reevaluated to prevent prevent references to possibly
1541 delete'd type objects being left in the varobj.
1543 2012-07-27 Tom Tromey <tromey@redhat.com>
1544 Jan Kratochvil <jan.kratochvil@redhat.com>
1546 * copying.awk: Print buffer-read-only and vi ro markers.
1547 * copying.c: Rebuild.
1548 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1549 * gdbarch.c, gdbarch.h: Rebuild.
1550 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1551 buffer-read-only and vi ro markers.
1552 * features/arm-with-iwmmxt.c: Rebuild.
1553 * features/arm-with-m-fpa-layout.c: Rebuild.
1554 * features/arm-with-m-vfp-d16.c: Rebuild.
1555 * features/arm-with-m.c: Rebuild.
1556 * features/arm-with-neon.c: Rebuild.
1557 * features/arm-with-vfpv2.c: Rebuild.
1558 * features/arm-with-vfpv3.c: Rebuild.
1559 * features/i386/amd64-avx-linux.c: Rebuild.
1560 * features/i386/amd64-avx.c: Rebuild.
1561 * features/i386/amd64-linux.c: Rebuild.
1562 * features/i386/amd64.c: Rebuild.
1563 * features/i386/i386-avx-linux.c: Rebuild.
1564 * features/i386/i386-avx.c: Rebuild.
1565 * features/i386/i386-linux.c: Rebuild.
1566 * features/i386/i386-mmx-linux.c: Rebuild.
1567 * features/i386/i386-mmx.c: Rebuild.
1568 * features/i386/i386.c: Rebuild.
1569 * features/i386/x32-avx-linux.c: Rebuild.
1570 * features/i386/x32-avx.c: Rebuild.
1571 * features/i386/x32-linux.c: Rebuild.
1572 * features/i386/x32.c: Rebuild.
1573 * features/mips-dsp-linux.c: Rebuild.
1574 * features/mips-linux.c: Rebuild.
1575 * features/mips64-dsp-linux.c: Rebuild.
1576 * features/mips64-linux.c: Rebuild.
1577 * features/rs6000/powerpc-32.c: Rebuild.
1578 * features/rs6000/powerpc-32l.c: Rebuild.
1579 * features/rs6000/powerpc-403.c: Rebuild.
1580 * features/rs6000/powerpc-403gc.c: Rebuild.
1581 * features/rs6000/powerpc-405.c: Rebuild.
1582 * features/rs6000/powerpc-505.c: Rebuild.
1583 * features/rs6000/powerpc-601.c: Rebuild.
1584 * features/rs6000/powerpc-602.c: Rebuild.
1585 * features/rs6000/powerpc-603.c: Rebuild.
1586 * features/rs6000/powerpc-604.c: Rebuild.
1587 * features/rs6000/powerpc-64.c: Rebuild.
1588 * features/rs6000/powerpc-64l.c: Rebuild.
1589 * features/rs6000/powerpc-7400.c: Rebuild.
1590 * features/rs6000/powerpc-750.c: Rebuild.
1591 * features/rs6000/powerpc-860.c: Rebuild.
1592 * features/rs6000/powerpc-altivec32.c: Rebuild.
1593 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1594 * features/rs6000/powerpc-altivec64.c: Rebuild.
1595 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1596 * features/rs6000/powerpc-cell32l.c: Rebuild.
1597 * features/rs6000/powerpc-cell64l.c: Rebuild.
1598 * features/rs6000/powerpc-e500.c: Rebuild.
1599 * features/rs6000/powerpc-e500l.c: Rebuild.
1600 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1601 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1602 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1603 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1604 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1605 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1606 * features/rs6000/powerpc-vsx32.c: Rebuild.
1607 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1608 * features/rs6000/powerpc-vsx64.c: Rebuild.
1609 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1610 * features/rs6000/rs6000.c: Rebuild.
1611 * features/s390-linux32.c: Rebuild.
1612 * features/s390-linux32v1.c: Rebuild.
1613 * features/s390-linux32v2.c: Rebuild.
1614 * features/s390-linux64.c: Rebuild.
1615 * features/s390-linux64v1.c: Rebuild.
1616 * features/s390-linux64v2.c: Rebuild.
1617 * features/s390x-linux64.c: Rebuild.
1618 * features/s390x-linux64v1.c: Rebuild.
1619 * features/s390x-linux64v2.c: Rebuild.
1620 * features/tic6x-c62x-linux.c: Rebuild.
1621 * features/tic6x-c62x.c: Rebuild.
1622 * features/tic6x-c64x-linux.c: Rebuild.
1623 * features/tic6x-c64x.c: Rebuild.
1624 * features/tic6x-c64xp-linux.c: Rebuild.
1625 * features/tic6x-c64xp.c: Rebuild.
1627 2012-07-27 Tom Tromey <tromey@redhat.com>
1629 * c-exp.y (classify_name): Avoid assignment in condition.
1631 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1633 * amd64-windows-tdep.c: Include "frame.h".
1634 (amd64_windows_skip_trampoline_code): New function.
1635 (amd64_windows_init_abi): Add trampoline registration.
1637 2012-07-27 Yao Qi <yao@codesourcery.com>
1639 * tracepoint.c (cur_traceframe_number): Remove.
1640 (set_tfile_traceframe): Remove.
1641 (tfile_trace_find, tfile_fetch_registers): Update callers.
1642 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1643 (tfile_open, tfile_trace_find): Likewise.
1645 2012-07-27 Yao Qi <yao@codesourcery.com>
1647 * thread.c (switch_to_thread): Don't call registers_changed.
1649 2012-07-26 Tom Tromey <tromey@redhat.com>
1651 * Makefile.in (SFILES): Remove objc-exp.y.
1652 (YYFILES): Remove objc-exp.c.
1653 (YYOBJ): Remove objc-exp.o.
1654 (local-maintainer-clean): Don't mention objc-exp.c.
1655 * c-exp.y: Include objc-lang.h.
1656 (%union) <class>: New field.
1657 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1658 (exp): Clone subscript production for OBJC_LBRAC. Add various
1659 Objective C productions.
1660 (msglist, msgarglist, msgarg): New productions.
1661 (array_mod, func_mod, operator): Clone productions for
1663 (parse_string_or_char): Handle '@' strings.
1664 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1665 (classify_name): Check la_name_of_this. Recognize ObjC class
1667 * objc-exp.y: Remove.
1668 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1669 * objc-lang.h (objc_parse, objc_error): Don't declare.
1671 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1673 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1675 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1677 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1680 2012-07-26 Tom Tromey <tromey@redhat.com>
1682 * copying.c: Rebuild.
1683 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1686 2012-07-26 Tom Tromey <tromey@redhat.com>
1688 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1690 (print_objfile_statistics): Likewise.
1691 (maintenance_print_symbols): Likewise.
1692 (maintenance_print_msymbols): Likewise.
1693 (maintenance_print_objfiles): Likewise.
1694 * psymtab.c (print_partial_symbols): Call QUIT.
1695 (maintenance_print_psymbols): Likewise. Don't modify
1697 * copying.c (show_copying_command): Don't modify immediate_quit.
1698 (show_warranty_command): Likewise.
1699 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1701 2012-07-26 Keith Seitz <keiths@redhat.com>
1703 * linespec.c (linespec_lexer_lex_number): The input
1704 is also a valid number if the next character is a comma
1707 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1709 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1712 2012-07-26 Tristan Gingold <gingold@adacore.com>
1714 * machoread.c: Include gdb_bfd.h.
1716 2012-07-26 Tristan Gingold <gingold@adacore.com>
1718 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1721 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1723 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1725 (dwarf2_evaluate_loc_desc): Likewise.
1726 (dwarf2_loc_desc_needs_frame): Likewise.
1727 (locexpr_describe_location_1): Likewise.
1728 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1730 (struct dwarf2_loclist_baton): Likewise.
1731 * dwarf2read.c (struct dwarf_block): Likewise.
1732 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1733 (decode_locdesc): Expand SIZE and I to size_t.
1735 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1737 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1739 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1741 * doublest.c (convert_doublest_to_floatformat): If the exponent
1742 is too small, treat the value as zero. If the exponent is too
1743 large, treat the value as infinity.
1745 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1747 * configure.ac: Add --enable-lmcheck configure option.
1748 * configure: Regenerate.
1750 2012-07-25 Tom Tromey <tromey@redhat.com>
1752 * NEWS: Mention maint info bfds.
1753 * gdb_bfd.c (all_bfds): New global.
1754 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1755 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1758 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1760 * configure.tgt: Add v850*-*-rtems*.
1762 2012-07-25 Tom Tromey <tromey@redhat.com>
1764 * macrotab.c (macro_bcache_str): Remove cast.
1766 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1768 * linespec.c (linespec_lexer_lex_number): Update comments,
1769 change the return and add check to make sure the input is
1770 the decimal numbers.
1771 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1772 false, call linespec_lexer_lex_string.
1774 2012-07-24 Tom Tromey <tromey@redhat.com>
1776 * symfile.c (symbol_file_add): Don't open BFD twice.
1778 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1780 * breakpoint.c (create_breakpoint): Store condition for pending
1783 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1785 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1786 (m68k_return_value): Handle complex types like structures.
1787 (m68k_svr4_return_value): Likewise.
1789 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1791 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1792 parameters to bfd_get_section_name.
1794 2012-07-24 Yao Qi <yao@codesourcery.com>
1796 * cli/cli-setshow.c: Handle case 'var_uinteger'
1797 and 'var_zuninteger' together. Handle case 'var_integer' and
1798 'var_zinteger' together.
1800 2012-07-23 Keith Seitz <keiths@redhat.com>
1802 * linespec.c (convert_linespec_to_sal): Don't add
1803 any symbols to the result vector if symbol_to_sal
1806 2012-07-23 Keith Seitz <keiths@redhat.com>
1808 * linespec.c (decode_objc): Record the function name
1811 2012-07-23 Tom Tromey <tromey@redhat.com>
1813 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1815 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1816 (map_vmap): Acquire a reference to the BFD.
1818 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1820 * p-valprint.c (pascal_object_print_value): Replace potentially
1821 unsafe alloca with xmalloc/xfree.
1822 * valops.c (search_struct_method): Likewise.
1824 2012-07-23 Tom Tromey <tromey@redhat.com>
1826 * solib-svr4.c (enable_break): Update.
1827 * bfd-target.h (target_bfd_reopen): Update documentation.
1829 2012-07-23 Tom Tromey <tromey@redhat.com>
1831 * symfile.c (separate_debug_file_exists): Update.
1832 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1833 (reread_symbols): Update.
1834 * elfread.c (build_id_verify): Update.
1835 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1836 bfd_open_maybe_remote.
1838 2012-07-23 Tom Tromey <tromey@redhat.com>
1840 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1842 2012-07-23 Tom Tromey <tromey@redhat.com>
1844 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1846 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1848 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1849 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1851 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1852 * objfiles.c (allocate_objfile): Acquire a new reference.
1853 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1854 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1855 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1856 a cleanup for 'nbfd'.
1857 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1859 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1860 make a cleanup for 'abfd'.
1861 (symbol_file_add): Make a BFD cleanup.
1863 2012-07-23 Tom Tromey <tromey@redhat.com>
1865 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1866 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1867 * corelow.c (core_open): Use gdb_bfd_fopen.
1868 * dsrec.c (load_srec): Use gdb_bfd_openr.
1869 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1870 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1871 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1872 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1873 (gdb_bfd_fdopenr): New functions.
1874 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1875 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1876 (gdb_bfd_fdopenr): Declare.
1877 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1878 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1879 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1880 gdb_bfd_openr_next_archived_file.
1881 (macho_check_dsym): Use gdb_bfd_openr.
1882 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1883 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1884 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1885 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1887 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1888 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1889 gdb_bfd_openr_next_archived_file.
1890 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1892 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1894 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1895 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1896 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1897 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1898 (symfile_bfd_open): Use gdb_bfd_fopen.
1899 (generic_load): Use gdb_bfd_openr.
1900 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1902 2012-07-23 Tom Tromey <tromey@redhat.com>
1904 * bfd-target.c (target_bfd_reopen): Update.
1905 * cli/cli-dump.c (bfd_openr_with_cleanup)
1906 (bfd_openw_with_cleanup): Update.
1907 * corelow.c (core_open): Update.
1908 * dsrec.c (load_srec): Update.
1909 * exec.c (exec_file_attach): Update.
1910 * gcore.c (create_gcore_bfd): Update.
1911 * gdb_bfd.c (gdb_bfd_ref): Return void.
1912 (gdb_bfd_open): Update.
1913 * gdb_bfd.h (gdb_bfd_ref): Return void.
1915 * jit.c (jit_bfd_try_read_symtab): Update.
1916 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1917 * machoread.c (macho_symfile_read_all_oso): Update.
1918 (macho_check_dsym): Update.
1919 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1920 * remote-m32r-sdi.c (m32r_load): Update.
1921 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1922 * rs6000-nat.c (add_vmap): Update.
1923 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1925 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1926 * solib-spu.c (spu_bfd_open): Update.
1927 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1928 * spu-linux-nat.c (spu_bfd_open): Update.
1929 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1930 (generic_load): Update.
1931 * windows-nat.c (windows_make_so): Update.
1933 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1935 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1937 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1939 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1940 SIGTRAMP_FRAME unwinding.
1942 2012-07-20 Doug Evans <dje@google.com>
1944 * NEWS: Document new options "set/show use-deprecated-index-sections",
1945 and delete reference to --use-deprecated-index-sections.
1946 * symfile.h (use_deprecated_index_sections): Delete.
1947 * dwarf2read.c (use_deprecated_index_sections): Make static.
1948 (read_index_from_section): Update wording of how to load
1949 deprecated index sections.
1950 (_initialize_dwarf2_read): New options
1951 "set/show use-deprecated-index-sections".
1952 * main.c (captured_main): Delete --use-deprecated-index-sections.
1954 2012-07-20 Pedro Alves <palves@redhat.com>
1959 * infrun.c (handle_inferior_event) <new thread>: Don't special
1960 case minus_one_ptid.
1961 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1962 * linux-thread-db.c (thread_get_info_callback): Don't return early
1963 if the thread is zombie.
1964 (thread_from_lwp): Change return type to void. Rewrite stale
1966 (attach_thread): Don't return early if the thread is zombie,
1967 instead set its "dying" flag.
1968 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1969 (find_new_threads_callback): Don't return early if the thread is
1972 2012-07-20 Pedro Alves <palves@redhat.com>
1974 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1975 * target.c (target_wait): Likewise.
1976 (str_comma_list_concat_elem, do_option, target_options_to_string):
1978 * target.h (target_options_to_string): Declare.
1980 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1981 Tom Tromey <tromey@redhat.com>
1983 * dwarf2read.c (dwarf_decode_macros)
1984 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1985 DW_MACRO_GNU_transparent_include_alt>: New cases.
1986 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1987 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1989 2012-07-20 Tom Tromey <tromey@redhat.com>
1991 * dwarf2read.c (try_open_dwo_file): Don't call
1992 gdb_bfd_stash_filename.
1994 2012-07-20 Pedro Alves <palves@redhat.com>
1996 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1997 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1998 (i386_process_record): Tweak description comments.
2000 2012-07-20 Pedro Alves <palves@redhat.com>
2002 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2003 (i386_process_record): Use record_read_memory.
2004 * record.c (record_read_memory): New function.
2005 (record_arch_list_add_mem, record_exec_insn): Use
2007 * record.h (record_read_memory): Declare.
2009 2012-07-20 Yao Qi <yao@codesourcery.com>
2011 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2014 2012-07-19 Pedro Alves <palves@redhat.com>
2016 * record.c (record_resume): Ask the target beneath to report all
2019 2012-07-19 Doug Evans <dje@google.com>
2021 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2022 there's no section at address zero.
2023 (dwarf2_record_block_ranges): Ditto.
2025 2012-07-19 Yao Qi <yao@codesourcery.com>
2027 * command.h, remote.c: Fix a typo in comment.
2029 2012-07-19 Tom Tromey <tromey@redhat.com>
2032 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2033 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2034 OP_DECLTYPE>: New cases.
2035 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2036 (type_exp): Add new productions.
2037 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2039 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2041 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2042 OP_DECLTYPE>: New case.
2043 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2045 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2046 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2048 2012-07-19 Tom Tromey <tromey@redhat.com>
2050 * c-exp.y (enum token_flags): New.
2051 (struct token) <cxx_only>: Remove.
2053 (tokentab3, tokentab2, ident_tokens): Update.
2054 (lex_one_token): Update. Handle FLAG_SHADOW.
2056 2012-07-19 Tom Tromey <tromey@redhat.com>
2058 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2059 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2060 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2061 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2062 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2063 type_exp production where appropriate.
2064 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2065 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2066 <UNOP_MEMVAL_TYPE>: New case.
2067 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2068 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2069 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2070 <UNOP_MEMVAL_TYPE>: New case.
2071 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2072 UNOP_REINTERPRET_CAST>: Update.
2073 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2074 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2075 UNOP_REINTERPRET_CAST>: Update.
2076 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2077 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2078 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2081 2012-07-19 Yao Qi <yao@codesourcery.com>
2082 Jan Kratochvil <jan.kratochvil@redhat.com>
2084 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2085 and case 'var_optional_filename' together.
2086 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2087 instead of add_setshow_optional_filename_cmd for setshow command
2088 'args'. Set completer for 'set args'.
2090 2012-07-18 Doug Evans <dje@google.com>
2092 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2093 * common/gdb_vecs.c: New file, contents from utils.c.
2094 * common/host-defs.h: New file, contents from defs.h.
2095 * utils.h: New file, contents from defs.h.
2096 * defs.h: Move all declarations of objects defined in utils.c
2097 to utils.h (except QUIT() and related).
2098 #include "utils.h", "host-defs.h".
2099 * probe.h (probe_p): Move here from gdb_vecs.h.
2100 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2101 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2102 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2103 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2104 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2105 (COMMON_OBS): Add gdb_vecs.o.
2106 (gdb_vecs.o): New rule.
2108 2012-07-18 Keith Seitz <keiths@redhat.com>
2110 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2111 parameter. If non-zero, use SYMNAME as the canonical name
2114 (convert_linespec_to_sals): Use add_sal_to_sals for
2116 (decode_line_full): No need to "fill in missing canonical names"
2117 anymore. Simply make cleanups for the allocated names.
2119 2012-07-18 Keith Seitz <keiths@redhat.com>
2121 * linespec.c (struct linespec): Constify expression,
2122 source_filename, function_name, and label_name.
2123 (symbol_not_found_error): Make all parameters const.
2124 (linespec_parser_delete): No need to check for NULL
2125 when using xfree. Cast const char * to char * for xfree.
2127 2012-07-18 Keith Seitz <keiths@redhat.com>
2129 * breakpoint.c (invalid_thread_id_error): New function.
2130 (find_condition_and_thread): Use invalid_thread_id_error.
2131 (watch_command_1): Likewise.
2133 2012-07-18 Tom Tromey <tromey@redhat.com>
2135 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2136 * contrib/cc-with-tweaks.sh: New file.
2138 2012-07-18 Tom Tromey <tromey@redhat.com>
2140 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2141 (locate_dwz_sections): Recognize .gdb_index.
2142 (create_cus_from_index_list): New function.
2143 (create_cus_from_index): Use it. Handle .dwz data.
2144 (read_index_from_section): New function, extracted from
2146 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2149 2012-07-18 Tom Tromey <tromey@redhat.com>
2151 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2152 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2153 <is_dwz>: New field.
2154 (struct dwz_file): New.
2155 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2156 (locate_dwz_sections, dwarf2_get_dwz_file)
2157 (get_abbrev_section_for_cu): New functions.
2158 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2159 (read_and_check_type_unit_head): Add abbrev_section argument.
2160 (create_debug_types_hash_table): Update.
2161 (init_cutu_and_read_dies): Use proper abbrev section.
2162 (init_cutu_and_read_dies_no_follow): Likewise.
2163 (set_partial_user): Do nothing if PST==NULL.
2164 (read_comp_units_from_section): New function.
2165 (create_all_comp_units): Use it.
2166 (scan_partial_symbols, partial_die_parent_scope): Update.
2167 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2168 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2169 (find_partial_die): Add offset_in_dwz argument. Update.
2170 (guess_partial_die_structure_name, fixup_partial_die): Update.
2171 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2172 DW_FORM_GNU_strp_alt.
2173 (read_indirect_string_from_dwz): New function.
2174 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2175 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2176 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2177 (follow_die_offset): Add offset_in_dwz argument.
2178 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2179 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2180 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2181 Handle new macro forms.
2182 (dwarf_decode_macros): Update.
2183 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2184 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2185 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2186 (create_debug_types_hash_table): Use correct abbrev section.
2187 (get_debug_line_section): New function.
2188 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2189 (process_full_comp_unit): Pass 'required' argument to
2190 end_symtab_get_static_block.
2191 * buildsym.h (end_symtab_get_static_block): Update.
2192 * buildsym.c (end_symtab_get_static_block): Add 'required'
2194 (end_symtab, end_expandable_symtab): Update.
2196 2012-07-18 Tom Tromey <tromey@redhat.com>
2198 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2200 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2201 (zlib_decompress_section): Remove.
2202 (dwarf2_read_section): Use gdb_bfd_map_section.
2203 (munmap_section_buffer): Remove.
2204 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2205 munmap_section_buffer.
2206 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2207 (struct gdb_bfd_section_data): New.
2208 (free_one_bfd_section): New function.
2209 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2210 (get_section_descriptor, zlib_decompress_section)
2211 (gdb_bfd_map_section): New functions.
2212 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2214 2012-07-18 Tom Tromey <tromey@redhat.com>
2216 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2218 2012-07-18 Tom Tromey <tromey@redhat.com>
2220 * gdb_bfd.c (struct gdb_bfd_data): New.
2221 (gdb_bfd_cache): New global.
2222 (struct gdb_bfd_cache_search): New.
2223 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2224 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2225 * gdb_bfd.h (gdb_bfd_open): Declare.
2227 2012-07-18 Tom Tromey <tromey@redhat.com>
2229 * utils.c (make_cleanup_bfd_unref): Rename from
2230 make_cleanup_bfd_close.
2231 * defs.h (make_cleanup_bfd_unref): Rename from
2232 make_cleanup_bfd_close.
2233 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2234 (bfd_openw_with_cleanup): Update.
2235 * corelow.c (core_open): Update.
2236 * dsrec.c (load_srec): Update.
2237 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2238 * remote-m32r-sdi.c (m32r_load): Update.
2239 * remote-mips.c (mips_load_srec): Update.
2240 (pmon_load_fast): Update.
2241 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2243 (darwin_bfd_open): Update.
2244 * solib.c (solib_bfd_fopen): Update.
2245 * symfile-mem.c (symbol_file_add_from_memory): Update.
2246 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2247 (symfile_bfd_open): Update.
2248 (generic_load): Update.
2250 2012-07-18 Tom Tromey <tromey@redhat.com>
2252 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2253 (pmon_load_fast): Likewise.
2254 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2255 (m32r_upload_command): Likewise.
2256 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2257 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2258 Use make_cleanup_bfd_close.
2260 2012-07-18 Tom Tromey <tromey@redhat.com>
2262 * symfile.c (symfile_bfd_open): Don't copy name. Call
2263 gdb_bfd_stash_filename.
2264 (load_command): Open the new BFD before freeing the old.
2265 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2266 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2267 Call gdb_bfd_stash_filename.
2268 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2269 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2270 gdb_bfd_stash_filename.
2271 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2272 Free found_pathname.
2273 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2274 gdb_bfd_stash_filename.
2275 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2276 * machoread.c (macho_add_oso_symfile): Call
2277 gdb_bfd_stash_filename.
2278 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2279 gdb_bfd_stash_filename.
2280 (macho_check_dsym): Don't copy filename. Call
2281 gdb_bfd_stash_filename.
2282 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2283 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2284 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2285 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2286 * exec.c (exec_close): Don't free the BFD's filename.
2287 (exec_file_attach): Don't copy the filename. Call
2288 gdb_bfd_stash_filename.
2289 * corelow.c (core_close): Don't free the BFD's filename.
2290 (core_open): Call gdb_bfd_stash_filename.
2291 * corefile.c (reopen_exec_file): Remove #if 0 code.
2292 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2294 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2296 2012-07-18 Tom Tromey <tromey@redhat.com>
2298 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2300 (free_dwo_file): Use gdb_bfd_unref.
2301 * cli/cli-dump.c: Include gdb_bfd.h.
2302 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2303 (bfd_openr_with_cleanup): Likewise.
2304 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2306 * utils.c: Include gdb_bfd.h.
2307 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2308 * symfile.c: Include gdb_bfd.h.
2309 (separate_debug_file_exists): Use gdb_bfd_unref.
2310 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2311 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2312 (generic_load): Use gdb_bfd_ref.
2313 (reread_symbols): Use gdb_bfd_unref.
2314 * symfile-mem.c: Include gdb_bfd.h.
2315 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2316 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2317 * solib.c: Include gdb_bfd.h.
2318 (solib_bfd_fopen): Use gdb_bfd_ref.
2319 (solib_bfd_open): Use gdb_bfd_unref.
2320 (free_so_symbols): Use gdb_bfd_unref.
2321 (reload_shared_libraries_1): Use gdb_bfd_unref.
2322 * solib-spu.c: Include gdb_bfd.h.
2323 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2324 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2326 * solib-frv.c: Include gdb_bfd.h.
2327 (enable_break2): Use gdb_bfd_unref.
2328 * solib-dsbt.c: Include gdb_bfd.h.
2329 (enable_break2): Use gdb_bfd_unref.
2330 * solib-darwin.c: Include gdb_bfd.h.
2331 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2333 (darwin_bfd_open): Use gdb_bfd_unref.
2334 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2335 * remote-mips.c: Include gdb_bfd.h.
2336 (mips_load_srec): Use gdb_bfd_ref.
2337 (pmon_load_fast): Use gdb_bfd_ref.
2338 * remote-m32r-sdi.c: Include gdb_bfd.h.
2339 (m32r_load): Use gdb_bfd_ref.
2340 * record.c: Include gdb_bfd.h.
2341 (record_save_cleanups): Use gdb_bfd_unref.
2342 (cmd_record_save): Use gdb_bfd_unref.
2343 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2345 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2346 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2347 * objfiles.c: Include gdb_bfd.h.
2348 (free_objfile): Use gdb_bfd_unref.
2349 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2351 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2352 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2353 (macho_check_dsym): Likewise.
2354 * m32r-rom.c: Include gdb_bfd.h.
2355 (m32r_load): Use gdb_bfd_ref.
2356 (m32r_upload_command): Use gdb_bfd_ref.
2357 * jit.c: Include gdb_bfd.h.
2358 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2359 * gdb_bfd.h: New file.
2360 * gdb_bfd.c: New file.
2361 * gcore.c: Include gdb_bfd.h.
2362 (create_gcore_bfd): Use gdb_bfd_ref.
2363 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2364 (gcore_command): Use gdb_bfd_unref.
2365 * exec.c: Include gdb_bfd.h.
2366 (exec_close): Use gdb_bfd_unref.
2367 (exec_close_1): Use gdb_bfd_unref.
2368 (exec_file_attach): Use gdb_bfd_ref.
2369 * elfread.c: Include gdb_bfd.h.
2370 (build_id_verify): Use gdb_bfd_unref.
2371 * dsrec.c: Include gdb_bfd.h.
2372 (load_srec): Use gdb_bfd_ref.
2373 * corelow.c: Include gdb_bfd.h.
2374 (core_close): Use gdb_bfd_unref.
2375 (core_open): Use gdb_bfd_ref.
2376 * bfd-target.c: Include gdb_bfd.h.
2377 (target_bfd_xclose): Use gdb_bfd_unref.
2378 (target_bfd_reopen): Use gdb_bfd_ref.
2379 * Makefile.in (SFILES): Add gdb_bfd.c.
2380 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2381 (COMMON_OBS): Add gdb_bfd.o.
2383 2012-07-18 Keith Seitz <keiths@redhat.com>
2385 * breakpoint.c (find_condition_and_thread): Initialize
2387 (create_breakpiont): find_condition_and_thread will now
2388 initialize COND_STRING, THREAD, and REST (and TASK).
2389 (addr_string_to_sals): Likewise.
2391 2012-07-18 Pedro Alves <palves@redhat.com>
2393 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2394 Pull the single step breakpoints out of the target.
2396 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2398 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2399 * stap-probe.c (compile_probe_arg): Likewise.
2401 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2403 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2404 (elf_compile_to_ax): Likewise.
2405 * infrun.c (insert_exception_resume_from_probe): Likewise.
2406 (check_exception_resume): Remove `objfile' variable.
2407 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2408 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2409 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2410 (compare_entries): Rename to...
2411 (compare_probes): ...this. Adjust function to work with
2412 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2414 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2416 (print_ui_out_info): Adjust argument to be `struct probe *'.
2417 (info_probes_for_ops): Adjust internal computations to use
2419 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2420 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2421 gen_info_probes_table_values>: Remove `objfile' argument.
2422 (struct probe) <objfile>: New field.
2423 (find_probe_by_pc): Remove `objfile' argument.
2424 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2425 (stap_get_probe_argument_count): Likewise.
2426 (stap_get_arg): Likewise.
2427 (stap_evaluate_probe_argument): Likewise.
2428 (stap_compile_to_ax): Likewise.
2429 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2430 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2431 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2432 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2433 sym_compile_to_ax>: Likewise.
2435 2012-07-18 Terry Guo <terry.guo@arm.com>
2438 * defs.h (GDB_MI_MSG_WIDTH): New.
2439 * ser_base (ser_base_read_error_fd): New function.
2440 (do_ser_base_readchar): Poll error file descriptor as well as
2442 (generic_readchar): Refactor error handling.
2444 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2446 * NEWS: Create a new section for the next release branch.
2447 Rename the section of the current branch, now that it has
2450 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2452 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2453 * version.in: Bump version to 7.5.50.20120718-cvs.
2455 2012-07-17 Keith Seitz <keiths@redhat.com>
2457 * linespec.c (linespec_parse_line_offset): Make parameter
2460 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2463 * f-valprint.c (info_common_command): New variable frame_id.
2464 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2465 * printcmd.c (print_variable_and_value): Extend function comment.
2466 Add comment for invalidated FRAME.
2467 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2468 FI form FRAME_ID after each print_frame_local_vars.
2469 (struct print_variable_and_value_data): Change frame to frame_id.
2470 (do_print_variable_and_value): New variable frame, initialize it from
2471 p->frame_id. Add comment for invalidated FRAME.
2472 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2473 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2474 for invalidated FRAME.
2476 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2477 Pedro Alves <palves@redhat.com>
2479 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2482 2012-07-16 Tom Tromey <tromey@redhat.com>
2484 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2486 2012-07-15 Doug Evans <dje@google.com>
2488 * dwarf2read.c (stmt_list_hash): New struct.
2489 (type_unit_group): Embed "per_cu" member, remove pointer.
2490 New union member "t", move member "tus" into it, all uses updated.
2491 New member "hash", replaces member "line_offset, all uses updated.
2492 (quick_file_names): Replace member "offset" with "hash", all uses
2494 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2495 (hash_file_name_entry, eq_file_name_entry): Call them.
2496 (hash_type_unit_group, eq_type_unit_group): Ditto.
2497 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2498 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2499 (dw2_get_file_names): Update.
2500 (create_type_unit_group): Replace "per_cu" arg with "cu".
2501 All callers updated. Fix "quick" (.gdb_index) handling.
2502 (get_type_unit_group): Replace "per_cu" arg with "cu".
2503 All callers updated.
2504 (build_type_unit_groups): Don't reset tu_stats.
2506 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2507 "tab_cur_size". Change member "tab" to be a htab_t.
2508 (create_filename_seen_cache): Update.
2509 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2510 (filename_seen): Update.
2512 2012-07-13 Doug Evans <dje@google.com>
2514 * symtab.c (filename_seen): Update comment.
2516 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2517 Doug Evans <dje@google.com>
2519 * buildsym.c (end_symtab_1): Split it to ...
2520 (end_symtab_get_static_block): ... this ...
2521 (end_symtab_from_static_block): ... and this function.
2522 (end_symtab, end_expandable_symtab): Call them.
2523 * buildsym.h (end_symtab_get_static_block)
2524 (end_symtab_from_static_block): New declarations.
2525 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2526 Set its valid CU ranges.
2528 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2530 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2531 DW_OP_GNU_parameter_ref.
2533 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2535 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2536 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2538 2012-07-13 Doug Evans <dje@google.com>
2540 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2541 (filename_seen_cache): New struct.
2542 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2543 (create_filename_seen_cache): New function.
2544 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2545 (filename_seen): Delete arg "first". New arg "cache". All callers
2547 (output_source_filename_data): New struct.
2548 (output_source_filename): Delete arg "first". New arg "data".
2549 All callers updated.
2550 (sources_info): Delete local "first". New locals "data", "cleanups".
2551 Rewrite to use filename_seen_cache.
2552 (add_partial_filename_data): Delete member "first". New member
2553 "filename_seen_cache". All uses updated.
2554 (make_source_files_completion_list): Rewrite to use
2555 filename_seen_cache.
2557 2012-07-12 Doug Evans <dje@google.com>
2559 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2561 2012-07-10 Doug Evans <dje@google.com>
2564 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2565 all_type_unit_groups, type_unit_groups, tu_stats.
2566 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2567 All uses updated. Add type_unit_group to union "s".
2568 (type_unit_group): New struct.
2569 (IS_TYPE_UNIT_GROUP): New macro.
2570 (abbrev_table): Delete unused member "section".
2571 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2572 (dw2_get_cu): Assert not used with type_unit_group.
2573 (dw2_get_primary_cu): New function.
2574 (dw2_build_type_unit_groups_reader): New function.
2575 (dw2_build_type_unit_groups): New function.
2576 (dw2_get_file_names): Assert not called on type units.
2577 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2578 Redo loop to iterate over type unit groups instead of type units.
2579 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2580 (read_abbrev_offset): New function.
2581 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2583 (create_partial_symtab): New function.
2584 (process_psymtab_comp_unit_reader): Assert not used with type units.
2585 Call create_partial_symtab.
2586 (process_psymtab_type_unit): Delete.
2587 (hash_type_unit_group, eq_type_unit_group): New functions.
2588 (allocate_type_unit_groups_table): New function.
2589 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2590 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2591 (create_type_unit_group, get_type_unit_group): New functions.
2592 (tu_abbrev_offset): New struct.
2593 (sort_tu_by_abbrev_offset): New function.
2594 (add_type_unit_group_to_table): New function.
2595 (build_type_unit_groups): New function.
2596 (build_type_psymtabs_reader): New function.
2597 (build_type_psymtab_dependencies): New function.
2598 (build_type_psymtabs): Rewrite.
2599 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2600 is seen in a type unit.
2601 (process_queue): Move symtab expansion debugging printfs here.
2602 Call process_full_type_unit for type units.
2603 (compute_symtab_includes): Assert not called for type units.
2604 (process_cu_includes): Don't call compute_symtab_includes for
2606 (process_full_type_unit): New function.
2607 (process_imported_unit_die): Flag an error if called for type units.
2608 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2609 updated. Assert not called for type units.
2610 (read_file_scope): Call dwarf2_start_symtab.
2611 (setup_type_unit_groups): New function.
2612 (read_type_unit_scope): Rewrite.
2613 (abbrev_table_read_table): Initialize abbrev_table->offset.
2614 (abbrev_table_free_cleanup): New function.
2615 (dwarf2_start_symtab): New function.
2616 (load_full_type_unit): Assert not called for type unit groups.
2617 * buildsym.c (finish_block_internal): New arg "expandable".
2618 All callers updated.
2619 (start_symtab): Move most contents to ...
2620 (restart_symtab): ... here. New function.
2621 (reset_symtab_globals): New function.
2622 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2623 Call reset_symtab_globals.
2624 (end_symtab, end_expandable_symtab): New functions.
2625 (set_missing_symtab, augment_type_symtab): New functions.
2626 * buildsym.h (end_expandable_symtab): Declare.
2627 (augment_type_symtab, restart_symtab): Declare.
2628 * psympriv.h (struct partial_symtab): New member "anonymous".
2629 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2631 (read_psymtabs_with_filename): Ditto.
2632 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2633 (expand_symtabs_matching_via_partial): Ditto.
2634 (dump_psymtab): Update.
2635 * dictionary.c (dict_add_pending): New function.
2636 * dictionary.h (dict_add_pending): Declare.
2638 2012-07-09 Doug Evans <dje@google.com>
2640 * buildsym.c (start_subfile): Remove unnecessary check for
2643 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2645 * dwarf2read.c (load_full_type_unit): Simplify.
2647 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2648 to struct signatured_type **. All uses updated.
2650 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2651 All callers updated.
2653 2012-07-09 Tom Tromey <tromey@redhat.com>
2655 * c-exp.y (check_parameter_typelist): New function.
2656 (parameter_typelist): Call it.
2657 * eval.c (make_params): Handle '(void)' case.
2658 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2661 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2663 * common/linux-ptrace.c: Include gdb_assert.h.
2664 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2665 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2667 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2669 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2670 * linux-nat.c (linux_child_post_attach)
2671 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2673 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2675 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2676 nptl <2.7 bug workaround for core files.
2678 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2680 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2682 (save_siginfo): Remove.
2683 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2685 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2686 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2687 * linux-nat.h (struct lwp_info): Remove field siginfo.
2689 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2691 Code cleanup for the next patch.
2692 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2693 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2695 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2696 (ia64_linux_stopped_data_address):
2697 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2699 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2700 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2701 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2704 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2707 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2708 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2710 2012-07-06 Tom Tromey <tromey@redhat.com>
2712 * c-exp.y (DOTDOTDOT): New token.
2713 (func_mod, exp): Use parameter_typelist.
2714 (parameter_typelist): New production.
2715 (tokentab3): Add "..." token.
2716 * eval.c (make_params): Handle varargs.
2717 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2720 2012-07-06 Tom Tromey <tromey@redhat.com>
2723 * c-exp.y (%union) <tvec>: Change type.
2724 (func_mod): Now uses <tvec> type.
2725 (exp): Update for tvec change.
2726 (direct_abs_decl): Push the typelist.
2727 (func_mod): Return a typelist.
2728 (nonempty_typelist): Update for tvec change.
2729 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2730 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2731 * parse.c (pop_type_list): New function.
2732 (push_typelist): New function.
2733 (follow_types): Handle tp_function_with_arguments.
2734 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2735 (enum type_pieces) <tp_function_with_arguments>: New constant.
2736 (union type_stack_elt) <typelist_val>: New field.
2737 (push_typelist): Declare.
2739 2012-07-06 Tom Tromey <tromey@redhat.com>
2741 * c-exp.y (%union) <type_stack>: New field.
2742 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2743 (ptr_operator_ts): New production.
2745 * parse.c (type_stack_reserve): New function.
2746 (check_type_stack_depth): Use it.
2747 (pop_type_stack, append_type_stack, push_type_stack)
2748 (get_type_stack, type_stack_cleanup): New functions.
2749 (follow_types): Handle tp_type_stack.
2750 (_initialize_parse): Simplify initialization.
2751 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2753 (union type_stack_elt) <stack_val>: New field.
2754 (get_type_stack, append_type_stack, push_type_stack)
2755 (type_stack_cleanup): Declare.
2757 2012-07-06 Tom Tromey <tromey@redhat.com>
2759 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2761 (struct type_stack): New.
2762 * parse.c (type_stack, type_stack_size, type_stack_depth):
2764 (type_stack): New global.
2765 (parse_exp_in_context, check_type_stack_depth)
2766 (insert_into_type_stack, insert_type, push_type, push_type_int)
2767 (insert_type_address_space, pop_type, pop_type_int)
2768 (_initialize_parse): Update.
2770 2012-07-06 Tom Tromey <tromey@redhat.com>
2772 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2775 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2777 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2779 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2780 Jan Kratochvil <jan.kratochvil@redhat.com>
2782 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2783 alloca with xmalloc/xfree.
2785 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2787 * MAINTAINERS (Write After Approval): Add myself to the list.
2789 2012-07-05 Doug Evans <dje@google.com>
2791 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2793 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2795 * ax-gdb.c (cli/cli-utils.h): New include.
2796 (linespec.h): Ditto.
2797 (agent_eval_command_one): New function.
2798 (agent_command_1): Ditto.
2799 (agent_command): Call function agent_command_1.
2800 (agent_eval_command): Ditto.
2801 (_initialize_ax_gdb): Change help for "maint agent"
2802 and "maint agent-eval".
2804 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2806 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2807 * cli/cli-utils.c (check_for_argument): New function.
2808 * cli/cli-utils.h (check_for_argument): Ditto.
2810 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2812 * NEWS: Mention x32 ABI support.
2814 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2816 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2817 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2819 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2820 and pc_regnum_from_eax to -1. Update SP regnum from
2821 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2824 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2827 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2829 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2830 * dwarf2expr.h: Include gdbtypes.h.
2831 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2832 these forward declarations.
2833 (cu_offset, sect_offset): Move these ...
2834 * gdbtypes.h: Remove include dwarf2expr.h.
2835 (cu_offset, sect_offset): ... here.
2837 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2839 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2840 (amd64_linux_sigtramp_code): This.
2841 (amd64_x32_linux_sigtramp_code): New.
2842 (LINUX_SIGTRAMP_LEN): Updated.
2843 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2845 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2847 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2849 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2851 * config.in: Regenerate.
2852 * configure: Regenerate.
2853 * configure.ac: Remove check for gnu/libc-version.h.
2854 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2856 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2857 variables libc_version, libc_major and libc_minor. Replace sscanf by
2858 inferior_has_bug. Extend the comment.
2860 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 * linux-thread-db.c (inferior_has_bug): New function.
2863 (thread_db_find_new_threads_silently): Return boolean as checked by
2864 inferior_has_bug, describe it in the comments.
2865 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2866 earlier. Abort the initialization if it returned non-zero.
2867 (thread_db_new_objfile): Exclude debug files.
2868 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2871 2012-07-02 Doug Evans <dje@google.com>
2873 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2874 related to queue management.
2876 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2877 instead of "debug dwarf2-die" in debugging printfs.
2878 (create_debug_info_hash_table_reader): Ditto.
2879 (create_debug_info_hash_table): Ditto.
2880 (init_dwo_file): Ditto.
2881 (init_cutu_and_read_dies): Add debugging printf.
2882 (init_cutu_and_read_dies_no_follow): Ditto.
2883 (process_psymtab_comp_unit_reader): Ditto.
2885 2012-07-02 Stan Shebs <stan@codesourcery.com>
2887 Add target-side support for dynamic printf.
2888 * NEWS: Mention the additional style.
2889 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2890 (struct bp_location): New field cmd_bytecode.
2891 * breakpoint.c: Include format.h.
2892 (disconnected_dprintf): New global.
2893 (parse_cmd_to_aexpr): New function.
2894 (build_target_command_list): New function.
2895 (insert_bp_location): Call it.
2896 (remove_breakpoints_pid): Skip dprintf breakpoints.
2897 (print_one_breakpoint_location): Ditto.
2898 (dprintf_style_agent): New global.
2899 (dprintf_style_enums): Add dprintf_style_agent.
2900 (update_dprintf_command_list): Add agent case.
2901 (agent_printf_command): New function.
2902 (_initialize_breakpoint): Add new commands.
2903 * common/ax.def (printf): New bytecode.
2904 * ax.h (ax_string): Declare.
2905 * ax-gdb.h (gen_printf): Declare.
2906 * ax-gdb.c: Include cli-utils.h, format.h.
2907 (gen_printf): New function.
2908 (maint_agent_print_command): New function.
2909 (_initialize_ax_gdb): Add maint agent-printf command.
2910 * ax-general.c (ax_string): New function.
2911 (ax_print): Add printf disassembly.
2912 * Makefile.in (SFILES): Add format.c
2913 (COMMON_OBS): Add format.o.
2914 * common/format.h: New file.
2915 * common/format.c: New file.
2916 * printcmd.c: Include format.h.
2917 (ui_printf): Call parse_format_string.
2918 * remote.c (remote_state): New field breakpoint_commands.
2919 (PACKET_BreakpointCommands): New enum.
2920 (remote_breakpoint_commands_feature): New function.
2921 (remote_protocol_features): Add new BreakpointCommands entry.
2922 (remote_can_run_breakpoint_commands): New function.
2923 (remote_add_target_side_commands): New function.
2924 (remote_insert_breakpoint): Call it.
2925 (remote_insert_hw_breakpoint): Ditto.
2926 (_initialize_remote): Add new packet configuration for
2927 target-side breakpoint commands.
2928 * target.h (struct target_ops): New field
2929 to_can_run_breakpoint_commands.
2930 (target_can_run_breakpoint_commands): New macro.
2931 * target.c (update_current_target): Handle
2932 to_can_run_breakpoint_commands.
2934 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2936 Execute -ix and -iex only after system and user gdbinit files.
2937 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2938 processing down after gdbinit files.
2940 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2942 Add fnmatch-gnu module.
2943 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2944 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2945 * gnulib/aclocal.m4: Regenerate.
2946 * gnulib/config.in: Regenerate.
2947 * gnulib/configure: Regenerate.
2948 * gnulib/import/dummy.c: Remove.
2949 * gnulib/import/Makefile.am: Regenerate.
2950 * gnulib/import/Makefile.in: Likewise.
2951 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2952 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2953 * gnulib/import/alloca.c: New file.
2954 * gnulib/import/alloca.in.h: Likewise.
2955 * gnulib/import/config.charset: Likewise.
2956 * gnulib/import/fnmatch.c: Likewise.
2957 * gnulib/import/fnmatch.in.h: Likewise.
2958 * gnulib/import/fnmatch_loop.c: Likewise.
2959 * gnulib/import/localcharset.c: Likewise.
2960 * gnulib/import/localcharset.h: Likewise.
2961 * gnulib/import/m4/alloca.m4: Likewise.
2962 * gnulib/import/m4/codeset.m4: Likewise.
2963 * gnulib/import/m4/configmake.m4: Likewise.
2964 * gnulib/import/m4/fcntl-o.m4: Likewise.
2965 * gnulib/import/m4/fnmatch.m4: Likewise.
2966 * gnulib/import/m4/glibc21.m4: Likewise.
2967 * gnulib/import/m4/localcharset.m4: Likewise.
2968 * gnulib/import/m4/locale-fr.m4: Likewise.
2969 * gnulib/import/m4/locale-ja.m4: Likewise.
2970 * gnulib/import/m4/locale-zh.m4: Likewise.
2971 * gnulib/import/m4/mbrtowc.m4: Likewise.
2972 * gnulib/import/m4/mbsinit.m4: Likewise.
2973 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2974 * gnulib/import/m4/mbstate_t.m4: Likewise.
2975 * gnulib/import/m4/stdbool.m4: Likewise.
2976 * gnulib/import/m4/wchar_h.m4: Likewise.
2977 * gnulib/import/m4/wctype_h.m4: Likewise.
2978 * gnulib/import/m4/wint_t.m4: Likewise.
2979 * gnulib/import/mbrtowc.c: Likewise.
2980 * gnulib/import/mbsinit.c: Likewise.
2981 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2982 * gnulib/import/mbsrtowcs-state.c: Likewise.
2983 * gnulib/import/mbsrtowcs.c: Likewise.
2984 * gnulib/import/ref-add.sin: Likewise.
2985 * gnulib/import/ref-del.sin: Likewise.
2986 * gnulib/import/stdbool.in.h: Likewise.
2987 * gnulib/import/streq.h: Likewise.
2988 * gnulib/import/strnlen1.c: Likewise.
2989 * gnulib/import/strnlen1.h: Likewise.
2990 * gnulib/import/verify.h: Likewise.
2991 * gnulib/import/wchar.in.h: Likewise.
2992 * gnulib/import/wctype.in.h: Likewise.
2994 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2996 Support shell wildcards for 'set auto-load safe-path'.
2997 * auto-load.c: Include fnmatch.h.
2998 (filename_is_in_dir): Rename to ...
2999 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3000 it. Update function comment. Rename dir_len to pattern_len. New
3001 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3002 messages. Use gdb_filename_fnmatch.
3003 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3005 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3006 * defs.h (gdb_filename_fnmatch): New declaration.
3007 * utils.c: Include fnmatch.h.
3008 (gdb_filename_fnmatch): New function.
3010 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3012 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3013 `-probe' and `-probe-stap' options.
3015 2012-07-01 Yao Qi <yao@codesourcery.com>
3017 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3018 always_inserted_off, and always_inserted_enums.
3019 Change always_inserted_mode's type to 'enum auto_boolean'.
3020 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3022 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3023 of add_setshow_enum_cmd.
3024 * infrun.c: Remove can_use_displaced_stepping_auto,
3025 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3026 can_use_displaced_stepping_enum.
3027 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3028 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3029 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3030 add_setshow_enum_cmd.
3032 2012-06-30 Doug Evans <dje@google.com>
3034 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3035 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3036 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3038 2012-06-29 Doug Evans <dje@google.com>
3040 * linespec.c: #include "stack.h".
3041 (decode_line_with_current_source): Moved here from symtab.c and
3042 renamed from decode_line_spec. All callers updated.
3043 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3044 renamed from decode_line_spec_1. All callers updated.
3045 * linespec.h (decode_line_with_current_source): Move declaration here
3046 from symtab.h and renamed from decode_line_spec.
3047 (decode_line_with_last_displayed): Move declaration here from symtab.h
3048 and renamed from decode_line_spec_1.
3049 * macrocmd.c: #include "linespec.h".
3050 * symtab.c: Remove #include "linespec.h".
3052 2012-06-28 Doug Evans <dje@google.com>
3054 * dwarf2read.c (get_cu_length): New function.
3055 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3056 (create_debug_types_hash_table): Ditto.
3057 (init_cutu_and_read_dies): Ditto.
3058 (init_cutu_and_read_dies_no_follow): Ditto.
3060 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3062 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3063 (struct abbrev_table): Define.
3064 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3066 (init_cutu_and_read_dies): Update.
3067 (abbrev_table_alloc_abbrev): New function. Replaces
3068 dwarf_alloc_abbrev. All callers updated.
3069 (abbrev_table_add_abbrev): New function.
3070 (abbrev_table_lookup_abbrev): New function. Replaces
3071 dwarf2_lookup_abbrev. All callers updated.
3072 (abbrev_table_read_table): New function. Contents moved here from
3073 dwarf2_read_abbrevs.
3074 (dwarf2_read_abbrevs): Call it.
3075 (abbrev_table_free): New function.
3076 (dwarf2_free_abbrev_table): Call it.
3078 2012-06-28 Stan Shebs <stan@codesourcery.com>
3080 * osdata.c (info_osdata_command): Filter out "Title" columns
3082 * common/linux-osdata.c (struct osdata_type): Add title field.
3083 (osdata_table): Add titles to each entry.
3084 (linux_command_xfer_osdata): Add a column for title data.
3086 2012-06-28 Stan Shebs <stan@codesourcery.com>
3088 Make logging work for MI.
3090 * interps.h (interp_set_logging_ftype): New typedef.
3091 (struct interp_procs): New field set_logging_proc.
3092 (current_interp_set_logging): Declare.
3093 * interps.c (current_interp_set_logging): New function.
3094 * cli/cli-logging.c: Include interps.h.
3095 (set_logging_redirect): Call current_interp_set_logging.
3096 (pop_output_files): Ditto.
3097 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3098 * mi/mi-console.h (mi_console_set_raw): Declare.
3099 * mi/mi-console.c (mi_console_set_raw): New function.
3100 * mi/mi-interp.c (saved_raw_stdout): New global.
3101 (mi_set_logging): New function.
3102 (_initialize_mi_interp): Add it to interp procs.
3104 2012-06-28 Doug Evans <dje@google.com>
3106 * symtab.c (lookup_symbol_aux_objfile): Use
3107 ALL_OBJFILE_PRIMARY_SYMTABS.
3109 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3111 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3113 * common/buffer.c: Include inttypes.h and stdint.h.
3114 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3116 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3117 Pedro Alves <palves@redhat.com>
3119 * gdbthread.h (ALL_THREADS): New macro.
3120 (thread_list): Declare.
3121 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3122 going, but instead fall through to the stepping handling.
3123 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3124 the passed in signal. Adjust debug output.
3125 (resume_callback): Rename to ...
3126 (linux_nat_resume_callback): ... this. Pass the thread's last
3127 stop signal, if in "pass" state.
3128 (linux_nat_resume): Adjust to rename.
3129 (stop_wait_callback): New assertion. Don't respawn signals;
3130 instead let the LWP remain with SIGNALLED set.
3131 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3132 * remote.c (append_pending_thread_resumptions): New.
3133 (remote_vcont_resume): Call it.
3134 * target.h (target_resume): Extend comment.
3136 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3138 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3140 2012-06-27 Doug Evans <dje@google.com>
3142 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3143 Delete have_addr_base, unused. All uses updated.
3144 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3145 (dwarf2_get_pc_bounds): Add ranges_base.
3146 (dwarf2_record_block_ranges): Ditto.
3148 2012-06-27 Tom Tromey <tromey@redhat.com>
3151 * varobj.c (varobj_create): Update.
3152 (varobj_set_value): Update.
3153 * tracepoint.c (validate_actionline): Update.
3154 (encode_actions_1): Update.
3155 * parse.c (parse_exp_1): Add 'pc' argument.
3156 (parse_exp_in_context): Add 'pc' argument. Change how
3157 expression_context_pc is set.
3158 (parse_expression): Update.
3159 (parse_field_expression): Update.
3160 * expression.h (parse_exp_1): Update.
3161 * eval.c (parse_to_comma_and_eval): Update.
3162 * breakpoint.c (set_breakpoint_condition): Update.
3163 (update_watchpoint): Update.
3164 (init_breakpoint_sal): Update
3165 (find_condition_and_thread): Update.
3166 (watch_command_1): Update.
3167 (update_breakpoint_locations): Update.
3168 * ada-lang.c (ada_read_renaming_var_value): Update.
3169 (create_excep_cond_exprs): Update.
3171 2012-06-27 Doug Evans <dje@google.com>
3173 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3176 2012-06-26 Doug Evans <dje@google.com>
3178 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3180 (error_check_comp_unit_head): New arg abbrev_section. All callers
3182 (read_and_check_comp_unit_head): Ditto.
3183 (read_and_check_type_unit_head): Ditto.
3185 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3187 New attribute 'last' for gdb.Symtab_and_line.
3188 * NEWS (Python Scripting): Add entry about the new attribute.
3189 * python/py-symtab.c (salpy_get_last): New function which
3190 implements the get method for the 'last' attribute of
3191 gdb.Symtab_and_line.
3192 (sal_object_getset): Add entry for the 'last' attribute.
3194 2012-06-26 Doug Evans <dje@google.com>
3196 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3197 (dwo_sections): Add macinfo, macro.
3198 (dwarf2_locate_dwo_sections): Watch for macro sections.
3199 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3200 All callers updated. Handle DWO files.
3202 * NEWS: Mention new options "set debug dwarf2-read" and
3203 "set debug symtab-create".
3204 * dwarf2read.c (dwarf2_read_debug): New static global.
3205 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3206 (process_queue): Ditto.
3207 (process_full_comp_unit): Ditto.
3208 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3209 * elfread.c (elf_symfile_read): Add debugging printf.
3210 * minsyms.c (install_minimal_symbols): Ditto.
3211 * psymtab.c (allocate_psymtab): Ditto.
3212 * symfile.c (allocate_symtab): Ditto.
3213 * symtab.c (symtab_create_debug): New global.
3214 (_initialize_symtab): Add new option "set debug symtab-create".
3215 * symtab.h (symtab_create_debug): Declare.
3217 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3218 (lookup_dwo_type_unit): Ditto.
3220 2012-06-26 Roland McGrath <roland@hack.frob.com>
3221 H.J. Lu <hongjiu.lu@intel.com>
3223 * amd64-linux-nat.c: Include <sys/user.h>.
3224 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3225 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3226 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3228 * configure.ac: Check if the fs_base and gs_base members of
3229 `struct user_regs_struct' exist.
3230 * config.in: Regenerated.
3231 * configure: Likewise.
3233 2012-06-25 Michael Eager <eager@eagercon.com>
3236 * python/python.c (gdbpy_write): Check for interrupted output.
3238 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3240 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3241 register as a stack alignment in ARM mode.
3243 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3245 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3246 * gnulib/config.in: Regenerate.
3247 * gnulib/configure: Likewise.
3248 * gnulib/import/m4/extensions.m4: Update it.
3249 * gnulib/import/m4/gnulib-common.m4: Likewise.
3250 * gnulib/import/m4/memmem.m4: Likewise.
3251 * gnulib/import/m4/mmap-anon.m4: Likewise.
3252 * gnulib/import/m4/multiarch.m4: Likewise.
3253 * gnulib/import/stdint.in.h: Likewise.
3255 2012-06-24 Yao Qi <yao@codesourcery.com>
3257 * corefile.c (write_memory_with_notification): New.
3258 * gdbcore.h: Declare write_memory_with_notification.
3259 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3260 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3261 * valops.c (value_assign): Likewise.
3262 * python/py-inferior.c (infpy_write_memory): Call
3263 'write_memory_with_notification'.
3265 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3267 * cc-with-index.sh: Use also -ex "set auto-load no".
3269 2012-06-23 Doug Evans <dje@google.com>
3272 * NEWS: Document additions to .gdb_index.
3273 * dwarf2read.c: #include "gdb/gdb-index.h".
3274 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3275 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3276 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3277 (dwarf2_read_index): Recognize version 7.
3278 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3279 block_kind, domain): All callers updated.
3280 (dw2_find_symbol_file): Handle new index CU values.
3281 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3282 (add_index_entry): New args is_static, kind. All callers updated.
3283 (offset_type_compare, uniquify_cu_indices): New functions
3284 (symbol_kind): New function.
3285 (write_psymtabs_to_index): Remove duplicate CU values.
3286 (write_psymtabs_to_index): Write .gdb_index version 7.
3288 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3290 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3291 * configure: Regenerate.
3293 2012-06-20 Yao Qi <yao@codesourcery.com>
3295 * python/py-inferior.c: Update comments of infpy_read_memory
3296 and infpy_write_memory.
3298 2012-06-19 Tom Tromey <tromey@redhat.com>
3301 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3302 (push_type_address_space): Remove.
3303 * parse.c (insert_into_type_stack): New function.
3304 (insert_type): Likewise.
3305 (insert_type_address_space): Rename from push_type_address_space.
3306 Insert tp_space_identifier.
3307 * c-exp.y (ptr_operator): New production.
3308 (abs_decl): Use ptr_operator.
3309 (space_identifier): Call insert_type_address_space.
3310 (ptype): Don't use const_or_volatile_or_space_identifier.
3311 (const_or_volatile_noopt): Call insert_type.
3312 (conversion_type_id, conversion_declarator): New productions.
3313 (operator): Use conversion_type_id.
3315 2012-06-18 Doug Evans <dje@google.com>
3317 * symtab.h (minimal_symbol): New member created_by_gdb.
3318 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3320 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3321 (search_symbols): Call it instead of lookup_symbol.
3322 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3324 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3325 Adjust address for DW_OP_GNU_addr_index.
3326 * dwarf2expr.h (dwarf_expr_context): Update comment.
3327 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3328 all callers updated. Handle TLS vars described with
3329 DW_OP_GNU_const_index.
3330 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3331 and DW_OP_GNU_const_index.
3332 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3334 * block.c (find_block_in_blockvector): Make explicit the fact that we
3335 ignore GLOBAL_BLOCK.
3337 2012-06-18 Tom Tromey <tromey@redhat.com>
3339 * c-exp.y (operator): Remove trailing space after "delete" and
3342 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3343 Jan Kratochvil <jan.kratochvil@redhat.com>
3345 Switch i386 and derived targets to ON_STACK.
3346 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3347 (amd64_dicos_init_abi): Remove its installment.
3348 * dicos-tdep.c (dicos_init_abi): Remove the
3349 set_gdbarch_call_dummy_location call. Update the comment here.
3350 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3351 (i386_dicos_init_abi): Remove its installment.
3352 * i386-tdep.c (i386_push_dummy_code): New function.
3353 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3354 i386_push_dummy_code.
3356 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3358 Remove stale dummy frames.
3359 * breakpoint.c: Include dummy-frame.h.
3360 (longjmp_breakpoint_ops): New variable.
3361 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3362 bp_longjmp_call_dummy.
3363 (bpstat_what, bptype_string, print_one_breakpoint_location)
3364 (init_bp_location): Support bp_longjmp_call_dummy.
3365 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3366 (set_longjmp_breakpoint_for_call_dummy)
3367 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3369 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3370 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3371 FIXME comment and extend the other comment for bp_call_dummy.
3372 (set_longjmp_breakpoint_for_call_dummy)
3373 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3374 * dummy-frame.c: Include gdbthread.h.
3375 (pop_dummy_frame_bpt): New function.
3376 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3377 (dummy_frame_discard): New function.
3378 (cleanup_dummy_frames): Update the comment about longjmps.
3379 * dummy-frame.h (dummy_frame_discard): New declaration.
3380 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3381 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3382 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3383 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3384 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3385 keep_going if IS_LONGJMP and there is no other reason to stop.
3387 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3389 * remote-sim.c (sim_command_completer): Initialize
3392 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3394 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3395 * dwarf2loc.c (call_site_parameter_matches): Support
3396 CALL_SITE_PARAMETER_PARAM_OFFSET.
3397 (needs_dwarf_reg_entry_value): Push stub value.
3398 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3399 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3400 * gdbtypes.h (enum call_site_parameter_kind): New item
3401 CALL_SITE_PARAMETER_PARAM_OFFSET.
3402 (struct call_site.parameter.u): New field param_offset.
3404 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3406 Code cleanup: Generalize call_site.parameter key.
3407 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3408 variable dwarf_reg. New variable kind_u. Update parameters to
3409 push_dwarf_reg_entry_value.
3410 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3411 * dwarf2expr.h (enum call_site_parameter_kind)
3412 (union call_site_parameter_u): Forward declarations.
3413 (struct dwarf_expr_context_funcs): Update parameters and their
3414 description for push_dwarf_reg_entry_value.
3415 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3416 * dwarf2loc.c (call_site_parameter_matches): New function.
3417 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3418 description. Use call_site_parameter_matches.
3419 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3420 Update parameters and their description.
3421 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3422 New variable kind_u. Adjust the caller for updated parameters.
3423 (needs_dwarf_reg_entry_value): Update parameters.
3424 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3425 instead of attr. Update for the changed fields of struct
3426 call_site_parameter.
3427 * gdbtypes.h: Include dwarf2expr.h.
3428 (enum call_site_parameter_kind): New.
3429 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3430 fb_offset into new union u.
3432 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3434 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3435 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3438 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3440 * amd64-linux-nat.c (compat_x32_clock_t): New.
3441 (compat_x32_siginfo_t): Likewise.
3442 (compat_x32_siginfo_from_siginfo): Likewise.
3443 (siginfo_from_compat_x32_siginfo): Likewise.
3444 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3445 and siginfo_from_compat_x32_siginfo for x32.
3447 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3449 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3451 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3453 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3454 instead of gdbarch_ptr_bit.
3455 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3456 (amd64_supply_native_gregset): Likewise.
3457 (amd64_collect_native_gregset): Likewise.
3458 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3459 (amd64_supply_xsave): Likewise.
3460 (amd64_collect_fxsave): Likewise.
3461 (amd64_collect_xsave): Likewise.
3463 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3465 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3466 (amd64_linux_read_description): Check DS segment register for
3469 2012-06-15 Tom Tromey <tromey@redhat.com>
3471 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3472 init_cutu_and_read_dies.
3474 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3476 * MAINTAINERS (Write After Approval): Add myself to the list.
3478 2012-06-15 Tom Tromey <tromey@redhat.com>
3480 * valops.c (value_find_oload_method_list): Now static.
3481 * value.h (value_find_oload_method_list): Don't declare.
3483 2012-06-15 Tom Tromey <tromey@redhat.com>
3485 * valops.c (find_overload_match): Use value_ind.
3487 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3489 * infrun.c (handle_inferior_event): Correct indentation.
3491 2012-06-14 Doug Evans <dje@google.com>
3493 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3494 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3496 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3497 updated. Handle DEBUG_LOC_START_LENGTH.
3498 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3499 (loclist_describe_location): Ditto.
3501 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3504 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3505 after hiding inline functions.
3507 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3509 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3510 _initialize_inf_ttrace.
3512 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3514 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3515 _initialize_hppa_hpux_nat.
3517 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3519 * remote-sim.c (sim_command_completer): Change type of return
3520 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3522 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3523 Jan Kratochvil <jan.kratochvil@redhat.com>
3526 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3527 stack on a 16-byte boundary.
3529 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3531 * jit.c (finalize_symtab): Set function's return type to 'void' by
3534 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3535 H.J. Lu <hongjiu.lu@intel.com>
3537 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3538 Move bits common to both the classic LP64 and the new x32 ILP32
3540 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3541 (amd64_x32_linux_init_abi): New function.
3542 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3545 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3546 * i386-tdep.c (i386_pseudo_register_name): Make public.
3547 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3548 * amd64-tdep.c (amd64_dword_names): Add "eip".
3549 (amd64_x32_pseudo_register_type): New function
3550 (amd64_x32_init_abi): New function.
3552 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3555 * inferior.h (struct inferior_suspend_state): Comment out.
3556 (struct inferior): Comment out the field suspend.
3557 * infrun.c (struct infcall_suspend_state): Comment out the field
3559 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3562 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3564 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3565 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3566 function comment. Return ERROR for unresolved cases. Implement
3567 returning proper NAME.
3568 (yylex): Accept also NAME from classify_inner_name.
3569 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3570 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3572 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3574 2012-06-13 Tom Tromey <tromey@redhat.com>
3576 * breakpoint.c (condition_completer): New function.
3577 (_initialize_breakpoint): Use it.
3578 * value.c (complete_internalvar): New function.
3579 * value.h (complete_internalvar): Declare.
3581 2012-06-13 Tom Tromey <tromey@redhat.com>
3583 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3584 * breakpoint.c (catch_syscall_completer): Return a VEC.
3585 * cli/cli-cmds.c (complete_command): Update.
3586 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3587 (complete_on_enum): Likewise.
3588 * command.h: Include gdb_vecs.h.
3589 (completer_ftype): Change return type.
3590 (complete_on_cmdlist, complete_on_enum): Likewise.
3591 * completer.c (noop_completer, filename_completer)
3592 (location_completer): Return a VEC.
3593 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3595 (expression_completer, complete_line_internal, complete_line)
3596 (command_completer): Return a VEC.
3597 (gdb_completion_word_break_characters, line_completion_function):
3599 * completer.h: Include gdb_vecs.h.
3600 (complete_line, noop_completer, filename_completer)
3601 (expression_completer, location_completer, command_completer):
3603 * f-lang.c (f_word_break_characters): Return a VEC.
3604 * interps.c (interpreter_completer): Return a VEC.
3605 * language.h (struct language_defn)
3606 <la_make_symbol_completion_list>: Return a VEC.
3607 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3608 * symtab.c (free_completion_list): Take a VEC.
3609 (return_val_size, return_val_index): Remove.
3610 (return_val): Now a VEC.
3611 (completion_list_add_name): Update.
3612 (default_make_symbol_completion_list_break_on)
3613 (default_make_symbol_completion_list, make_symbol_completion_list)
3614 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3616 (add_filename_to_list): Update.
3617 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3619 (maybe_add_partial_symtab_filename): Update.
3620 (make_source_files_completion_list): Return a VEC.
3621 * symtab.h (default_make_symbol_completion_list_break_on)
3622 (default_make_symbol_completion_list, make_symbol_completion_list)
3623 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3624 (make_source_files_completion_list): Update.
3626 2012-06-13 Tom Tromey <tromey@redhat.com>
3628 * breakpoint.c (add_catch_command): Use completer_ftype.
3629 * breakpoint.h: Include command.h.
3630 (add_catch_command): Use completer_ftype.
3631 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3632 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3633 Use completer_ftype.
3634 * command.h (completer_ftype): New typedef.
3635 (set_cmd_completer): Use it.
3636 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3639 2012-06-13 Pedro Alves <palves@redhat.com>
3641 Partial revert of previous change.
3643 * serial.c (scb_base): New global.
3644 (serial_for_fd): New.
3645 (serial_open, serial_fdopen_ops): Link new serial in open serials
3647 (do_serial_close): Unlink serial from the open serials chain.
3649 2012-06-12 Pedro Alves <palves@redhat.com>
3651 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3653 (prepare_for_detach): No longer context switch here in non-stop
3655 (fetch_inferior_event): Ditto.
3656 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3657 to the event thread before removing breakpoints. Switch to the
3658 event thread before inserting breakpoints and resuming.
3659 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3660 event thread before resuming.
3661 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3662 Switch to the event thread before removing breakpoints.
3664 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3666 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3667 special characters correctly for the Windows shells. See
3668 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3670 [!__MINGW32__]: Remove extra double quote character from special
3673 2012-06-11 Stan Shebs <stan@codesourcery.com>
3675 * ui-out.h: Remove #if 0 declarations.
3676 * ui-out.c: Remove #if 0 functions.
3678 2012-06-11 Pedro Alves <palves@redhat.com>
3680 * ser-base.c (run_async_handler_and_reschedule): New.
3681 (fd_event, push_event): Use it.
3682 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3683 reference count to 1.
3684 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3686 (serial_is_open, serial_ref, serial_unref): New.
3687 * serial.h (serial_open): Adjust comment.
3688 (serial_is_open): Declare.
3689 (serial_close): Adjust comment.
3690 (serial_ref, serial_unref) Declare.
3691 (struct serial): New field 'refcnt'.
3693 2012-06-11 Pedro Alves <palves@redhat.com>
3695 Remove #if 0'd "connect" command, and unnecessary associated
3696 refcounting and serial reuse bits.
3698 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3699 * serial.c (last_serial_opened): Delete.
3701 (serial_open): Adjust.
3702 (serial_for_fd): Delete.
3703 (serial_fdopen_ops, do_serial_close): Adjust.
3704 (serial_fdopen_ops): Adjust.
3706 2012-06-11 Pedro Alves <palves@redhat.com>
3708 * serial.c (do_serial_close): Remove early return when SCB is
3711 2012-06-11 Tom Tromey <tromey@redhat.com>
3713 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3715 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 Fix regression by the "ambiguous linespec" series.
3718 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3719 get_last_displayed_symtab and get_last_displayed_line and depending
3722 2012-06-11 Tom Tromey <tromey@redhat.com>
3724 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3725 (dw2_find_symbol_file): Use it.
3727 2012-06-11 Michael Eager <eager@eagercon.com>
3729 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3730 * mips-linux-tdep.h (mips_signals): New
3732 2012-06-11 Tom Tromey <tromey@redhat.com>
3734 * infrun.c (handle_inferior_event)
3735 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3737 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3738 exception logic in all cases. Update comments.
3739 (insert_longjmp_resume_breakpoint): Set the exception resume
3742 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3744 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3746 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3748 * valarith.c (binop_types_user_defined_p): Fix a typo.
3750 2012-06-08 Yao Qi <yao@codesourcery.com>
3751 Chung-Lin Tang <cltang@codesourcery.com>
3753 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3754 * arch-utils.h: Declare.
3755 * gdbarch.sh: Add return_in_first_hidden_param_p.
3756 * gdbarch.c, gdbarch.h: Regenerated.
3757 * infcall.c (call_function_by_hand): Call
3758 gdbarch_return_in_first_hidden_param_p instead of
3759 language_pass_by_reference.
3761 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3762 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3763 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3764 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3765 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3766 `cplus_return_struct_by_reference'.
3767 (tic6x_return_value): Handle language cplusplus.
3768 (tic6x_return_in_first_hidden_param_p): New.
3769 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3771 2012-06-07 Doug Evans <dje@google.com>
3773 * dwarf2read.c (dwarf2_cu): Add comment.
3775 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3777 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3779 (mips_eabi_push_dummy_call): Likewise.
3780 (mips_n32n64_push_dummy_call): Likewise.
3781 (mips_o32_push_dummy_call): Likewise.
3782 (mips_o64_push_dummy_call): Likewise.
3784 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3786 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3788 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3790 * mips-tdep.c (mips_pseudo_register_type): Use
3791 mips_float_register_p.
3793 2012-06-06 Pedro Alves <palves@redhat.com>
3795 * infrun.c (handle_inferior_event): Remove calls to
3796 reinit_frame_cache that follow a context_switch call.
3798 2012-06-06 Pedro Alves <palves@redhat.com>
3800 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3801 context_switch and remove stale comment.
3803 2012-06-06 Pedro Alves <palves@redhat.com>
3805 * infrun.c (struct execution_control_state): Remove
3806 `new_thread_event' field.
3807 (handle_inferior_event): Simplify new threads handling; don't
3808 resume the inferior if we find a new thread.
3810 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3812 * NEWS: Document the deprecation of SH's 'regs' command.
3813 * inferior.h (all_registers_info): Add function declaration.
3814 * sh-tdep.c (sh_show_regs): Remove variable.
3815 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3816 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3817 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3818 (sh_show_regs_command): Remove functions.
3819 (sh_gdbarch_init): Don't set sh_show_regs.
3820 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3821 'info all-registers'.
3822 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3823 (sh64_show_regs): Remove functions.
3824 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3826 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3828 * configure.ac: Move development=true below AC_INIT.
3829 * configure: Regenerate.
3831 2012-06-05 Stan Shebs <stan@codesourcery.com>
3833 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3836 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3838 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3839 argument as ssize_t.
3840 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3841 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3842 * target.c (target_read_stack, target_write_memory)
3843 (target_write_raw_memory): Likewise.
3844 * target.h (target_read_stack, target_write_memory)
3845 (target_write_raw_memory): Likewise.
3847 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3849 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3850 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3851 * target.c (target_read_memory): Change LEN to ssize_t.
3852 * target.h (target_read_memory): Change LEN to ssize_t.
3854 2012-06-05 Pedro Alves <palves@redhat.com>
3858 * breakpoint.c (until_break_command): Only fetch the selected
3859 frame after decode_line_1.
3861 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3863 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3864 event breakpoint at _start, __start or main if a program
3865 interpreter is not found.
3867 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3869 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3871 * windows-tdep.c: #include "objfiles.h".
3872 (windows_iterate_over_objfiles_in_search_order): New function.
3873 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3874 iterate_over_objfiles_in_search_order gdbarch method to
3875 windows_iterate_over_objfiles_in_search_order.
3876 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3878 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3880 * gdbarch.sh: Add generation of
3881 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3882 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3883 (iterate_over_objfiles_in_search_order): New gdbarch method.
3884 * gdbarch.h, gdbarch.c: Regenerate.
3885 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3887 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3889 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3890 out of lookup_symbol_aux_symtabs.
3891 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3892 call to lookup_symbol_aux_objfile.
3893 (struct global_sym_lookup_data): New type.
3894 (lookup_symbol_global_iterator_cb): New function.
3895 (lookup_symbol_global): Search for symbol using
3896 gdbarch_iterate_over_objfiles_in_search_order and
3897 lookup_symbol_global_iterator_cb.
3898 * findvar.c (struct minsym_lookup_data): New type.
3899 (minsym_lookup_iterator_cb): New function.
3900 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3901 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3902 and minsym_lookup_iterator_cb.
3904 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3906 Revert the following patch:
3907 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3908 try locating the symbol in the symbol's own objfile first, before
3909 extending the search to all objfiles.
3910 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3911 out of lookup_symbol_aux_symtabs.
3912 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3913 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3914 Do not search EXCLUDE_OBJFILE.
3915 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3916 (lookup_symbol_global): Search for matches in the block's objfile
3917 first, before searching all other objfiles.
3919 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3921 * breakpoint.c (find_condition_and_thread): Stop parsing
3922 as soon as the first invalid keyword is found.
3924 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3926 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3928 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3930 * config/djgpp/djcheck.sh: Add copyright header.
3932 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3934 * copyright.py (update_files, main): Fix path to update-copyright
3937 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3939 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3940 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3941 for which a reminder to update by hand is printed.
3943 2012-06-04 Doug Evans <dje@google.com>
3945 * buildsym.c (make_blockvector): Add comment.
3947 2012-06-04 Pedro Alves <palves@redhat.com>
3949 * arch-utils.c (default_gdb_signal_from_target): Delete.
3950 * arch-utils.h (default_gdb_signal_from_target): Delete.
3951 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3952 gdbarch_gdb_signal_from_target_p.
3953 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3955 * gdbarch.h: Regenerate.
3956 * gdbarch.c: Regenerate.
3958 2012-06-04 Pedro Alves <palves@redhat.com>
3960 * gdbarch.sh (gdb_signal_from_target): Mention that the
3961 implementation of the method must be host independent.
3962 * gdbarch.h: Regenerate.
3964 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3966 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3968 (target_read_memory_bfd): New function.
3969 (symbol_file_add_from_memory): Use it.
3971 2012-06-03 Doug Evans <dje@google.com>
3973 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3975 (basic_lookup_transparent_type): Ditto.
3977 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3978 (ALL_PRIMARY_SYMTABS): Use it.
3979 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3980 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3981 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3982 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3983 (basic_lookup_transparent_type): Ditto.
3985 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3987 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3988 it to optimize resolution of demangled name.
3990 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3992 * configure.ac (development): Define new variable.
3993 Call AC_CHECK_LIB for mcheck if $development.
3994 (ERROR_ON_WARNING): Enable it by default only if $development.
3995 * config.in: Regenerate.
3996 * configure: Regenerate.
3998 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4000 * target.c (target_read_memory): Make LEN argument as size_t.
4001 * target.h (target_read_memory): Likewise.
4003 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4005 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4007 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4009 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4010 BookE interface for PowerPC server processors if not available
4011 in the Linux Kernel.
4013 2012-05-31 Keith Seitz <keiths@redhat.com>
4015 * linespec.c (decode_objc): Add cleanup to free
4017 (find_linespec_symbols): Add cleanup to free CLASSES.
4018 * symfile.c (find_separate_debug_file_by_debuglink): Add
4019 cleanup to free DEBUGLINK.
4020 * ui-out.c (clear_header_list): No need to check if
4021 HEADER_NEXT.COLHDR is NULL.
4022 Free HEADER_NEXT.COL_NAME.
4024 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4026 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4029 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4031 * configure.host (gdb_host_cpu): Handle tilegx*.
4032 (gdb_host): Handle tilegx-*-linux*.
4033 * tilegx-linux-nat.c: New file.
4034 * config/tilegx/linux.mh: New file.
4036 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4038 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4039 tilegx-linux-tdep.o.
4040 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4041 tilegx-linux-tdep.c.
4042 * configure.tgt: Handle tilegx-*-linux*.
4043 * tilegx-tdep.h: New file.
4044 * tilegx-tdep.c: New file.
4045 * tilegx-linux-tdep.c: New file.
4046 * regformats/reg-tilegx.dat: New file.
4048 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4050 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4051 accounting of hw watchpoints on ppc.
4053 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4055 * source.c (openp): Expand tilde in path entries.
4057 2012-05-29 Doug Evans <dje@google.com>
4059 * buildsym.c (block_compar): Fix comment.
4060 (end_symtab): Fix and clarify some comments.
4062 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4063 cleanup_undefined_types.
4064 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4065 All callers updated.
4067 2012-05-29 Tom Tromey <tromey@redhat.com>
4069 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4071 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4072 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4074 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4077 2012-05-29 Tristan Gingold <gingold@adacore.com>
4079 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4080 (struct darwin_info): ... New struct.
4081 (solib_darwin_pspace_data): New variable.
4082 (darwin_pspace_data_cleanup): New function.
4083 (get_darwin_info): Likewise.
4084 (darwin_dyld_version_ok, darwin_load_image_infos)
4085 (darwin_solib_get_all_image_info_addr_at_init)
4086 (darwin_solib_read_all_image_info_addr): Add info argument.
4088 (darwin_current_sos): Use per pspace structure.
4089 (darwin_solib_create_inferior_hook): Likewise.
4090 (darwin_clear_solib): Likewise.
4091 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4093 2012-05-28 Pedro Alves <palves@redhat.com>
4095 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4096 block that uses them. Clear ecss before handling each event.
4098 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4100 * solib-svr4.c (svr4_current_sos): New comment on
4101 svr4_current_sos_via_xfer_libraries fall back.
4103 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4105 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4106 it as a fallback for TYPE_IS_OPAQUE.
4107 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4108 symbols for lookup_symbol.
4110 2012-05-24 John Steele Scott <toojays@toojays.net>
4112 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4113 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4114 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4115 (check_producer): ... this new function, which also checks for ICC
4116 and caches the result.
4117 (producer_is_icc): New function.
4118 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4121 2012-05-24 Pedro Alves <palves@redhat.com>
4125 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4126 (default_gdb_signal_to_target): ... this. Add comment.
4127 (default_gdb_signal_from_host): Rename to ...
4128 (default_gdb_signal_from_target): ... this. Add comment.
4129 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4130 (default_gdb_signal_to_target): ... this.
4131 (default_gdb_signal_from_host): Rename to ...
4132 (default_gdb_signal_from_target): ... this.
4133 * corelow.c (core_open): Adjust to naming change. Replace comment.
4134 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4135 (gdb_signal_from_target): ... this. Adjust to
4136 default_gdb_signal_from_host naming change. Extend comment.
4137 (gdb_signal_to_host): Rename to ...
4138 (gdb_signal_to_target): ... this. Adjust to
4139 default_gdb_signal_to_host naming change.
4140 * gdbarch.h, gdbarch.c: Renegerate.
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 Replace target_signal with gdb_signal throughout.
4154 2012-05-24 Pedro Alves <palves@redhat.com>
4158 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4159 string, instead of reusing the va_list argument.
4161 2012-05-24 Tom Tromey <tromey@redhat.com>
4163 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4166 2012-05-23 Doug Evans <dje@google.com>
4168 * symtab.c (search_symbols): Formatting fixes.
4169 (print_symbol_info): Formatting fixes.
4171 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4172 int64_t change to leb128 API.
4173 (read_encoded_value, decode_frame_entry_1): Ditto.
4174 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4175 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4176 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4177 (execute_stack_op): Ditto.
4178 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4179 (safe_read_uleb128, safe_read_sleb128): Ditto.
4180 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4181 (dwarf2_compile_expr_to_ax): Ditto.
4182 (locexpr_describe_location_piece): Ditto.
4183 (disassemble_dwarf_expression): Ditto.
4184 (locexpr_describe_location_1): Ditto.
4186 2012-05-23 Stan Shebs <stan@codesourcery.com>
4187 Kwok Cheung Yeung <kcy@codesourcery.com>
4189 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4190 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4191 (mi-cmd-info.o): New rule.
4192 * osdata.h (info_osdata_command): New declaration.
4193 * osdata.c (info_osdata_command): Change to non-static.
4194 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4195 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4196 * mi/mi-cmd-info.c: New file.
4198 2012-05-23 Doug Evans <dje@google.com>
4200 * symtab.c (search_symbols): Pass NULL for file_matcher to
4201 expand_symtabs_matching if there are no files to match.
4203 * gdbtypes.c (lookup_typename): Simplify.
4205 2012-05-23 Pedro Alves <palves@redhat.com>
4207 * arch-utils.h (default_target_signal_to_host): Delete.
4208 * arch-utils.c (default_target_signal_to_host): Delete.
4209 * gdbarch.sh (target_signal_to_host): Remove.
4210 * gdbarch.h, gdbarch.c: Regenerate.
4212 2012-05-22 Doug Evans <dje@google.com>
4214 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4216 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4217 (execute_cfa_program): Update to match API of leb128 functions.
4218 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4220 (read_unsigned_leb128, read_signed_leb128): Delete.
4221 (read_initial_length): Change type of buf argument to
4223 (read_encoded_value): Update to match API of leb128 functions.
4224 (decode_frame_entry): Change result to "const gdb_byte *", and
4225 similarly for "start" parameter.
4226 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4227 (dwarf2_build_frame_info): Change local frame_ptr to
4229 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4230 read_uleb128, read_sleb128. All callers updated.
4231 (safe_skip_leb128): New function.
4232 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4233 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4234 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4235 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4236 read_uleb128, read_sleb128.
4237 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4238 (execute_stack_op): Update to match API of leb128 functions.
4239 * dwarf2expr.h: #include "leb128.h".
4240 (read_uleb128, read_sleb128): Delete.
4241 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4242 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4243 * dwarf2loc.c (debug_loc_kind): New enum.
4244 (decode_debug_loc_addresses): New function.
4245 (decode_debug_loc_dwo_addresses): New function.
4246 (dwarf2_find_location_expression): Rewrite.
4247 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4248 (locexpr_describe_location_piece): Ditto.
4249 (disassemble_dwarf_expression): Ditto.
4250 (locexpr_describe_location_1): Ditto.
4251 (loclist_describe_location): Rewrite.
4252 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4253 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4254 (dwarf2_section_buffer_overflow_complaint): Renamed from
4255 dwarf2_macros_too_long_complaint. All callers updated.
4256 (skip_leb128): Delete.
4257 (init_cu_die_reader): Initialize reader->buffer_end.
4258 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4259 (skip_form_bytes): New arg buffer_end. All callers updated.
4260 Replace call to skip_leb128 with gdb_skip_leb128.
4261 (skip_unknown_opcode): New arg mac_end. All callers updated.
4262 (fill_in_loclist_baton): Initialize baton->from_dwo.
4264 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4266 * mips-linux-nat.c (mips_linux_read_description): Use a more
4267 verbose error message.
4269 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4271 * NEWS: Add MIPS/Linux DSP support.
4272 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4273 (SIGCONTEXT_DSPCTL): New macro.
4274 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4275 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4276 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4277 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4278 (N64_SIGCONTEXT_HI3): Likewise.
4279 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4280 (N64_SIGCONTEXT_LO3): Likewise.
4281 (N64_SIGCONTEXT_DSPCTL): Likewise.
4282 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4283 (mips_linux_o32_sigframe_init): Handle DSP registers.
4284 (mips_linux_n32n64_sigframe_init): Likewise.
4286 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4288 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4291 2012-05-22 Pedro Alves <palves@redhat.com>
4293 * target.h (store_waitstatus): Move declaration ...
4294 * inf-child.h (store_waitstatus): ... here.
4295 * target.c: Move inclusion of gdb_wait.h, and ...
4296 (store_waitstatus): ... this ...
4297 * inf-child.c: ... here.
4298 * linux-nat.c: Include inf-child.h.
4299 * rs6000-nat.c: Include inf-child.h.
4300 * spu-linux-nat.c: Include inf-child.h.
4302 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4304 * tracepoint.c (start_tracing): Add missing i18n markup.
4305 (stop_tracing, set_trace_user): Ditto.
4306 (set_trace_notes, set_trace_stop_notes): Ditto.
4308 2012-05-21 Tom Tromey <tromey@redhat.com>
4311 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4313 * value.h (value_cast_pointers): Update.
4314 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4315 (value_cast): Update.
4316 (update_search_result): New function.
4317 (do_search_struct_field): New, from search_struct_field. Check
4318 for ambiguous results.
4319 (search_struct_field): Rewrite.
4320 * infcall.c (value_arg_coerce): Update.
4321 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4322 value_cast_pointers.
4323 * ada-lang.c (ada_convert_actual): Update.
4325 2012-05-21 Tom Tromey <tromey@redhat.com>
4327 * macroexp.c (macro_stringify): Terminate the string.
4329 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4331 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4333 * auto-load.c (auto_load_expand_dir_vars): New function.
4334 (auto_load_safe_path_vec_update): Use it, remove the
4335 substitute_path_component call thanks to it.
4336 (auto_load_objfile_script): Remove the debug_file_directory processing.
4337 Use auto_load_expand_dir_vars, remove the substitute_path_component
4339 * configure: Regenerate.
4340 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4341 path. Escape $ also for $debugdir.
4342 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4343 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4345 2012-05-20 Doug Evans <dje@google.com>
4347 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4348 before use. Check for symtab->includes == NULL before scanning it.
4350 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4352 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4354 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4356 * NEWS: Add microMIPS support and "set mips compression",
4357 "show mips compression" commands.
4358 * mips-tdep.h (mips_isa): New enum.
4359 (gdbarch_tdep): Add mips_isa.
4360 (mips_pc_is_mips16): Update prototype.
4361 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4362 * mips-tdep.c (mips_compression_mips16): New variable.
4363 (mips_compression_micromips): Likewise.
4364 (mips_compression_strings): Likewise.
4365 (mips_compression_string): Likewise.
4366 (is_mips16_isa, is_micromips_isa): New functions.
4367 (is_mips16_addr): Rename to...
4368 (is_compact_addr): ... this.
4369 (unmake_mips16_addr): Likewise to...
4370 (unmake_compact_addr): ... this.
4371 (make_mips16_addr): Likewise to...
4372 (make_compact_addr): ... this.
4373 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4375 (mips_elf_make_msymbol_special): Handle microMIPS code.
4376 (msymbol_is_special): Rename to...
4377 (msymbol_is_mips16): ... this.
4378 (mips_make_symbol_special, mips_pc_is_mips16): Update
4380 (msymbol_is_mips, msymbol_is_micromips): New functions.
4381 (mips16_to_32_reg): Rename to...
4382 (mips_reg3_to_reg): ... this.
4383 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4384 (mips_pc_isa): Likewise.
4385 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4387 (mips_fetch_instruction): Pass return status instead of printing
4388 an error message if requested. Handle microMIPS code. Bail out
4390 (micromips_op): New macro.
4391 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4392 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4393 (b6s4_op, b7s3_reg): Likewise.
4394 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4395 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4396 (mips_insn_size): New function.
4397 (mips32_next_pc): Update mips_fetch_instruction call.
4398 (micromips_relative_offset7): New function.
4399 (micromips_relative_offset10): Likewise.
4400 (micromips_relative_offset16): Likewise.
4401 (micromips_pc_insn_size): Likewise.
4402 (micromips_bc1_pc): Likewise.
4403 (micromips_next_pc): Likewise.
4404 (unpack_mips16): Update mips_fetch_instruction call.
4405 (extended_mips16_next_pc): Update according to change to
4407 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4409 (mips16_scan_prologue): Update mips_fetch_instruction call.
4410 Update according to change to mips16_to_32_reg.
4411 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4412 (mips_insn16_frame_base_sniffer): Likewise.
4413 (micromips_decode_imm9): New function.
4414 (micromips_scan_prologue): Likewise.
4415 (mips_micro_frame_cache): Likewise.
4416 (mips_micro_frame_this_id): Likewise.
4417 (mips_micro_frame_prev_register): Likewise.
4418 (mips_micro_frame_sniffer): Likewise.
4419 (mips_micro_frame_unwind): New variable.
4420 (mips_micro_frame_base_address): New function.
4421 (mips_micro_frame_base): New variable.
4422 (mips_micro_frame_base_sniffer): New function.
4423 (mips32_scan_prologue): Update mips_fetch_instruction call.
4424 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4425 rather than for MIPS16.
4426 (mips_insn32_frame_base_sniffer): Likewise.
4427 (mips_addr_bits_remove): Handle microMIPS code.
4428 (deal_with_atomic_sequence): Rename to...
4429 (mips_deal_with_atomic_sequence): ... this. Update the type
4430 of the variable used to hold an instruction. Remove the ISA bit
4431 check. Update mips_fetch_instruction call.
4432 (micromips_deal_with_atomic_sequence): New function.
4433 (deal_with_atomic_sequence): Likewise.
4434 (mips_about_to_return): Handle microMIPS code. Update
4435 mips_fetch_instruction call.
4436 (heuristic_proc_start): Check for the standard MIPS ISA rather
4437 than for MIPS16. Update mips_pc_is_mips16 and
4438 mips_fetch_instruction calls. Handle microMIPS code.
4439 (mips_push_dummy_code): Handle microMIPS code.
4440 (mips_eabi_push_dummy_call): Likewise.
4441 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4442 (mips_o64_push_dummy_call): Handle microMIPS code.
4443 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4444 (is_delayed): Remove function.
4445 (mips_single_step_through_delay): Replace the call to is_delayed
4446 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4447 Handle microMIPS code.
4448 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4450 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4452 (micromips_in_function_epilogue_p): New function.
4453 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4455 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4457 (gdb_print_insn_mips): Likewise.
4458 (mips_breakpoint_from_pc): Likewise.
4459 (mips_remote_breakpoint_from_pc): New function.
4460 (mips32_instruction_has_delay_slot): Simplify making use of the
4461 updated mips_fetch_instruction interface.
4462 (micromips_instruction_has_delay_slot): New function.
4463 (mips16_instruction_has_delay_slot): Simplify making use of the
4464 updated mips_fetch_instruction interface.
4465 (mips_adjust_breakpoint_address): Check for the standard MIPS
4466 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4467 calls. Handle microMIPS code.
4468 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4469 (mips_skip_trampoline_code): Handle microMIPS code.
4470 (global_mips_compression): New function.
4471 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4472 file flags. Register the microMIPS remote breakpoint handler
4473 and heuristic frame unwinder.
4474 (show_mips_compression): New function.
4475 (_initialize_mips_tdep): Add the "set mips compression" and
4476 "show mips compression" commands.
4478 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4483 * amd64-darwin-tdep.c:
4484 * arm-symbian-tdep.c:
4488 * bfin-linux-tdep.c:
4495 * dwarf2-frame-tailcall.c:
4524 * microblaze-tdep.c:
4525 * mips-linux-tdep.c:
4533 * python/py-finishbreakpoint.c:
4534 * python/py-inferior.c:
4535 * python/py-infthread.c:
4539 * remote-m32r-sdi.c:
4543 * rs6000-aix-tdep.c:
4569 * amd64-darwin-tdep.c:
4570 * arm-symbian-tdep.c:
4571 * arm-tdep.c: Delete unused variables.
4573 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4575 Rename $ddir to $datadir.
4576 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4577 * auto-load.c (auto_load_safe_path_vec_update)
4578 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4579 * configure: Regenerate.
4580 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4581 Likewise. Remove the 'use $ddir' help string.
4583 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4585 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4586 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4588 2012-05-18 Tom Tromey <tromey@redhat.com>
4591 * valprint.h (struct value_print_options) <symbol_print>: New
4593 * valprint.c (user_print_options): Add default for symbol_print.
4594 (show_symbol_print): New function.
4595 (generic_val_print): Respect symbol_print.
4596 (_initialize_valprint): Add "print symbol" setting.
4597 * f-valprint.c (f_val_print): Respect symbol_print.
4598 * c-valprint.c (c_val_print): Respect symbol_print.
4600 * printcmd.c (print_address_symbolic): Return int. Ignore some
4602 (print_address_demangle): Return int.
4603 * defs.h: (print_address_symbolic): Return int.
4604 * value.h (print_address_demangle): Return int.
4606 2012-05-18 Tom Tromey <tromey@redhat.com>
4608 * valprint.c (val_print_string): Don't print leading space.
4609 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4610 print space before string or vtbl.
4611 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4613 * jv-valprint.c (java_value_print): Print space before string.
4614 * go-valprint.c (print_go_string): Print space before string.
4615 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4616 space before string.
4617 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4618 space before string or vtbl.
4619 * auxv.c (fprint_target_auxv): Print space after address.
4621 2012-05-18 Tom Tromey <tromey@redhat.com>
4623 * printcmd.c (print_address_demangle): Remove special case for 0.
4625 2012-05-18 Tom Tromey <tromey@redhat.com>
4627 * printcmd.c (print_address_demangle): Add 'opts' argument.
4628 * p-valprint.c (pascal_val_print): Update.
4629 * jv-valprint.c (java_val_print): Update.
4631 * valprint.c (generic_val_print): Update.
4632 (print_function_pointer_address): Add 'options' argument. Remove
4633 'addressprint' argument. Update.
4634 * m2-valprint.c (print_unpacked_pointer): Update.
4635 * gnu-v3-abi.c (print_one_vtable): Update.
4636 (gnuv3_print_method_ptr): Update.
4637 * f-valprint.c (f_val_print): Update.
4638 * cp-valprint.c (cp_print_value_fields): Update.
4639 * valprint.h (print_function_pointer_address): Update.
4640 * c-valprint.c (c_val_print): Update.
4642 2012-05-18 Tom Tromey <tromey@redhat.com>
4644 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4645 directly corresponding to the found psymtab.
4646 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4647 (dw2_find_pc_sect_symtab): Use it.
4648 * block.h (blockvector_contains_pc): Declare.
4649 * block.c (find_block_in_blockvector): New function.
4650 (blockvector_for_pc_sect): Use it.
4651 (blockvector_contains_pc): New function.
4653 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4655 * mips-tdep.h (mips_write_pc): New prototype.
4656 * mips-tdep.c (mips_write_pc): Make external, add description.
4657 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4660 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4662 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4664 (mips_unwind_pc, mips_write_pc): Likewise.
4665 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4668 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4670 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4671 proc_warn, proc_error, proc_get_status, proc_flags,
4672 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4673 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4674 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4675 proc_stop_process, proc_wait_for_stop, proc_run_process,
4676 proc_set_traced_signals, proc_set_traced_faults,
4677 proc_set_traced_sysentry, proc_set_traced_sysexit,
4678 proc_set_held_signals, proc_get_held_signals,
4679 proc_get_traced_signals, proc_get_traced_faults,
4680 proc_get_traced_sysentry, proc_get_traced_sysexit,
4681 proc_clear_current_fault, proc_set_current_signal,
4682 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4683 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4684 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4685 proc_get_current_thread, proc_get_current_thread,
4686 proc_get_current_thread, proc_update_threads,
4687 proc_update_threads, proc_update_threads, proc_update_threads,
4688 proc_iterate_over_threads, procfs_find_new_threads,
4689 procfs_pid_to_str): Make static. Remove advance declaration.
4690 (proc_cursig): Make static. Conditionalized defintion on
4691 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4692 (proc_syscall, proc_set_kill_on_last_close,
4693 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4694 proc_get_pending_signals, proc_get_signal_actions,
4695 proc_trace_signal, proc_ignore_signal): Delete.
4697 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4699 * coffread.c (cs_section_address): Passing proper argument for
4700 `bfd_get_section_vma'.
4701 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4702 `bfd_get_section_flags'.
4703 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4704 `bfd_get_section_vma'.
4706 2012-05-16 Tom Tromey <tromey@redhat.com>
4709 * macrotab.h: (macro_define_special): Declare.
4710 (enum macro_special_kind): New.
4711 (struct macro_definition) <argc, replacement>: Update comments.
4712 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4713 (macro_define_object_internal): New function.
4714 (macro_define_object): Use it.
4715 (macro_define_special): New function.
4716 (fixup_definition): New function.
4717 (macro_lookup_definition, foreach_macro_in_scope)
4718 (foreach_macro): Use fixup_definition.
4719 * macroexp.h (macro_stringify): Declare.
4720 * macroexp.c (free_buffer_return_text): New function.
4721 (stringify): Constify "arg".
4722 (macro_stringify): New function.
4723 * dwarf2read.c (macro_start_file): Call macro_define_special.
4725 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4726 Maciej W. Rozycki <macro@mips.com>
4728 * breakpoint.h (bp_location): Add related_address member.
4729 * inferior.h (get_return_value): Take a pointer to struct value
4730 instead of struct type for the function requested.
4731 * value.h (using_struct_return): Likewise.
4732 * gdbarch.sh (return_value): Take a pointer to struct value
4733 instead of struct type for the function requested.
4734 * breakpoint.c (set_breakpoint_location_function): Initialize
4735 related_address for bp_gnu_ifunc_resolver breakpoints.
4736 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4737 requested function's address to gdbarch_return_value.
4738 * eval.c (evaluate_subexp_standard): Pass the requested
4739 function's address to using_struct_return.
4740 * infcall.c (call_function_by_hand): Pass the requested
4741 function's address to using_struct_return and
4742 gdbarch_return_value.
4743 * infcmd.c (get_return_value): Take a pointer to struct value
4744 instead of struct type for the function requested.
4745 (print_return_value): Update accordingly.
4746 (finish_command_continuation): Likewise.
4747 * stack.c (return_command): Pass the requested function's
4748 address to using_struct_return and gdbarch_return_value.
4749 * value.c (using_struct_return): Take a pointer to struct value
4750 instead of struct type for the function requested. Pass the
4751 requested function's address to gdbarch_return_value.
4752 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4753 New function_value member, replacing function_type.
4754 (bpfinishpy_dealloc): Update accordingly.
4755 (bpfinishpy_pre_stop_hook): Likewise.
4756 (bpfinishpy_init): Likewise. Record the requested function's
4758 * mips-tdep.c (mips_fval_reg): New enum.
4759 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4760 words put in GP registers.
4761 (mips_o64_push_dummy_call): Update a comment.
4762 (mips_o32_return_value): Take a pointer to struct value instead
4763 of struct type for the function requested and use it to check if
4764 using the MIPS16 calling convention. Return the designated
4765 general purpose registers for floating-point values returned in
4767 (mips_o64_return_value): Likewise.
4768 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4769 (ppc_sysv_abi_broken_return_value): Likewise.
4770 (ppc64_sysv_abi_return_value): Likewise.
4771 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4772 value instead of struct type for the function requested.
4773 * amd64-tdep.c (amd64_return_value): Likewise.
4774 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4775 * arm-tdep.c (arm_return_value): Likewise.
4776 * avr-tdep.c (avr_return_value): Likewise.
4777 * bfin-tdep.c (bfin_return_value): Likewise.
4778 * cris-tdep.c (cris_return_value): Likewise.
4779 * frv-tdep.c (frv_return_value): Likewise.
4780 * h8300-tdep.c (h8300_return_value): Likewise.
4781 (h8300h_return_value): Likewise.
4782 * hppa-tdep.c (hppa32_return_value): Likewise.
4783 (hppa64_return_value): Likewise.
4784 * i386-tdep.c (i386_return_value): Likewise.
4785 * ia64-tdep.c (ia64_return_value): Likewise.
4786 * iq2000-tdep.c (iq2000_return_value): Likewise.
4787 * lm32-tdep.c (lm32_return_value): Likewise.
4788 * m32c-tdep.c (m32c_return_value): Likewise.
4789 * m32r-tdep.c (m32r_return_value): Likewise.
4790 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4791 * m68k-tdep.c (m68k_return_value): Likewise.
4792 (m68k_svr4_return_value): Likewise.
4793 * m88k-tdep.c (m88k_return_value): Likewise.
4794 * mep-tdep.c (mep_return_value): Likewise.
4795 * microblaze-tdep.c (microblaze_return_value): Likewise.
4796 * mn10300-tdep.c (mn10300_return_value): Likewise.
4797 * moxie-tdep.c (moxie_return_value): Likewise.
4798 * mt-tdep.c (mt_return_value): Likewise.
4799 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4800 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4801 (ppc_sysv_abi_broken_return_value): Likewise.
4802 (ppc64_sysv_abi_return_value): Likewise.
4803 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4804 * rl78-tdep.c (rl78_return_value): Likewise.
4805 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4806 * rx-tdep.c (rx_return_value): Likewise.
4807 * s390-tdep.c (s390_return_value): Likewise.
4808 * score-tdep.c (score_return_value): Likewise.
4809 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4810 (sh_return_value_fpu): Likewise.
4811 * sh64-tdep.c (sh64_return_value): Likewise.
4812 * sparc-tdep.c (sparc32_return_value): Likewise.
4813 * sparc64-tdep.c (sparc64_return_value): Likewise.
4814 * spu-tdep.c (spu_return_value): Likewise.
4815 * tic6x-tdep.c (tic6x_return_value): Likewise.
4816 * v850-tdep.c (v850_return_value): Likewise.
4817 * vax-tdep.c (vax_return_value): Likewise.
4818 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4819 * xtensa-tdep.c (xtensa_return_value): Likewise.
4820 * gdbarch.c: Regenerate.
4821 * gdbarch.h: Regenerate.
4823 2012-05-15 Tom Tromey <tromey@redhat.com>
4825 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4827 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4829 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4830 of command in two error message.
4832 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4834 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4836 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4838 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4840 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4842 * NEWS (show auto-load scripts-directory): Add forgotten command.
4844 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4846 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4849 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4851 * amd64-tdep.c: Include features/i386/x32.c and
4852 features/i386/x32-avx.c.
4853 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4854 initialize_tdesc_x32_avx.
4856 2012-05-14 Stan Shebs <stan@codesourcery.com>
4859 * breakpoint.h (enum bptype): New type bp_dprintf.
4860 (struct breakpoint): New field extra_string.
4861 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4862 (create_breakpoint): Add extra_string arg.
4863 * breakpoint.c (dprintf_breakpoint_ops): New.
4864 (is_breakpoint): Add bp_dprintf.
4865 (bpstat_what): Add dprintf case.
4866 (bptype_string): Ditto.
4867 (print_one_breakpoint_location): Ditto.
4868 (init_bp_location): Ditto.
4869 (bkpt_print_mention): Ditto.
4870 (dprintf_style_enums): New array.
4871 (dprintf_style): New global.
4872 (dprintf_function): New global.
4873 (dprintf_channel): New global.
4874 (update_dprintf_command_list): New function.
4875 (update_dprintf_commands): New function.
4876 (init_breakpoint_sal): Add extra_string argument, handle it.
4877 (create_breakpoint_sal): Add extra_string argument.
4878 (create_breakpoints_sal): Add extra_string argument, update callers.
4879 (find_condition_and_thread): Add extra argument.
4880 (create_breakpoint): Add extra_string argument, record it.
4881 (dprintf_command): New function.
4882 (break_command_1): Add arg to create_breakpoint call.
4883 (handle_gnu_v3_exceptions): Ditto.
4884 (trace_command): Ditto.
4885 (ftrace_command): Ditto.
4886 (strace_command): Ditto.
4887 (bkpt_print_mention): Add dprintf case.
4888 (create_breakpoint_sal_default): Add extra_string argument.
4889 (_initialize_breakpoint): Add new commands.
4890 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4891 * python/py-breakpoint.c (bppy_init): Ditto.
4892 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4894 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4896 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4898 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4900 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4903 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4905 Add a new function gdb.find_pc_line to the Python API.
4906 * NEWS (Python Scripting): Add entry about the new function.
4907 * python/python.c (gdbpy_find_pc_line): New function which
4908 implements gdb.find_pc_line.
4909 (GdbMethods): Add entry for the new function.
4911 2012-05-12 Pedro Alves <palves@redhat.com>
4913 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4914 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4916 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4918 * inferior.c: Include completer.h
4919 (initialize_inferiors): Set completer of add-inferior to
4922 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4924 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4925 gdbarch_ptr_bit for x32 core dump.
4927 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4929 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4930 and features/i386/x32-avx-linux.c.
4932 2012-05-11 Stan Shebs <stan@codesourcery.com>
4933 Kwok Cheung Yeung <kcy@codesourcery.com>
4935 * NEWS: Describe new info os commands.
4936 * common/linux-osdata.c (PID_T, TIME_T): Define.
4937 (MAX_PID_T_STRLEN): New.
4938 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4940 (command_from_pid): Add comment. Change to use PID_T.
4941 (commandline_from_pid): Change to use PID_T.
4942 (user_from_pid): Add comment.
4943 (get_process_owner): Add comment. Change to use PID_T and
4945 (get_number_of_cpu_cores): Add comment.
4946 (get_cores_used_by_process): Add comment. Change to use PID_T and
4948 (linux_xfer_osdata_processes): Change to use PID_T and
4950 (compare_processes): New function.
4951 (linux_xfer_osdata_processgroups): New function.
4952 (linux_xfer_osdata_threads): Change to use PID_T.
4953 (linux_xfer_osdata_fds): New function.
4954 (format_socket_state, print_sockets): New functions.
4955 (union socket_addr): New union.
4956 (linux_xfer_osdata_isockets): New function.
4957 (time_from_time_t, group_from_gid): New functions.
4958 (linux_xfer_osdata_shm): New function.
4959 (linux_xfer_osdata_sem): New function.
4960 (linux_xfer_osdata_msg): New function.
4961 (linux_xfer_osdata_modules): New function.
4962 (osdata_table): Add new entries.
4963 * common/buffer.c (buffer_xml_printf): Add support for long and
4964 long long format specifiers.
4966 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4968 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4969 (tdesc_x32_avx_linux): Likewise.
4971 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4973 Implement multi-component --with-auto-load-dir.
4974 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4976 (--with-auto-load-safe-path): Update the default value description.
4977 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4979 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4980 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4981 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4982 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4983 "set auto-load scripts-directory".
4984 * config.in: Regenerate.
4985 * configure: Regenerate.
4986 * configure.ac (--with-auto-load-dir): New configure option.
4987 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4989 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4991 Provide $ddir substitution for --with-auto-load-safe-path.
4992 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4994 * auto-load.c: Include observer.h.
4995 (auto_load_safe_path_vec_update): Call substitute_path_component for
4996 each component. New variable ddir_subst.
4997 (auto_load_gdb_datadir_changed): New function.
4998 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4999 AUTO_LOAD_SAFE_PATH. New comment.
5000 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5001 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5002 * config.in: Regenerate.
5003 * configure: Regenerate.
5004 * configure.ac (--auto-load-safe-path): Rename
5005 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5006 GDB_DATADIR/auto-load.
5007 * defs.h (substitute_path_component): New declaration.
5008 * top.c: Include observer.h.
5009 (set_gdb_datadir): New function.
5010 (init_main): Install it for "set data-directory".
5011 * utils.c (substitute_path_component): New function.
5013 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5015 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5016 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5017 DEBUG_FILE_DIRECTORY. Handle multiple components of
5018 DEBUG_FILE_DIRECTORY.
5020 2012-05-10 Tom Tromey <tromey@redhat.com>
5022 * dwarf2read.c (recursively_write_psymbols): New function.
5023 (write_psymtabs_to_index): Use it.
5025 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5027 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5028 (load_partial_comp_unit): Update.
5029 (queue_comp_unit): Add argument 'pretend_language'.
5030 (process_queue): Update.
5031 (psymtab_to_symtab_1): Skip dependencies that have a user.
5032 (load_partial_comp_unit_reader): Give meaning to the 'data'
5034 (load_full_comp_unit): Add 'pretend_language' argument.
5035 (process_full_comp_unit): Add 'pretend_language' argument. Set
5037 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5039 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5040 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5042 (prepare_one_comp_unit): Add 'pretend_language' argument.
5044 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5045 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5046 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5047 (dw2_do_instantiate_symtab): Check whether symtab was read in
5049 (dw2_instantiate_symtab): Add assertion. Call
5050 process_cu_includes.
5051 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5052 (partial_symtab_p): New typedef.
5053 (set_partial_user): New function.
5054 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5055 (scan_partial_symbols): Add imported CU to imported_symtabs.
5056 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5057 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5058 (get_symtab, recursively_compute_inclusions)
5059 (compute_symtab_includes, process_cu_includes)
5060 (process_imported_unit_die): New functions.
5061 (process_die) <DW_TAG_imported_unit>: New case.
5062 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5064 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5066 (struct partial_die_info) <locdesc>: Remove.
5068 (process_psymtab_comp_unit): Add 'read_partial' argument.
5070 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5071 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5072 (add_partial_symbol): Update.
5073 (process_die): Handle DW_TAG_partial_unit.
5074 (read_file_scope): Update comment.
5075 (load_partial_dies): Handle DW_TAG_imported_unit.
5076 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5077 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5079 2012-05-10 Tom Tromey <tromey@redhat.com>
5081 * cc-with-dwz.sh: New file.
5083 2012-05-10 Tom Tromey <tromey@redhat.com>
5085 * symtab.h (struct symtab) <includes, user>: New fields.
5086 * block.h (struct block_iterator) <d, idx, which>: New fields.
5087 * block.c (initialize_block_iterator, find_iterator_symtab)
5088 (block_iterator_step, block_iter_name_step)
5089 (block_iter_match_step): New functions.
5090 (block_iterator_first, block_iterator_next)
5091 (block_iter_name_first, block_iter_name_next)
5092 (block_iter_match_first, block_iter_match_next): Rewrite.
5093 (get_block_symtab): New function.
5095 2012-05-10 Tom Tromey <tromey@redhat.com>
5097 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5099 * jit.c (finalize_symtab): Use allocate_global_block,
5101 * buildsym.c (finish_block_internal): New function, from old
5103 (finish_block): Rewrite.
5104 (end_symtab): Use finish_block_internal, set_block_symtab.
5105 * block.h (struct global_block): New.
5106 (allocate_global_block, set_block_symtab): Declare.
5107 * block.c (allocate_global_block, set_block_symtab): New
5110 2012-05-10 Tom Tromey <tromey@redhat.com>
5112 * psymtab.c (partial_map_expand_apply): Add assertion.
5113 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5114 (psymtab_to_symtab): Find unshared psymtab.
5115 (dump_psymtab): Print including psymtabs.
5116 (recursively_search_psymtabs): New function.
5117 (expand_symtabs_matching_via_partial): Use it.
5118 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5120 (enum psymtab_search_status): New.
5122 2012-05-10 Tom Tromey <tromey@redhat.com>
5124 * tracepoint.c (scope_info): Update.
5125 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5126 (find_pc_sect_symtab, search_symbols)
5127 (default_make_symbol_completion_list_break_on)
5128 (make_file_symbol_completion_list): Update.
5129 * symmisc.c (dump_symtab_1): Update.
5130 * stack.c (print_frame_args, iterate_over_block_locals)
5131 (print_frame_labels, iterate_over_block_arg_vars): Update.
5132 * python/py-block.c (block_object) <dict>: Remove.
5134 <iter>: Change type.
5135 (blpy_iter): Update.
5136 (blpy_block_syms_iternext): Update.
5137 * psymtab.c (map_block): Use block iterators.
5138 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5139 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5140 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5141 * infrun.c (check_exception_resume): Update.
5142 * cp-support.c (make_symbol_overload_list_block): Update.
5143 * coffread.c (patch_opaque_types): Update.
5144 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5145 * block.h (struct block_iterator): New.
5146 (block_iterator_first, block_iterator_next, block_iter_name_first)
5147 (block_iter_name_next, block_iter_match_first)
5148 (block_iter_match_next): Declare.
5149 (ALL_BLOCK_SYMBOLS): Redefine.
5150 * block.c (block_iterator_first, block_iterator_next)
5151 (block_iter_name_first, block_iter_name_next)
5152 (block_iter_match_first, block_iter_match_next): New functions.
5153 * ada-lang.c (ada_add_block_symbols)
5154 (ada_make_symbol_completion_list): Use block iterator.
5156 2012-05-10 Tom Tromey <tromey@redhat.com>
5158 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5159 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5160 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5161 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5162 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5165 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5167 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5168 print-file-var-lib2.c, print-file-var-main.c and
5169 print-file-var.exp (located in gdb/testsuite/gdb.base).
5171 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5173 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5174 try locating the symbol in the symbol's own objfile first, before
5175 extending the search to all objfiles.
5176 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5177 out of lookup_symbol_aux_symtabs.
5178 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5179 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5180 Do not search EXCLUDE_OBJFILE.
5181 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5182 (lookup_symbol_global): Search for matches in the block's objfile
5183 first, before searching all other objfiles.
5185 2012-05-10 Tristan Gingold <gingold@adacore.com>
5187 * printcmd.c (set_command): Add pre/post inc/dec.
5189 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5191 * gdb.1: Document -ex option.
5193 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5195 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5196 * inferior.h (AT_SYMBOL): Delete.
5198 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5200 * mips-tdep.c (mips_push_dummy_code): New function.
5201 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5202 ON_STACK and install mips_push_dummy_code as our gdbarch
5203 push_dummy_code routine.
5205 2012-05-09 Pedro Alves <palves@redhat.com>
5207 * target.c (set_maintenance_target_async_permitted): Rename to ...
5208 (set_target_async_command): ... this.
5209 (show_maintenance_target_async_permitted): Rename to ...
5210 (show_target_async_command): ... this.
5211 (initialize_targets): Adjust.
5213 2012-05-08 Doug Evans <dje@google.com>
5215 * go-exp.y (classify_name): Add missing assignment of fields of
5218 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5220 Display the ">" prompt in interactive mode while reading canned
5221 commands, even when the current interpreter is MI.
5223 * interps.c (interp_set_temp): New function.
5225 * interps.h (interp_set_temp): Add prototype.
5227 * cli/cli-script.c (restore_interp): New cleanup function.
5228 (read_command_lines): Temporarily override the current interpreter
5229 with CLI and arrange for restoring the original one.
5231 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5233 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5235 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5237 * probe.c (parse_probes): Move conditional to check for
5238 debuginfo files from here...
5239 * stap-probe.c (stap_get_probes): ... to here.
5241 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5242 H.J. Lu <hongjiu.lu@intel.com>
5244 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5245 `movl %esp, %ebp' for the X32 ABI.
5247 2012-05-07 Tom Tromey <tromey@redhat.com>
5249 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5251 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5252 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5253 (dwarf_stack_op_name): Remove.
5254 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5255 (decode_locdesc): Use get_DW_OP_name.
5256 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5257 (dwarf2_compile_expr_to_ax): Likewise.
5258 (disassemble_dwarf_expression): Likewise.
5259 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5261 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5263 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5264 (sh_linux_sigtramp_cache): New function.
5265 (sh_linux_sigreturn_init): New function.
5266 (sh_linux_rt_sigreturn_init): New function.
5267 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5269 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5271 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5272 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5273 (sh_linux_init_abi): Add init calls to register new tramp_frame
5274 definitions under 32-bit SH, update comments.
5276 2012-05-07 Pedro Alves <palves@redhat.com>
5280 * amd64-linux-tdep.c: Include glibc-tdep.h.
5281 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5282 gdbarch_skip_solib_resolver callback.
5284 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5286 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5287 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5288 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5289 (add_auto_load_safe_path): Change the error message.
5290 (_initialize_auto_load): Change the "safe-path" help text.
5291 * configure: Regenerate
5292 * configure.ac (--without-auto-load-safe-path): Set
5293 WITH_AUTO_LOAD_SAFE_PATH to /.
5295 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5297 * stap-probe.h: Do not include unecessary `probe.h'.
5299 2012-05-05 Alan Modra <amodra@gmail.com>
5301 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5302 bfd_und_section_ptr.
5303 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5304 and bfd_com_section_ptr.
5306 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5308 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5310 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5312 * windows-nat.h (segment_register_p_ftype): New typedef.
5313 (windows_set_segment_register_p): Add declaration.
5314 * windows-nat.c (segment_register_p): New static global.
5315 (windows_set_segment_register_p): New function.
5316 (do_windows_fetch_inferior_registers): Add special handling
5317 for segment registers.
5318 * amd64-windows-nat.c: #include "amd64-tdep.h".
5319 (amd64_windows_segment_register_p): New function.
5320 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5321 * i386-windows-nat.c: #include "i386-tdep.h".
5322 (i386_windows_segment_register_p): New function.
5323 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5325 2012-05-04 Tristan Gingold <gingold@adacore.com>
5327 * printcmd.c (set_command): Emit a warning if the expression is not
5330 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5332 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5335 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5337 * stap-probe.c (stap_is_operator): Change declaration.
5338 (stap_get_opcode): Change return value.
5339 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5340 `stap_parse_argument_1'.
5342 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5344 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5347 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5349 Add two new methods global_block and static_block to gdb.Symtab
5351 * NEWS (Python scripting): Add entry about the new methods.
5352 * python/py-symtab.c (stpy_global_block): New function which
5353 implements the gdb.Symtab.global_block() method.
5354 (stpy_static_block): New function which implements the
5355 gdb.Symtab.static_block() method.
5356 (symtab_object_methods): Add entries for the two new methods.
5358 2012-05-03 Doug Evans <dje@google.com>
5360 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5363 2012-05-03 Yao Qi <yao@codesourcery.com>
5365 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5367 (i386_process_record): Ditto.
5369 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5371 * infcall.c (unwind_on_signal_p): Make static.
5373 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5375 * sol-thread.c (solaris_pid_to_str): Make static.
5376 (_initialize_sol_thread): Add prototype.
5378 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5380 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5382 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5384 * MAINTAINERS: Remove myself.
5386 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5388 Fix --without-auto-load-safe-path for MS-Windows host platform.
5389 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5391 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5393 * gdb_curses.h: Undefine KEY_EVENT before including curses
5394 headers. Move "#undef MOUSE_MOVED" before any curses header
5397 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5399 * features/i386/i386-mmx-linux.c: Regenerate.
5400 * features/rs6000/powerpc-32.c: Likewise.
5401 * features/rs6000/powerpc-32l.c: Likewise.
5402 * features/rs6000/powerpc-403.c: Likewise.
5403 * features/rs6000/powerpc-403gc.c: Likewise.
5404 * features/rs6000/powerpc-405.c: Likewise.
5405 * features/rs6000/powerpc-505.c: Likewise.
5406 * features/rs6000/powerpc-601.c: Likewise.
5407 * features/rs6000/powerpc-602.c: Likewise.
5408 * features/rs6000/powerpc-603.c: Likewise.
5409 * features/rs6000/powerpc-604.c: Likewise.
5410 * features/rs6000/powerpc-64.c: Likewise.
5411 * features/rs6000/powerpc-64l.c: Likewise.
5412 * features/rs6000/powerpc-750.c: Likewise.
5413 * features/rs6000/powerpc-860.c: Likewise.
5414 * features/rs6000/powerpc-e500.c: Likewise.
5415 * features/rs6000/powerpc-e500l.c: Likewise.
5416 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5417 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5418 * features/rs6000/rs6000.c: Likewise.
5420 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5422 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5424 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5425 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5426 (stap_parse_argument) <e>: Likewise.
5427 (handle_stap_probe) <byte_order>: Likewise.
5429 2012-04-30 Doug Evans <dje@google.com>
5431 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5432 init_and_read_dies_worker. All callers updated.
5433 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5434 replaced with init_cutu_and_read_dies.
5435 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5436 (find_partial_die): Remove FIXME. Don't free current CU.
5438 2012-04-30 Sterling Augustine <saugustine@google.com>
5440 * contrib: New directory.
5441 * contrib/test_pubnames_and_indexes.py: New file.
5443 2012-04-30 Doug Evans <dje@google.com>
5445 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5446 All callers updated.
5447 (init_cu_die_reader): Verify the section is non-empty.
5448 (dwarf_decode_line_header): Don't dereference section->asection
5449 until we know the section is present.
5451 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5453 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5456 2012-04-29 Yao Qi <yao@codesourcery.com>
5458 * gdb-code-style.el: New hook gdb-markup-hook
5459 and gdb-comment-hook.
5461 2012-04-28 Doug Evans <dje@google.com>
5463 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5464 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5466 * symfile.h (dwarf2_debug_sections): New member addr.
5467 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5468 (ctx_no_get_addr_index): New function.
5469 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5470 (ctx_no_get_addr_index): Declare.
5471 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5472 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5473 (dwarf_expr_ctx_funcs): Update.
5474 (needs_get_addr_index): New function.
5475 (needs_frame_ctx_funcs): Update.
5476 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5477 * dwarf2read.c: #include "gdbcore.h".
5478 (dwarf2_per_objfile): New members addr, dwo_files.
5479 (dwarf2_elf_names): Add entry for addr.
5480 (struct dwo_section_names): New type.
5481 (dwo_section_names): New static global.
5482 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5483 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5484 old debug_types_section member updated to use this.
5485 Rename member debug_types_section to info_or_types_section,
5487 (signatured_type): Rename member type_offset to type_offset_in_tu,
5488 all uses updated. New member type_offset_in_section.
5489 (struct dwo_sections): New type.
5490 (struct dwo_unit): New type.
5491 (struct dwo_file): New type.
5492 (die_reader_specs): New member dwo_file.
5493 (dwarf2_locate_sections): Watch for .debug_addr.
5494 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5495 (dwarf2_read_section): Get bfd of section from bfd's asection,
5497 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5498 (create_signatured_type_table_from_index): Initialize
5499 sig_type->info_or_types_section.
5500 (dw2_get_file_names): Statement lists for type units with DWO files
5501 live in the DWO file.
5502 (create_debug_types_hash_table): New function.
5503 (create_all_type_units): Rewrite.
5504 (init_cu_die_reader): New arg dwo_file, all callers updated.
5505 (init_and_read_dies_worker): Get section from
5506 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5507 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5508 continue reading the CU/TU from there.
5509 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5510 updated. Get section from this_cu->info_or_types_section.
5511 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5512 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5513 DW_FORM_GNU_str_index.
5514 (hash_dwo_file, eq_dwo_file): New functions.
5515 (allocate_dwo_file_hash_table): New function.
5516 (hash_dwo_unit, eq_dwo_unit): New functions.
5517 (allocate_dwo_unit_table): New function.
5518 (dwarf2_locate_dwo_sections): New function.
5519 (struct create_dwo_info_table_data): New type.
5520 (create_debug_info_hash_table_reader): New function.
5521 (create_debug_info_hash_table): New function.
5522 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5523 (lookup_dwo_file): New function.
5524 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5525 (free_dwo_file, free_dwo_file_cleanup): New functions.
5526 (free_dwo_file_from_slot, free_dwo_files): New functions.
5527 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5528 (dwarf2_record_block_ranges): Ditto.
5529 (read_partial_die): Ditto.
5530 (process_enumeration_scope): Update to use type_offset_in_section.
5531 (read_full_die_1): New function.
5532 (read_full_die): Rewrite.
5533 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5534 DW_FORM_GNU_str_index.
5535 (read_addr_index_1, read_addr_index): New functions.
5536 (read_addr_index_from_leb128): New function.
5537 (struct dwarf2_read_addr_index_data): New type.
5538 (dwarf2_read_addr_index_reader): New function.
5539 (dwarf2_read_addr_index): New function.
5540 (read_str_index): New function.
5541 (leb128_size): New function.
5542 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5543 If processing a type unit from a DWO file, get the line section
5545 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5546 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5547 DW_FORM_GNU_str_index.
5548 (lookup_die_type): Check whether section offset of type's die is
5549 known before looking it up. Remove assert. Condition can
5550 legimately happen for inter-cu type references.
5551 (dwarf_attr_name): Handle Fission attributes.
5552 (dwarf_form_name): Handle Fission forms.
5553 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5554 DW_FORM_GNU_str_index.
5555 (follow_die_sig): Update to use type_offset_in_section.
5556 (decode_locdesc): New case DW_OP_GNU_addr_index.
5557 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5558 DW_FORM_GNU_str_index.
5559 (cu_debug_loc_section): New function.
5560 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5561 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5562 Free DWO files if present.
5563 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5565 Refactor DIE reading.
5566 * dwarf2read.c (dwarf2_per_objfile): Replace members
5567 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5568 (die_reader_specs): New member "die_section". Temporarily make
5569 member "buffer" non-const, pending constifying all info_ptr uses.
5570 (die_reader_func_ftype): New typedef.
5571 (dw2_get_file_names_reader): New function.
5572 (dw2_get_file_names): Rewrite.
5573 (read_and_check_type_unit_head): Rename arg type_offset to
5575 (create_all_type_units): Improve debugging message.
5576 Improve dummy type unit check.
5577 (init_cu_die_reader): New arg "section". All callers updated.
5578 (init_and_read_dies_worker): New function.
5579 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5580 (init_cutu_and_read_dies_no_follow): New function.
5581 (init_cutu_and_read_dies_simple): New function.
5582 (process_psymtab_comp_unit_reader): New function.
5583 (process_psymtab_comp_unit): Delete args section,
5584 is_debug_types_section. Rewrite. All callers updated.
5585 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5586 All callers updated. Rewrite.
5587 (load_partial_comp_unit_reader): New function.
5588 (load_partial_comp_unit): Rewrite.
5589 (skip_children): New arg reader. Delete args buffer, cu.
5590 All callers updated.
5591 (skip_one_die): New arg reader. Delete args buffer, cu.
5592 All callers updated.
5593 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5594 All callers updated.
5595 (load_full_comp_unit_reader): New function.
5596 (load_full_comp_unit): Rewrite.
5597 (read_comp_unit): Delete.
5598 (read_die_and_children_1): Delete, contents moved ...
5599 (read_die_and_children): ... here.
5600 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5601 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5602 All callers updated.
5603 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5604 All callers updated.
5605 (find_partial_die): Rewrite load_all_dies support.
5606 (read_attribute_value): New arg reader. Delete args abfd, cu.
5607 All callers updated.
5608 (read_attribute): New arg reader. Delete args abfd, cu.
5609 All callers updated.
5610 (load_full_type_unit): Add assert.
5611 (read_signatured_type_reader): New function.
5612 (read_signatured_type): Rewrite.
5613 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5614 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5615 All callers updated. Set per_cu->cu = NULL after freeing it.
5616 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5617 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5618 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5619 (set_die_type): Update.
5620 (get_die_type_at_offset): Update.
5621 (read_file_scope): Call prepare_one_comp_unit.
5622 (read_type_unit_scope): Ditto.
5623 (prepare_one_comp_unit): Set producer if present.
5625 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5627 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5628 gettext function on `error'.
5630 2012-04-27 Doug Evans <dje@google.com>
5632 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5635 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5636 Tom Tromey <tromey@redhat.com>
5638 * breakpoint.c (struct breakpoint_objfile_data)
5639 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5640 <exception_probes>: New fields.
5641 (free_breakpoint_probes): New function.
5642 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5643 `_Unwind_DebugHook'.
5644 (create_exception_master_breakpoint): Likewise.
5645 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5646 * infrun.c: Including necessary header files for handling SystemTap
5648 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5649 via SystemTap probes.
5650 (check_exception_resume): Remove `func' argument. Handle exception
5651 unwinding breakpoint set via a SystemTap probe.
5652 (insert_exception_resume_from_probe): New function.
5654 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5655 Tom Tromey <tromey@redhat.com>
5656 Jan Kratochvil <jan.kratochvil@redhat.com>
5658 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5659 (COMMON_OBS): Likewise.
5660 (HFILES_NO_SRCDIR): Add `probe'.
5661 * NEWS: Mention support for static and SystemTap probes.
5662 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5663 SystemTap probes' arguments parser.
5664 * arm-linux-tdep.c: Including headers needed to perform the parsing
5665 of SystemTap probes' arguments.
5666 (arm_stap_is_single_operand): New function.
5667 (arm_stap_parse_special_token): Likewise.
5668 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5669 probes' arguments parser.
5670 * ax-gdb.c (require_rvalue): Removing static declaration.
5671 (gen_expr): Likewise.
5672 * ax-gdb.h (gen_expr): Declaring function.
5673 (require_rvalue): Likewise.
5674 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5675 (bkpt_probe_breakpoint_ops): New variable.
5676 (momentary_breakpoint_from_master): Set the `probe' value.
5677 (add_location_to_breakpoint): Likewise.
5678 (break_command_1): Using proper breakpoint_ops according to the
5679 argument passed by the user in the command line.
5680 (bkpt_probe_insert_location): New function.
5681 (bkpt_probe_remove_location): Likewise.
5682 (bkpt_probe_create_sals_from_address): Likewise.
5683 (bkpt_probe_decode_linespec): Likewise.
5684 (tracepoint_probe_create_sals_from_address): Likewise.
5685 (tracepoint_probe_decode_linespec): Likewise.
5686 (tracepoint_probe_breakpoint_ops): New variable.
5687 (trace_command): Using proper breakpoint_ops according to the
5688 argument passed by the user in the command line.
5689 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5690 static probes on breakpoints and tracepoints.
5691 * breakpoint.h (struct bp_location) <probe>: New field.
5692 * cli-utils.c (skip_spaces_const): New function.
5693 (extract_arg): Likewise.
5694 * cli-utils.h (skip_spaces_const): Likewise.
5695 (extract_arg): Likewise.
5696 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5697 * configure.ac: Append `stap-probe.o' to be generated when ELF
5699 * configure: Regenerate.
5700 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5701 * elfread.c: Include `probe.h' and `arch-utils.h'.
5702 (probe_key): New variable.
5703 (elf_get_probes): New function.
5704 (elf_get_probe_argument_count): Likewise.
5705 (elf_evaluate_probe_argument): Likewise.
5706 (elf_compile_to_ax): Likewise.
5707 (elf_symfile_relocate_probe): Likewise.
5708 (stap_probe_key_free): Likewise.
5709 (elf_probe_fns): New variable.
5710 (elf_sym_fns): Add `sym_probe_fns' value.
5711 (elf_sym_fns_lazy_psyms): Likewise.
5712 (elf_sym_fns_gdb_index): Likewise.
5713 (_initialize_elfread): Initialize objfile cache for static
5715 * gdb_vecs.h (struct probe): New forward declaration.
5716 (probe_p): New VEC declaration.
5717 * gdbarch.c: Regenerate.
5718 * gdbarch.h: Regenerate.
5719 * gdbarch.sh (stap_integer_prefix): New variable.
5720 (stap_integer_suffix): Likewise.
5721 (stap_register_prefix): Likewise.
5722 (stap_register_suffix): Likewise.
5723 (stap_register_indirection_prefix): Likewise.
5724 (stap_register_indirection_suffix): Likewise.
5725 (stap_gdb_register_prefix): Likewise.
5726 (stap_gdb_register_suffix): Likewise.
5727 (stap_is_single_operand): New function.
5728 (stap_parse_special_token): Likewise.
5729 (struct stap_parse_info): Forward declaration.
5730 * i386-tdep.c: Including headers needed to perform the parsing
5731 of SystemTap probes' arguments.
5732 (i386_stap_is_single_operand): New function.
5733 (i386_stap_parse_special_token): Likewise.
5734 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5735 probes' arguments parser.
5736 * i386-tdep.h (i386_stap_is_single_operand): New function.
5737 (i386_stap_parse_special_token): Likewise.
5738 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5739 * mipsread.c (ecoff_sym_fns): Likewise.
5740 * objfiles.c (objfile_relocate1): Support relocation for static
5742 * parse.c (prefixify_expression): Remove static declaration.
5743 (initialize_expout): Likewise.
5744 (reallocate_expout): Likewise.
5745 * parser-defs.h (initialize_expout): Declare function.
5746 (reallocate_expout): Likewise.
5747 (prefixify_expression): Likewise.
5748 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5749 of SystemTap probes' arguments.
5750 (ppc_stap_is_single_operand): New function.
5751 (ppc_stap_parse_special_token): Likewise.
5752 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5753 probes' arguments parser.
5754 * probe.c: New file, for generic statically defined probe support.
5755 * probe.h: Likewise.
5756 * s390-tdep.c: Including headers needed to perform the parsing of
5757 SystemTap probes' arguments.
5758 (s390_stap_is_single_operand): New function.
5759 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5760 probes' arguments parser.
5761 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5762 * stap-probe.c: New file, for SystemTap probe support.
5763 * stap-probe.h: Likewise.
5764 * symfile.h: Include `gdb_vecs.h'.
5765 (struct sym_probe_fns): New struct.
5766 (struct sym_fns) <sym_probe_fns>: New field.
5767 * symtab.c (init_sal): Initialize `probe' field.
5768 * symtab.h (struct probe): Forward declaration.
5769 (struct symtab_and_line) <probe>: New field.
5770 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5772 (stop_tracing): Likewise.
5773 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5775 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5776 Tom Tromey <tromey@redhat.com>
5778 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5779 and to compile agent expressions.
5780 * infrun.c (siginfo_make_value): New argument `ignore'.
5781 (siginfo_funcs): New struct.
5782 (_initialize_infrun): New argument when calling
5783 `create_internalvar_type_lazy'.
5784 * thread.c (thread_id_make_value): New argument `ignore'.
5785 (thread_funcs): New struct.
5786 (_initialize_thread): New argument when calling
5787 `create_internalvar_type_lazy'.
5788 * tracepoint.c (sdata_make_value): New argument `ignore'.
5789 (sdata_funcs): New struct.
5790 (_initialize_tracepoint): New argument when calling
5791 `create_internalvar_type_lazy'.
5792 * value.c (make_value): New struct.
5793 (create_internalvar_type_lazy): New argument `data'.
5794 (compile_internalvar_to_ax): New function.
5795 (value_of_internalvar): Properly handling `make_value' case.
5796 (clear_internalvar): Likewise.
5797 (show_convenience): Adding `TRY_CATCH' block.
5798 * value.h (internalvar_make_value): Delete, replace by...
5799 (struct internalvar_funcs): ... this.
5800 (create_internalvar_type_lazy) <fun>: Delete argument.
5801 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5802 (compile_internalvar_to_ax): New function.
5803 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5804 (tlb_funcs): New struct.
5805 (_initialize_windows_tdep): New argument when calling
5806 `create_internalvar_type_lazy'.
5808 2012-04-27 Mark Wielaard <mjw@redhat.com>
5810 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5811 see whether it is an address or a constant offset from DW_AT_low_pc.
5812 (dwarf2_record_block_ranges): Likewise.
5813 (read_partial_die): Likewise.
5815 2012-04-26 Mark Wielaard <mjw@redhat.com>
5817 * MAINTAINERS (Write After Approval): Add myself to the list.
5819 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5821 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5822 (proc_prettyprint_signal): Likewise.
5823 (proc_prettyprint_faultset): Likewise.
5824 (proc_prettyprint_fault): Likewise.
5825 (proc_prettyprint_actionset): Likewise.
5826 (proc_prettyprint_flags): Move to new proc-flags.c section.
5827 (proc_prettyfprint_flags): New prototype.
5828 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5829 (proc_syscall, proc_cursig): Likewise.
5830 (proc_set_kill_on_last_close): Likewise.
5831 (proc_unset_kill_on_last_close): Likewise.
5832 (proc_set_watchpoint): Make static.
5833 (proc_delete_dead_threads): Likewise.
5834 (procfs_set_watchpoint): Likewise.
5835 (_initialize_procfs): Add prototype.
5836 * proc-events.c: Include proc-utils.h.
5837 (init_syscall_table): Make static.
5838 * proc-api.c (_initialize_proc_api): Add prototype.
5839 * proc-flags.c: Include proc-utils.h.
5841 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5843 * configure.ac: Add AC_ARG_PROGRAM.
5844 * configure: Regenerate.
5846 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5848 Fix DW_AT_lower_bound defaults for DWARF-4+.
5849 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5850 high. New variable low_default_is_valid. Implement DWARF-4+
5851 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5852 no default by the DWARF standard.
5854 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5855 Maciej W. Rozycki <macro@codesourcery.com>
5857 * infrun.c (handle_inferior_event): Move the check for return
5858 trampolines ahead of the check for function trampolines.
5859 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5860 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5861 (mips_str_mips16_ret_stub): Likewise.
5862 (mips_str_call_fp_stub): Likewise.
5863 (mips_str_call_stub): Likewise.
5864 (mips_str_fn_stub): Likewise.
5865 (mips_str_pic): Likewise.
5866 (mips_in_frame_stub): New function.
5867 (mips_unwind_pc): Return the return address rather than the PC
5868 if the PC of an intermediate frame is inside a call thunk.
5869 (mips_is_stub_suffix): New function.
5870 (mips_is_stub_mode): Likewise.
5871 (mips_get_mips16_fn_stub_pc): Likewise.
5872 (mips_skip_mips16_trampoline_code): Update to handle all the
5873 currently generated stub types. Don't recurse into __fn_stub
5874 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5875 Use cooked register accesses.
5876 (mips_in_return_stub): Reintroduce function.
5877 (mips_skip_trampoline_code): Traverse trampolines recursively.
5878 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5880 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5884 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5886 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5887 * features/arm-with-m-vfp-d16.xml: New file. Describes
5888 Cortex-M with VFPv4-sp-d16 FPU register layout.
5889 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5890 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5891 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5892 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5893 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5895 2012-04-25 Doug Evans <dje@google.com>
5897 * cli/cli-decode.c (print_doc_line): Use stream instead of
5900 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5902 * features/arm-with-iwmmxt.c: Regenerate.
5903 * features/arm-with-m-fpa-layout.c: Likewise.
5904 * features/arm-with-m.c: Likewise.
5905 * features/arm-with-neon.c: Likewise.
5906 * features/arm-with-vfpv2.c: Likewise.
5907 * features/arm-with-vfpv3.c: Likewise.
5908 * features/mips-dsp-linux.c: Likewise.
5909 * features/mips-linux.c: Likewise.
5910 * features/mips64-dsp-linux.c: Likewise.
5911 * features/mips64-linux.c: Likewise.
5912 * features/s390-linux32.c: Likewise.
5913 * features/s390-linux32v1.c: Likewise.
5914 * features/s390-linux32v2.c: Likewise.
5915 * features/s390-linux64.c: Likewise.
5916 * features/s390-linux64v1.c: Likewise.
5917 * features/s390-linux64v2.c: Likewise.
5918 * features/s390x-linux64.c: Likewise.
5919 * features/s390x-linux64v1.c: Likewise.
5920 * features/s390x-linux64v2.c: Likewise.
5921 * features/tic6x-c62x-linux.c: Likewise.
5922 * features/tic6x-c62x.c: Likewise.
5923 * features/tic6x-c64x-linux.c: Likewise.
5924 * features/tic6x-c64x.c: Likewise.
5925 * features/tic6x-c64xp-linux.c: Likewise.
5926 * features/tic6x-c64xp.c: Likewise.
5927 * target-descriptions.c: Only generate `field_type' and `type'
5928 variables when needed.
5930 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5932 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5934 2012-04-25 Doug Evans <dje@google.com>
5936 Initial pass at Go language support.
5938 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5940 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5941 (YYFILES): Add go-exp.c.
5942 (YYOBJ): Add go-exp.o.
5943 (local-maintainer-clean): Delete go-exp.c.
5944 * defs.h (enum language): Add language_go.
5945 * dwarf2read.c: #include "go-lang.h".
5946 (fixup_go_packaging): New function.
5947 (process_full_comp_unit): Call it when processing Go CUs.
5948 (dwarf2_physname): Add Go support.
5949 (read_file_scope): Handle missing language spec for GNU Go.
5950 (set_cu_language): Handle DW_LANG_Go.
5951 * go-exp.y: New file.
5952 * go-lang.h: New file.
5953 * go-lang.c: New file.
5954 * go-typeprint.c: New file.
5955 * go-valprint.c: New file.
5956 * symtab.c: #include "go-lang.h".
5957 (symbol_set_language): Handle language_go.
5958 (symbol_find_demangled_name, symbol_set_names): Ditto.
5959 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5961 2012-04-24 Jim Meyering <meyering@redhat.com>
5963 avoid a few strncpy-induced buffer overruns
5964 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5965 fname and psargs before trying to concatenate.
5966 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5967 "name" before applying strchr.
5969 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5971 * CONTRIBUTE: Use unified diff instead of context diff when
5974 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5976 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5977 code. Handle JR.HB correctly.
5979 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5982 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5983 with the other MIPS16 helpers.
5985 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5987 * observer.sh: Conditionally declare `args', thus cleaning up
5988 unused instances of this variable.
5990 2012-04-24 Yao Qi <yao@codesourcery.com>
5992 Revert this patch to allow breakpoint always-inserted
5994 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5995 * breakpoint.c: Include record.h.
5996 (breakpoints_always_inserted_mode): Return false when the record
5999 * breakpoint.c (iterate_over_bp_locations): New.
6000 * breakpoint.h: Declare.
6001 New typedef walk_bp_location_callback.
6002 * record.c (record_open): Call record_init_record_breakpoints.
6003 (record_sync_record_breakpoints): New.
6004 (record_init_record_breakpoints): New.
6005 * NEWS: Mention supporting breakpoint always-inserted mode in
6008 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6010 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6013 2012-04-24 Yao Qi <yao@codesourcery.com>
6015 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6016 (is_catchpoint): ... it.
6017 (print_one_breakpoint_location): Caller update.
6018 * breakpoint.h: Update declaration.
6020 2012-04-23 David S. Miller <davem@davemloft.net>
6022 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6024 2012-04-23 Tom Tromey <tromey@redhat.com>
6026 * buildsym.c (add_free_pendings): Remove.
6027 * buildsym.h (add_free_pendings): Remove.
6029 2012-04-23 Doug Evans <dje@google.com>
6031 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6032 attr.u.unsnd instead of attr.u.addr.
6033 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6034 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6036 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6037 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6039 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6041 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6043 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6044 (mips_o32_return_value): Likewise.
6045 (mips_o64_return_value): Likewise.
6047 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6049 * ada-lang.c (ada_evaluate_subexp): Add cases for
6050 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6051 their treatment in eval.c.
6053 2012-04-21 David S. Miller <davem@davemloft.net>
6055 * sparc-tdep.c (X_DISP10): Define.
6056 (sparc_analyze_control_transfer): Handle compare-and-branch.
6058 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6060 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6061 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6063 2012-04-20 Nigel Stephens <nigel@mips.com>
6064 Maciej W. Rozycki <macro@codesourcery.com>
6066 * mips-tdep.c (mips_float_register_p): New function.
6067 (mips_convert_register_float_case_p): Use mips_float_register_p.
6068 (mips_register_type): Likewise.
6069 (mips_print_register): Likewise.
6070 (print_gp_register_row): Likewise.
6071 (mips_print_registers_info): Likewise.
6073 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6075 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6078 2012-04-20 Andrew Pinski <apinski@cavium.com>
6080 * MAINTAINERS (Write After Approval): Add myself to the list.
6082 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6084 * MAINTAINERS: Update my e-mail address.
6086 2012-04-20 Pedro Alves <palves@redhat.com>
6088 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6090 * configure: Regenerate.
6092 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6094 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6096 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6098 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6100 Fix compilation compatibility with python-2.4
6101 * python/py-type.c (convert_field): Cast ADDRSTRING for
6102 PyObject_SetAttrString as non-const. New comment.
6104 2012-04-19 Tom Tromey <tromey@redhat.com>
6106 * top.c (quit_target): Use all_cleanups.
6107 * main.c (captured_command_loop): Use all_cleanups.
6108 * exceptions.c (throw_exception): Use all_cleanups.
6110 2012-04-19 Pedro Alves <palves@redhat.com>
6112 * Makefile.in (GNULIB_BUILDDIR): New.
6113 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6114 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6115 (CLEANDIRS). Remove gnulib/import.
6116 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6118 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6119 (gnulib/import/Makefile): Replace gnulib/import with
6120 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6121 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6122 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6123 acx_configure_dir.m4.
6124 * acinclude.m4: Include acx_configure_dir.m4.
6125 * acx_configure_dir.m4: New file.
6126 * aclocal.m4: Regenerate.
6127 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6128 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6129 (GNULIB): New variable.
6130 (GNULIB_STDINT_H): Adjust.
6131 (AC_OUTPUT): Don't output gnulib/Makefile.
6132 * gdb/defs.h: Include build-gnulib/config.h.
6133 * aclocal.m4: Regenerate.
6134 * config.in: Regenerate.
6135 * configure: Regenerate.
6137 * gnulib/Makefile.in: New file.
6138 * gnulib/configure.ac: New file.
6139 * gnulib/aclocal.m4: New file.
6140 * gnulib/config.in: New file.
6141 * gnulib/configure: New file.
6142 * gnulib/: Re-run gnulib-tool to adjust.
6144 2012-04-19 Doug Evans <dje@google.com>
6146 * cleanups.h (struct cleanup): Move to cleanups.c.
6147 (make_cleanup_dtor_ftype): New typedef.
6148 (make_cleanup_dtor): Use it.
6149 (ALL_CLEANUPS): Replace with ...
6150 (all_cleanups): ... this. Declare. All uses updated.
6151 * cleanups.c: #include "gdb_assert.h".
6152 (sentinel_cleanup): New static global.
6153 (SENTINEL_CLEANUP): Define.
6154 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6155 (make_my_cleanup2): Assert result is non-NULL.
6156 (all_cleanups): New function.
6157 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6160 2012-04-19 Pedro Alves <palves@redhat.com>
6162 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6163 Adjust paths to gnulib imported files.
6165 2012-04-19 Pedro Alves <palves@redhat.com>
6167 * gnulib/: Move whole directory ...
6168 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6169 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6170 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6171 (aclocal_m4_deps): Adjust.
6172 * aclocal.m4: Regenerate.
6173 * configure: Regenerate.
6174 * configure.ac: Adjust AC_OUTPUT output.
6176 2012-04-19 Yao Qi <yao@codesourcery.com>
6178 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6180 * vec.c: Move it ...
6181 * common/vec.c: ... here.
6182 * vec.h: Move it ...
6183 * common/vec.h: ... here.
6185 2012-04-19 Yao Qi <yao@codesourcery.com>
6187 * gdb-code-style.el: New.
6189 2012-04-18 Pedro Alves <palves@redhat.com>
6191 Update gnulib from latest git.
6192 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6194 * gnulib/Makefile.am: Update.
6195 * gnulib/dummy.c: Update.
6196 * gnulib/extra/arg-nonnull.h: Update.
6197 * gnulib/extra/c++defs.h: Update.
6198 * gnulib/extra/update-copyright: Update.
6199 * gnulib/extra/warn-on-use.h: Update.
6200 * gnulib/inttypes.in.h: Update.
6201 * gnulib/m4/00gnulib.m4: Update.
6202 * gnulib/m4/extensions.m4: Update.
6203 * gnulib/m4/gnulib-cache.m4: Update.
6204 * gnulib/m4/gnulib-common.m4: Update.
6205 * gnulib/m4/gnulib-comp.m4: Update.
6206 * gnulib/m4/gnulib-tool.m4: Update.
6207 * gnulib/m4/include_next.m4: Update.
6208 * gnulib/m4/inttypes-pri.m4: Update.
6209 * gnulib/m4/inttypes.m4: Update.
6210 * gnulib/m4/longlong.m4: Update.
6211 * gnulib/m4/memchr.m4: Update.
6212 * gnulib/m4/memmem.m4: Update.
6213 * gnulib/m4/mmap-anon.m4: Update.
6214 * gnulib/m4/multiarch.m4: Update.
6215 * gnulib/m4/onceonly.m4: Update.
6216 * gnulib/m4/stddef_h.m4: Update.
6217 * gnulib/m4/stdint.m4: Update.
6218 * gnulib/m4/string_h.m4: Update.
6219 * gnulib/m4/warn-on-use.m4: Update.
6220 * gnulib/m4/wchar_h.m4: Update.
6221 * gnulib/m4/wchar_t.m4: Update.
6222 * gnulib/m4/wint_t.m4: Update.
6223 * gnulib/memchr.c: Update.
6224 * gnulib/memmem.c: Update.
6225 * gnulib/stddef.in.h: Update.
6226 * gnulib/stdint.in.h: Update.
6227 * gnulib/str-two-way.h: Update.
6228 * gnulib/string.in.h: Update.
6229 * gnulib/wchar.in.h: Update.
6231 * gnulib/extra/arg-nonnull.h: Delete.
6232 * gnulib/extra/c++defs.h: Delete.
6233 * gnulib/extra/warn-on-use.h: Delete.
6234 * gnulib/m4/wchar_h.m4: Delete.
6235 * gnulib/m4/wint_t.m4: Delete.
6236 * gnulib/wchar.in.h: Delete.
6238 * gnulib/extra/snippets/arg-nonnull.h: New.
6239 * gnulib/extra/snippets/c++defs.h: New.
6240 * gnulib/extra/snippets/warn-on-use.h: New.
6242 * aclocal.m4: Regenerate.
6243 * config.in: Regenerate.
6244 * configure: Regenerate.
6245 * gnulib/Makefile.in: Regenerate.
6247 2012-04-18 Pedro Alves <palves@redhat.com>
6249 Reimport the update-copyright module from gnulib
6250 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6252 * configure: Regenerate.
6253 * gnulib/Makefile.am: Update.
6254 * gnulib/Makefile.in: Regenerate.
6255 * gnulib/extra/update-copyright: Update.
6256 * gnulib/m4/gnulib-cache.m4: Update.
6257 * gnulib/m4/gnulib-comp.m4: Update.
6259 2012-04-18 Tristan Gingold <gingold@adacore.com>
6261 * configure.ac (aix): Put -lpthread into libs.
6262 * configure: Regenerate.
6264 2012-04-18 Tom Tromey <tromey@redhat.com>
6266 * linespec.c (convert_linespec_to_sals): Don't use
6268 (compare_msymbols): Arguments are minsym_and_objfile, not
6269 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6271 2012-04-18 Pedro Alves <palves@redhat.com>
6273 Revert gnulib/ part of:
6274 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6275 Copyright year update in most files (performed by copyright.sh).
6277 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6279 Fix 64-bit constants on 32-bit hosts.
6280 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6281 from unsigned long to ULONGEST.
6282 (read_signed_leb128): Change declaration return type from long to
6284 (dwarf2_const_value_attr): Change declaration parameter value from long
6286 (dwarf2_compute_name): Change variable value from long to LONGEST.
6287 (read_unsigned_leb128): Change return type, variable result and some
6288 casts from unsigned long to ULONGEST.
6289 (read_signed_leb128): Change return type, variable result and some
6290 casts from long to LONGEST.
6291 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6292 value from long to LONGEST.
6293 (dwarf2_const_value): Change variable value from long to LONGEST.
6294 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6295 plongest and hex_string.
6296 * symtab.h (struct general_symbol_info): Change ivalue from long to
6297 LONGEST, remove the comment.
6298 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6299 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6301 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6304 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6305 * ada-lang.c (ada_discrete_type_high_bound)
6306 (ada_discrete_type_low_bound): Fix function comment. Use
6307 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6308 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6309 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6310 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6311 Use TYPE_FIELD_ENUMVAL.
6312 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6313 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6314 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6315 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6317 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6318 * dwarf2read.c (process_enumeration_scope): Likewise.
6319 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6321 (class StructMainTypePrettyPrinter): Support also
6322 FIELD_LOC_KIND_ENUMVAL.
6323 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6325 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6326 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6327 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6328 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6330 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6331 accommodate enumval.
6332 (struct call_site): Adjust loc_kind to accommodate enumval.
6333 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6334 (TYPE_FIELD_ENUMVAL): New macros.
6335 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6336 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6338 * p-typeprint.c (pascal_type_print_base): Likewise.
6339 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6341 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6342 * python/py-type.c (convert_field): New variable addrstring. Use
6343 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6344 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6345 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6346 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6348 * valprint.c (generic_val_print): Likewise.
6350 2012-04-17 Doug Evans <dje@google.com>
6352 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6354 * dwarf2read.c: Whitespace fixes.
6355 (lookup_signatured_type): Tweak comment.
6356 (get_die_type_at_offset): Fix comment.
6358 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6360 * xcoffread.c (xcoff_secnum_to_sections): New function.
6361 (secnum_to_section, secnum_to_bfd_section): Reimplement
6362 using xcoff_secnum_to_sections. Rename "secnum" parameter
6364 (RECORD_MINIMAL_SYMBOL): Delete.
6365 (record_minimal_symbol): New function.
6366 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6367 by call to record_minimal_symbol and set misc_func_recorded
6368 to 1. Set last_csect_sec to the XCOFF section index instead
6369 of GDB's section_offset index. Update calls to
6370 prim_record_minimal_symbol_and_info to pass the BFD section
6373 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6375 * xcoffread.c (read_xcoff_symtab): Delete variables
6376 last_csect_val and last_csect_sec and associated code.
6378 2012-04-17 Doug Evans <dje@google.com>
6380 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6381 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6382 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6383 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6385 * cleanups.h: New file.
6386 * cleanups.c: New file.
6387 * Makefile.in (SFILES): Add cleanups.c.
6388 (HFILES_NO_SRCDIR): Add cleanups.h.
6389 (COMMON_OBS): Add cleanups.o.
6390 * defs.h (struct cleanup): Moved to cleanups.h.
6391 (do_cleanups,do_final_cleanups): Ditto.
6392 (discard_cleanups,discard_final_cleanups): Ditto
6393 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6394 (save_cleanups,save_final_cleanups): Ditto.
6395 (restore_cleanups,restore_final_cleanups): Ditto.
6396 (null_cleanup): Ditto.
6397 (make_my_cleanup,make_my_cleanup2): Ditto.
6398 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6399 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6400 (do_cleanups,do_final_cleanups): Ditto.
6401 (discard_cleanups,discard_final_cleanups): Ditto
6402 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6403 (save_cleanups,save_final_cleanups): Ditto.
6404 (restore_cleanups,restore_final_cleanups): Ditto.
6405 (null_cleanup): Ditto.
6406 (make_my_cleanup,make_my_cleanup2): Ditto.
6407 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6409 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6411 (make_cleanup_dyn_string_delete): Ditto.
6412 (make_cleanup_ui_file_delete): Ditto.
6413 (make_cleanup_ui_out_redirect_pop): Ditto.
6414 (make_cleanup_free_section_addr_info): Ditto.
6415 (make_cleanup_restore_integer): Ditto.
6416 (make_cleanup_unpush_target): Ditto.
6417 (make_cleanup_value_free_to_mark): Ditto.
6418 (make_cleanup_value_free): Ditto.
6419 (make_cleanup_free_so): Ditto.
6421 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6423 New option "set debug auto-load".
6424 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6425 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6426 (auto_load_safe_path_vec_update)
6427 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6429 (file_is_auto_load_safe): New parameters debug_fmt and ....
6430 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6431 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6432 caller by explanatory string.
6433 (_initialize_auto_load): Register "set debug auto-load".
6434 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6436 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6437 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6438 by explanatory string.
6439 * main.c (captured_main): Likewise.
6440 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6441 (source_section_scripts): Likewise.
6443 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6445 New option "set auto-load safe-path".
6446 * NEWS: New commands "set auto-load safe-path"
6447 and "show auto-load safe-path".
6448 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6449 (auto_load_safe_path, auto_load_safe_path_vec)
6450 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6451 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6452 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6453 (source_gdb_script_for_objfile): New variable is_safe. Call
6454 file_is_auto_load_safe. Return if it is not.
6455 (struct loaded_script): New field loaded.
6456 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6457 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6458 output "Missing" to "No".
6459 (_initialize_auto_load): New variable cmd. Initialize
6460 auto_load_safe_path. Register "set auto-load safe-path",
6461 "show auto-load safe-path" and "add-auto-load-safe-path".
6462 * auto-load.h (maybe_add_script): Add parameter loaded.
6463 (file_is_auto_load_safe): New declaration.
6464 * config.in: Regenerate.
6465 * configure: Regenerate.
6466 * configure.ac: New parameters --with-auto-load-safe-path
6467 and --without-auto-load-safe-path.
6468 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6469 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6470 * main.c (captured_main): Check file_is_auto_load_safe for
6472 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6473 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6474 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6477 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6479 auto-load: Implementation.
6480 * NEWS: New descriptions for "info auto-load",
6481 "info auto-load gdb-scripts", "info auto-load python-scripts",
6482 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6483 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6484 and "show auto-load-scripts". New description for "set auto-load",
6485 "show auto-load", "set auto-load gdb-scripts",
6486 "show auto-load gdb-scripts", "set auto-load python-scripts",
6487 "show auto-load python-scripts", "set auto-load local-gdbinit",
6488 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6489 "show auto-load libthread-db".
6490 * auto-load.c: Remove include python/python-internal.h. Add includes
6491 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6493 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6494 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6495 (gdbpy_global_auto_load): Rename to ...
6496 (global_auto_load): ... here.
6497 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6498 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6499 (script_language_gdb, source_gdb_script_for_objfile): New.
6500 (struct loaded_script): New field language.
6501 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6503 (maybe_add_script): Add parameter language. Drop redundant
6504 entry.full_path initialization. Initialize entry.language and
6506 (auto_load_objfile_script): Change parameter suffix to language.
6507 Remove the call of maybe_add_script.
6508 Call language->source_script_for_objfile.
6509 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6511 (collect_matching_scripts): Adjust it for
6512 struct collect_matching_scripts_data.
6513 (auto_load_info_scripts_pattern_nl): New variable.
6514 (info_auto_load_scripts): Rename to ...
6515 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6516 for struct collect_matching_scripts_data.
6517 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6518 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6519 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6520 (auto_load_info_cmdlist_get): New.
6521 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6522 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6523 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6524 "info auto-load local-gdbinit".
6525 * auto-load.h (struct script_language): New.
6526 (gdbpy_global_auto_load): Rename to ...
6527 (global_auto_load): ... here.
6528 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6529 (auto_load_local_gdbinit_loaded): New declarations.
6530 (maybe_add_script): New parameter language.
6531 (auto_load_objfile_script): Change parameter suffix to language.
6532 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6533 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6534 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6536 * linux-thread-db.c: Include auto-load.h and ctype.h.
6537 (auto_load_thread_db, show_auto_load_thread_db): New.
6538 (struct thread_db_info): New field filename.
6539 (delete_thread_db_info): Call xfree for FILENAME.
6540 (try_thread_db_load): Initialize FILENAME.
6541 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6542 if !AUTO_LOAD_THREAD_DB.
6543 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6544 (_initialize_thread_db): Install auto_load_thread_db
6545 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6546 as "info auto-load libthread-db".
6547 * main.c (captured_main): Rename gdbpy_global_auto_load to
6548 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6549 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6550 (print_gdb_help): Extend the help for 'local init file'.
6551 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6552 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6553 (auto_load_scripts): Rename to ...
6554 (auto_load_python_scripts): ... here, update the comment.
6555 (gdbpy_load_auto_script_for_objfile): New declaration.
6556 (show_auto_load_python_scripts, script_language_python)
6557 (gdbpy_load_auto_script_for_objfile): New.
6558 (source_section_scripts): Refactor the code.
6559 (load_auto_scripts_for_objfile): Rename to ...
6560 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6561 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6562 (info_auto_load_python_scripts): New.
6563 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6564 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6565 Register "set auto-load-scripts" as its deprecated alias. Register
6566 "info auto-load python-scripts". Register "info auto-load-scripts" as
6567 its deprecated alias.
6568 (load_auto_scripts_for_objfile): Rename to ...
6569 (gdbpy_load_auto_scripts_for_objfile): ... here.
6570 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6571 (gdbpy_load_auto_scripts_for_objfile): ... here.
6573 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6575 auto-load: Move files.
6576 * Makefile.in (SFILES): Add auto-load.c.
6577 (HFILES_NO_SRCDIR): Add auto-load.h.
6578 (COMMON_OBS): Add auto-load.o.
6579 (distclean): Change .gdbinit for gdb-gdb.gdb.
6580 * auto-load.c: New file, with parts from python/py-auto-load.c.
6581 * auto-load.h: New file, with parts from python/python.h.
6582 * configure: Regenerate.
6583 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6584 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6585 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6586 * main.c: Include auto-load.h.
6587 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6588 command.h, observer.h and progspace.h to auto-load.c. Add include
6590 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6591 (struct loaded_script, auto_load_pspace_data)
6592 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6593 (hash_loaded_script_entry, eq_loaded_script_entry)
6594 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6595 (maybe_add_script): Move to auto-load.c.
6596 (source_section_scripts): Change maybe_add_script parameters passing,
6597 use script_not_found_warning_print.
6598 (clear_section_scripts, auto_load_objfile_script)
6599 (auto_load_new_objfile, loaded_script_ptr)
6600 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6601 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6602 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6603 auto_load_new_objfile and info_auto_load_scripts initizations to
6605 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6607 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6610 * charset.c (find_charset_names): Remove variables ix and elt.
6611 Use free_char_ptr_vec.
6612 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6613 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6614 debugdir_end. New variable debugdir_len.
6615 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6616 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6618 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6619 and elt. Use free_char_ptr_vec.
6620 * source.c (add_path): Remove variables argv, arg and argv_index.
6621 New variables dir_vec, back_to, ix and name.
6622 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6623 make_cleanup_freeargv. Remove variable separator. Simplify the code
6624 no longer expecting DIRNAME_SEPARATOR.
6625 (openp): Remove variable p, p1 and len. New variables dir_vec,
6626 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6627 no longer expecting DIRNAME_SEPARATOR.
6628 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6629 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6631 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6632 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6633 (dirnames_to_char_ptr_vec): New functions.
6635 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6638 * source.c (add_path): Remove always true conditional 'p == 0' and
6639 unindent its code block.
6641 2012-04-17 Pedro Alves <palves@redhat.com>
6643 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6644 (FIELD_BITPOS_LVAL): ... this.
6645 (FIELD_BITPOS): New.
6646 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6647 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6648 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6650 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6652 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6653 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6654 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6657 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6660 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6661 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6662 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6663 * jv-lang.c (java_link_class_type): Likewise, once.
6664 * stabsread.c (read_enum_type): Likewise.
6666 2012-04-16 Yao Qi <yao@codesourcery.com>
6668 * common/agent.c (agent_run_command): Add one more parameter `len'.
6670 * common/agent.h: Update declaration.
6671 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6673 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6675 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6678 * value.c (value_actual_type): New function.
6679 * value.h (value_actual_type): New declaration.
6680 * varobj.c (update_type_if_necessary): New function.
6681 (varobj_create): Call value_actual_type instead of
6683 (install_dynamic_child): distinct changed and type changed MI variable
6685 (update_dynamic_varobj_children): Updated for install_dynamic_child
6686 change. All callers updated.
6687 (varobj_update): Support for MI variable object type change if
6688 the value changed and RTTI is used to determine the type.
6689 (create_child_with_value): Call value_actual_type instead of
6691 (adjust_value_for_child_access): Extended with a new parameter which
6692 specify whether the given value should be casted to enclosing type.
6693 All callers updated.
6695 2012-04-14 Yao Qi <yao@codesourcery.com>
6697 Import gnulib module inttypes from git
6698 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6699 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6700 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6701 gnulib/m4/inttypes-pri.m4
6702 * aclocal.m4, config.in, configure: Regenerated.
6703 * gnulib/Makefile.am: Update.
6704 * gnulib/Makefile.in: Update.
6705 * gnulib/m4/gnulib-cache.m4: Update.
6706 * gnulib/m4/gnulib-comp.m4: Update.
6707 * gnulib/inttypes.in.h: New.
6708 * gnulib/m4/inttypes-pri.m4: New.
6709 * gnulib/m4/inttypes.m4: New.
6711 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6713 * infrun.c (resume): Update PC address to the real PC after
6714 preparing to do displaced stepping.
6716 2012-04-12 Doug Evans <dje@google.com>
6718 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6719 All callers updated.
6721 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6723 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6725 2012-04-12 Doug Evans <dje@google.com>
6727 * dwarf2read.c (create_all_type_units): Renamed from
6728 create_debug_types_hash_table. All callers updated.
6730 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6731 local type_sig to sig_type, type_offset to type_offset_in_tu.
6732 (hash_signatured_type): Renamed from hash_type_signature,
6733 all callers updated.
6734 (eq_signatured_type): Renamed from eq_type_signature,
6735 all callers updated.
6736 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6737 (process_enumeration_scope): Ditto.
6738 (lookup_signatured_type_at_offset): Ditto.
6739 (load_full_type_unit, read_signatured_type): Ditto.
6741 2012-04-12 Yao Qi <yao@codesourcery.com>
6743 * remote.c (async_remote_interrupt): Correct function name in
6745 (async_remote_interrupt_twice): Ditto.
6747 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6749 * source.c (find_and_open_source): Consistently pass resulting
6750 full path through xfullpath.
6752 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6754 Provide more specific displaced-stepping memory error message.
6755 * infrun.c (displaced_step_prepare): New variable status. Call
6756 target_read_memory instead of read_memory, provide more specific
6759 2012-04-11 Tristan Gingold <gingold@adacore.com>
6762 * darwin-nat.c (darwin_execvp): Revert previous patch.
6764 2012-04-11 Tristan Gingold <gingold@adacore.com>
6767 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6770 2012-04-11 Tristan Gingold <gingold@adacore.com>
6772 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6775 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6777 New command 'explore' which helps explore values and types in
6779 * NEWS: Add an entry about the new 'explore' command.
6780 * data-directory/Makefile.in: Add gdb/command/explore.py
6781 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6782 command using the GDB Python API.
6784 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6786 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6787 extension in jump target calculation.
6789 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6791 * mips-tdep.c (mips32_next_pc): Handle JALX.
6793 2012-04-10 Yao Qi <yao@codesourcery.com>
6795 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6797 2012-04-10 Yao Qi <yao@codesourcery.com>
6799 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6800 and gnulib/m4/gnulib-tool.m4.
6802 2012-04-10 Doug Evans <dje@google.com>
6804 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6805 (load_partial_dies): Clarify comment.
6806 (find_partial_die): Support rereading type units.
6807 Clarify CU handling, if we know offset is in CU, don't search for the
6808 containing CU. Add comment regarding memory waste.
6810 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6812 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6813 i386/x32-avx and i386/x32-avx-linux.
6814 (i386/x32-expedite): New.
6815 (i386/x32-linux-expedite): Likewise.
6816 (i386/x32-avx-expedite): Likewise.
6817 (i386/x32-avx-linux-expedite): Likewise.
6818 ($(outdir)/i386/x32.dat): Likewise.
6819 ($(outdir)/i386/x32-linux.dat): Likewise.
6820 ($(outdir)/i386/x32-avx.dat): Likewise.
6821 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6823 * features/i386/x32-avx-linux.xml: New file.
6824 * features/i386/x32-avx.xml: Likewise.
6825 * features/i386/x32-core.xml: Likewise.
6826 * features/i386/x32-linux.xml: Likewise.
6827 * features/i386/x32.xml: Likewise.
6829 * features/i386/x32-avx-linux.c: New. Generated.
6830 * features/i386/x32-avx.c: Likewise.
6831 * features/i386/x32-linux.c: Likewise.
6832 * features/i386/x32.c: Likewise.
6833 * regformats/i386/x32-avx-linux.dat: Likewise.
6834 * regformats/i386/x32-avx.dat: Likewise.
6835 * regformats/i386/x32-linux.dat: Likewise.
6836 * regformats/i386/x32.dat: Likewise.
6838 2012-04-10 Tristan Gingold <gingold@adacore.com>
6840 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6841 code to kill the inferior.
6843 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6845 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6847 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6849 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6850 (yyvsp): New defines.
6851 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6853 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6855 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6857 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6859 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6862 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6864 * sparc64-tdep.c (sparc64_store_arguments)
6865 (sparc64_store_arguments): Fix coding style.
6867 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6869 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6870 complex floats, adjust some related comments and tighten a related
6872 (sparc64_extract_return_value): Handle complex floats.
6874 2012-04-07 Doug Evans <dje@google.com>
6876 * dwarf2read.c (load_partial_dies): Change condition to assert.
6878 2012-04-06 Doug Evans <dje@google.com>
6880 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6883 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6885 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6887 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6888 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6891 2012-04-05 Keith Seitz <keiths@redhat.com>
6893 * linespec.c (decode_compound): Remove.
6894 (enum offset_relative_sign): New enum.
6895 (struct line_offset): New struct.
6896 (struct linespec): New struct.
6897 (struct linespec_state): Move file_symtabs,
6898 user_filename, and user_function into struct linespec.
6899 Make result an anonymous struct holding vectors of
6900 symbolp and minsym_and_objfile_d.
6901 Add language member.
6902 (enum ls_token_type): New enum.
6903 (linespec_keywords): New array.
6904 (struct ls_token): New struct.
6905 (struct ls_parser): New struct.
6906 (linespec_lexer_lex_number): New function.
6907 (linespec_lexer_lex_keyword): New function.
6908 (is_ada_operator): New function.
6909 (skip_quote_char): New function.
6910 (copy_token_string): New function.
6911 (is_closing_quote_enclosed): New function.
6912 (find_parameter_list_end): New function.
6913 (linespec_lexer_lex_string): New function.
6914 (linespec_lexer_lex_one): New function.
6915 (linespec_lexer_consume_token): New function.
6916 (linespec_lexer_peek_token): New function.
6917 (cplusplus_error): Remove unused function.
6918 (find_methods): Update comment.
6919 (find_toplevel_char): Return const.
6920 (is_objc_method_format): Remove unused function.
6921 (find_toplevel_string): New function.
6922 (is_linespec_boundary): Remove.
6923 (symbol_not_found_error): New function.
6924 (find_method_overload_end): Remove function.
6925 (unexpected_linespec_error): New function.
6926 (keep_name_info): Remove.
6927 (linespec_parse_line_offset): New function.
6928 (linespec_parse_basic): New function.
6929 (canonicalize_linespec): New function.
6930 (decode_line_internal): Remove.
6931 (create_sals_line_offset): New function adapted from
6933 (convert_linespec_to_sals): New function.
6934 (parse_linespec): New function.
6935 (linespec_parser_new): New function.
6936 (linespec_state_destructor): Change parameter type to
6937 struct linespec_state *.
6938 Add language parameter.
6939 Remove freeing of moved members.
6940 (linespec_parser_delete): New function.
6941 (decode_line_full): Use parse_linespec and linespec_parser_new.
6942 (decode_line_1): Likewise.
6943 (decode_indirect): Rename to ...
6944 (linespec_expression_to_pc): ... this and rewrite
6945 to simply find CORE_ADDR, storing this result for later
6947 (locate_first_half): Remove.
6948 (deocde_objc): Add parameter LS.
6949 Initialize new struct collect_info members.
6950 Handle minimal symbols, too.
6951 (decode_compound): Delete.
6952 (lookup_prefix_sym): Rewrite.
6953 (compare_msymbols): New function.
6954 (find_method): Rewrite.
6955 Do not call cplusplus_error.
6956 (symtabs_from_filename): Rewrite.
6957 (collect_function_symbols): Delete.
6958 (find_function_symbols): Rewrite without ARGPTR-style
6960 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6961 (decode_dollar): Adapted and renamed to ...
6962 (linespec_parse_variable): ... this.
6963 (find_linespec_symbols): New function.
6964 (decode_label): Adapted and renamed to ...
6965 (find_label_symbols): ... this.
6966 (decode_digits_list_mode): Add and use LS argument.
6967 (decode_digits_ordinary): Likewise.
6968 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6969 If in list mode, allow any symbol class. Otherwise, only
6970 permit LOC_BLOCK symbols.
6971 (minsym_found): Update comments.
6972 (search_minsyms_for_name): Do not convert the matching symbol
6973 into a SAL. Simply push the symbol and objfile into the
6975 (decode_variable): Delete. Contents adapted into
6976 find_linespec_symbols.
6978 * cp-support.c (SKIP_SPACE): Remove.
6979 (operator_tokens): Remove unused global.
6980 (cp_validate_operator): Remove.
6981 * cp-support.h (cp_validate_operator): Remove declaration.
6983 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6985 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6986 for TYPE_VPTR_FIELDNO.
6987 * valprint.c (valprint_check_validity): Make it global, move the
6988 function comment ...
6989 * value.h (valprint_check_validity): ... to this new declaration.
6991 2012-04-02 Tristan Gingold <gingold@adacore.com>
6993 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6994 the STATE32 api for i386 state.
6995 (i386_darwin_store_inferior_registers): Likewise.
6997 2012-04-02 Tristan Gingold <gingold@adacore.com>
6999 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7001 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7004 2012-04-02 Tristan Gingold <gingold@adacore.com>
7007 * darwin-nat.c (darwin_execvp): Set binary preference.
7009 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7011 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7013 2012-03-30 Tom Tromey <tromey@redhat.com>
7015 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7016 of TRY_CATCH. Fix error handling.
7017 * python/py-value.c (convert_value_from_python): Move 'old'
7018 declaration to innermost scope.
7020 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7021 Andrey Smirnov <andrew.smirnov@gmail.com>
7023 -Wshadow warning fix.
7024 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7025 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7026 Adjust code accordingly.
7028 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7030 * ada-lang.c (symbol_completion_add): Rename parameter
7031 "encoded" into "encoded_p". Ajust code and documentation
7034 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7035 Andrey Smirnov <andrew.smirnov@gmail.com>
7037 -Wshadow warning fix.
7038 * ada-lang.c (symbol_completion_add): Rename parameter
7039 "wild_match" into wild_match_p. Update code and documentation
7042 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7044 * ada-lang.c (symbol_completion_match): Rename parameter
7045 "encoded" into "encoded_p". Ajust code and documentation
7048 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7049 Andrey Smirnov <andrew.smirnov@gmail.com>
7051 -Wshadow warning fix.
7052 * ada-lang.c (symbol_completion_match): Rename parameter
7053 "wild_match" into "wild_match_p". Adjust code and function
7054 documentation accordingly.
7056 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7057 Andrey Smirnov <andrew.smirnov@gmail.com>
7059 -Wshadow warning fix.
7060 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7061 "symbol_info" into "info". Adjust code accordingly.
7062 (ada_lookup_symbol): Likewise.
7064 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7066 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7067 of this function's documentation.
7069 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7070 Andrey Smirnov <andrew.smirnov@gmail.com>
7072 -Wshadow warning fix.
7073 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7074 variable into "wild_match_p". Adjust code accordingly.
7076 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7077 Andrey Smirnov <andrew.smirnov@gmail.com>
7079 -Wshadow warning fix.
7080 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7081 parameter into "wild_match_p". Adjust code accordingly.
7082 Document this parameter in the function description.
7084 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7085 Andrey Smirnov <andrew.smirnov@gmail.com>
7087 -Wshadow warning fix.
7088 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7089 "wild_match" parameter to "wild_match_p" (-Wshadow).
7091 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7093 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7094 in function documentation.
7096 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7097 Andrey Smirnov <andrew.smirnov@gmail.com>
7099 -Wshadow warning fix.
7100 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7101 variable into wild_match_p. Adjust code accordingly.
7103 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7104 Andrey Smirnov <andrew.smirnov@gmail.com>
7106 * ada-valprint.c (ada_val_print_1): Move the code handling
7107 TYPE_CODE_ENUM inside its own lexical block. Declare
7108 variables len and val there, instead of in the function's
7109 top level block. Avoid declaring deref_val again in a way
7110 that shadows another variable of the same name declared
7111 in one of the up-level blocks. Just re-use the up-level
7114 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7116 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7117 Replace block_found argument by symbol_info. Adjust
7118 implementation accordingly. Add function documentation.
7119 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7121 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7122 * ada-exp.y (write_object_renaming): Adjust to new
7123 ada_lookup_encoded_symbol API.
7125 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7127 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7130 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7132 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7133 (v850_register_name): Add the mpu and fpu register names.
7134 (v850e_register_name): Add the mpu and fpu register names.
7135 (v850e2_register_name): New function.
7136 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7139 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7141 * NEWS: Add entry for Ada varobj support.
7143 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7145 * varobj.c (default_value_is_changeable_p): New function,
7146 extracted from varobj_value_is_changeable_p. Add declaration.
7147 (ada_value_is_changeable_p): New function, extracted from
7148 varobj_value_is_changeable_p. Add declaration.
7149 (struct language_specific): New field "value_is_changeable_p".
7150 (languages): Add entries for new field.
7151 (varobj_create): Set language before calling install_new_value.
7152 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7153 "value_is_changeable_p" language callback.
7155 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7157 * ada-varobj.h, ada-varobj.c: New files.
7158 * Makefile.in (SFILES): Add ada-varobj.c.
7159 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7160 (COMMON_OBS): Add ada-varobj.o.
7162 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7164 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7165 (struct language_specific): New field "value_has_mutated".
7166 (languages): Set field "value_has_mutated" in each entry of array.
7167 (varobj_value_has_mutated): New function.
7168 (varobj_udpdate): Add handling of type mutation.
7169 (value_of_root): Add handling of type mutation.
7170 (ada_value_has_mutated): New function.
7172 2012-03-28 Pedro Alves <palves@redhat.com>
7174 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7175 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7177 2012-03-28 Tom Tromey <tromey@redhat.com>
7179 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7180 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7183 2012-03-28 Tom Tromey <tromey@redhat.com>
7185 * .dir-locals.el: New file.
7187 2012-03-28 Pedro Alves <palves@redhat.com>
7189 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7191 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7193 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7196 2012-03-27 Pedro Alves <palves@redhat.com>
7198 Eliminate struct ui_stream.
7200 * ui-out.h (struct ui_stream): Delete.
7201 (ui_out_field_stream): Adjust prototype.
7202 (ui_out_stream_new, ui_out_stream_delete)
7203 (make_cleanup_ui_out_stream_delete): Delete declarations.
7204 * ui-out.c (ui_out_field_stream): Change prototype to take a
7205 ui_file instead of a ui_stream. Adjust.
7206 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7207 (make_cleanup_ui_out_stream_delete): Delete.
7208 * breakpoint.c (print_breakpoint_location)
7209 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7210 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7211 * disasm.c (dump_insns): Ditto.
7212 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7214 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7215 ui_stream/ui_out_stream_new.
7216 * infcmd.c (print_return_value): Ditto.
7217 * osdata.c (info_osdata_command): Don't allocate a local
7219 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7220 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7221 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7222 allocate a local ui_stream.
7223 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7224 instead of ui_stream/ui_out_stream_new.
7225 (list_args_or_locals): Don't allocate a local ui_stream.
7226 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7227 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7228 ui_stream/ui_out_stream_new.
7229 * cli/cli-setshow.c (do_setshow_command): Ditto.
7231 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7233 * arm-linux-tdep.c (arm_linux_init_abi): Call
7234 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7235 * arm-tdep.c (arm_process_record): New function.
7236 (deallocate_reg_mem): New function.
7237 (decode_insn): New function.
7238 (thumb_record_branch): New function.
7239 (thumb_record_ldm_stm_swi(): New function.
7240 (thumb_record_misc): New function.
7241 (thumb_record_ld_st_stack): New function.
7242 (thumb_record_ld_st_imm_offset): New function.
7243 (thumb_record_ld_st_reg_offset(): New function.
7244 (thumb_record_add_sub_cmp_mov): New function.
7245 (thumb_record_shift_add_sub): New function.
7246 (arm_record_coproc_data_proc): New function.
7247 (arm_record_coproc): New function.
7248 (arm_record_b_bl): New function.
7249 (arm_record_ld_st_multiple): New function.
7250 (arm_record_ld_st_reg_offset): New function.
7251 (arm_record_ld_st_imm_offset): New function.
7252 (arm_record_data_proc_imm): New function.
7253 (arm_record_data_proc_misc_ld_str): New function.
7254 (arm_record_extension_space): New function.
7255 (arm_record_strx): New function.
7256 (sbo_sbz): New function.
7257 (struct insn_decode_record): New structure for arm insn record.
7258 (REG_ALLOC): New macro for reg allocations.
7259 (MEM_ALLOC): New macro for memory allocations.
7260 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7262 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7264 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7265 (store_register): Likewise.
7267 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7269 * MAINTAINERS (Write After Approval): Add myself to the list.
7271 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7273 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7274 Describe also the option "auto".
7276 2012-03-22 Richard Henderson <rth@redhat.com>
7278 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7279 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7281 2012-03-22 Richard Henderson <rth@redhat.com>
7283 * jit.c (jit_read_code_entry): Compute alignment and offset of
7284 int64_t member before computing entry_size.
7286 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7288 Python scripting: Add new method Value.referenced_value to
7289 gdb.Value which can dereference pointer as well as reference
7291 * NEWS: Add entry under 'Python scripting' about the new method
7292 Value.referenced_value on gdb.Value objects.
7293 * python/py-value.c (valpy_referenced_value): New function
7294 defining a new method on gdb.Value objects which can dereference
7295 pointer and reference values.
7297 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7299 * MAINTAINERS (Write After Approval): Add myself to the list.
7301 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7303 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7304 in addition to "main".
7306 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7308 * expression.h (op_name): Add declaration.
7309 * expprint.c (op_name): Remove declaration. Make non-static.
7310 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7312 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7314 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7316 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7317 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7318 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7319 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7320 (linux_nat_get_siginfo): Likewise.
7321 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7322 (linux_nat_get_siginfo): Likewise.
7323 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7324 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7325 * procfs.c (gdb_siginfo_t): Likewise.
7327 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7329 * .gitignore: Ignore more files.
7331 2012-03-20 Pedro Alves <palves@redhat.com>
7333 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7336 2012-03-20 Yao Qi <yao@codesourcery.com>
7338 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7341 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7343 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7344 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7345 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7347 * dwarf2expr.h (cu_offset, sect_offset): New types.
7348 (struct dwarf_expr_context_funcs) <dwarf_call>
7349 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7351 (struct dwarf_expr_context) <len>: Improve the comment.
7352 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7353 cu_offset and sect_offset.
7354 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7355 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7356 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7357 * dwarf2loc.h: Include dwarf2expr.h.
7358 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7360 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7361 Improve the comment.
7362 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7363 (struct signatured_type, struct line_header, struct partial_die_info)
7364 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7365 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7366 (get_die_type_at_offset, create_cus_from_index)
7367 (create_signatured_type_table_from_index, dw2_get_file_names)
7368 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7369 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7370 (create_debug_types_hash_table, process_psymtab_comp_unit)
7371 (load_partial_comp_unit, create_all_comp_units)
7372 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7373 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7374 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7375 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7376 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7377 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7378 (find_partial_die, read_attribute_value, lookup_die_type)
7379 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7380 (is_ref_attr): New function comment.
7381 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7382 Use cu_offset and sect_offset.
7383 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7384 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7385 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7386 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7387 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7388 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7389 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7392 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7395 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7396 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7398 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7400 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7402 * NEWS: Describe new options --init-command=FILE, -ix and
7403 --init-eval-command=COMMAND, -iex.
7404 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7405 CMDARG_INIT_COMMAND.
7406 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7407 "init-command", "init-eval-command", "ix" and "iex" to the variable
7408 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7409 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7410 (print_gdb_help): Describe --init-command=FILE, -ix and
7411 --init-eval-command=COMMAND, -iex.
7413 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7416 * main.c (struct cmdarg): Move it here from main. Add more comments.
7417 (cmdarg_s, VEC (cmdarg_s)): New.
7418 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7419 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7420 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7421 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7424 2012-03-19 Tom Tromey <tromey@redhat.com>
7426 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7428 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7431 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7434 2012-03-16 Chris January <chris.january@allinea.com>
7436 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7439 2012-03-16 Chris January <chris.january@allinea.com>
7441 * source.c (add_path): Use memmove instead of strcpy because the
7444 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7446 * value.h (set_value_parent): Add declaration.
7447 * value.c (set_value_parent): New function.
7448 (value_address): If VALUE->PARENT is not NULL, then use it as
7449 the base address instead of VALUE->LOCATION.address.
7450 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7451 the same as OBJ's address. Adjust V's offset accordingly.
7454 2012-03-16 Gary Benson <gbenson@redhat.com>
7456 PR breakpoints/10738
7457 * dwarf2read.c (use_deprecated_index_sections): New global.
7458 (struct partial_die_info): New member may_be_inlined.
7459 (read_partial_die): Set may_be_inlined where appropriate.
7460 (add_partial_subprogram): Add partial symbols for partial
7461 DIEs that may be inlined.
7462 (new_symbol_full): Add inlined subroutines to the current
7464 (write_psymtabs_to_index): Bump version number.
7465 (dwarf2_read_index): Read only version 6 indices unless
7466 use_deprecated_index_sections is set.
7467 * linespec.c (symbol_and_data_callback): New structure.
7468 (iterate_inline_only): New function.
7469 (iterate_over_all_matching_symtabs): New argument
7470 "include_inline". If nonzero, also call the callback for
7471 symbols representing inlined subroutines.
7472 (lookup_prefix_sym): Pass extra argument to the above.
7473 (find_function_symbols): Likewise.
7474 (add_matching_symbols_to_info): Likewise.
7475 * NEWS: Mention that GDB can now set breakpoints on inlined
7478 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7480 * p-typeprint.c (pascal_type_print_method_args):
7481 Fix display of parameter of methods.
7483 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7485 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7486 Add missing prototype.
7488 2012-03-16 Yao Qi <yao@codesourcery.com>
7489 Jan Kratochvil <jan.kratochvil@redhat.com>
7491 Fix false compilation warning.
7492 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7494 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7495 Pedro Alves <pedro@codesourcery.com>
7497 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7498 (arm_register_g_packet_guesses): New function.
7499 (arm_gdbarch_init): Don't force a target description with
7500 registers when the executable is detected as M-profile. Instead
7501 set gdbarch->tdep->is_m. Register `g' packet guesses.
7502 (_initialize_arm_tdep): Initialize the new target description.
7503 * features/arm-with-m-fpa-layout.xml: New description.
7504 * features/arm-with-m-fpa-layout.c: New, generated.
7506 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7508 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7509 Update function description.
7510 (insert_bp_location): Do not wipe bl->target_info out.
7511 * mem-break.c: #include "gdb_string.h".
7512 (default_memory_insert_breakpoint): Do not call target_read_memory
7513 with a pointer to the breakpoint's shadow_contents buffer. Use
7514 a local buffer instead.
7515 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7517 2012-03-15 Tom Tromey <tromey@redhat.com>
7519 * NEWS: Mention "info vtbl", not "info vtable".
7520 * cp-support.c (info_vtbl_command): Fix comment.
7521 (_initialize_cp_support): Fix text.
7523 2012-03-15 Tom Tromey <tromey@redhat.com>
7525 * cp-valprint.c (cp_print_value_fields): Use
7526 print_function_pointer_address for vtable slot.
7528 2012-03-15 Tom Tromey <tromey@redhat.com>
7530 * gnu-v3-abi.c (struct value_and_voffset): New.
7531 (hash_value_and_voffset, eq_value_and_voffset)
7532 (compare_value_and_voffset, compute_vtable_size)
7533 (print_one_vtable, gnuv3_print_vtable): New functions.
7534 (init_gnuv3_ops): Initialize 'print_vtable' field.
7535 * cp-support.c (info_vtbl_command): New function.
7536 (_initialize_cp_support): Add "info vtbl".
7537 * cp-abi.h (cplus_print_vtable): Declare.
7538 (struct cp_abi_ops) <print_vtable>: New field.
7539 * cp-abi.c (cplus_print_vtable): New function.
7542 2012-03-15 Tom Tromey <tromey@redhat.com>
7544 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7545 iterate_over_symbols.
7547 2012-03-14 Doug Evans <dje@google.com>
7549 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7550 DW_OP_GNU_parameter_ref.
7552 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7554 Fix double prompt of 'interpreter-exec mi'.
7555 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7556 (mi_interpreter_resume): use it.
7557 (mi_execute_command_input_handler): New function.
7558 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7559 mi_execute_command_input_handler.
7561 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7563 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7565 (darwin_debug_port_info): Make static.
7566 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7567 * machoread.c (_initialize_machoread): Add prototype.
7568 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7569 (i386_darwin_set_control, i386_darwin_get_control)
7570 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7571 i386_darwin_get_status, i386_darwin_get_control):
7572 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7574 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7576 * ax-gdb.c (gen_usual_unary): Remove special handling of
7577 enum and bool types.
7579 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7581 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7583 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7585 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7587 2012-03-13 Chris January <chris.january@allinea.com>
7589 * aix-thread.c (fill_sprs): Store the floating point registers
7590 at the correct offsets into vals.
7592 2012-03-13 Doug Evans <dje@google.com>
7594 * NEWS: Mention symbol-reloading has been deleted.
7595 * symfile.c (symbol_reloading): Delete.
7596 (show_symbol_reloading): Delete.
7597 (_initialize_symfile): Delete set/show symbol-reloading.
7599 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7600 read_in_chain until we have successfully read it in.
7601 (load_full_comp_unit): Ditto.
7602 (read_signatured_type): Add comment.
7604 2012-03-13 Chris January <chris.january@allinea.com>
7606 * stabsread.c (fix_common_block): Change type of valu argument
7609 2012-03-13 Chris January <chris.january@allinea.com>
7611 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7614 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7616 * common/linux-procfs.c (linux_proc_get_int): New, from
7617 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7619 (linux_proc_get_tgid): Only call linux_proc_get_int.
7620 (linux_proc_get_tracerpid): New.
7621 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7622 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7623 linux_proc_pid_has_state.
7624 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7625 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7626 (linux_ptrace_attach_warnings): New.
7627 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7629 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7630 (linux_nat_attach): New variables ex, buffer, message and message_s.
7631 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7633 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7635 * Makefile.in (linux-ptrace.o): New.
7636 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7638 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7639 * common/linux-ptrace.c: New file.
7640 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7641 * config/arm/linux.mh: Likewise.
7642 * config/i386/linux.mh: Likewise.
7643 * config/i386/linux64.mh: Likewise.
7644 * config/ia64/linux.mh: Likewise.
7645 * config/m32r/linux.mh: Likewise.
7646 * config/m68k/linux.mh: Likewise.
7647 * config/mips/linux.mh: Likewise.
7648 * config/pa/linux.mh: Likewise.
7649 * config/powerpc/linux.mh: Likewise.
7650 * config/powerpc/ppc64-linux.mh: Likewise.
7651 * config/powerpc/spu-linux.mh: Likewise.
7652 * config/s390/s390.mh: Likewise.
7653 * config/sparc/linux.mh: Likewise.
7654 * config/sparc/linux64.mh: Likewise.
7655 * config/xtensa/linux.mh: Likewise.
7656 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7657 common/linux-procfs.c.
7658 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7660 2012-03-13 Hui Zhu <teawater@gmail.com>
7661 Pedro Alves <palves@redhat.com>
7663 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7664 CREATE_BREAKPOINT_FLAGS_INSERTED.
7665 (create_breakpoint_sal, create_breakpoints_sal)
7666 (base_breakpoint_create_breakpoints_sal)
7667 (tracepoint_create_breakpoints_sal)
7668 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7670 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7671 (ftrace_command, strace_command): Adjust.
7672 (create_tracepoint_from_upload): Pass
7673 CREATE_BREAKPOINT_FLAGS_INSERTED.
7674 * breakpoint.h (enum breakpoint_create_flags): New.
7675 (create_breakpoint): New flags parameter.
7676 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7677 * python/py-breakpoint.c (bppy_init): Adjust.
7678 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7679 * spu-tdep.c (spu_catch_start): Adjust.
7681 2012-03-13 Pedro Alves <palves@redhat.com>
7682 Hui Zhu <teawater@gmail.com>
7683 Yao Qi <yao@codesourcery.com>
7685 * remote.c (struct remote_state): New field `starting_up'.
7686 (remote_start_remote): Set and clear it.
7687 (remote_can_download_tracepoint): If starting up, return false.
7689 2012-03-13 Yao Qi <yao@codesourcery.com>
7691 * inferior.h (struct inferior): Remove fields any_syscall_count,
7692 syscalls_counts and total_syscalls_count. Move them to new
7693 struct catch_syscall_inferior_data in breakpoint.c.
7694 * breakpoint.c: Call DEF_VEC_I(int).
7695 (struct catch_syscall_inferior_data): New.
7696 (get_catch_syscall_inferior_data): New.
7697 (catch_syscall_inferior_data_cleanup): New.
7698 (insert_catch_syscall): Update to access data in
7699 struct catch_syscall_inferior_data.
7700 (insert_catch_syscall): Likewise.
7701 (remove_catch_syscall): Likewise.
7702 (remove_catch_syscall): Likewise.
7703 (is_syscall_catchpoint_enabled): Likewise.
7704 (add_catch_command): Likewise.
7705 (_initialize_breakpoint): Register cleanup.
7706 * breakpoint.h: Removed DEF_VEC_I(int).
7707 * dwarf2loc.c: Call DEF_VEC_I(int).
7708 * mi/mi-main.c: Likewise.
7710 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7712 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7714 2012-03-12 Chris January <chris.january@allinea.com>
7716 * aix-thread.c (_initialize_aix_thread): Add prototype.
7717 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7718 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7720 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7722 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7723 include of "amd64-nat.h".
7725 2012-03-12 Tom Tromey <tromey@redhat.com>
7727 * buildsym.c (record_pending_block): Now static.
7728 * buildsym.h: (record_pending_block): Remove.
7730 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7732 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7734 2012-03-09 Tom Tromey <tromey@redhat.com>
7736 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7737 producer_is_gxx_lt_4_6>: New fields.
7738 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7740 2012-03-09 Tom Tromey <tromey@redhat.com>
7742 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7744 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7746 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7749 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7751 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7753 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7755 Fix -Wmissing-prototypes build.
7756 * arm-linux-nat.c (get_thread_id): Make it static.
7757 * xtensa-linux-nat.c (get_thread_id): Likewise.
7759 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7761 * server.c (process_point_options): If a conditional expression
7762 is found, only print a message if remote_debug is nonzero.
7764 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7766 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7767 of internal error for unknown/unsupported types.
7769 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7771 Fix CU relative vs. absolute DIE offsets.
7772 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7773 offset to offset_in_cu.
7774 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7776 (dwarf2_fetch_die_location_block): Rename parameter offset to
7777 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7779 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7781 * libunwind-frame.c: Rename to ...
7782 * ia64-libunwind-tdep.c: ... here.
7783 * libunwind-frame.h: Rename to ...
7784 * ia64-libunwind-tdep.h: ... here.
7785 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7786 ia64-libunwind-tdep.h.
7787 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7788 * README (--with-libunwind): Rename to ...
7789 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7790 * config.in: Regenerate.
7791 * configure: Regenerate.
7792 * configure.ac: New option --with-libunwind-ia64, make the
7793 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7794 Remove AC_DEFINE for HAVE_LIBUNWIND.
7795 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7796 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7797 Rename libunwind-frame in the general comment.
7798 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7799 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7800 Move forward declarations inside #ifndef. Rename libunwind-frame in
7801 the general comment.
7802 * ia64-tdep.c: Rename libunwind-frame.h #include to
7803 ia64-libunwind-tdep.h.
7804 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7805 (ia64_libunwind_descr): Rename libunwind-frame to
7806 ia64-libunwind-tdep in these function comments.
7807 * ia64-tdep.h: Rename libunwind-frame.h #include to
7808 ia64-libunwind-tdep.h.
7809 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7810 ia64-libunwind-tdep in that data comment.
7812 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7814 * libunwind-frame.h (struct frame_unwind): New declaration.
7816 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7818 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7819 "set breakpoint condition-evaluation" command.
7821 2012-03-08 Tristan Gingold <gingold@adacore.com>
7823 * sparc-stub.c: Move to stubs/
7824 * sh-stub.c: Likewise.
7825 * m68k-stub.c: Likewise.
7826 * m32r-stub.c: Likewise.
7827 * i386-stub.c: Likewise.
7829 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7831 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7832 linux_get_siginfo_type.
7834 * m68klinux-nat.c: Include "gdb_proc_service.h".
7835 (PTRACE_GET_THREAD_AREA): Define.
7836 (ps_get_thread_area): New function.
7838 2012-03-08 Yao Qi <yao@codesourcery.com>
7840 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7842 (remote_query_attached): Likewise.
7843 (remote_static_tracepoint_marker_at): Likewise.
7844 (remote_set_permissions): Likewise.
7845 (remote_detach_1, extended_remote_attach_1): Likewise.
7846 (send_g_packet, remote_vkill): Likewise.
7847 (extended_remote_disable_randomization): Likewise.
7848 (remote_add_target_side_condition): Likewise.
7849 (remote_insert_breakpoint): Likewise.
7850 (remote_remove_breakpoint): Likewise.
7851 (remote_insert_watchpoint): Likewise.
7852 (remote_remove_watchpoint): Likewise.
7853 (remote_insert_hw_breakpoint): Likewise.
7854 (remote_insert_hw_breakpoint): Likewise.
7855 (remote_remove_hw_breakpoint): Likewise.
7856 (remote_download_command_source): Likewise.
7857 (remote_download_tracepoint): Likewise.
7858 (remote_download_trace_state_variable): Likewise.
7859 (remote_disable_tracepoint): Likewise.
7860 (remote_trace_set_readonly_regions): Likewise.
7861 (remote_get_tracepoint_status): Likewise.
7862 (remote_trace_find): Likewise.
7863 (remote_get_trace_state_variable_value): Likewise.
7864 (remote_set_disconnected_tracing): Likewise.
7865 (remote_set_circular_trace_buffer): Likewise.
7866 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7867 (remote_use_agent): Likewise.
7868 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7871 2012-03-07 Pedro Alves <palves@redhat.com>
7873 * NEWS: Mention QProgramSignals.
7874 * inferior.h (update_signals_program_target): Declare.
7875 * infrun.c: (update_signals_program_target): New.
7876 (handle_command): Update the target of the new program signals
7878 * remote.c (PACKET_QProgramSignals): New enum.
7879 (last_program_signals_packet): New global.
7880 (remote_program_signals): New.
7881 (remote_start_remote): Update the target with the program signals
7883 (remote_protocol_features): Add entry for QPassSignals.
7884 (remote_open_1): Free anc clear last_program_signals_packet.
7885 (init_remote_ops): Install remote_program_signals.
7886 * target.c (update_current_target): Adjust.
7887 (target_program_signals): New.
7888 * target.h (struct target_ops) <to_program_signals>: New field.
7889 (target_program_signals): Declare.
7891 2012-03-07 Pedro Alves <palves@redhat.com>
7893 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7896 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7898 * m68klinux-nat.c (getregs_supplies): Make static.
7899 (getfpregs_supplies): Likewise.
7900 (have_ptrace_getregs): Likewise.
7902 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7904 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7905 in call to get_die_type_at_offset.
7907 2012-03-06 Stan Shebs <stan@codesourcery.com>
7909 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7910 * mi/mi-cmd-disas.c: Ditto.
7911 * mi/mi-cmd-env.c: Ditto.
7912 * mi/mi-cmd-file.c: Ditto.
7913 * mi/mi-cmd-stack.c: Ditto.
7914 * mi/mi-cmd-target.c: Ditto.
7915 * mi/mi-cmd-var.c: Ditto.
7916 * mi/mi-cmds.c: Ditto.
7917 * mi/mi-cmds.h: Ditto.
7918 * mi/mi-console.c: Ditto.
7919 * mi/mi-getopt.c: Ditto.
7920 * mi/mi-getopt.h: Ditto.
7921 * mi/mi-interp.c: Ditto.
7922 * mi/mi-main.c: Ditto.
7923 * mi/mi-out.c: Ditto.
7924 * mi/mi-parse.c: Ditto.
7925 * mi/mi-parse.h: Ditto.
7926 * mi/mi-symbol-cmds.c: Ditto.
7928 * mi/mi-getopt.h: Move mi_opt struct up.
7929 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7931 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7933 2012-03-06 Tom Tromey <tromey@redhat.com>
7935 * proc-service.c (ps_pglobal_lookup): Set the current program
7938 2012-03-06 Pedro Alves <palves@redhat.com>
7940 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7942 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7944 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7946 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7949 * common/linux-osdata.c (linux_common_core_of_thread): New function
7951 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7952 call by linux_common_core_of_thread.
7953 (linux_nat_core_of_thread_1): Remove.
7954 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7955 * linux-thread-db.c: Include linux-osdata.h.
7956 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7957 linux_common_core_of_thread.
7959 2012-03-05 Tom Tromey <tromey@redhat.com>
7961 * value.c (value_primitive_field): Don't fetch contents for
7964 2012-03-05 Tom Tromey <tromey@redhat.com>
7966 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7968 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7970 * s390-nat.c: Include "gregset.h".
7972 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7974 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7975 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7976 (libunwind_load): New variable so_error, use it for dlerror. Try to
7977 load also LIBUNWIND_SO_7.
7979 2012-03-05 Pedro Alves <palves@redhat.com>
7981 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7982 is not NULL, and remove resulting dead code.
7984 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7986 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7987 prologue to sh_analyze_prologue.
7988 (sh_analyze_prologue): Make better use of such an upper limit, and
7989 generally be more cautious about accessing memory.
7991 2012-03-05 Tom Tromey <tromey@redhat.com>
7993 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7994 _initialize_ia64_hpux_tdep.
7996 2012-03-05 Pedro Alves <palves@redhat.com>
8000 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8001 the register state is clear, supply explicit zero, instead of
8002 marking the register unavailable.
8004 2012-03-05 Tristan Gingold <gingold@adacore.com>
8006 * NEWS: Mention OpenVMS ia64 new target.
8008 2012-03-05 Tristan Gingold <gingold@adacore.com>
8010 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8011 (ia64_unw_accessors, ia64_unw_rse_accessors)
8012 (ia64_libunwind_descr): Declare.
8013 * ia64-vms-tdep.c: New file.
8014 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8015 (ia64_libunwind_descr): Make them public.
8016 * configure.tgt: Add ia64-*-*vms*.
8017 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8018 (ALLDEPFILES): Add ia64-vms-tdep.c
8020 2012-03-05 Tristan Gingold <gingold@adacore.com>
8022 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8023 * remote.c (PACKET_qXfer_uib): New enum value.
8024 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8025 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8026 (_initialize_remote): Call add_packet_config_cmd for
8029 2012-03-05 Tristan Gingold <gingold@adacore.com>
8031 * osabi.c (gdb_osabi_names): Add OpenVMS.
8032 (generic_elf_osabi_sniffer): Likewise.
8033 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8035 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8037 Removed unused code.
8038 * libunwind-frame.c (libunwind_frame_unwind)
8039 (libunwind_frame_base_address): Remove.
8040 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8042 2012-03-04 Yao Qi <yao@codesourcery.com>
8044 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8045 remove trailing new line.
8046 (agent_run_command, agent_run_command): Add _ markup.
8047 (agent_capability_check): Likewise.
8049 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8051 * breakpoint.c (set_condition_evaluation_mode): Set
8052 CONDITION_EVALUATION_MODE unconditionally.
8054 2012-03-03 Yao Qi <yao@codesourcery.com>
8056 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8057 * common/agent.h: Update declaration.
8058 * inf-child.c (inf_child_use_agent): New.
8059 (inf_child_can_use_agent): New.
8060 (inf_child_target): Initialize fields `to_use_agent'
8061 and `to_can_use_agent'.
8062 * agent.c (agent_new_objfile): New.
8063 (_initialize_agent): Add agent_new_objfile to new_objfile
8066 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8068 (linux_target_install_ops): Initialize field
8069 `to_static_tracepoint_markers_by_strid'.
8070 * remote.c (free_current_marker): Move it to ...
8071 * tracepoint.c (free_current_marker): ... here. New.
8072 (cleanup_target_stop): New.
8073 * tracepoint.h: Declare free_current_marker.
8074 * NEWS: Add one entry about `info static-tracepoint-marker'.
8076 2012-03-03 Yao Qi <yao@codesourcery.com>
8078 * common/agent.c (agent_loaded_p): New.
8079 (agent_look_up_symbols): New global.
8080 * common/agent.h: Declare agent_loaded_p.
8082 2012-03-03 Yao Qi <yao@codesourcery.com>
8084 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8085 (agent_capability_check, agent_capability_invalidate): New.
8086 (symbol_list): New array element.
8087 * common/agent.h (enum agent_capa): New.
8088 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8090 2012-03-03 Yao Qi <yao@codesourcery.com>
8092 * target.h (struct target_ops) <to_use_agent>: New field.
8093 (struct target_ops) <to_can_use_agent>: New field.
8094 (target_use_agent, target_can_use_agent): New macro.
8095 * target.c (update_current_target): Update.
8096 * remote.c: New enum `PACKET_QAgent'.
8097 (remote_protocol_features): Add a new element.
8098 (remote_use_agent, remote_can_use_agent): New.
8099 (init_remote_ops): Initialize field `can_use_agent' with
8100 remote_can_use_agent. Intiailize field `use_agent' with
8102 * common/agent.c (use_agent): New global.
8103 * common/agent.h: Declare it.
8104 * tracepoint.c (info_static_tracepoint_markers_command): Add
8106 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8107 (COMMON_OBS): Add common/agent.o and agent.o
8108 (common-agent.o): New rule.
8111 2012-03-03 Yao Qi <yao@codesourcery.com>
8113 * common/agent.c: New.
8114 * common/agent.h: New.
8115 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8117 * configure, configh.in: Regenerated.
8119 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8121 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8122 unless it exists for this architecture.
8124 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8126 * language.h (struct language_defn): New "method" la_read_var_value.
8127 * findvar.c: #include "language.h".
8128 (default_read_var_value): Renames read_var_value. Rewrite
8129 function description.
8130 (read_var_value): New function.
8131 * value.h (default_read_var_value): Add prototype.
8132 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8134 (ada_language_defn): Add entry for la_read_var_value.
8135 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8136 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8137 language_defn structures to add entry for new la_read_var_value
8140 2012-03-02 Tom Tromey <tromey@redhat.com>
8141 Pedro Alves <palves@redhat.com>
8143 PR breakpoints/13776:
8144 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8146 (delete_longjmp_breakpoint_at_next_stop): New.
8147 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8148 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8149 before deleting the inferior. Add comments.
8150 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8151 breakpoints immediately, but only on next stop. Move that code
8152 next to where we mark other breakpoints for deletion.
8154 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8156 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8158 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8161 2012-03-02 Pedro Alves <palves@redhat.com>
8163 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8165 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8167 Fix -Wmissing-prototypes build.
8168 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8169 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8170 (gdbsim_has_memory): Likewise.
8172 2012-03-02 Yao Qi <yao@codesourcery.com>
8174 Fix -Wmissing-prototypes build.
8175 * charset.c (phony_iconv_open): Make static.
8176 (phony_iconv_close, phony_iconv): Likewise.
8177 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8178 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8180 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8181 * ser-mingw.c (create_select_thread): Make static.
8182 * windows-termcap.c (tgetent): New prototype.
8183 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8185 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8187 Fix -Wmissing-prototypes build.
8188 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8189 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8190 (_initialize_loadable): New prototypes.
8192 2012-03-02 Doug Evans <dje@google.com>
8194 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8195 abbrev table, read_comp_unit will do it.
8197 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8199 Fix -Wmissing-prototypes build.
8200 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8201 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8202 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8203 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8204 (_initialize_arm_symbian_tdep): New prototype.
8205 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8206 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8207 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8209 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8210 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8212 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8213 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8214 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8216 * moxie-tdep.c (moxie_process_record): Likewise.
8217 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8218 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8219 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8220 (_initialize_rl78_tdep): New prototype.
8221 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8222 (_initialize_rx_tdep): New prototype.
8223 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8224 (_initialize_darwin_solib): New prototype.
8225 * solib-spu.c: Include solib-spu.h.
8226 (_initialize_spu_solib): New prototype.
8227 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8228 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8229 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8230 (tic6x_software_single_step): Make it static.
8231 (_initialize_tic6x_tdep): New prototype.
8233 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8235 Fix -Wmissing-prototypes build.
8236 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8237 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8239 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8241 Fix -Wmissing-prototypes build.
8242 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8243 (frv_have_stopped_data_address): Remove.
8245 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8247 Fix -Wmissing-prototypes build.
8248 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8249 * sh-tdep.c: Include sh64-tdep.h.
8250 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8251 * sh64-tdep.c: Include sh64-tdep.h.
8252 * sh64-tdep.h: New file.
8254 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8256 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8258 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8260 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8261 sp_regnum once the gdbarch_init_osabi hook has been called.
8263 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8265 * mips-tdep.c (mips32_bc1_pc): New function.
8266 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8267 BPOSGE32 and BPOSGE64 instructions.
8268 (deal_with_atomic_sequence): Likewise.
8269 (mips32_instruction_has_delay_slot): Likewise.
8271 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8272 Chris Dearman <chris@mips.com>
8273 Maciej W. Rozycki <macro@codesourcery.com>
8274 Joseph Myers <joseph@codesourcery.com>
8276 * features/mips-dsp.xml: New file.
8277 * features/mips64-dsp.xml: New file.
8278 * features/mips-dsp-linux.xml: New file.
8279 * features/mips64-dsp-linux.xml: New file.
8280 * features/Makefile (WHICH): Add mips-dsp-linux and
8282 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8283 * features/mips-dsp-linux.c: New file.
8284 * features/mips64-dsp-linux.c: New file.
8285 * regformats/mips-dsp-linux.dat: New file.
8286 * regformats/mips64-dsp-linux.dat: New file.
8287 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8289 (mips64_linux_register_addr): Likewise.
8290 (mips64_linux_regsets_fetch_registers): Likewise.
8291 (mips64_linux_regsets_store_registers): Likewise.
8292 (mips64_linux_fetch_registers): Update call to
8293 mips64_linux_regsets_fetch_registers.
8294 (mips64_linux_store_registers): Update call to
8295 mips64_linux_regsets_store_registers.
8296 (mips_linux_read_description): Probe for DSP registers.
8297 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8298 and initialize_tdesc_mips64_dsp_linux.
8299 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8300 Remove padding of no longer used embedded register slots.
8301 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8302 (MIPS_RESTART_REGNUM): Redefine enum value.
8303 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8305 (mips_tx39_reg_names): Likewise.
8306 (mips_linux_reg_names): New array of register names for Linux
8308 (mips_register_name): Check for a null pointer in
8309 mips_processor_reg_names and return an empty string.
8310 (mips_register_type): Exclude embedded registers for the IRIX
8312 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8313 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8315 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8316 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8317 (mips_gdbarch_init): Likewise. Initialize internal register
8318 indices for the Linux ABI. Use dynamic numbers to refer to
8319 registers, as applicable, while parsing the target description.
8320 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8322 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8324 * frame.h (read_frame_register_unsigned): Fix typo in function
8327 2012-03-01 Pedro Alves <palves@redhat.com>
8329 * jit-reader.in [!__cplusplus]
8330 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8332 2012-03-01 Pedro Alves <palves@redhat.com>
8334 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8335 * configure: Regenerate.
8337 2012-03-01 Pedro Alves <palves@redhat.com>
8339 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8340 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8341 (ftrace_command, strace_command): Make static.
8342 * d-lang.c (_initialize_d_language): Declare.
8343 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8344 * dwarf2loc.c (_initialize_dwarf2loc):
8345 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8346 * exec.c (exec_get_section_table): Make static.
8347 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8348 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8349 * inferior.c (remove_inferior_command, add_inferior_command)
8350 (clone_inferior_command): Make static.
8351 * linux-nat.c (linux_nat_thread_address_space)
8352 (linux_nat_core_of_thread): Make static.
8353 * linux-tdep.c (_initialize_linux_tdep): Declare.
8354 * objc-lang.c (_initialize_objc_lang): Declare.
8355 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8357 (_initialize_opencl_language): Declare.
8358 * record.c (_initialize_record): Declare.
8359 * remote.c (demand_private_info, remote_get_tib_address)
8360 (remote_supports_cond_tracepoints)
8361 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8363 * skip.c (_initialize_step_skip): Declare.
8364 * symtab.c (skip_prologue_using_lineinfo): Make static.
8365 * tracepoint.c (delete_trace_state_variable)
8366 (trace_variable_command, delete_trace_variable_command)
8367 (get_uploaded_tsv, find_matching_tracepoint_location)
8368 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8370 * value.c (pack_unsigned_long): Make static.
8371 * varobj.c (varobj_ensure_python_env): Make static.
8372 * windows-tdep.c (_initialize_windows_tdep): Declare.
8373 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8375 2012-03-01 Pedro Alves <palves@redhat.com>
8377 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8379 (linux_init_abi): Install it as has_shared_address_space gdbarch
8382 2012-03-01 Pedro Alves <palves@redhat.com>
8384 * observer.c (observer_test_first_notification_function)
8385 (observer_test_second_notification_function)
8386 (observer_test_third_notification_function): Add declarations.
8388 2012-03-01 Pedro Alves <palves@redhat.com>
8390 * common/signals.c (default_target_signal_to_host)
8391 (default_target_signal_from_host): Move ...
8392 * arch-utils.c: ... here.
8393 * arch-utils.h (default_target_signal_to_host)
8394 (default_target_signal_from_host): Declare.
8396 * common/signals.c (target_signal_from_command): Move ...
8397 * infrun.c: ... here.
8398 * inferior.h (target_signal_from_command): Declare.
8399 * target.h (target_signal_from_command)
8400 (default_target_signal_from_host, default_target_signal_to_host):
8401 Delete declarations.
8403 * common/signals.c (_initialize_signals): Delete.
8405 2012-03-01 Pedro Alves <palves@redhat.com>
8407 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8408 both __cplusplus and !__cplusplus.
8410 2012-03-01 Pedro Alves <palves@redhat.com>
8412 * psymtab.c (find_and_open_source): Delete declaration.
8413 * source.c (find_and_open_source): Move comment ...
8414 * source.h (find_and_open_source): ... to this new declaration.
8416 2012-03-01 Pedro Alves <palves@redhat.com>
8418 * inline-frame.c: Include inline-frame.h.
8420 2012-03-01 Pedro Alves <palves@redhat.com>
8422 * tui/tui-data.c (set_gen_win_origin): Delete.
8423 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8424 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8426 2012-03-01 Pedro Alves <palves@redhat.com>
8428 * remote.c (encode_actions): Delete declaration.
8429 * tracepoint.c (encode_actions): Make extern.
8430 * tracepoint.h (encode_actions): Declare.
8432 2012-03-01 Pedro Alves <palves@redhat.com>
8434 * python/py-breakpoint.c: Include python.h.
8435 * python/py-continueevent.c (create_continue_event_object): Make
8437 * python/py-lazy-string.c (stpy_get_type): Make static.
8438 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8440 * python/py-utils.c (unicode_to_target_python_string): Make
8442 * python/py-value.c: Include python.h.
8444 2012-03-01 Pedro Alves <palves@redhat.com>
8446 * inferior.c (delete_threads_of_inferior): Delete.
8448 2012-03-01 Pedro Alves <palves@redhat.com>
8450 Import fallback definitions from glibc.
8452 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8453 ps_prochandle): Forward declare.
8454 (ps_err_e): Use glibc's comments.
8455 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8456 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8457 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8458 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8459 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8460 (struct ps_prochandle): Adjust comment.
8462 2012-03-01 Pedro Alves <palves@redhat.com>
8464 * ada-lang.c (ada_modulus_from_name): Delete.
8465 * ada-lex.l (lexer_init): Make static.
8467 2012-03-01 Pedro Alves <palves@redhat.com>
8471 * frame.c (read_frame_register_unsigned): New.
8472 * frame.h (read_frame_register_unsigned): Declare.
8473 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8475 (print_i387_control_word): New parameter `control_p'. Handle it.
8476 (i387_print_float_info): Handle unavailable float registers.
8478 2012-03-01 Keith Seitz <keiths@redhat.com>
8480 * linespec.c (decode_line_2): Sort the list of methods
8481 alphabetically before presenting the user with a selection
8484 2012-03-01 Doug Evans <dje@google.com>
8486 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8488 (dwarf2_read_abbrevs): Remove corresponding initialization.
8490 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8492 * NEWS: Mention new python command class gdb.COMMAND_USER.
8493 * cli/cli-cmds.c (show_user): Print error when used on a python
8495 (init_cli_cmds): Update documentation strings for "show user" and
8496 "set/show max-user-call-depth" to clarify that it does not apply to
8498 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8500 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8502 * top.c (execute_command): Only execute a user-defined command as a
8503 legacy macro if c->user_commands is set.
8505 2012-03-01 Tom Tromey <tromey@redhat.com>
8507 * valprint.h (struct generic_val_print_decorations): New.
8508 (generic_val_print): Declare.
8509 * valprint.c (generic_val_print): New function.
8510 * p-valprint.c (p_decorations): New global.
8511 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8512 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8513 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8514 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8515 * m2-valprint.c (m2_decorations): New global.
8516 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8517 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8518 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8519 TYPE_CODE_ERROR>: Call generic_val_print.
8520 * f-valprint.c (f_decorations): New global.
8521 (f_val_print): Use print_function_pointer_address.
8522 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8523 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8524 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8526 * c-valprint.c (c_decorations): New global.
8527 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8528 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8529 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8530 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8531 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8532 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8535 2012-03-01 Tom Tromey <tromey@redhat.com>
8537 * valprint.c (val_print): Update.
8538 * p-valprint (pascal_val_print): Return void.
8539 * p-lang.h (pascal_val_print): Return void.
8540 * m2-valprint.c (m2_val_print): Return void.
8541 * m2-lang.h (m2_val_print): Return void.
8542 * language.h (struct language_defn) <la_val_print>: Return void.
8543 * language.c (unk_lang_val_print): Return void.
8544 * jv-valprint.c (java_val_print): Return void.
8545 * jv-lang.h (java_val_print): Return void.
8546 * f-valprint.c (f_val_print): Return void.
8547 * f-lang.h (f_val_print): Return void.
8548 * d-valprint.c (d_val_print): Return void.
8549 (dynamic_array_type): Update.
8550 * d-lang.h (d_val_print): Return void.
8551 * c-valprint.c (c_val_print): Return void.
8552 * c-lang.h (c_val_print): Return void.
8553 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8555 * ada-lang.h (ada_val_print): Return void.
8557 2012-03-01 Tom Tromey <tromey@redhat.com>
8559 * value.h (val_print): Return void.
8560 * valprint.c (val_print): Return void.
8562 2012-03-01 Tom Tromey <tromey@redhat.com>
8564 * value.h (common_val_print): Return void.
8565 * valprint.c (common_val_print): Return void.
8567 2012-03-01 Tom Tromey <tromey@redhat.com>
8569 * value.h (value_print): Return void.
8570 * valprint.c (value_print): Return void.
8571 * p-valprint.c (pascal_value_print): Return void.
8572 * p-lang.h (pascal_value_print): Return void.
8573 * language.h (struct language_defn) <la_value_print>: Return
8575 * language.c (unk_lang_value_print): Return void.
8576 * jv-valprint.c (java_value_print): Return void.
8577 * jv-lang.h (java_value_print): Return void.
8578 * f-valprint.c (c_value_print): Don't declare.
8580 * c-valprint.c (c_value_print): Return void.
8581 * c-lang.h (c_value_print): Return void.
8582 * ada-valprint.c (ada_value_print): Return void.
8583 * ada-lang.h (ada_value_print): Return void.
8585 2012-03-01 Tom Tromey <tromey@redhat.com>
8587 * value.c (value_primitive_field): Handle virtual base classes.
8589 2012-03-01 Tom Tromey <tromey@redhat.com>
8591 * gdbtypes.h (struct vbase): Remove.
8593 2012-03-01 Tom Tromey <tromey@redhat.com>
8595 * c-valprint.c (print_function_pointer_address): Move...
8596 * valprint.c: ... here. Make non-static.
8597 * m2-valprint.c (print_function_pointer_address): Remove.
8598 * valprint.h (print_function_pointer_address): Declare.
8600 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8602 * NEWS: Document the fact that one can provide a condition when
8603 creating an Ada exception catchpoint.
8605 2012-03-01 Tom Tromey <tromey@redhat.com>
8607 * valprint.c (val_print_type_code_flags): Fix placement of
8610 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8612 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8613 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8614 environment variable before calling update-copyright.
8616 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8618 * gnulib/extra/update-copyright: Update to the latest from
8619 gnulib's git repository.
8620 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8621 variable to 2 instead of 1.
8623 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8625 * varobj.c (c_value_of_variable): Remove dead code.
8627 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8629 * ada-lex.p (processId): Do not modify already encoded IDs.
8630 Update function documentation.
8632 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8634 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8635 "name" with "struct symbol *name_sym".
8636 * ada-exp.y (write_var_or_type): Update call to
8637 ada_find_renaming_symbol.
8638 "name" with "struct symbol *name_sym". Adjust Implementation
8639 accordingly. Adjust the function documentation.
8641 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8643 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8644 * ada-lang.c (ada_find_any_type): Add advance declaration.
8645 Make static. Replace ada_find_any_symbol by
8646 ada_find_any_type_symbol.
8647 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8648 Improve function description. Make static.
8649 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8650 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8652 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8654 * ada-lang.c (struct tag_args): Delete.
8655 (ada_get_tsd_type): Function body moved up in source file.
8656 (ada_tag_name_1, ada_tag_name_2): Delete.
8657 (ada_get_tsd_from_tag): New function.
8658 (ada_tag_name_from_tsd): New function.
8659 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8660 to determine the tag name.
8662 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8664 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8666 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8669 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8671 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8673 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8675 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8678 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8680 * ada-lang.c (constrained_packed_array_type): If there is a
8681 parallel XA type, use it to determine the array index type.
8683 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8685 * ada-valprint.c (ada_val_print_1): If our value is a reference
8686 to an array descriptor, dereference it before converting it
8689 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8691 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8692 creating fixed value.
8693 (ada_value_ind, ada_coerce_ref, assign_component)
8694 (ada_evaluate_subexp): Remove call to unwrap_value before
8695 call to ada_to_fixed_value.
8697 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8699 * ada-lang.c (to_fixed_array_type): Set result's type name.
8701 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8703 * ada-lang.c (catch_ada_exception_command_split): Add new
8704 argument cond_string. Add support for condition at end of
8705 "catch exception" commands.
8706 (ada_decode_exception_location): Add new argument cond_string.
8707 Update call to catch_ada_exception_command_split.
8708 (create_ada_exception_catchpoint): Add new argument cond_string.
8709 Set the breakpoint condition if needed.
8710 (catch_ada_exception_command): Update call to
8711 ada_decode_exception_location.
8712 (ada_decode_assert_location): Add function documentation.
8713 Add support for condition at end of "catch assert" command.
8714 (catch_assert_command): Update calls to ada_decode_assert_location
8715 and create_ada_exception_catchpoint.
8717 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8719 Fix disp-step-syscall.exp: fork: single step over fork.
8720 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8721 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8722 comment, change parameters gdbarch and ptid to regcache. Remove
8723 parameter regcache, initialize gdbarch from regcache here.
8724 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8726 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8728 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8729 'syscall'. Make the 'int' check more strict.
8731 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8733 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8734 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8735 (i386_linux_intx80_sysenter_syscall_record): ... here.
8736 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8737 Use the renamed function name.
8739 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8741 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8742 * breakpoint.c (until_break_command): Likewise.
8743 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8744 * infcall.c (call_function_by_hand): Likewise.
8745 * infcmd.c (finish_forward): Likewise.
8746 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8748 2012-02-28 Tristan Gingold <gingold@adacore.com>
8750 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8751 avoid variable assignments inside condition.
8753 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8755 Fix static analysis issue found by cppcheck.
8756 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8757 uninitialized BUF for size 2.
8759 2012-02-27 Chris Dearman <chris@mips.com>
8760 Nathan Froyd <froydnj@codesourcery.com>
8761 Maciej W. Rozycki <macro@codesourcery.com>
8763 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8764 (mips16_instruction_has_delay_slot): Likewise.
8765 (mips_segment_boundary): Likewise.
8766 (mips_adjust_breakpoint_address): Likewise.
8767 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8769 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8770 Maciej W. Rozycki <macro@codesourcery.com>
8772 * infrun.c (handle_inferior_event): Don't proceed through
8773 shared library trampolines if stepping at the machine
8776 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8778 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8781 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8783 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8784 (sh_stub_unwind_sniffer): New functions.
8785 (sh_stub_unwind): New variable.
8786 (sh_gdbarch_init): Wire everything.
8788 2012-02-27 Pedro Alves <palves@redhat.com>
8790 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8791 (linux_nat_post_attach_wait): Adjust to use
8792 linux_proc_pid_is_stopped.
8793 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8794 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8795 based on pid_is_stopped from both linux-nat.c and
8796 gdbserver/linux-low.c, and renamed.
8798 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8800 * remote.c (remote_watchpoint_addr_within_range): New function.
8801 (init_remote_ops): Use it.
8803 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8805 * target.h (target_watchpoint_addr_within_range): Document macro.
8807 2012-02-24 Pedro Alves <palves@redhat.com>
8809 * stack.c (set_last_displayed_sal): Issue internal_error instead
8810 of warning, and issue it after clearing the last displayed sal.
8812 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8813 Pedro Alves <palves@redhat.com>
8815 * breakpoint.c (until_break_command): Install breakpoints after
8816 all frame manipulations.
8818 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8820 * remote.c (remote_supports_cond_breakpoints): New forward
8822 (remote_add_target_side_condition): New function.
8823 (remote_insert_breakpoint): Add target-side breakpoint
8824 conditional if supported.
8825 (remote_insert_hw_breakpoint): Likewise.
8826 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8829 * target.c (update_current_target): Inherit
8830 to_supports_evaluation_of_breakpoint_conditions.
8831 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8833 * target.h (struct target_ops)
8834 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8835 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8837 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8838 (condition_evaluation_both, condition_evaluation_auto,
8839 condition_evaluation_host, condition_evaluation_target,
8840 condition_evaluation_enums, condition_evaluation_mode_1,
8841 condition_evaluation_mode): New static globals.
8842 (translate_condition_evaluation_mode): New function.
8843 (breakpoint_condition_evaluation_mode): New function.
8844 (gdb_evaluates_breakpoint_condition_p): New function.
8845 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8846 (mark_breakpoint_modified): New function.
8847 (mark_breakpoint_location_modified): New function.
8848 (set_condition_evaluation_mode): New function.
8849 (show_condition_evaluation_mode): New function.
8850 (bp_location_compare_addrs): New function.
8851 (get_first_location_gte_addr): New helper function.
8852 (set_breakpoint_condition): Free condition bytecode if locations
8853 has become unconditional. Call mark_breakpoint_modified (...).
8854 (condition_command): Call update_global_location_list (1) for
8856 (breakpoint_xfer_memory): Use is_breakpoint (...).
8857 (is_breakpoint): New function.
8858 (parse_cond_to_aexpr): New function.
8859 (build_target_condition_list): New function.
8860 (insert_bp_location): Handle target-side conditional
8861 breakpoints and call build_target_condition_list (...).
8862 (update_inserted_breakpoint_locations): New function.
8863 (insert_breakpoint_locations): Handle target-side conditional
8865 (bpstat_check_breakpoint_conditions): Add comment.
8866 (bp_condition_evaluator): New function.
8867 (bp_location_condition_evaluator): New function.
8868 (print_breakpoint_location): Print information on where the condition
8870 (print_one_breakpoint_location): Likewise.
8871 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8872 breakpoint location.
8873 (force_breakpoint_reinsertion): New functions.
8874 (update_global_location_list): Handle target-side breakpoint
8876 Reinsert locations that are already inserted if conditions have
8878 (bp_location_dtor): Free agent expression bytecode.
8879 (disable_breakpoint): Call mark_breakpoint_modified (...).
8880 Call update_global_location_list (...) with parameter 1 for breakpoints.
8881 (disable_command): Call mark_breakpoint_location_modified (...).
8882 Call update_global_location_list (...) with parameter 1 for breakpoints.
8883 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8884 (enable_command): mark_breakpoint_location_modified (...).
8885 (_initialize_breakpoint): Update documentation and add
8886 condition-evaluation breakpoint subcommand.
8888 * breakpoint.h: Include ax.h.
8889 (condition_list): New data structure.
8890 (condition_status): New enum.
8891 (bp_target_info) <cond_list>: New field.
8892 (bp_location) <condition_changed, cond_bytecode>: New fields.
8893 (is_breakpoint): New prototype.
8895 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8897 * remote.c (remote_state) <cond_breakpoints>: New field.
8898 (PACKET_ConditionalBreakpoints): New enum.
8899 (remote_cond_breakpoint_feature): New function.
8900 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8901 (remote_supports_cond_breakpoints): New function.
8902 (_initialize_remote): Add new packet configuration for
8903 target-side conditional breakpoints.
8905 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8907 * NEWS: Mention target-side conditional breakpoint support,
8908 new condition-evaluation breakpoint subcommand and remote
8911 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8913 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8916 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8918 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8919 (after_prologue): Remove.
8921 2012-02-23 Tom Tromey <tromey@redhat.com>
8923 * jv-valprint.c (java_val_print): Remove dead code.
8925 2012-02-23 Tristan Gingold <gingold@adacore.com>
8927 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8928 known_tasks_element and known_tasks_length fields.
8929 (read_known_tasks_array): Change argument type. Use pointer type
8930 and number of elements from DATA. Adjust.
8931 (read_known_tasks_list): Likewise.
8932 (get_known_tasks_addr): Remove.
8933 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8934 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8935 type and array length. Merge former get_known_tasks_addr code.
8937 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8940 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8941 it after set_momentary_breakpoint.
8943 2012-02-22 Sterling Augustine <saugustine@google.com>
8946 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8948 2012-02-22 Gary Benson <gbenson@redhat.com>
8950 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8951 (find_slot_in_mapped_hash): Likewise.
8953 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8956 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8957 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8958 * configure: Regenerate.
8960 2012-02-21 Tristan Gingold <gingold@adacore.com>
8961 Pedro Alves <palves@redhat.com>
8963 * ia64-tdep.c: Do not include libunwind-ia64.h.
8964 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8965 Include libunwind-ia64.h instead of libunwind.h.
8966 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8967 for libunwind.h existence.
8968 * configure, config.in: Regenerate.
8970 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8972 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8973 instead of value_rtti_target_type.
8974 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8975 instead of value_rtti_target_type.
8976 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8977 value_rtti_target_type.
8978 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8979 (value_rtti_target_type): Rename to ...
8980 (value_rtti_indirect_type): ... here and make it indirect. Update
8982 * value.c (readjust_indirect_value_type): New function.
8983 (coerce_ref): Support for enclosing type setting for references
8984 with readjust_indirect_value_type.
8985 * value.h (readjust_value_type): New declaration.
8986 (value_rtti_target_type): Rename to ...
8987 (value_rtti_indirect_type): ... here.
8989 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8991 * MAINTAINERS (Write After Approval): Add myself to the list.
8993 2012-02-20 Doug Evans <dje@google.com>
8995 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8996 Rename objfile_p_char parameter to objfilep.
8997 (build_objfile_section_table): Result is now void. All callers
8999 * objfiles.h (struct objfile): Tweak comments, whitespace.
9000 (build_objfile_section_table): Update.
9002 * elfread.c (elf_symfile_segments): Fix warning text.
9004 2012-02-20 Tom Tromey <tromey@redhat.com>
9007 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9008 particular set of file names once.
9009 (dw2_map_symbol_filenames): Likewise.
9011 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9014 * main.c (write_files): Remove the declaration.
9015 (external_editor_command): Move the declaration ...
9016 [GDBTK] (external_editor_command): ... here. Fix the comment.
9018 2012-02-20 Tom Tromey <tromey@redhat.com>
9020 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9023 2012-02-20 Tristan Gingold <gingold@adacore.com>
9025 * darwin-nat.h (enum darwin_msg_state): Add comments.
9027 2012-02-20 Tristan Gingold <gingold@adacore.com>
9029 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9032 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9034 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9035 between function description and implementation.
9037 2012-02-17 Tom Tromey <tromey@redhat.com>
9040 * python/py-event.c (event_object_getset): New global.
9041 (event_object_type): Reference it.
9042 * python/py-type.c (field_object_getset): New global.
9043 (field_object_type): Reference it.
9044 * python/python-internal.h (gdb_py_generic_dict): Declare.
9045 * python/py-utils.c (gdb_py_generic_dict): New function.
9047 2012-02-17 Tristan Gingold <gingold@adacore.com>
9049 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9051 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9053 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9054 TYPE_CALLING_CONVENTION annotation.
9056 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9058 * MAINTAINERS: Add rx to target ISA section.
9059 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9060 (ALLDEPFILES): Add rx-tdep.c.
9062 2012-02-16 Tom Tromey <tromey@redhat.com>
9064 * symfile.c (symbol_file_add_main_1): Use inferior's
9066 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9067 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9069 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9071 (follow_exec): Use inferior's symfile_flags.
9072 * inferior.h (struct inferior) <symfile_flags>: New field.
9074 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9077 * remote-sim.c (gdbsim_create_inferior): Call error() when
9078 sim_create_inferior() fails.
9080 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9082 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9084 2012-02-16 Tom Tromey <tromey@redhat.com>
9087 * thread.c (struct current_thread_cleanup) <was_removable>: New
9089 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9090 (make_cleanup_restore_current_thread): Initialize new field.
9092 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9094 * MAINTAINERS: Add rl78 to target ISA section.
9095 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9096 (ALLDEPFILES): Add rl78-tdep.c.
9097 * NEWS: Mention rl78 as a new target.
9099 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9101 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9103 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9105 2012-02-15 Tom Tromey <tromey@redhat.com>
9108 * infcmd.c (registers_info): Print just the current register's
9111 2012-02-15 Tom Tromey <tromey@redhat.com>
9113 * python/py-symbol.c (sympy_value): Use _().
9115 2012-02-15 Pedro Alves <palves@redhat.com>
9117 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9118 output to be like native targets'.
9119 (remote_pid_to_str): Special case the null ptid.
9121 2012-02-14 Stan Shebs <stan@codesourcery.com>
9123 * NEWS: Mention enable count command.
9124 * breakpoint.h (struct breakpoint): New field enable_count.
9125 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9126 (enable_breakpoint): Add arg to call.
9127 (struct disp_data): New struct.
9128 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9129 (do_map_enable_once_breakpoint): Create a struct and pass it.
9130 (do_map_enable_delete_breakpoint): Ditto.
9131 (do_map_enable_count_breakpoint): New function.
9132 (enable_count_command): New function.
9133 (bpstat_stop_status): Decrement enable_count.
9134 (print_one_breakpoint_location): Report enable count.
9135 (_initialize_breakpoint): Add enable count command.
9137 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9139 * rl78-tdep.c (reggroups.h): Include.
9140 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9141 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9142 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9143 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9144 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9145 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9146 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9147 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9148 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9149 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9150 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9151 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9152 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9153 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9154 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9155 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9156 beginning of register list.
9157 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9158 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9159 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9160 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9161 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9162 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9163 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9164 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9165 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9166 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9167 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9168 the pseudo registers. Rearrange other pseudo registers too so
9169 that the bank registers appear at the end.
9170 (rl78_register_type): Account for the fact that the byte sized
9171 bank registers are now pseudo-registers.
9172 (rl78_register_name): Rearrange the register name array. Make
9173 initial set of raw banked registers inaccessible.
9174 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9175 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9176 case for copying bytes back and forth between raw and pseudo
9177 versions of the banked registers. Update other cases to reflect
9179 (rl78_return_value): Update to account for changed names of
9181 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9182 rl78_register_sim_regno().
9184 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9186 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9187 the name parameter being passed to find_pc_partial_function().
9189 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9191 * MAINTAINERS: Step down from being ia64 target maintainer.
9193 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9195 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9196 compilation warning.
9198 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9200 Fix crash on loaded shlibs without loaded exec_bfd.
9201 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9202 (set_section_command): Replace exec_bfd by p->bfd.
9204 2012-02-10 Tom Tromey <tromey@redhat.com>
9206 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9207 when we have a C++ qualified name.
9209 2012-02-10 Pedro Alves <palves@redhat.com>
9211 * inferior.c (inferior_pid_to_str): New.
9212 (print_inferior, inferior_command): Use it.
9214 2012-02-10 Pedro Alves <palves@redhat.com>
9216 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9218 * configure: Regenerate.
9220 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9222 * linespec.c (decode_line_internal): Fix comment correctness.
9224 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9227 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9228 * amd64bsd-nat.c: Add support for debug registers (adapted from
9230 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9231 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9232 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9233 (amd64bsd_dr_get_control): New functions.
9234 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9235 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9236 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9237 watchpoints initialization.
9238 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9240 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9242 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9244 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9246 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9248 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9250 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9252 * language.h (symbol_name_cmp_ftype): Renames
9253 symbol_name_match_p_ftype.
9254 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9255 la_get_symbol_name_match_p.
9256 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9257 ada_get_symbol_name_match_p. Update comment.
9258 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9259 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9260 Renames symbol_name_match_p. Update field type.
9261 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9262 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9263 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9264 "la_get_symbol_name_cmp" in comments.
9265 * language.c: Likewise.
9267 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9269 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9271 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9272 (amd64_sol2_gregset32_reg_offs): Likewise.
9274 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9276 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9277 of the returned BFD is allocated by GDB.
9279 2012-02-07 Tom Tromey <tromey@redhat.com>
9282 * python/python-internal.h (frame_object_type): Declare.
9283 * python/py-symbol.c (sympy_needs_frame): New function.
9284 (sympy_value): New function.
9285 (symbol_object_getset): Add "needs_frame".
9286 (symbol_object_methods): Add "value".
9287 * python/py-frame.c (frame_object_type): No longer static.
9289 2012-02-07 Tom Tromey <tromey@redhat.com>
9292 * python/py-symbol.c (sympy_line): New function.
9293 (symbol_object_getset): Add "line".
9295 2012-02-07 Tom Tromey <tromey@redhat.com>
9297 * charset.c (find_charset_names): Check 'in' against NULL.
9299 2012-02-06 Doug Evans <dje@google.com>
9301 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9302 and fields.name members from char * to const char *. All uses updated.
9303 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9304 from char * to const char *. All uses updated.
9305 (type_name_no_tag): Update.
9306 (lookup_unsigned_typename, lookup_signed_typename): Update.
9307 * gdbtypes.c (type_name_no_tag): Change result type
9308 from char * to const char *. All callers updated.
9309 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9310 name parameter from char * to const char *.
9311 * symtab.h (struct cplus_specific): Change type of demangled_name
9312 member from char * to const char *. All uses updated.
9313 (struct general_symbol_info): Change type of name and
9314 mangled_lang.demangled_name members from char * to const char *.
9316 (symbol_get_demangled_name, symbol_natural_name): Update.
9317 (symbol_demangled_name, symbol_search_name): Update.
9318 * symtab.c (symbol_get_demangled_name): Change result type
9319 from char * to const char *. All callers updated.
9320 (symbol_natural_name, symbol_demangled_name): Ditto.
9321 (symbol_search_name): Ditto.
9322 (completion_list_add_name): Change type of symname,sym_text,
9323 text,word parameters from char * to const char *.
9324 (completion_list_objc_symbol): Change type of sym_text,
9325 text,word parameters from char * to const char *.
9326 * ada-lang.c (find_struct_field): Change type of name parameter
9327 from char * to const char *.
9328 (encoded_ordered_before): Similarly for N0,N1 parameters.
9329 (old_renaming_is_invisible): Similarly for function_name parameter.
9330 (ada_type_name): Change result type from char * to const char *.
9331 All callers updated.
9332 * ada-lang.h (ada_type_name): Update.
9333 * buildsym.c (hashname): Change type of name parameter
9334 from char * to const char *.
9335 * buildsym.h (hashname): Update.
9336 * dbxread.c (end_psymtab): Change type of include_list parameter
9337 from char ** to const char **.
9338 * dwarf2read.c (determine_prefix): Change result type
9339 from char * to const char *. All callers updated.
9340 * f-lang.c (find_common_for_function): Change type of name, funcname
9341 parameters from char * to const char *.
9342 * f-lang.c (find_common_for_function): Update.
9343 * f-valprint.c (list_all_visible_commons): Change type of funcname
9344 parameters from char * to const char *.
9345 * gdbarch.sh (static_transform_name): Change type of name parameter
9346 and result from char * to const char *.
9347 * gdbarch.c: Regenerate.
9348 * gdbarch.h: Regenerate.
9349 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9350 of name parameter from char * to const char *.
9351 * jv-lang.c (java_primitive_type_from_name): Ditto.
9352 (java_demangled_signature_length): Similarly for signature parameter.
9353 (java_demangled_signature_copy): Ditto.
9354 (java_demangle_type_signature): Ditto.
9355 * jv-lang.h (java_primitive_type_from_name): Update.
9356 (java_demangle_type_signature): Update.
9357 * objc-lang.c (specialcmp): Change type of a,b parameters
9358 from char * to const char *.
9359 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9360 from char * to const char *. All callers updated.
9361 * p-lang.h (is_pascal_string_type): Update.
9362 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9363 of name parameter from char * to const char *.
9364 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9365 * utils.c (fprintf_symbol_filtered): Ditto.
9366 * defs.h (fprintf_symbol_filtered): Update.
9367 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9368 * stabsread.h (end_psymtab): Update.
9369 * stack.c (find_frame_funname): Change type of funname parameter
9370 from char ** to const char **.
9371 * stack.h (find_frame_funname): Update.
9372 * typeprint.c (type_print): Change type of varstring parameter
9373 from char * to const char *.
9374 * value.h (type_print): Update.
9375 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9376 from char * to const char *. All callers updated.
9377 (xcoff_end_psymtab): Change type of include_list parameter
9378 from char ** to const char **. All callers updated.
9379 (swap_sym): Similarly for name parameter. All callers updated.
9380 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9382 (process_coff_symbol): Use xstrdup.
9383 * stabsread.c (stabs_method_name_from_physname): Renamed from
9384 update_method_name_from_physname. Change result type from void
9385 to char *. All callers updated.
9386 (read_member_functions): In has_destructor case, store name in objfile
9387 obstack instead of malloc space. In !has_stub case, fix mem leak.
9389 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9391 * configure: Rebuild.
9392 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9395 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9397 * configure.tgt (rl78-*-elf): New target.
9398 * rl78-tdep.c: New file.
9400 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9402 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9403 and continue the loop. Add QUIT statement.
9405 2012-02-03 Tom Tromey <tromey@redhat.com>
9408 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9409 bfd_lookup_symbol_from_symtab.
9410 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9411 gdb_bfd_lookup_symbol_from_symtab.
9413 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9415 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9416 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9417 symbol. Add assertion that sym2 is never NULL.
9419 2012-02-02 Doug Evans <dje@google.com>
9421 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9422 "name" parameter to const char ** from char **. All callers updated.
9423 (find_pc_partial_function): Ditto.
9424 (cache_pc_function_name): Change type to const char * from char *.
9425 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9426 (find_pc_partial_function): Update.
9427 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9428 type of "name" parameter to const char * from char *.
9430 * arch-utils.c (generic_in_solib_return_trampoline): Change
9431 type of "name" parameter to const char * from char *.
9432 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9433 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9434 type of "name" parameter to const char * from char *.
9435 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9436 * gdbarch.c: Regenerate.
9437 * gdbarch.h: Regenerate.
9438 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9439 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9440 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9441 type of "name" parameter to const char * from char *.
9442 * skip.c (skip_function_pc): Ditto.
9443 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9444 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9445 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9446 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9447 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9448 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9449 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9450 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9451 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9453 2012-02-02 Pedro Alves <palves@redhat.com>
9455 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9456 the current inferior has no execution. Make sure the current
9457 remote process matches gdb's current inferior.
9459 2012-02-02 Tom Tromey <tromey@redhat.com>
9462 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9465 2012-02-02 Tom Tromey <tromey@redhat.com>
9468 * symtab.c (lookup_language_this): Set block_found.
9470 2012-02-01 Tom Tromey <tromey@redhat.com>
9473 * jit.c (struct jit_inferior_data): Rewrite.
9474 (struct jit_objfile_data): New.
9475 (get_jit_objfile_data): New function.
9476 (add_objfile_entry): Update.
9477 (jit_read_descriptor): Return int. Replace descriptor_addr
9478 argument with inf_data. Update. Don't call error.
9479 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9481 (jit_inferior_init): Don't look up descriptor. Don't call error.
9482 (jit_reset_inferior_data_and_breakpoints)
9483 (jit_inferior_created_observer): Remove.
9484 (jit_inferior_exit_hook): Update.
9485 (jit_executable_changed_observer): Remove.
9486 (jit_event_handler): Update.
9487 (free_objfile_data): Reset inferior data if needed.
9488 (_initialize_jit): Update.
9490 2012-02-01 Tom Tromey <tromey@redhat.com>
9492 * jit.c (bfd_open_from_target_memory): Move higher in file.
9494 2012-02-01 Tristan Gingold <gingold@adacore.com>
9496 * libunwind-frame.c (libunwind_load): Display message if dlopen
9499 2012-02-01 Gary Benson <gbenson@redhat.com>
9501 * symtab.h (symbol_found_callback_ftype): New typedef.
9502 (iterate_over_symbols): Use the above.
9503 * symtab.c (iterate_over_symbols): Likewise.
9504 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9505 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9506 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9507 (iterate_name_matcher): Document return values.
9508 (collect_one_symbol): Likewise.
9509 (collect_function_symbols): Likewise.
9510 (collect_symbols): Likewise.
9512 2012-02-01 Tom Tromey <tromey@redhat.com>
9514 * ada-lang.c (resolve_subexp): Update.
9515 (ada_lookup_symbol_list): Add 'full_search' argument.
9516 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9517 ada_lookup_symbol_list.
9518 (ada_lookup_encoded_symbol): Update.
9519 (get_var_value): Update.
9520 * ada-exp.y (block_lookup): Update.
9521 (write_var_or_type): Update.
9522 (write_name_assoc): Update.
9523 * ada-lang.h (ada_lookup_symbol_list): Update.
9525 2012-01-31 Tom Tromey <tromey@redhat.com>
9527 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9530 2012-01-31 Doug Evans <dje@google.com>
9532 * symtab.h: Remove outdated comment.
9533 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9535 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9537 Fix build error in Darwin port.
9538 * i386-darwin-nat.c: Include i386-nat.h.
9540 2012-01-30 Tom Tromey <tromey@redhat.com>
9542 PR breakpoints/13568:
9543 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9544 argument. Check for recursive includes.
9545 (dwarf_decode_macros): Create an include hash.
9547 2012-01-30 Michael Eager <eager@eagercon.com>
9549 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9550 * ppc-linux-tdep.c: Include glibc-tdep.h.
9551 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9552 (powerpc_linux_in_plt_stub): New function.
9553 (powerpc_linux_in_dynsym_resolve_code): New function.
9554 (ppc_skip_trampoline_code): New function.
9555 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9556 Use glibc_skip_solib_resolver.
9558 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9560 Code cleanup: Make 1440 bytes of data segment read-only.
9561 * arch-utils.c (endian_enum): Make it const char *const [].
9562 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9564 * breakpoint.c (always_inserted_enums): Likewise.
9565 * cli/cli-cmds.c (script_ext_enums): Likewise.
9566 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9567 enumlist parameter const char *const *.
9568 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9569 const char *const *.
9570 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9571 parameter const char *const *.
9572 * cris-tdep.c (cris_modes): Make it const char *const [].
9573 * filesystem.c (target_file_system_kinds): Likewise.
9574 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9575 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9576 (can_use_displaced_stepping_enum, scheduler_enums)
9577 (exec_direction_names): Likewise.
9578 * language.c (_initialize_language): Make the type_or_range_names and
9579 case_sensitive_names variables const char *const [].
9580 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9581 * python/python.c (python_excp_enums): Likewise.
9582 * remote.c (interrupt_sequence_modes): Likewise.
9583 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9584 * serial.c (logbase_enums): Likewise.
9585 * sh-tdep.c (sh_cc_enum): Likewise.
9586 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9588 * symtab.c (multiple_symbols_modes): Likewise.
9589 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9591 * utils.c (internal_problem_modes): Likewise.
9593 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9595 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9596 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9599 2012-01-27 Doug Evans <dje@google.com>
9601 * configure.ac (with_python): Fix absolute path handling for win32.
9602 * configure: Regenerate.
9604 2012-01-26 Doug Evans <dje@google.com>
9606 * symtab.c: Whitespace cleanup, no code changes.
9608 * symtab.c (lookup_symbol_in_language): Improve comment.
9609 (lookup_symbol_aux): Fix comment.
9611 * psymtab.c (add_psymbol_to_list): Result is now "void".
9612 * psympriv.h (add_psymbol_to_list): Update.
9614 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9616 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9618 Do not open script filenames twice.
9619 * cli/cli-cmds.c (source_script_from_stream): Pass to
9620 source_python_script also STREAM.
9621 * python/py-auto-load.c (source_section_scripts): Pass to
9622 source_python_script_for_objfile also STREAM.
9623 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9625 * python/python-internal.h (source_python_script_for_objfile): New
9626 parameter file, rename parameter file to filename.
9627 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9628 instead if !_WIN32. Update the function comment.
9629 (source_python_script, source_python_script_for_objfile)
9630 (source_python_script): New parameter file, rename parameter file to
9631 filename. Pass FILENAME to python_run_simple_file.
9632 * python/python.h (source_python_script): New parameter file, rename
9633 parameter file to filename.
9635 2012-01-26 Pedro Alves <palves@redhat.com>
9637 * corelow.c (core_has_fake_pid): Delete.
9638 (core_close): Delete references to `core_has_fake_pid'.
9639 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9640 (core_open): Delete references to `core_has_fake_pid'.
9641 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9644 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9646 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9647 Remove language parameter from name_matcher. Adjust the comment.
9648 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9649 Remove language parameter.
9650 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9651 * linespec.c (iterate_name_matcher): Likewise.
9652 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9653 name_matcher. Adjust call accordingly.
9654 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9655 (maintenance_check_symtabs): Adjust type of parameter "fun".
9656 * psymtab.h (maintenance_check_symtabs): Likewise.
9658 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9660 * language.h (symbol_name_match_p_ftype): New typedef.
9661 (struct language_defn): Replace field la_symbol_name_compare
9662 by la_get_symbol_name_match_p.
9663 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9664 (ada_language_defn): Use it.
9665 * linespec.c (struct symbol_matcher_data): New type.
9666 (iterate_name_matcher): Rewrite.
9667 (iterate_over_all_matching_symtabs): Pass a pointer to
9668 a symbol_matcher_data struct to expand_symtabs_matching
9669 instead of just the lookup name.
9670 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9671 opencl-lang.c, p-lang.c, language.c: Delete field
9672 la_symbol_name_compare, and replace by NULL for new field
9673 la_get_symbol_name_match_p.
9674 * symfile.h (struct quick_symbol_functions): Update comment.
9676 2012-01-25 Tom Tromey <tromey@redhat.com>
9678 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9681 2012-01-24 Tom Tromey <tromey@redhat.com>
9684 * solib.c (update_solib_list): Update the program space's
9685 added_solibs and deleted_solibs fields.
9686 * progspace.h (struct program_space) <added_solibs,
9687 deleted_solibs>: New fields.
9688 (clear_program_space_solib_cache): Declare.
9689 * progspace.c (release_program_space): Call
9690 clear_program_space_solib_cache.
9691 (clear_program_space_solib_cache): New function.
9692 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9693 bpstat_stop_status. Use handle_solib_event.
9694 * breakpoint.c: Include gdb_regex.h.
9695 (print_solib_event): New function.
9696 (bpstat_print): Use print_solib_event.
9697 (bpstat_stop_status): Add special case for bp_shlib_event.
9698 (handle_solib_event): New function.
9699 (bpstat_what): Use handle_solib_event.
9700 (struct solib_catchpoint): New.
9701 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9702 (breakpoint_hit_catch_solib, check_status_catch_solib)
9703 (print_it_catch_solib, print_one_catch_solib)
9704 (print_mention_catch_solib, print_recreate_catch_solib): New
9706 (catch_solib_breakpoint_ops): New global.
9707 (catch_load_or_unload, catch_load_command_1)
9708 (catch_unload_command_1): New functions.
9709 (internal_bkpt_check_status): Add special case for
9711 (internal_bkpt_print_it): Use print_solib_event.
9712 (initialize_breakpoint_ops): Initialize
9713 catch_solib_breakpoint_ops.
9714 (_initialize_breakpoint): Register "catch load" and "catch
9716 * breakpoint.h (handle_solib_event): Declare.
9717 * NEWS: Add entry for "catch load" and "catch unload".
9719 2012-01-24 Tom Tromey <tromey@redhat.com>
9721 * ada-lang.c: Include gdb_vecs.h.
9722 * charset.c: Include gdb_vecs.h.
9723 * tracepoint.h: Include gdb_vecs.h.
9724 * gdb_vecs.h: New file.
9726 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9728 * breakpoint.c (breakpoint_hit_catch_fork)
9729 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9730 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9731 * infrun.c (inferior_has_forked, inferior_has_vforked)
9732 (inferior_has_execd, inferior_has_called_syscall): Delete.
9733 (handle_syscall_event): Get syscall_number from the execution
9734 control state's wait status.
9735 (wait_for_inferior): Don't clear syscall_number.
9737 2012-01-24 Pedro Alves <palves@redhat.com>
9739 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9740 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9741 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9742 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9744 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9745 false for events other than TARGET_SIGNAL_TRAP.
9746 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9748 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9749 events other than TARGET_SIGNAL_TRAP.
9750 (tracepoint_breakpoint_hit): Add `ws' parameter.
9751 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9753 (bpstat_stop_status): Same.
9754 (pc_at_non_inline_function): Same.
9755 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9756 to pass the current event's waitstatus to bpstat_stop_status
9757 and pc_at_non_inline_function.
9759 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9762 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9763 Update the function comment for it.
9764 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9765 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9768 2012-01-24 Pedro Alves <palves@redhat.com>
9770 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9771 outside `bs->stop' block.
9772 (bpstat_what): Rework bp_shlib_event handling.
9773 (internal_bkpt_check_status): If the breakpoint is a
9774 bp_shlib_event, then set bs->stop and bs->print if
9775 stop_on_solib_events is set.
9777 2012-01-24 Gary Benson <gbenson@redhat.com>
9779 Delete #if 0'd out code.
9780 * stack.c (print_frame_label_vars): Remove.
9781 (catch_info): Likewise.
9782 (_initialize_stack): Remove "info catch" command.
9783 * NEWS: Mention the above.
9785 2012-01-24 Pedro Alves <palves@redhat.com>
9787 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9789 (remote_notice_new_inferior): If the remote end doesn't support
9790 the multiprocess extensions, then the PID is fake.
9791 (add_current_inferior_and_thread): New.
9792 (remote_start_remote): Use it.
9793 (extended_remote_attach_1): Adjust.
9794 (extended_remote_create_inferior_1): Use
9795 add_current_inferior_and_thread.
9797 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9799 Fix watchpoints to be specific for each inferior.
9800 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9801 current_program_space.
9802 * i386-nat.c (i386_inferior_data_cleanup): New.
9803 (i386_inferior_data_get): Replace variable inf_data_local by an
9805 (i386_use_watchpoints): Initialize i386_inferior_data.
9806 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9807 specific iterate_over_lwps.
9809 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9811 Fix watchpoints across inferior fork.
9812 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9813 comment for linux_nat_iterate_watchpoint_lwps.
9814 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9815 linux_nat_iterate_watchpoint_lwps.
9816 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9817 * i386-linux-nat.c (update_debug_registers_callback): Update the
9818 comment for linux_nat_iterate_watchpoint_lwps.
9819 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9820 linux_nat_iterate_watchpoint_lwps.
9821 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9822 * i386-nat.c: Include inferior.h.
9823 (dr_mirror): Remove.
9824 (i386_inferior_data, struct i386_inferior_data)
9825 (i386_inferior_data_get): New.
9826 (i386_debug_reg_state): Use i386_inferior_data_get.
9827 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9828 (i386_insert_watchpoint, i386_remove_watchpoint)
9829 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9830 (i386_remove_hw_breakpoint): New variable state, use
9831 i386_debug_reg_state instead of DR_MIRROR.
9832 * linux-nat.c (delete_lwp): New declaration.
9833 (num_lwps): Move here from downwards.
9834 (delete_lwp_cleanup): New.
9835 (linux_child_follow_fork): Create new child_lp, call
9836 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9838 (num_lwps): Move upwards.
9839 (linux_nat_iterate_watchpoint_lwps): New.
9840 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9841 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9843 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9847 2012-01-23 Pedro Alves <palves@redhat.com>
9849 * top.c (caution): Rename to ...
9850 (confirm): ... this.
9851 (show_caution): Rename to ...
9852 (show_confirm): ... this.
9853 (quit_cover): Adjust.
9854 (init_main): Adjust.
9855 * top.h (caution): Rename to ...
9856 (confirm): ... this.
9857 * utils.c (internal_vproblem, defaulted_query): Adjust.
9859 2012-01-23 Pedro Alves <palves@redhat.com>
9861 * top.c (caution): Update comment.
9862 (execute_command): Don't consider the current value of `caution'.
9864 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9866 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9868 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9870 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9871 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9872 * target.c (target_fileio_pwrite): Remove buffer address from
9874 (target_fileio_pread): Likewise.
9876 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9878 * NEWS: Document remote "info proc" and "generate-core-file".
9880 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9882 * gdbarch.sh (find_memory_regions): New callback.
9883 * gdbarch.c, gdbarch.h: Regenerate.
9885 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9886 callback before falling back to target method.
9888 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9889 (linux_target_install_ops): No longer install it.
9891 * linux-tdep.c (linux_find_memory_regions): New function.
9892 (linux_init_abi): Install it.
9894 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9896 * gdbarch.sh (make_corefile_notes): New architecture callback.
9897 * gdbarch.c: Regenerate.
9898 * gdbarch.h: Likewise.
9900 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9901 before target_make_corefile_notes. If NULL is returned, the
9902 target does not support core file generation.
9904 * linux-nat.c: Include "linux-tdep.h".
9905 (find_signalled_thread, find_stop_signal): Remove.
9906 (linux_nat_do_thread_registers): Likewise.
9907 (struct linux_nat_corefile_thread_data): Likewise.
9908 (linux_nat_corefile_thread_callback): Likewise.
9909 (iterate_over_spus): Likewise.
9910 (struct linux_spu_corefile_data): Likewise.
9911 (linux_spu_corefile_callback): Likewise.
9912 (linux_spu_make_corefile_notes): Likewise.
9913 (linux_nat_collect_thread_registers): New function.
9914 (linux_nat_make_corefile_notes): Replace contents by call to
9915 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9916 as native-only callback.
9918 * linux-tdep.h: Include "bfd.h".
9919 (struct regcache): Add forward declaration.
9920 (linux_collect_thread_registers_ftype): New typedef.
9921 (linux_make_corefile_notes): Add prototype.
9922 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9923 "regset.h", and "elf-bfd.h".
9924 (find_signalled_thread, find_stop_signal): New functions.
9925 (linux_spu_make_corefile_notes): Likewise.
9926 (linux_collect_thread_registers): Likewise.
9927 (struct linux_corefile_thread_data): New data structure.
9928 (linux_corefile_thread_callback): New funcion.
9929 (linux_make_corefile_notes): Likewise.
9930 (linux_make_corefile_notes_1): Likewise.
9931 (linux_init_abi): Install it.
9933 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9935 * gdbarch.sh (info_proc): New callback.
9936 * gdbarch.c, gdbarch.h: Regenerate.
9938 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9939 before falling back to the target info_proc callback.
9941 * linux-nat.c: Do not include "cli/cli-utils.h".
9942 (linux_nat_info_proc): Remove.
9943 (linux_target_install_ops): No longer install it.
9945 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9946 (read_mapping): New function.
9947 (linux_info_proc): Likewise.
9948 (linux_init_abi): Install it.
9950 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9952 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9953 * infcmd.c: (info_proc_cmd_1): New function.
9954 (info_proc_cmd): New function, moved here from equivalent routine
9955 orignally in linux-nat.c.
9956 (info_proc_cmd_mappings): Likewise.
9957 (info_proc_cmd_stat): Likewise.
9958 (info_proc_cmd_status): Likewise.
9959 (info_proc_cmd_cwd): Likewise.
9960 (info_proc_cmd_cmdline): Likewise.
9961 (info_proc_cmd_exe): Likewise.
9962 (info_proc_cmd_all): Likewise.
9963 (_initialize_infcmd): Install "info proc" command and subcommands.
9965 * target.h (struct target_ops): Add to_info_proc.
9966 (target_info_proc): Add prototype.
9967 * target.c (target_info_proc): New function.
9969 * procfs.c (procfs_info_proc): Add prototype.
9970 (info_proc_cmd): Rename into ...
9971 (procfs_info_proc): ... this. Update argument types as appropriate
9972 for a to_info_proc implementation. Handle "what" argument.
9973 (procfs_target): Install procfs_info_proc.
9974 (_initialize_procfs): No longer install "info proc" command.
9976 * linux-nat.c: (enum info_proc_what): Remove.
9977 (linux_nat_info_proc_cmd_1): Rename into ...
9978 (linux_nat_info_proc): ... this. Update argument types as appropriate
9979 for a to_info_proc implementation.
9980 (linux_nat_info_proc_cmd): Remove.
9981 (linux_nat_info_proc_cmd_mappings): Likewise.
9982 (linux_nat_info_proc_cmd_stat): Likewise.
9983 (linux_nat_info_proc_cmd_status): Likewise.
9984 (linux_nat_info_proc_cmd_cwd): Likewise.
9985 (linux_nat_info_proc_cmd_cmdline): Likewise.
9986 (linux_nat_info_proc_cmd_exe): Likewise.
9987 (linux_nat_info_proc_cmd_all): Likewise.
9988 (linux_target_install_ops): Install linux_nat_info_proc.
9989 (_initialize_linux_nat): No longer install "info proc" command
9992 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9994 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9995 * config.in, configure: Regenerate.
9997 * target.h (struct target_ops): Add to_fileio_readlink.
9998 (target_fileio_readlink): Add prototype.
9999 * target.c (target_fileio_readlink): New function.
10001 * inf-child.c: Conditionally include <sys/param.h>.
10002 (inf_child_fileio_readlink): New function.
10003 (inf_child_target): Install it.
10005 * remote.c (PACKET_vFile_readlink): New enum value.
10006 (remote_hostio_readlink): New function.
10007 (init_remote_ops): Install it.
10008 (_initialize_remote): Handle vFile:readlink packet type.
10010 2012-01-20 Pedro Alves <palves@redhat.com>
10011 Ulrich Weigand <ulrich.weigand@linaro.org>
10013 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10014 * config.in, configure: Regenerate.
10016 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10017 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10018 (target_fileio_open): Add prototype.
10019 (target_fileio_pwrite): Likewise.
10020 (target_fileio_pread): Likewise.
10021 (target_fileio_close): Likewise.
10022 (target_fileio_unlink): Likewise.
10023 (target_fileio_read_alloc): Likewise.
10024 (target_fileio_read_stralloc): Likewise.
10026 * target.c: Include "gdb/fileio.h".
10027 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10028 (default_fileio_target): New function.
10029 (target_fileio_open): Likewise.
10030 (target_fileio_pwrite): Likewise.
10031 (target_fileio_pread): Likewise.
10032 (target_fileio_close): Likewise.
10033 (target_fileio_unlink): Likewise.
10034 (target_fileio_close_cleanup): Likewise.
10035 (target_fileio_read_alloc_1): Likewise.
10036 (target_fileio_read_alloc): Likewise.
10037 (target_fileio_read_stralloc): Likewise.
10039 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10040 <fcntl.h>, and <unistd.h>.
10041 (inf_child_fileio_open_flags_to_host): New function.
10042 (inf_child_errno_to_fileio_error): Likewise.
10043 (inf_child_fileio_open): Likewise.
10044 (inf_child_fileio_pwrite): Likewise.
10045 (inf_child_fileio_pread): Likewise.
10046 (inf_child_fileio_close): Likewise.
10047 (inf_child_fileio_unlink): Likewise.
10048 (inf_child_target): Install to_fileio routines.
10050 * remote.c (init_remote_ops): Install to_fileio routines.
10052 2012-01-20 Pedro Alves <palves@redhat.com>
10053 Ulrich Weigand <ulrich.weigand@linaro.org>
10055 * remote.c (remote_multi_process_p): Only check for multi-process
10056 protocol feature, do not check for extended protocol.
10057 (remote_supports_multi_process): Check for extended protocol here.
10058 (set_general_process): Likewise.
10059 (extended_remote_kill): Likewise.
10060 (remote_pid_to_str): Likewise.
10061 (remote_query_supported): Always query multiprocess mode.
10063 2012-01-20 Pedro Alves <palves@redhat.com>
10064 Ulrich Weigand <ulrich.weigand@linaro.org>
10066 * inferior.h (struct inferior): Add fake_pid_p.
10067 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10068 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10069 magic_null_ptid since the remote side doesn't provide a real PID.
10071 2012-01-19 Tom Tromey <tromey@redhat.com>
10073 * NEWS: Combine the two Python sections.
10075 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10077 * target.h (target_close): Update comment on the target's unpush state.
10079 2012-01-19 Pedro Alves <palves@redhat.com>
10081 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10082 linux_nat_async directly instead of going through the target
10084 * target.c (unpush_target): Close target after unpushing it, not
10087 2012-01-19 Gary Benson <gbenson@redhat.com>
10089 * mdebugread.c (sort_blocks): Replace integer constants with ones
10090 derived from FIRST_LOCAL_BLOCK.
10092 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10093 Jan Kratochvil <jan.kratochvil@redhat.com>
10096 * symfile.c (find_separate_debug_file): New function.
10097 (terminate_after_last_dir_separator): Likewise.
10098 (find_separate_debug_file_by_debuglink): Also try realpath.
10099 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10100 * configure: Regenerate.
10101 * config.in: Regenerate.
10103 2012-01-18 Doug Evans <dje@google.com>
10105 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10106 (main.o): Remove rule.
10107 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10108 (--with-sysroot): Rewrite.
10109 * configure: Regenerate.
10110 * config.in: Regenerate.
10112 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10114 * parse.c (initialize_expout): New function.
10115 (reallocate_expout): Likewise.
10116 (parse_exp_in_context): Use `initialize_expout' and
10117 `reallocate_expout' when appropriate.
10119 2012-01-18 Pedro Alves <palves@redhat.com>
10121 * record.c (struct record_breakpoint, record_breakpoint_p)
10122 (record_breakpoints): New.
10123 (record_insert_breakpoint, record_remove_breakpoint): Manage
10124 record breakpoints list. Only remove breakpoints from the
10125 inferior if they had been inserted there in the first place.
10127 2012-01-17 Doug Evans <dje@google.com>
10129 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10130 if we know we don't have a file name to look for.
10132 2012-01-17 Pedro Alves <palves@redhat.com>
10134 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10135 the frame's stop reason is UNWIND_UNAVAILABLE.
10137 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10139 Fix compilation error.
10140 * m2-exp.y (yyerror): Use ANSI C prototype.
10142 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10144 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10145 (growbuf_by_size): Likewise.
10146 (yyerror): Likewise.
10147 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10148 (modblock): Remove variable (was #if 0'ed).
10149 (parse_number): Convert prototype from K&R to ANSI C.
10150 (yyerror): Likewise.
10151 * objc-exp.y (parse_number): Likewise.
10152 (yyerror): Likewise.
10153 (yylex): Remove #if 0'ed code.
10154 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10155 (yyerror): Likewise.
10157 2012-01-16 Tom Tromey <tromey@redhat.com>
10160 * symtab.h (compare_filenames_for_search): Declare.
10161 * symtab.c (compare_filenames_for_search): New function.
10162 (iterate_over_some_symtabs): Use it.
10163 * symfile.h (struct quick_symbol_functions)
10164 <map_symtabs_matching_filename>: Change spec.
10165 * psymtab.c (partial_map_symtabs_matching_filename): Use
10166 compare_filenames_for_search. Update for new spec.
10167 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10168 compare_filenames_for_search. Update for new spec.
10169 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10171 2012-01-16 Tom Tromey <tromey@redhat.com>
10174 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10175 (struct main_type) <flag_flag_enum>: New field.
10176 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10177 * NEWS: Add entries.
10178 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10180 * python/lib/gdb/printing.py (_EnumInstance): New class.
10181 (FlagEnumerationPrinter): Likewise.
10183 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10185 * breakpoint.c (create_sals_from_address_default): New function.
10186 (create_breakpoints_sal_default): Likewise.
10187 (decode_linespec_default): Likewise.
10188 (is_marker_spec): Removed.
10189 (strace_marker_p): New function.
10190 (init_breakpoint_sal): Using `strace_marker_p' instead of
10192 (create_breakpoint): Call method `create_sals_from_address' from
10193 breakpoint_ops, replacing code that created SALs conditionally
10194 on the type of the breakpoint. Call method `create_breakpoints_sal',
10195 replacing code that created breakpoints conditionally on the type
10197 (base_breakpoint_create_sals_from_address): New function.
10198 (base_breakpoint_create_breakpoints_sal): Likewise.
10199 (base_breakpoint_decode_linespec): Likewise.
10200 (base_breakpoint_ops): Add methods
10201 `base_breakpoint_create_sals_from_address',
10202 `base_breakpoint_create_breakpoints_sal' and
10203 `base_breakpoint_decode_linespec'.
10204 (bkpt_create_sals_from_address): New function.
10205 (bkpt_create_breakpoints_sal): Likewise.
10206 (bkpt_decode_linespec): Likewise.
10207 (tracepoint_create_sals_from_address): Likewise.
10208 (tracepoint_create_breakpoints_sal): Likewise.
10209 (tracepoint_decode_linespec): Likewise.
10210 (strace_marker_create_sals_from_address): Likewise.
10211 (strace_marker_create_breakpoints_sal): Likewise.
10212 (strace_marker_decode_linespec): Likewise.
10213 (strace_marker_breakpoint_ops): New variable.
10214 (addr_string_to_sals): Remove `marker_spec'. Call method
10215 `decode_linespec' from breakpoint_ops, replacing code that decoded
10216 an address string into a SAL. Use `strace_marker_p' instead of
10218 (strace_command): Decide whether we are dealing with a static
10219 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10220 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10221 * breakpoint.h (linespec_result, linespec_sals): New forward
10223 (breakpoint_ops) <create_sals_from_address>,
10224 <create_breakpoints_sal>, <decode_linespec>: New methods.
10226 2012-01-14 Doug Evans <dje@google.com>
10228 * NEWS: Update text for "maint set python print-stack".
10229 It is deprecated in gdb 7.4 and deleted in 7.5.
10231 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10233 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10234 including curses.h.
10236 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10238 * configure: Regenerate.
10239 * config.in: Regenerate.
10241 2012-01-12 Keith Seitz <keiths@redhat.com>
10244 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10245 (ANONYMOUS_UNION_NAME): Define.
10246 (is_path_expr_parent): New function.
10247 (get_path_expr_parent): New function.
10248 (is_anonymous_child): New function.
10249 (create_child_with_value): If the child is anonymous and without
10250 a name, assign an object name to it.
10251 (c_describe_child): Use get_path_expr_parent to determine
10252 the parent expression.
10253 If there field represents an anonymous struct or union and
10254 has no name, set an appropriate display name and expression.
10255 (cplus_describe_child): Likewise.
10257 2012-01-12 Pedro Alves <palves@redhat.com>
10259 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10260 available when %ebp is found to be zero (outermost).
10262 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10264 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10265 an internal gdb_static_assert.
10266 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10268 2012-01-11 Tom Tromey <tromey@redhat.com>
10271 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10272 catch" and "catch throw".
10274 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10276 * blockframe.c (block_innermost_frame): Start search from selected
10277 frame, if present, or otherwise the current frame.
10279 * c-exp.y (variable): Update innermost_block for
10280 'block COLONCOLON NAME' clause.
10281 * m2-exp.y (variable): Ditto.
10282 * objc-exp.y (variable): Ditto.
10284 2012-01-10 Tom Tromey <tromey@redhat.com>
10287 * python/python.c (finish_python_initialization): Set sys.argv.
10289 2012-01-10 Doug Evans <dje@google.com>
10291 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10292 "want_line_info". All callers updated.
10293 (dwarf_decode_lines_1): New function.
10294 (handle_DW_AT_stmt_list): Add function comment.
10295 New arg "want_line_info". All callers updated.
10296 (read_file_scope,read_type_unit_scope): Move comment from
10297 handle_DW_AT_stmt_list to here.
10299 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10301 Fix regression after libiberty/ update for GCC PR 6057 and others.
10302 * c-exp.y (operator) <OPERATOR DELETE>
10303 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10304 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10305 (make_builtin_type, make_name): New variable i, add gdb_assert.
10306 (operator) <OPERATOR NEW>: Update ARGS to 3.
10307 (operator) <OPERATOR DELETE>: Add trailing space.
10308 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10309 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10310 * cp-support.c (cp_canonicalize_string): Check NULL from
10311 cp_comp_to_string, call warning and return.
10313 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10315 Fix duplicate .o files after omitting libbfd.a.
10316 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10317 (SFILES): Add corelow.c.
10318 (COMMON_OBS): Add corelow.o.
10319 (ALLDEPFILES): Remove corelow.c.
10320 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10321 * config/alpha/alpha-osf3.mh: Likewise.
10322 * config/alpha/fbsd.mh: Likewise.
10323 * config/arm/nbsdaout.mh: Likewise.
10324 * config/arm/nbsdelf.mh: Likewise.
10325 * config/i386/i386gnu.mh: Likewise.
10326 * config/ia64/hpux.mh: Likewise.
10327 * config/ia64/linux.mh: Likewise.
10328 * config/m32r/linux.mh: Likewise.
10329 * config/m68k/linux.mh: Likewise.
10330 * config/mips/irix5.mh: Likewise.
10331 * config/mips/irix6.mh: Likewise.
10332 * config/pa/hpux.mh: Likewise.
10333 * config/pa/linux.mh: Likewise.
10334 * config/powerpc/aix.mh: Likewise.
10335 * config/sparc/linux.mh: Likewise.
10336 * config/sparc/linux64.mh: Likewise.
10337 * config/sparc/sol2.mh: Likewise.
10338 * config/vax/vax.mh: Likewise.
10339 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10340 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10341 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10342 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10343 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10344 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10345 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10346 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10347 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10348 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10349 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10350 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10351 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10352 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10353 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10354 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10355 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10356 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10357 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10358 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10359 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10360 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10361 corelow.o from gdb_target_obs.
10362 * corefile.c (core_target): Update the comment on NULL value.
10363 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10364 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10365 MATCHES. Drop YUMMY set on NULL.
10366 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10367 reclaim CORE_DATA if it is already NULL.
10369 2012-01-09 Doug Evans <dje@google.com>
10371 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10372 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10374 2012-01-09 Keith Seitz <keiths@redhat.com>
10376 * breakpoint.c (wrapper.h): Don't include.
10378 2012-01-09 Keith Seitz <keiths@redhat.com>
10380 * Makefile.in (SFILES): Remove wrapper.c.
10381 (HFILES_NO_SRCDIR): Remove wrapper.h.
10382 (COMMON_OBS): Remove wrapper.o.
10383 * cli/cli-interp.c: Don't inlude wrapper.h.
10384 * corelow.c: Likewise.
10385 (core_open): Replace gdb_target_find_new_threads with
10386 TRY_CATCH around target_find_new_threads.
10387 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10388 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10389 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10390 evaluate_expression.
10391 (varobj_set_value): Likewise for evaluate_expression and
10393 (install_new_variable): Likewise for value_fetch_lazy.
10394 (adjust_value_for_child_access): Likewise for value_ind.
10395 (c_describe_child): Likewise for value_subscript and
10397 (c_value_of_root): Likewise for evaluate_expression.
10398 * wrapper.c: Remove.
10399 * wrapper.h: Remove.
10401 2012-01-09 Doug Evans <dje@google.com>
10403 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10404 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10405 "abfd" args with "section". All callers updated.
10406 Error checking code moved ...
10407 (error_check_comp_unit_head): ... here. New function.
10408 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10409 Delete arg "abfd". New arg "type_offset". All callers updated.
10410 (create_debug_types_hash_table): Simplify by using
10411 read_and_check_type_unit_head.
10413 * parser-defs.h (namecopy): Delete.
10414 * parse.c (namecopy, namecopy_size): Move into copy_name.
10416 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10418 Partially fix duplicate .o files after omitting libbfd.a.
10419 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10420 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10421 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10422 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10423 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10424 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10425 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10427 2012-01-09 Pedro Alves <palves@redhat.com>
10429 * MAINTAINERS: Update my email address.
10431 2012-01-08 Doug Evans <dje@google.com>
10433 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10434 n_type_units. Rename type_comp_units to all_type_units.
10436 (add_signatured_type_cu_to_table): Renamed from
10437 add_signatured_type_cu_to_list. All callers updated.
10439 * gdbtypes.h (struct cplus_struct_type): Delete member
10440 nfn_fields_total. All uses removed.
10442 2012-01-06 Doug Evans <dje@google.com>
10444 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10446 (dwarf2_find_comp_unit): Delete.
10447 (process_psymtab_comp_unit): Make result "void".
10448 Delete args buffer, info_ptr, buffer_size, and replace with
10449 "section". All callers updated.
10450 (dwarf2_build_psymtabs_hard): Simplify.
10452 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10453 Thiago Jung Bauermann <bauerman@br.ibm.com>
10455 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10456 before `struct gdb_exception'.
10457 * breakpoint.c (update_global_location_list_nothrow)
10458 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10459 * cp-abi.c (value_rtti_type): Likewise.
10460 * cp-support.c (cp_validate_operator): Likewise.
10461 * infrun.c (insert_exception_resume_breakpoint)
10462 (check_exception_resume, keep_going): Likewise.
10463 * mi-interp.c (mi_breakpoint_created)
10464 (mi_breakpoint_modified): Likewise.
10465 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10466 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10467 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10469 2012-01-05 Doug Evans <dje@google.com>
10471 * dwarf2read.c (statement_prologue): Delete, unused.
10473 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10474 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10476 * dwarf2read.c (comp_unit_header): Delete, unused.
10478 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10480 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10481 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10483 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10485 * infrun.c (normal_stop): Don't skip calling the normal_stop
10486 observers if the thread was doing a multi-step, but stopped for
10487 some reason other than stepping.
10489 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10491 * cli/cli-decode.h: Add comments.
10492 (CMD_LIST_AMBIGUOUS): Moved to command.h
10493 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10494 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10495 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10496 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10497 (add_com, add_com_alias, add_info, add_info_alias)
10498 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10500 * command.h: Add and adjust comments.
10501 (CMD_LIST_AMBIGUOUS): Moved here.
10502 (help_cmd, help_cmd_list): Delete declarations.
10504 2012-01-04 Doug Evans <dje@google.com>
10506 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10507 All callers updated.
10508 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10509 Replace all arguments with "per_cu". All callers updated.
10511 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10513 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10514 New arg "per_cu". All callers updated.
10516 Delete #if 0'd out code.
10517 * language.c (binop_result_type): Delete.
10518 (simple_type, ordered_type, same_type, integral_type): Delete.
10519 (numeric_type, character_type, string_type, boolean_type): Delete.
10520 (float_type, structured_type): Delete.
10521 * language.h: Update.
10523 2012-01-04 Tom Tromey <tromey@redhat.com>
10525 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10527 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10529 * corefile.c (close_exec_file): Delete.
10530 (reopen_exec_file): Remove commented out code that seems related
10531 to close_exec_file, which is being deleted here.
10532 * inferior.h (close_exec_file): Delete.
10533 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10535 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10537 * ada-lang.c: #include "cli/cli-utils.h".
10538 (get_selections): Use skip_spaces.
10539 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10540 (catch_ada_exception_command_split): Use skip_spaces.
10541 (ada_decode_assert_location): Likewise.
10543 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10545 * linespec.c (decode_line_internal): Check for C++ or Java
10546 compound constructs only if the current language is C, C++
10549 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10552 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10553 Joel Brobecker <brobecker@adacore.com>
10554 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10555 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10557 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10558 fall through into AT_ENTRY_POINT.
10559 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10560 DUMMY_ADDR with it.
10561 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10562 PPC_INSN_SIZE skip to 3 times.
10564 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10566 * linespec.c (add_minsym): Preserve function descriptors.
10568 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10570 * breakpoint.c (all_locations_are_pending): Consider locations
10571 in program spaces executing during startup pending as well.
10573 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10575 Copyright year update in most files of the GDB Project.
10577 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10579 * copyright.sh: Delete.
10580 * copyright.py: Rewrite.
10582 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10584 * gnulib/extra/update-copyright: New file, imported from gnulib.
10586 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10588 * README (Copyright and License Notices): New section.
10590 2012-01-03 Tom Tromey <tromey@redhat.com>
10593 * python/py-value.c (valpy_dereference, valpy_get_address
10594 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10595 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10596 (valpy_absolute, valpy_richcompare): Free intermediate values.
10598 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10600 * ada-lang.c: Reformat the copyright notice.
10602 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10604 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10605 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10606 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10607 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10608 Revert this part of:
10609 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10610 Build gdb directly from *.o files not using libgdb.a.
10611 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10613 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10615 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10616 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10617 Reformat the copyright header.
10619 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10621 Revert this part of:
10622 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10623 Remove the gdbtui binary.
10624 * gdb.c (main): Remove args.interpreter_p initialization.
10625 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10626 * main.h (struct captured_main_args): Remove interpreter_p.
10628 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10630 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10632 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10634 * top.c (print_gdb_version): Update copyright year.
10636 2012-01-02 Yao Qi <yao@codesourcery.com>
10638 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10640 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10641 Joel Brobecker <brobecker@adacore.com>
10643 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10644 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10646 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10647 fall through into AT_ENTRY_POINT.
10648 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10649 DUMMY_ADDR with it.
10650 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10651 PPC_INSN_SIZE skip to 3 times.
10653 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10655 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10657 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10659 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10661 Build gdb directly from *.o files not using libgdb.a.
10662 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10663 (COMMON_OBS): Remove solib-target.o.
10664 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10665 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10666 (LIBGDB_OBS, libgdb.a): Move it above.
10667 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10668 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10669 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10670 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10671 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10672 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10673 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10674 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10675 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10676 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10677 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10678 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10679 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10680 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10681 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10682 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10683 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10684 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10685 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10686 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10687 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10688 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10689 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10690 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10691 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10692 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10693 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10695 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10697 Remove the gdbtui binary.
10698 * .gitignore (/gdbtui): Remove.
10699 * Makefile.in (TUI): Remove.
10700 (SUBDIR_TUI_OBS): Remove tui-main.o.
10701 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10702 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10703 (tui-main.o): Remove.
10704 (all_object_files): Remove tui-main.o.
10705 * NEWS: New note for the gdbtui removal.
10706 * configure: Rebuilt.
10707 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10708 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10709 CONFIG_UNINSTALL respectively.
10710 * gdb.c (main): Remove args.interpreter_p initialization.
10711 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10712 * main.h (struct captured_main_args): Remove interpreter_p.
10713 * tui/tui-main.c: Remove.
10715 2012-01-01 Doug Evans <dje@google.com>
10717 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10718 (dwarf2_physname, read_import_statement): Ditto.
10719 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10720 (process_structure_scope read_subroutine_type): Ditto.
10721 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10722 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10723 (dwarf2_fetch_die_location_block): Ditto.
10724 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10726 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10727 All callers updated.
10728 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10729 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10730 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10732 * dwarf2read.c (load_cu): Move assert to more useful location.
10734 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10735 All callers updated.
10737 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10738 (dwarf2_elf_names): Minor reformat.
10739 (dwarf2_per_cu_data): Tweak comment.
10740 (dwarf2_read_section): Fix comment.
10741 (create_all_comp_units): Fix comment.
10742 (load_full_comp_unit): Fix comment.
10743 (process_full_comp_unit): Fix comment.
10744 (read_signatured_type): Fix comment.
10746 For older changes see ChangeLog-2011.
10752 version-control: never