1 2012-10-15 Doug Evans <dje@google.com>
3 New option -nh: inhibit loading of ~/.gdbinit.
5 * main.c (captured_main): Recognize and process -nh.
6 (print_gdb_help): Mention -nh.
7 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
9 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
13 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
15 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
16 nor pc_regnum_from_eax.
17 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
18 nor pc_regnum_from_eax.
20 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
22 Fix entry values resolving in inlined frames.
23 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
24 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
27 2012-10-15 Joel Brobecker <brobecker@adacore.com>
29 * configure.ac: Build with -DMS_WIN64 if building with Python
30 enabled using GCC on amd64-windows.
31 * configure: Regenerate.
33 2012-10-15 Tom Tromey <tromey@redhat.com>
36 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
39 2012-10-15 Tom Tromey <tromey@redhat.com>
42 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
44 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
46 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
47 reset thread numbering back to 1.
49 2012-10-11 Doug Evans <dje@google.com>
52 * linespec.c (struct ls_parser): New member keyword_ok.
53 (linespec_lexer_lex_string): Add comment.
54 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
56 (parse_linespec): Set keyword_ok.
58 2012-10-10 Doug Evans <dje@google.com>
60 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
61 "0x" prefix on address in log message.
63 * dwarf2read.c (read_1_byte): Add const to buf parameter.
64 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
65 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
66 (lookup_dwo_file): Add const to dwo_name parameter.
67 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
69 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
71 Fix crash during stepping on ppc32.
72 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
75 2012-10-03 Doug Evans <dje@google.com>
78 * buildsym.c (buildsym_init): Reset using_directives to NULL.
80 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
82 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
83 output and use uint32_t not long to ensure 4 byte size.
85 2012-10-02 Joel Brobecker <brobecker@adacore.com>
87 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
90 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
92 * target.c (simple_search_memory): Include access length in
95 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
96 Edjunior Machado <emachado@linux.vnet.ibm.com>
99 * solib.c (solib_find): Prevent GDB from loading native libraries when
100 debugging a cross-target corefile.
102 2012-09-28 selven <pcthegreat@gmail.com>
104 Make definition match declaration.
106 * regcache.c (regcache_register_status): Change return type to
107 enum register_status.
109 2012-09-28 Yao Qi <yao@codesourcery.com>
111 * mi/mi-main.c (mi_cmd_data_write_memory): Call
112 write_memory_with_notification instead of write_memory.
113 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
114 instead of target_write_memory.
116 2012-09-28 Yao Qi <yao@codesourcery.com>
118 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
119 when the length of content is not an even number.
121 2012-09-27 Tom Tromey <tromey@redhat.com>
123 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
124 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
126 2012-09-27 Joel Brobecker <brobecker@adacore.com>
128 * sol-thread.c (sol_thread_fetch_registers)
129 (sol_thread_store_registers): Delete commented out code.
131 2012-09-27 Joel Brobecker <brobecker@adacore.com>
133 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
134 Move these functions to sparc-sol-thread.c.
135 * sparc-sol-thread.c: New file.
136 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
137 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
139 * configure: Regenerate.
141 2012-09-27 Joel Brobecker <brobecker@adacore.com>
143 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
144 Remove commented-out code.
146 2012-09-27 Joel Brobecker <brobecker@adacore.com>
148 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
149 Enable this code for sparc hosts only.
151 2012-09-27 Joel Brobecker <brobecker@adacore.com>
153 * procfs.h (procfs_find_LDT_entry): Add declaration.
154 * sol-thread.c (ps_lgetLDT): Delete local declaration of
155 function procfs_find_LDT_entry.
157 2012-09-27 Joel Brobecker <brobecker@adacore.com>
159 * procfs.c (proc_get_LDT_entry): Make static.
161 2012-09-27 Joel Brobecker <brobecker@adacore.com>
163 * procfs.c (proc_find_memory_regions): Fix declaration.
165 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
167 * amd64-tdep.c (amd64_return_value): Revert previous change
168 that used TYPE_LENGTH directly.
169 * bfin-tdep.c (bfin_extract_return_value): Likewise.
170 (bfin_store_return_value): Likewise.
171 * cris-tdep.c (cris_store_return_value): Likewise.
172 (cris_extract_return_value): Likewise.
173 * h8300-tdep.c (h8300_extract_return_value): Likewise.
174 * hppa-tdep.c (hppa64_return_value): Likewise.
175 * lm32-tdep.c (lm32_store_return_value): Likewise.
176 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
177 * spu-tdep.c (spu_value_from_register): Likewise.
178 * vax-tdep.c (vax_return_value): Likewise.
180 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
182 * gdbtypes.c (lookup_array_range_type): Expand parameters
183 LOW_BOUND and HIGH_BOUND to LONGEST.
184 (lookup_string_range_type): Likewise.
185 * gdbtypes.h (lookup_array_range_type): Likewise.
186 (lookup_string_range_type): Likewise.
187 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
188 Expand HIGHBOUND to ssize_t.
189 (value_string): Likewise.
190 * value.h (value_cstring): Expand parameter LEN to ssize_t.
191 (value_string): Likewise.
193 2012-09-27 Yao Qi <yao@codesourcery.com>
196 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
197 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
200 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
202 * procfs.c: Add gdb_bfd header.
203 * rs6000-nat.c: Likewise.
204 * solib-pa64.c: Likewise.
205 * spu-linux-nat.c: Likewise.
206 * windows-nat.c: Likewise.
208 2012-09-26 Tom Tromey <tromey@redhat.com>
210 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
212 2012-09-26 Tom Tromey <tromey@redhat.com>
214 * dwarf2read.c (mark_common_block_symbol_computed): New function.
215 (read_common_block): Handle child DIEs with
216 DW_AT_data_member_location.
217 (new_symbol_full): Add special case for common blocks.
219 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
220 Tom Tromey <tromey@redhat.com>
222 * dwarf2read.c (read_common_block): Rewrite.
223 (new_symbol_full): Handle DW_TAG_common_block.
224 * f-lang.c (head_common_list, find_common_for_function):
226 * f-lang.h (struct common_entry, struct saved_f77_common,
227 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
228 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
229 BLANK_COMMON_NAME_LOCAL): Remove.
230 (struct common_block): New.
231 * f-valprint.c (list_all_visible_commons): Remove.
232 (info_common_command_for_block): New function.
233 (info_common_command): Use it.
234 * stack.c (iterate_over_block_locals): Special case for
236 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
238 (struct general_symbol_info) <value.common_block>: New field.
239 (SYMBOL_VALUE_COMMON_BLOCK): New define.
241 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
242 Tom Tromey <tromey@redhat.com>
244 * f-lang.c (allocate_saved_bf_node,
245 allocate_saved_function_node, allocate_saved_f77_common_node,
246 allocate_common_entry_node, tail_common_list, current_common,
247 saved_bf_list, saved_bf_list_end, current_head_bf_list,
248 tmp_bf_ptr, add_common_block, add_common_entry,
249 find_first_common_named, patch_common_entries,
250 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
251 global_remote_debug, get_bf_for_fcn, saved_function_list,
252 saved_function_list_end, clear_function_list, struct saved_fcn,
253 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
254 SAVED_BF, SAVED_BF_PTR): Remove.
255 * f-lang.h (tail_common_list, current_common,
256 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
257 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
258 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
259 real_main_c_value): Remove.
260 * f-valprint.c (there_is_a_visible_common_named): Remove.
262 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
264 * breakpoint.c (update_global_location_list): Ignore previous
265 duplicate status of a breakpoint when starting a new scan for
266 duplicate breakpoints.
268 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
270 * arm-tdep.c (arm_skip_prologue): Extending producer check to
271 support LLVM compiler.
273 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
275 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
276 * bfin-tdep.c (bfin_extract_return_value): Likewise.
277 (bfin_store_return_value): Likewise.
278 * cris-tdep.c (cris_store_return_value): Likewise.
279 (cris_extract_return_value): Likewise.
280 * h8300-tdep.c (h8300_extract_return_value): Likewise.
281 * hppa-tdep.c (hppa64_return_value): Likewise.
282 * lm32-tdep.c (lm32_store_return_value): Likewise.
283 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
284 * spu-tdep.c (spu_value_from_register): Likewise.
285 * vax-tdep.c (vax_return_value): Likewise.
287 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
289 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
290 parameter LEN to ssize_t.
292 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
294 * ada-valprint.c (ada_val_print_1): Eliminate single-use
296 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
298 (alpha_store_return_value): Likewise.
299 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
300 (amd64_push_arguments): Likewise.
301 * ax-gdb.c (gen_trace_static_fields): Likewise.
302 (gen_traced_pop): Likewise.
303 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
304 * breakpoint.c (update_watchpoint): Likewise.
305 * findcmd.c (parse_find_args): Use local variable for type
307 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
308 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
309 (h8300_store_return_value): Likewise.
310 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
311 Use i386_darwin_arg_type_alignment directly.
312 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
313 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
314 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
315 (m68hc11_extract_return_value): Likewise.
316 * mep-tdep.c (mep_push_dummy_call): Likewise.
317 * printcmd.c (float_type_from_length): Likewise.
318 * s390-tdep.c (s390_value_from_register): Likewise.
319 * stack.c (read_frame_arg): Likewise.
320 * tracepoint.c (encode_actions_1): Likewise.
321 * valops.c (value_fetch_lazy): Use local variable for type
322 instead of length. Use TYPE_LENGTH directly.
323 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
325 2012-09-25 Joel Brobecker <brobecker@adacore.com>
327 * symtab.c (skip_prologue_sal): Fix typo in comment.
329 2012-09-25 Joel Brobecker <brobecker@adacore.com>
331 * linespec.c (create_sals_line_offset): Fix typo in comment.
333 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
335 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
336 use plongest to print the array size.
338 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
340 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
341 * p-valprint.c (pascal_type_print_base): Likewise.
343 2012-09-22 Yao Qi <yao@codesourcery.com>
345 * remote.c (remote_get_trace_status): Remove setting default
346 values of fields of 'ts'.
348 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
350 Fix internal error on canonicalization of clang types.
351 * cp-name-parser.y (operator): New comment at make_operator call for
352 new, delete, new[] and delete[].
353 (exp): Use "sizeof ". Add new comment at make_operator call.
355 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
357 Fix disassemble without parameters in tailcall frame.
358 * cli/cli-cmds.c (disassemble_current_function): Use
359 get_frame_address_in_block.
361 2012-09-21 Tom Tromey <tromey@redhat.com>
363 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
364 TYPE_CODE_UNION>: Unify, removing a goto.
366 2012-09-21 Tom Tromey <tromey@redhat.com>
368 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
370 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
372 * findvar.c (read_frame_register_value): Mark the result value as
373 optimized out if any of the input registers have been optimized out.
375 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
377 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
379 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
381 * eval.c (evaluate_subexp_standard): Eliminate single-use
384 2012-09-21 Yao Qi <yao@codesourcery.com>
386 * mi/mi-interp.c: Declare mi_record_changed.
387 (mi_interpreter_init): Call observer_attach_record_changed.
388 (mi_record_changed): New.
389 * record.c (record_open): Call observer_notify_record_changed.
390 (cmd_record_stop): Call observer_notify_record_changed.
393 2012-09-20 Tom Tromey <tromey@redhat.com>
396 * python/python.c (finalize_python): New function.
397 (_initialize_python): Make a final cleanup.
399 2012-09-19 Doug Evans <dje@google.com>
401 * buildsym.h (param_symbols): Delete, unused.
402 (context_stack): Delete member "params", unused.
403 * buildsym.c (push_context): Update.
404 * dwarf2read.c (read_func_scope): Update.
406 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
408 * sh-tdep.c (sh_register_convert_to_virtual)
409 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
410 all callers. Just do a memcpy if not the little-endian case.
412 * h8300-tdep.c (h8300_gdbarch_init): Invoke
413 set_gdbarch_double_format and set_gdbarch_long_double_format.
414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
415 set_gdbarch_double_format.
416 * sh-tdep.c (sh_gdbarch_init): Likewise.
418 * NEWS: Document the removal of SH's 'regs' command.
419 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
422 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
424 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
427 2012-09-18 Joel Brobecker <brobecker@adacore.com>
429 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
430 language when iterating over symbols.
432 2012-09-18 Yao Qi <yao@codesourcery.com>
434 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
435 (mi_interpreter_init): Call observer_attach_tsv_created and
436 observer_attach_tsv_deleted.
437 (mi_tsv_created, mi_tsv_deleted): New.
438 * tracepoint.c (delete_trace_state_variable): Call
439 observer_notify_tsv_deleted.
440 (trace_variable_command): Call observer_notify_tsv_created.
441 (delete_trace_variable_command): Call
442 observer_notify_tsv_deleted.
443 (create_tsv_from_upload): Call observer_notify_tsv_created.
446 2012-09-18 Yao Qi <yao@codesourcery.com>
448 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
449 if traceframe changed.
450 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
452 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
453 (mi_interpreter_init): Hook mi_traceframe_changed to observer
454 'traceframe_changed'.
455 (mi_traceframe_changed): New.
456 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
458 * NEWS: Mention the new MI notification.
460 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
462 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
464 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
466 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
467 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
468 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
469 Extend code also for PaX support. Convert all gdb_assert to warning
472 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
474 Implement auto-load user conveniences suggested by Doug Evans.
475 * auto-load.c: Include top.h.
476 (file_is_auto_load_safe): New variable advice_printed. Print advice.
477 (_initialize_auto_load): New variable scripts_directory_help. Mention
478 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
479 scripts-directory. Document in online help one can use also files for
480 set auto-load safe-path.
481 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
482 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
484 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
486 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
489 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
491 * m2-valprint.c (m2_print_array_contents): Eliminate variable
492 ELTLEN and use TYPE_LENGTH directly.
493 (m2_val_print): Likewise.
494 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
495 variable LEN and use TYPE_LENGTH directly.
496 (m68k_svr4_store_return_value): Likewise.
497 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
498 ARGLEN and use TYPE_LENGTH directly.
499 (mips_o64_push_dummy_call): Likewise.
500 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
501 variable LENGTH and use TYPE_LENGTH directly.
502 (s390_function_arg_float): Likewise.
503 (s390_function_arg_integer): Likewise.
504 (s390_push_dummy_call): Likewise.
505 (s390_return_value_convention): Likewise.
506 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
507 TYPE_LENGTH directly.
509 2012-09-17 Yao Qi <yao@codesourcery.com>
511 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
512 Update comment to add_setshow_integer_cmd.
513 * cli/cli-setshow.c (do_set_command): Handle case
514 'var_zuinteger_unlimited'.
515 (do_show_command): Likewise.
516 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
517 for command 'remotetimeout'.
518 * command.h (enum var_types): New zuinteger_unlimited. Update comment
520 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
521 for command 'set listsize'.
523 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
525 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
528 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
531 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
532 (frame_pop): Drop also TAILCALL_FRAME frames.
533 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
535 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
536 Pedro Alves <palves@redhat.com>
539 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
540 function start if we are already at function start. Both for
541 reverse-next and for reverse-step into function without line number
544 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
546 Code cleanup - rename 'inline' depth to 'artificial' depth.
547 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
548 frame_id_artificial_p, extend the comment.
549 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
550 * frame.c (fprint_frame_id): Rename at a user, change debug output
551 text to "artificial=".
552 (skip_inlined_frames): Rename to ...
553 (skip_artificial_frames): ... here. Extend the comment.
554 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
555 (frame_id_inlined_p): Rename to ...
556 (frame_id_artificial_p): ... here. Rename at a user.
557 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
558 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
560 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
562 (frame_id_inlined_p): Rename to ...
563 (frame_id_artificial_p): ... here.
564 * inline-frame.c (inline_frame_this_id): Rename at a user.
566 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
568 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
569 vector variables using vector_size syntax rather than array
572 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
574 * valarith.c (value_concat): Replace unsafe ALLOCA with
577 2012-09-14 Pedro Alves <palves@redhat.com>
579 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
581 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
583 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
584 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
585 data-directory as appropriate.
587 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
589 * printcmd.c (ui_printf): Eliminate single-use variable
592 2012-09-14 Yao Qi <yao@codesourcery.com>
593 Pedro Alves <palves@redhat.com>
595 * valops.c (value_assign): Move observer_notify_target_changed
596 below to replace reinit_frame_cache.
598 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
600 Refactor Python "gdb" module into a proper Python package, by
601 introducing a new "_gdb" module for code implemented in C, and
602 using reload/__import__ instead of exec.
603 * python/lib/gdb/__init__.py: Import * from _gdb.
604 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
605 prompt_hook, sys.argv): Moved from finish_python_initialization.
606 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
607 (packages, auto_load_packages): New list and function replacing
608 module_dict and auto-loading code, using __file__ instead of
609 gdb.PYTHONDIR and reload/__import__ instead of exec.
610 (GdbSetPythonDirectory): Replacing function of the same name
611 from finish_python_initialization, using reload/__import__ instead
612 of exec, as well as call auto_load_packages.
613 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
614 gdb_python_module and not gdb_module.
615 * python/python-internal.h (gdb_python_module): Declare.
616 * python/python.c (gdb_python_module): New global.
617 (before_prompt_hook): Check gdb_python_module and not gdb_module.
618 (_initialize_python): Rename gdb module to _gdb.
619 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
620 (finish_python_initialization): Move Python code to
621 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
624 2012-09-13 Pedro Alves <palves@redhat.com>
626 * Makefile.in (COMMON_OBS): Add registry.o.
627 * registry.c: New file.
628 * registry.h (struct registry_container): Declare.
629 (registry_data_callback): New typedef.
630 (struct registry_data, struct registry_data_registration, struct
631 registry_data_registry): New type.
632 (register_data_with_cleanup, registry_alloc_data)
633 (registry_callback_adaptor, registry_clear_data)
634 (registry_container_free_data, registry_set_data, registry_data):
636 (DEFINE_REGISTRY): Refactor structures and functions as shims over
637 the new common structures and functions.
638 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
641 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
643 * remote.c (remote_insert_hw_breakpoint): Throw exception if
644 there is an error inserting hardware breakpoints and use the
645 error message from the target.
647 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
648 Catch this exception and print the error message contained within. Do not
649 print the default hardware error breakpoint message in this case.
651 2012-09-12 Doug Evans <dje@google.com>
653 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
656 2012-09-11 Doug Evans <dje@google.com>
658 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
659 .gdb_index symbol attributes if there are none.
661 2012-09-11 Joel Brobecker <brobecker@adacore.com>
663 * symtab.h (struct minimal_symbol) [has_size]: New field.
664 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
665 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
666 * printcmd.c (build_address_symbolic): Only filter out zero-sized
667 minimal symbols if the symbol's size is actually known.
668 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
669 of msymbol's size field. Add comment.
670 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
671 SET_MSYMBOL_SIZE to set the minimal symbol size.
673 2012-09-11 Joel Brobecker <brobecker@adacore.com>
675 * minsyms.c (install_minimal_symbols): Use memset to fill entire
676 minimal_symbol struct object, rather than setting some of its
679 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
681 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
682 passed_a_ptr flag when displaying typedef types.
684 2012-09-10 Joel Brobecker <brobecker@adacore.com>
686 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
687 the optimized_out flag is preserved.
689 2012-09-10 Anthony Green <green@moxielogic.com>
691 * moxie-tdep.c (moxie_analyze_prologue): Update for function
692 prologue changes in GCC.
694 2012-09-10 Keith Seitz <keiths@redhat.com>
697 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
698 (BOOL_CONVERSION_BADNESS): ... this.
699 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
700 (rank_one_type): Allow all boolean conversions
701 permitted by the standard.
703 2012-09-06 Tom Tromey <tromey@redhat.com>
705 * python/py-newobjfileevent.c (create_new_objfile_event_object):
706 Don't decref py_objfile.
708 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
710 Do not enable -lmcheck by default when Python is enabled with
712 * configure.ac: (python_has_threads) New variable, by testing
713 if WITH_THREAD is defined in Python.h.
714 Move --enable-lmcheck after --with-python.
715 Do not enable -lmcheck by default if python_has_threads=yes.
716 Warn if --enable-lmcheck and python_has_threads=yes.
717 * configure: Regenerate.
719 2012-08-31 Yao Qi <yao@codesourcery.com>
721 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
722 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
723 Update some commands.
724 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
725 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
728 2012-08-31 Yao Qi <yao@codesourcery.com>
730 * mi/mi-cmds.c (mi_cmds): Add 'static'.
732 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
734 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
736 2012-08-29 Doug Evans <dje@google.com>
738 * main.c (print_gdb_help): Remove reference to
739 --use-deprecated-index-sections.
741 2012-08-28 Yao Qi <yao@codesourcery.com>
743 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
744 (init_cmds): Call add_setshow_uinteger_cmd for command
745 'max-user-call-depth'.
746 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
747 declaration of 'max_user_call_depth'.
748 * frame.c (backtrace_limit): Add 'unsigned'.
749 (_initialize_frame): Call add_setshow_uinteger_cmd for command
751 * remote.c (remoteaddresssize): Add 'unsigned'.
752 (remote_address_masked): Change local var 'address_size' to
754 (_initialize_remote): Call add_setshow_uinteger_cmd for
756 * top.c (history_size): Add 'unsigned'.
757 (show_commands): Change local variables to 'unsigned'.
758 (set_history_size_command): Don't check history_size is negative.
759 Adjust the condition to call unstifle_history and set history_size
762 2012-08-28 Pedro Alves <palves@redhat.com>
766 * infcmd.c (default_print_one_register_info): New, factored out
767 from default_print_registers_info.
768 (default_print_registers_info): Use it. Mark value unavailable if
770 (registers_info): Print user registers with
771 default_print_one_register_info.
773 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
776 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
777 is not NULL before referencing it.
779 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
781 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
782 variable pc. Call find_pc_line instead of find_pc_overlay, restore
785 2012-08-27 Eli Zaretskii <eliz@gnu.org>
786 Jan Kratochvil <jan.kratochvil@redhat.com>
788 * auto-load.c (auto_load_objfile_script): Rename to ...
789 (auto_load_objfile_script_1): ... here, change variable realname to
790 parameter realname, document it, add return value, add variable retval.
791 (auto_load_objfile_script): New function.
793 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
795 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
796 followed by a whitespace.
798 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
801 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
802 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
803 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
806 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
808 * memattr.c (create_mem_region): Fix memory region overlapping
811 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
813 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
814 with xmalloc/cleanup.
815 * mt-tdep.c (mt_push_dummy_call): Likewise.
816 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
817 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
819 2012-08-24 Yao Qi <yao@codesourcery.com>
821 * jv-exp.y (push_expression_name): Add "." at the end of error
824 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
826 Document how to return from "python-interactive" to GDB.
827 * python/python.c (_initialize_python): Update documentation.
829 2012-08-23 Pedro Alves <palves@redhat.com>
831 * infrun.c (_initialize_infrun) <handle command help text>:
832 Mention that multiple signals are supported.
834 2012-08-23 Pedro Alves <palves@redhat.com>
836 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
839 2012-08-23 Yao Qi <yao@codesourcery.com>
841 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
842 (tfind_1): Don't call registers_changed, set_traceframe_num,
843 and clear_traceframe_info.
844 Call set_current_traceframe.
845 (set_current_traceframe): call set_traceframe_num.
847 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
849 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
850 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
852 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
854 Enable readline in Python in a GDB-specific way and block the
855 standard Python readline module to prevent conflicts with GDB.
856 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
857 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
858 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
859 * python/py-gdb-readline.c: New file.
860 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
862 * python/python.c (_initialize_python): Call
863 gdbpy_initialize_gdb_readline.
865 2012-08-22 Keith Seitz <keiths@redhat.com>
867 * defs.h: Include build-gnulib/config.h
869 2012-08-22 Joseph Myers <joseph@codesourcery.com>
871 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
874 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
876 Add a new "python-interactive" command that starts a standard
877 Python interactive prompt with "pi" as alias, and add "py" as
878 an alias to "python".
879 * NEWS: Mention the new commands.
880 * python/python.c (eval_python_command): New function.
881 (python_interactive_command): For "python-interactive" with
882 arguments, call eval_python_command. For "python-interactive"
883 without arguments, call PyRun_InteractiveLoop.
884 (_initialize_python): Add "python-interactive" command with
885 "pi" as alias, and add "py" as an alias to "python".
887 2012-08-22 Tom Tromey <tromey@redhat.com>
889 * defs.h (quit_flag): Don't declare.
890 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
891 (QUIT): Use new functions.
892 * event-top.c (command_handler): Use clear_quit_flag.
893 (handle_sigint): Use set_quit_flag.
894 (async_request_quit): Use check_quit_flag. Don't check
896 * exceptions.c (throw_exception): Use clear_quit_flag.
897 * main.c (captured_main): Use clear_quit_flag.
898 * python/python.c (clear_quit_flag, set_quit_flag)
899 (check_quit_flag): New functions.
900 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
902 * remote.c (remote_wait_as): Use check_quit_flag,
904 (remote_start_remote): Call QUIT.
905 * symfile.c (load_progress): Use check_quit_flag.
906 * top.c (command_loop): Use clear_quit_flag.
907 (command_line_input): Call QUIT.
908 * utils.c (quit_flag): Conditionally define.
909 (clear_quit_flag, check_quit_flag, set_quit_flag): New
911 (prompt_for_continue): Call QUIT. Use quit, not
913 * remote-mips.c (mips_expect_timeout): Call QUIT.
914 * monitor.c (monitor_expect): Call QUIT.
916 2012-08-22 Tom Tromey <tromey@redhat.com>
918 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
919 (async_init_signals): Update.
920 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
921 (SIGWINCH_HANDLER_BODY): Remove.
923 2012-08-22 Tom Tromey <tromey@redhat.com>
925 * jit.c (jit_object_close_impl): Don't malloc the objfile
927 * objfiles.c (allocate_objfile): Don't malloc the objfile
929 (free_objfile): Don't free the objfile name.
930 * objfiles.h (struct objfile) <name>: Update comment.
931 * symfile.c (reread_symbols): Fix reference counting. Don't
934 2012-08-22 Tom Tromey <tromey@redhat.com>
936 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
937 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
938 (symfile_bfd_open): Likewise.
939 (generic_load): Likewise.
940 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
941 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
943 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
945 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
946 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
947 (pmon_load_fast): Likewise.
948 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
949 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
950 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
951 (macho_check_dsym): Likewise.
952 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
953 (m32r_upload_command): Likewise.
954 * gdb_bfd.h (gdb_bfd_cache): Declare.
955 * gdb_bfd.c (struct gdb_bfd_data): New.
956 (gdb_bfd_cache): New global.
957 (struct gdb_bfd_cache_search): New.
958 (hash_bfd): New function.
960 (gdb_bfd_open): Likewise.
961 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
962 (gdb_bfd_unref): Remove closed BFD from cache. Update for
964 * exec.c (exec_file_attach): Use gdb_bfd_open.
965 * dsrec.c (load_srec): Use gdb_bfd_open.
967 2012-08-22 Tom Tromey <tromey@redhat.com>
969 * dwarf2read.c (macro_start_file): Update.
970 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
971 (free_objfile_per_bfd_storage): Destroy macro_cache.
972 (allocate_objfile, free_objfile): Update.
973 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
975 (struct objfile) <macro_cache>: Remove.
976 * symfile.c (reread_symbols): Update.
977 * symmisc.c (print_symbol_bcache_statistics): Update.
978 (print_objfile_statistics): Update.
980 2012-08-22 Tom Tromey <tromey@redhat.com>
982 * elfread.c (elf_symtab_read): Update.
983 * objfiles.c (objfiles_bfd_data): New global.
984 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
985 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
986 (allocate_objfile, free_objfile): Update.
987 (_initialize_objfiles): Initialize objfiles_bfd_data.
988 * objfiles.h (struct objfile_per_bfd_storage): New.
989 (struct objfile) <per_bfd>: New field.
990 <filename_cache>: Remove.
991 (set_objfile_per_bfd): Declare.
992 * symfile.c (reread_symbols): Update. Call
994 (allocate_symtab): Update.
995 * symmisc.c (print_symbol_bcache_statistics): Update.
996 (print_objfile_statistics): Print the size of the BFD obstack.
998 2012-08-22 Tom Tromey <tromey@redhat.com>
1000 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1001 * gdb_bfd.c: Use DEFINE_REGISTRY.
1002 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1003 (gdb_bfd_ref): Call bfd_alloc_data.
1004 (gdb_bfd_unref): Call bfd_free_data.
1006 2012-08-22 Tom Tromey <tromey@redhat.com>
1008 * registry.h (struct registry_fields): New.
1009 (REGISTRY_FIELDS): Redefine.
1010 (REGISTRY_ACCESS_FIELD): New macro.
1011 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1014 2012-08-22 Tom Tromey <tromey@redhat.com>
1016 * auto-load.c (_initialize_auto_load): Update.
1017 * solib-svr4.c (_initialize_svr4_solib): Update
1018 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1019 * solib-darwin.c (_initialize_darwin_solib): Update.
1020 * registry.h: New file.
1021 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1022 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1023 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1024 (register_program_space_data_with_cleanup)
1025 (register_program_space_data, program_space_alloc_data)
1026 (clear_program_space_data, set_program_space_data)
1027 (program_space_data): Don't declare.
1028 * progspace.c: Use DEFINE_REGISTRY.
1029 (struct program_space_data, struct
1030 program_space_data_registration, struct
1031 program_space_data_registry, program_space_data_registry)
1032 (register_program_space_data_with_cleanup)
1033 (register_program_space_data, program_space_alloc_data)
1034 (program_space_free_data, clear_program_space_data)
1035 (set_program_space_data, program_space_data): Remove.
1036 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1037 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1038 (register_objfile_data_with_cleanup, register_objfile_data)
1039 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1041 * objfiles.c: Use DEFINE_REGISTRY.
1042 (struct objfile_data, struct objfile_data_registration, struct
1043 objfile_data_registry, objfile_data_registry)
1044 (register_objfile_data_with_cleanup, register_objfile_data)
1045 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1046 (set_objfile_data, objfile_data): Remove.
1047 (_initialize_objfiles): Update.
1048 * jit.c (_initialize_jit): Update.
1049 * inflow.c (_initialize_inflow): Update.
1050 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1051 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1052 (register_inferior_data_with_cleanup, register_inferior_data)
1053 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1055 * inferior.c: Use DEFINE_REGISTRY.
1056 (struct inferior_data, struct inferior_data_registration, struct
1057 inferior_data_registry, inferior_data_registry)
1058 (register_inferior_data_with_cleanup, register_inferior_data)
1059 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1060 (set_inferior_data, inferior_data): Remove.
1061 * auxv.c (_initialize_auxv): Update.
1062 * ada-lang.c (_initialize_ada_language): Update.
1063 * breakpoint.c (_initialize_breakpoint): Update.
1064 * i386-nat.c (i386_use_watchpoints): Update.
1066 2012-08-22 Tom Tromey <tromey@redhat.com>
1068 * exec.c (exec_close, exec_file_attach): Update.
1069 (add_to_section_table): Initialize 'key' field.
1070 (add_target_sections, remove_target_sections): Add 'key' argument.
1071 * exec.h (add_target_sections, remove_target_sections): Add
1073 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1074 (reload_shared_libraries_1): Update.
1075 * target.h (struct target_section) <key>: New field.
1077 2012-08-22 Tom Tromey <tromey@redhat.com>
1079 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1081 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1083 * symfile.c (allocate_symtab): Use host_address_to_string
1084 function instead of cast of pointer to long which is not
1085 compatible with x86_64-w64-mingw32 build.
1087 2012-08-19 Andrew Pinski <apinski@cavium.com>
1089 * mips-tdep.c (is_octeon): New function.
1090 (is_octeon_bbit_op): New function.
1091 (mips32_next_pc): Handle Octeon's bbit instructions.
1092 (mips32_instruction_has_delay_slot): Likewise.
1094 2012-08-19 Andrew Pinski <apinski@cavium.com>
1096 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1097 before the function.
1099 2012-08-19 Andrew Pinski <apinski@cavium.com>
1101 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1103 2012-08-19 Keith Seitz <keiths@redhat.com>
1106 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1107 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1109 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1111 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1112 The typo broke "make TAGS".
1114 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1118 2012-08-17 Keith Seitz <keiths@redhat.com>
1121 * gdbtypes.c (strict_type_checking): New variable.
1122 (show_strict_type_checking): New function.
1123 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1124 if strict type checking is disabled.
1125 (_initialize_gdbtypes): Add "check type" subcommand.
1126 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1128 2012-08-17 Keith Seitz <keiths@redhat.com>
1130 * language.h (type_mode): Remove.
1131 (type_check): Remove.
1132 (struct language_defn): Remove la_type_check.
1133 (STRICT_TYPE): Remove unused macro.
1134 (type_error): Remove.
1135 * language.c (set_type_range_case): Renamed to ...
1136 (set_range_case): ... this. Update all callers.
1137 Remove type_mode/type_check.
1138 (type_mode): Remove.
1139 (type_check): Remove.
1140 (show_type_command): Remove.
1141 (set_type_command): Remove.
1142 (language_info): Remove type checking output.
1143 (type_error): Remove unused function.
1144 (range_error): Update comment.
1145 (unknown_language_defn): Remove la_type_check.
1146 (auto_language_defn): Likewise.
1147 (local_language_defn): Likewise.
1148 (_initialize_language): Remove "check type" subcommand.
1149 * ada-lang.c (ada_language_defn): Remove la_type_check.
1150 * c-lang.c (c_language_defn): Likewise.
1151 (cplus_language_defn): Likewise.
1152 (asm_language_defn): Likewise.
1153 (minimal_language_defn): Likewise.
1154 * d-lang.c (d_language_defn): Likewise.
1155 * f-lang.c (f_language_defn): Likewise.
1156 * go-lang.c (go_language_defn): Likewise.
1157 * jv-lang.c (java_language_defn): Likewise.
1158 * m2-lang.c (m2_language_defn): Likewise.
1159 * objc-lang.c (objc_language_defn): Likewise.
1160 * opencl-lang.c (opencl_language_defn): Likewise.
1161 * p-lang.c (pascal_language_defn): Likewise.
1163 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1165 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1167 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1169 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1171 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1172 using the regache. Use ia64_hpux_get_register_from_save_state_t
1173 to access the bsp and bspstore registers if not.
1175 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1177 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1178 * breakpoint.c (detach_breakpoints): Change pid parameter into
1179 a ptid. Adjust code accordingly.
1180 * infrun.c (handle_inferior_event): Delete variable child_pid.
1181 Update call to detach_breakpoints to pass the child ptid for
1183 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1184 assert that inferior_ptid's lwp is zero.
1185 (linux_handle_extended_wait): Update call to detach_breakpoints.
1186 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1189 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1191 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1192 parent, only call detach_breakpoints if tts.tts_event ==
1195 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1197 * dwarf2-frame.c (dwarf2_frame_cache): Use
1198 get_frame_address_in_block instead of get_frame_pc as
1199 the bound for executing the frame's FDE.
1201 2012-08-16 Yao Qi <yao@codesourcery.com>
1203 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1204 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1205 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1206 (c_type_print_varspec_suffix): Likewise.
1207 * eval.c (evaluate_subexp_standard): Likewise.
1208 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1209 (f_type_print_varspec_suffix): Likewise.
1210 * gdbtypes.c (is_scalar_type): Likewise.
1211 (recursive_dump_type): Likewise.
1212 * infcall.c (value_arg_coerce): Likewise.
1213 * m2-valprint.c (m2_val_print): Likewise.
1214 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1215 (pascal_type_print_varspec_suffix): Likewise.
1216 (pascal_type_print_base): Likewise.
1217 * p-valprint.c (pascal_val_print): Likewise.
1218 (pascal_val_print): Likewise.
1219 * valops.c (value_slice): Likewise.
1220 * valprint.c (scalar_type_p): Likewise.
1221 * valarith.c (value_bitstring_subscript): Remove.
1222 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1223 Remove comment on TYPE_CODE_BITSTRING.
1225 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1226 TYPE_CODE_BITSTRING.
1228 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1231 2012-08-16 Yao Qi <yao@codesourcery.com>
1233 * tracepoint.c (trace_find_none_command): Remove.
1234 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1236 2012-08-16 Yao Qi <yao@codesourcery.com>
1238 * remote.c (handle_notification): Remove parameter 'length'.
1239 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1241 2012-08-15 Keith Seitz <keiths@redhat.com>
1243 * gdbtypes.c (opaque_type_resolution): Make static.
1244 Add missing comment.
1245 (overload_debug): Add missing comment.
1246 (show_opaque_type_resolution): Likewise.
1247 (show_overload_debug): Likewise.
1248 (print_bit_vector): Remove unnecessary forward declaration.
1249 (print_arg_types): Likewise.
1250 (dump_fn_fieldlists): Likewise.
1251 (print_cplus_stuff): Likewise.
1253 2012-08-15 Tom Tromey <tromey@redhat.com>
1255 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1256 (gdb_bfd_ref): Initialize new field.
1257 (gdb_bfd_unref): Unref the archive BFD.
1258 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1261 2012-08-15 Tom Tromey <tromey@redhat.com>
1264 * python/py-bpevent.c (create_breakpoint_event_object): Update
1266 * python/py-event.c (evpy_add_attribute): Update comment.
1267 * python/py-exitedevent.c (create_exited_event_object): Fix
1268 reference counting and error handling.
1269 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1270 Fix reference counting.
1271 * python/py-signalevent.c (create_signal_event_object): Fix
1272 reference counting and error handling.
1273 * python/py-stopevent.c (emit_stop_event): Fix reference
1275 * python/py-threadevent.c (get_event_thread): Return a
1277 * python/py-type.c (convert_field): Fix reference counting.
1279 2012-08-15 Tom Tromey <tromey@redhat.com>
1281 * dwarf2read.c (dwarf_decode_macro_bytes)
1282 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1285 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1287 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1288 stepi, nexti, finish, next, step, jump, and continue commands.
1289 * infrun.c (_initialize_infrun): Update help text for the handle
1292 2012-08-14 Doug Evans <dje@google.com>
1294 * gdbtypes.c (struct extra): Delete, unused.
1296 * gdbtypes.c: Whitespace cleanup.
1297 (address_space_name_to_int): Remove "extern" from definition.
1298 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1300 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1301 TYPE_POINTER_TYPE (type).
1303 2012-08-14 Gary Benson <gbenson@redhat.com>
1305 * solib-svr4.c (svr4_free_library_list): Use free_so.
1307 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1309 * .gitignore: Add go-exp.c.
1311 2012-08-13 Doug Evans <dje@google.com>
1313 * value.c (show_convenience): Tweak comment.
1314 (_initialize_values): Mention convenience functions in the help text
1315 for "show convenience".
1317 2012-08-13 Yao Qi <yao@codesourcery.com>
1319 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1320 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1322 * eval.c (evaluate_subexp_standard): Likewise.
1323 * expprint.c (print_subexp_standard): Likewise.
1324 (dump_subexp_body_standard): Likewise.
1325 * parse.c (operator_length_standard): Likewise.
1327 2012-08-13 Yao Qi <yao@codesourcery.com>
1329 * std-operator.def: Remove OP_BITSTRING.
1330 * breakpoint.c (watchpoint_exp_is_const): Update.
1331 * eval.c (evaluate_subexp_standard): Remove handling to
1333 * expprint.c (print_subexp_standard): Likewise.
1334 (dump_subexp_body_standard): Likewise.
1335 * parse.c (operator_length_standard): Likewise.
1336 * valops.c (value_bitstring): Remove.
1337 * value.h: Remove the declaration of 'value_bitstring'.
1339 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1341 * linespec.c (find_methods): Remove unused variables `i1' and
1343 (decode_line_full): Likewise for `arg_start'.
1345 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1347 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1348 (zlib_decompress_section): Likewise for `section_data'.
1349 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1351 2012-08-10 Doug Evans <dje@google.com>
1353 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1354 * NEWS: Document them.
1355 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1357 * python/py-type.c (typy_array_1): New function.
1358 (typy_array): Call it.
1359 (typy_vector): New function.
1360 (type_object_methods): Add "vector".
1361 * python/lib/gdb/function/__init__.py: New file.
1362 * python/lib/gdb/function/strfns.py: New file.
1364 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1366 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1367 for TYPE_FIELD_BITPOS.
1368 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1370 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1373 * common/vec.h (VEC_merge): Define.
1374 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1375 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1376 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1377 * completer.c: Include gdb_signals.h.
1378 (signal_completer): Define.
1379 * completer.h (signal_completer): Add prototype.
1380 * infcmd.c (_initialize_infcmd): Assign the command
1381 completer for "signal" to handle_completer.
1382 * infrun.c: Include completer.h.
1383 (handle_completer): Define.
1384 (_initialize_infrun): Declare a new local variable c. Store the
1385 result of add_com("handle") to it. Assign the command
1386 completer for "handle" to handle_completer.
1388 2012-08-09 Yao Qi <yao@codesourcery.com>
1390 * cli/cli-decode.c (set_cmd_prefix): New.
1391 (lookup_cmd_for_prefixlist): New.
1392 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1393 of each cmd_list_element in *prefixlist.
1394 (add_setshow_cmd_full): set_cmd_prefix.
1395 (add_alias_cmd): Likewise.
1396 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1397 Declare 'auto_boolean_enums'.
1398 * cli/cli-setshow.c: Include "observer.h".
1399 (notify_command_param_changed_p): New.
1400 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1402 (do_setshow_command): Split it to ...
1403 (do_set_command, do_show_command): ... them. New.
1404 (do_set_command): Call observer_notify_command_param_changed if
1405 notify_command_param_changed_p returns true.
1406 (cmd_show_list): Caller update.
1407 * auto-load.c (set_auto_load_cmd): Likewise.
1408 * remote.c (show_remote_cmd): Likewise.
1409 * cli/cli-setshow.h: Update declarations.
1410 * top.c (execute_command): Call do_set_command and do_show_command.
1412 * NEWS: Mention new MI notification.
1413 * mi/mi-interp.c: Declare mi_command_param_changed.
1414 (mi_interpreter_init): Attach mi_command_param_changed to
1415 observer command_param_changed.
1416 (mi_command_param_changed): New.
1417 Remove mi_suppress_breakpoint_notifications.
1418 Define global variable mi_suppress_notification.
1419 (mi_breakpoint_created): Update.
1420 (mi_breakpoint_deleted): Likewise.
1421 (mi_breakpoint_modified): Likewise.
1422 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1423 'gdb-set' and set mi_suppress_notification.
1424 * mi/mi-main.h: (mi_suppress_notification): New struct.
1426 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1427 Jan Kratochvil <jan.kratochvil@redhat.com>
1429 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1431 2012-08-09 Yao Qi <yao@codesourcery.com>
1433 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1434 (skiplist): Move it to skip.c.
1435 (init_cmd_lists): Remove code setting enablebreaklist and
1437 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1438 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1440 * gdbcmd.h: Likewise.
1441 * skip.c (_initialize_step_skip): Move 'skiplist' from
1444 2012-08-09 Yao Qi <yao@codesourcery.com>
1446 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1447 * gnu-nat.c, symfile.c: Likewise.
1449 2012-08-08 Aaron Gamble <agamble@google.com>
1451 * utils.c (prompt_for_continue_wait_time): New static global.
1452 (make_command_stats_cleanup): Initialize it.
1453 (report_command_stats): Subtract time waiting for user.
1454 (prompt_for_continue): Track time waiting for user.
1455 (defaulted_query): Track time waiting for user.
1457 2012-08-08 Doug Evans <dje@google.com>
1459 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1461 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1462 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1463 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1464 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1465 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1466 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1468 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1469 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1470 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1471 (dump_prefix_expression): Handle OP_TYPE.
1473 2012-08-08 Keith Seitz <keiths@redhat.com>
1475 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1478 2012-08-08 Doug Evans <dje@google.com>
1480 * linux-thread-db.c: #include "gdb_vecs.h".
1481 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1483 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1484 (thread_db_load_search): Use a vector to iterate over path elements.
1485 Handle text appearing after "$pdir".
1487 * gdb_string.h: Moved to ...
1488 * common/gdb_string.h: ... here.
1489 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1490 gdb_string.h and gdb_assert.h.
1492 2012-08-08 Yao Qi <yao@codesourcery.com>
1494 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1495 (tic6x_value_to_register): Likewise.
1496 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1497 and set_gdbarch_value_to_register.
1499 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1500 Jean-Marc Saffroy <saffroy@gmail.com>
1503 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1504 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1505 * gcore.c (gcore_create_callback): New function comment. Add modified
1506 parameter. Only write modified regions. Set SEC_READONLY exactly
1507 according to MODIFIED.
1508 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1509 the passed modified value to FUNC.
1510 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1511 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1512 first. New variables modified and has_anonymous. Parse the lines of
1513 smaps file. Add the passed MODIFIED value to FUNC.
1514 * procfs.c (find_memory_regions_callback): Add the passed modified
1517 2012-08-06 Tom Tromey <tromey@redhat.com>
1519 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1520 (dwarf2_frame_cache): Use it.
1521 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1522 cache initialization constraint.
1524 2012-08-06 Tom Tromey <tromey@redhat.com>
1527 * varobj.c (update_dynamic_varobj_children): Don't call
1530 2012-08-06 Tom Tromey <tromey@redhat.com>
1533 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1535 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1537 * NEWS: New entry for 'cd' default parameters.
1538 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1540 2012-08-03 Tom Tromey <tromey@redhat.com>
1542 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1545 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1547 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1548 to attempting lseek/write.
1549 (inf_child_fileio_pread): Likewise for pread.
1551 2012-08-02 Yao Qi <yao@codesourcery.com>
1553 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1554 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1555 add_setshow_zinteger_cmd.
1556 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1557 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1558 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1559 instead of add_setshow_zinteger_cmd.
1560 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1561 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1562 instead of add_setshow_zinteger_cmd.
1563 * frame.c (frame_debug): Add 'unsigned'.
1564 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1565 add_setshow_zinteger_cmd.
1566 * frame.h: Update the declaration of 'frame_debug'.
1567 * gdbtypes.c (overload_debug): Add 'unsigned'.
1568 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1569 add_setshow_zinteger_cmd.
1570 * inferior.h: Update declaration of 'debug_infrun'.
1571 * infrun.c (debug_infrun): Add 'unsigned'.
1572 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1573 add_setshow_zinteger_cmd.
1574 * jit.c (jit_debug): Add 'unsigned'.
1575 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1576 add_setshow_zinteger_cmd.
1577 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1578 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1579 instead of add_setshow_zinteger_cmd.
1580 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1581 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1582 add_setshow_zinteger_cmd.
1583 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1584 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1585 instead of add_setshow_zinteger_cmd.
1586 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1587 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1588 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1589 intead of add_setshow_zinteger_cmd.
1590 * mips-tdep.c (mips_debug): Add 'unsigned'.
1591 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1592 instead of add_setshow_zinteger_cmd.
1593 * monitor.c (monitor_debug): Add 'unsigned'.
1594 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1595 add_setshow_zinteger_cmd.
1596 * observer.c (observer_debug): Add 'unsigned'.
1597 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1598 add_setshow_zinteger_cmd.
1599 * parse.c (expressiondebug): Add 'unsigned'.
1600 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1601 add_setshow_zinteger_cmd.
1602 * record.c (record_debug): Add 'unsigned'.
1603 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1604 add_setshow_zinteger_cmd.
1605 * record.h: Update the declaration of 'record_debug'.
1606 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1607 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1608 add_setshow_zinteger_cmd.
1609 * serial.c (global_serial_debug_p): Add 'unsigned'.
1610 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1611 add_setshow_zinteger_cmd.
1612 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1613 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1614 add_setshow_zinteger_cmd.
1615 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1616 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1617 add_setshow_zinteger_cmd.
1618 * target.c (targetdebug): Add 'unsigned'.
1619 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1620 add_setshow_zinteger_cmd.
1621 * valops.c (overload_debug): Add 'unsigned'.
1622 * varobj.c (varobjdebug): Add 'unsigned'.
1623 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1624 add_setshow_zinteger_cmd.
1625 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1626 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1627 instead of add_setshow_zinteger_cmd.
1629 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1630 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1631 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1632 instead of add_setshow_zinteger_cmd.
1633 * gdbarch.c, gdbarch.h: Re-generated.
1635 2012-08-02 Yao Qi <yao@codesourcery.com>
1637 * nto-tdep.c: Don't include cli/cli-decode.h and
1639 (_initialize_nto_tdep): Remove.
1640 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1642 Remove macro nto_internal_debugging.
1644 2012-08-01 Richard Henderson <rth@redhat.com>
1646 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1647 (mep-*-*) [gdb_target_obs]: Likewise.
1649 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1651 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1652 linux_get_siginfo_type.
1654 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1656 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1658 (call_function_by_hand) <ON_STACK>: Call write_memory with
1659 gdbarch_breakpoint_from_pc, if possible.
1660 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1663 2012-07-31 Yao Qi <yao@codesourcery.com>
1665 * tracepoint.c: Add 'static' for some variables.
1667 2012-07-31 Yao Qi <yao@codesourcery.com>
1669 * go32-nat.c: Declare _initialize_go32_nat.
1670 * ser-go32.c: Declare _initialize_ser_dos.
1671 * top.c (do_chdir_cleanup): Add 'static'.
1673 2012-07-30 Keith Seitz <keiths@redhat.com>
1675 * linespec.c (linespec_lex_number): A number followed
1676 by quotes is a valid number, too.
1678 2012-07-30 Tom Tromey <tromey@redhat.com>
1680 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1682 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1684 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1685 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1687 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1689 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1690 invalid or reevaluated to prevent prevent references to possibly
1691 delete'd type objects being left in the varobj.
1693 2012-07-27 Tom Tromey <tromey@redhat.com>
1694 Jan Kratochvil <jan.kratochvil@redhat.com>
1696 * copying.awk: Print buffer-read-only and vi ro markers.
1697 * copying.c: Rebuild.
1698 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1699 * gdbarch.c, gdbarch.h: Rebuild.
1700 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1701 buffer-read-only and vi ro markers.
1702 * features/arm-with-iwmmxt.c: Rebuild.
1703 * features/arm-with-m-fpa-layout.c: Rebuild.
1704 * features/arm-with-m-vfp-d16.c: Rebuild.
1705 * features/arm-with-m.c: Rebuild.
1706 * features/arm-with-neon.c: Rebuild.
1707 * features/arm-with-vfpv2.c: Rebuild.
1708 * features/arm-with-vfpv3.c: Rebuild.
1709 * features/i386/amd64-avx-linux.c: Rebuild.
1710 * features/i386/amd64-avx.c: Rebuild.
1711 * features/i386/amd64-linux.c: Rebuild.
1712 * features/i386/amd64.c: Rebuild.
1713 * features/i386/i386-avx-linux.c: Rebuild.
1714 * features/i386/i386-avx.c: Rebuild.
1715 * features/i386/i386-linux.c: Rebuild.
1716 * features/i386/i386-mmx-linux.c: Rebuild.
1717 * features/i386/i386-mmx.c: Rebuild.
1718 * features/i386/i386.c: Rebuild.
1719 * features/i386/x32-avx-linux.c: Rebuild.
1720 * features/i386/x32-avx.c: Rebuild.
1721 * features/i386/x32-linux.c: Rebuild.
1722 * features/i386/x32.c: Rebuild.
1723 * features/mips-dsp-linux.c: Rebuild.
1724 * features/mips-linux.c: Rebuild.
1725 * features/mips64-dsp-linux.c: Rebuild.
1726 * features/mips64-linux.c: Rebuild.
1727 * features/rs6000/powerpc-32.c: Rebuild.
1728 * features/rs6000/powerpc-32l.c: Rebuild.
1729 * features/rs6000/powerpc-403.c: Rebuild.
1730 * features/rs6000/powerpc-403gc.c: Rebuild.
1731 * features/rs6000/powerpc-405.c: Rebuild.
1732 * features/rs6000/powerpc-505.c: Rebuild.
1733 * features/rs6000/powerpc-601.c: Rebuild.
1734 * features/rs6000/powerpc-602.c: Rebuild.
1735 * features/rs6000/powerpc-603.c: Rebuild.
1736 * features/rs6000/powerpc-604.c: Rebuild.
1737 * features/rs6000/powerpc-64.c: Rebuild.
1738 * features/rs6000/powerpc-64l.c: Rebuild.
1739 * features/rs6000/powerpc-7400.c: Rebuild.
1740 * features/rs6000/powerpc-750.c: Rebuild.
1741 * features/rs6000/powerpc-860.c: Rebuild.
1742 * features/rs6000/powerpc-altivec32.c: Rebuild.
1743 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1744 * features/rs6000/powerpc-altivec64.c: Rebuild.
1745 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1746 * features/rs6000/powerpc-cell32l.c: Rebuild.
1747 * features/rs6000/powerpc-cell64l.c: Rebuild.
1748 * features/rs6000/powerpc-e500.c: Rebuild.
1749 * features/rs6000/powerpc-e500l.c: Rebuild.
1750 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1751 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1752 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1753 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1754 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1755 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1756 * features/rs6000/powerpc-vsx32.c: Rebuild.
1757 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1758 * features/rs6000/powerpc-vsx64.c: Rebuild.
1759 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1760 * features/rs6000/rs6000.c: Rebuild.
1761 * features/s390-linux32.c: Rebuild.
1762 * features/s390-linux32v1.c: Rebuild.
1763 * features/s390-linux32v2.c: Rebuild.
1764 * features/s390-linux64.c: Rebuild.
1765 * features/s390-linux64v1.c: Rebuild.
1766 * features/s390-linux64v2.c: Rebuild.
1767 * features/s390x-linux64.c: Rebuild.
1768 * features/s390x-linux64v1.c: Rebuild.
1769 * features/s390x-linux64v2.c: Rebuild.
1770 * features/tic6x-c62x-linux.c: Rebuild.
1771 * features/tic6x-c62x.c: Rebuild.
1772 * features/tic6x-c64x-linux.c: Rebuild.
1773 * features/tic6x-c64x.c: Rebuild.
1774 * features/tic6x-c64xp-linux.c: Rebuild.
1775 * features/tic6x-c64xp.c: Rebuild.
1777 2012-07-27 Tom Tromey <tromey@redhat.com>
1779 * c-exp.y (classify_name): Avoid assignment in condition.
1781 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1783 * amd64-windows-tdep.c: Include "frame.h".
1784 (amd64_windows_skip_trampoline_code): New function.
1785 (amd64_windows_init_abi): Add trampoline registration.
1787 2012-07-27 Yao Qi <yao@codesourcery.com>
1789 * tracepoint.c (cur_traceframe_number): Remove.
1790 (set_tfile_traceframe): Remove.
1791 (tfile_trace_find, tfile_fetch_registers): Update callers.
1792 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1793 (tfile_open, tfile_trace_find): Likewise.
1795 2012-07-27 Yao Qi <yao@codesourcery.com>
1797 * thread.c (switch_to_thread): Don't call registers_changed.
1799 2012-07-26 Tom Tromey <tromey@redhat.com>
1801 * Makefile.in (SFILES): Remove objc-exp.y.
1802 (YYFILES): Remove objc-exp.c.
1803 (YYOBJ): Remove objc-exp.o.
1804 (local-maintainer-clean): Don't mention objc-exp.c.
1805 * c-exp.y: Include objc-lang.h.
1806 (%union) <class>: New field.
1807 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1808 (exp): Clone subscript production for OBJC_LBRAC. Add various
1809 Objective C productions.
1810 (msglist, msgarglist, msgarg): New productions.
1811 (array_mod, func_mod, operator): Clone productions for
1813 (parse_string_or_char): Handle '@' strings.
1814 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1815 (classify_name): Check la_name_of_this. Recognize ObjC class
1817 * objc-exp.y: Remove.
1818 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1819 * objc-lang.h (objc_parse, objc_error): Don't declare.
1821 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1823 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1825 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1827 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1830 2012-07-26 Tom Tromey <tromey@redhat.com>
1832 * copying.c: Rebuild.
1833 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1836 2012-07-26 Tom Tromey <tromey@redhat.com>
1838 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1840 (print_objfile_statistics): Likewise.
1841 (maintenance_print_symbols): Likewise.
1842 (maintenance_print_msymbols): Likewise.
1843 (maintenance_print_objfiles): Likewise.
1844 * psymtab.c (print_partial_symbols): Call QUIT.
1845 (maintenance_print_psymbols): Likewise. Don't modify
1847 * copying.c (show_copying_command): Don't modify immediate_quit.
1848 (show_warranty_command): Likewise.
1849 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1851 2012-07-26 Keith Seitz <keiths@redhat.com>
1853 * linespec.c (linespec_lexer_lex_number): The input
1854 is also a valid number if the next character is a comma
1857 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1859 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1862 2012-07-26 Tristan Gingold <gingold@adacore.com>
1864 * machoread.c: Include gdb_bfd.h.
1866 2012-07-26 Tristan Gingold <gingold@adacore.com>
1868 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1871 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1873 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1875 (dwarf2_evaluate_loc_desc): Likewise.
1876 (dwarf2_loc_desc_needs_frame): Likewise.
1877 (locexpr_describe_location_1): Likewise.
1878 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1880 (struct dwarf2_loclist_baton): Likewise.
1881 * dwarf2read.c (struct dwarf_block): Likewise.
1882 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1883 (decode_locdesc): Expand SIZE and I to size_t.
1885 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1889 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1891 * doublest.c (convert_doublest_to_floatformat): If the exponent
1892 is too small, treat the value as zero. If the exponent is too
1893 large, treat the value as infinity.
1895 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1897 * configure.ac: Add --enable-lmcheck configure option.
1898 * configure: Regenerate.
1900 2012-07-25 Tom Tromey <tromey@redhat.com>
1902 * NEWS: Mention maint info bfds.
1903 * gdb_bfd.c (all_bfds): New global.
1904 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1905 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1908 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1910 * configure.tgt: Add v850*-*-rtems*.
1912 2012-07-25 Tom Tromey <tromey@redhat.com>
1914 * macrotab.c (macro_bcache_str): Remove cast.
1916 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1918 * linespec.c (linespec_lexer_lex_number): Update comments,
1919 change the return and add check to make sure the input is
1920 the decimal numbers.
1921 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1922 false, call linespec_lexer_lex_string.
1924 2012-07-24 Tom Tromey <tromey@redhat.com>
1926 * symfile.c (symbol_file_add): Don't open BFD twice.
1928 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1930 * breakpoint.c (create_breakpoint): Store condition for pending
1933 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1935 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1936 (m68k_return_value): Handle complex types like structures.
1937 (m68k_svr4_return_value): Likewise.
1939 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1941 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1942 parameters to bfd_get_section_name.
1944 2012-07-24 Yao Qi <yao@codesourcery.com>
1946 * cli/cli-setshow.c: Handle case 'var_uinteger'
1947 and 'var_zuninteger' together. Handle case 'var_integer' and
1948 'var_zinteger' together.
1950 2012-07-23 Keith Seitz <keiths@redhat.com>
1952 * linespec.c (convert_linespec_to_sal): Don't add
1953 any symbols to the result vector if symbol_to_sal
1956 2012-07-23 Keith Seitz <keiths@redhat.com>
1958 * linespec.c (decode_objc): Record the function name
1961 2012-07-23 Tom Tromey <tromey@redhat.com>
1963 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1965 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1966 (map_vmap): Acquire a reference to the BFD.
1968 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1970 * p-valprint.c (pascal_object_print_value): Replace potentially
1971 unsafe alloca with xmalloc/xfree.
1972 * valops.c (search_struct_method): Likewise.
1974 2012-07-23 Tom Tromey <tromey@redhat.com>
1976 * solib-svr4.c (enable_break): Update.
1977 * bfd-target.h (target_bfd_reopen): Update documentation.
1979 2012-07-23 Tom Tromey <tromey@redhat.com>
1981 * symfile.c (separate_debug_file_exists): Update.
1982 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1983 (reread_symbols): Update.
1984 * elfread.c (build_id_verify): Update.
1985 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1986 bfd_open_maybe_remote.
1988 2012-07-23 Tom Tromey <tromey@redhat.com>
1990 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1992 2012-07-23 Tom Tromey <tromey@redhat.com>
1994 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1996 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1998 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1999 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2001 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2002 * objfiles.c (allocate_objfile): Acquire a new reference.
2003 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2004 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2005 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2006 a cleanup for 'nbfd'.
2007 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2009 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2010 make a cleanup for 'abfd'.
2011 (symbol_file_add): Make a BFD cleanup.
2013 2012-07-23 Tom Tromey <tromey@redhat.com>
2015 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2016 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2017 * corelow.c (core_open): Use gdb_bfd_fopen.
2018 * dsrec.c (load_srec): Use gdb_bfd_openr.
2019 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2020 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2021 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2022 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2023 (gdb_bfd_fdopenr): New functions.
2024 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2025 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2026 (gdb_bfd_fdopenr): Declare.
2027 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2028 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2029 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2030 gdb_bfd_openr_next_archived_file.
2031 (macho_check_dsym): Use gdb_bfd_openr.
2032 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2033 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2034 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2035 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2037 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2038 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2039 gdb_bfd_openr_next_archived_file.
2040 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2042 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2044 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2045 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2046 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2047 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2048 (symfile_bfd_open): Use gdb_bfd_fopen.
2049 (generic_load): Use gdb_bfd_openr.
2050 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2052 2012-07-23 Tom Tromey <tromey@redhat.com>
2054 * bfd-target.c (target_bfd_reopen): Update.
2055 * cli/cli-dump.c (bfd_openr_with_cleanup)
2056 (bfd_openw_with_cleanup): Update.
2057 * corelow.c (core_open): Update.
2058 * dsrec.c (load_srec): Update.
2059 * exec.c (exec_file_attach): Update.
2060 * gcore.c (create_gcore_bfd): Update.
2061 * gdb_bfd.c (gdb_bfd_ref): Return void.
2062 (gdb_bfd_open): Update.
2063 * gdb_bfd.h (gdb_bfd_ref): Return void.
2065 * jit.c (jit_bfd_try_read_symtab): Update.
2066 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2067 * machoread.c (macho_symfile_read_all_oso): Update.
2068 (macho_check_dsym): Update.
2069 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2070 * remote-m32r-sdi.c (m32r_load): Update.
2071 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2072 * rs6000-nat.c (add_vmap): Update.
2073 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2075 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2076 * solib-spu.c (spu_bfd_open): Update.
2077 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2078 * spu-linux-nat.c (spu_bfd_open): Update.
2079 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2080 (generic_load): Update.
2081 * windows-nat.c (windows_make_so): Update.
2083 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2085 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2087 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2089 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2090 SIGTRAMP_FRAME unwinding.
2092 2012-07-20 Doug Evans <dje@google.com>
2094 * NEWS: Document new options "set/show use-deprecated-index-sections",
2095 and delete reference to --use-deprecated-index-sections.
2096 * symfile.h (use_deprecated_index_sections): Delete.
2097 * dwarf2read.c (use_deprecated_index_sections): Make static.
2098 (read_index_from_section): Update wording of how to load
2099 deprecated index sections.
2100 (_initialize_dwarf2_read): New options
2101 "set/show use-deprecated-index-sections".
2102 * main.c (captured_main): Delete --use-deprecated-index-sections.
2104 2012-07-20 Pedro Alves <palves@redhat.com>
2109 * infrun.c (handle_inferior_event) <new thread>: Don't special
2110 case minus_one_ptid.
2111 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2112 * linux-thread-db.c (thread_get_info_callback): Don't return early
2113 if the thread is zombie.
2114 (thread_from_lwp): Change return type to void. Rewrite stale
2116 (attach_thread): Don't return early if the thread is zombie,
2117 instead set its "dying" flag.
2118 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2119 (find_new_threads_callback): Don't return early if the thread is
2122 2012-07-20 Pedro Alves <palves@redhat.com>
2124 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2125 * target.c (target_wait): Likewise.
2126 (str_comma_list_concat_elem, do_option, target_options_to_string):
2128 * target.h (target_options_to_string): Declare.
2130 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2131 Tom Tromey <tromey@redhat.com>
2133 * dwarf2read.c (dwarf_decode_macros)
2134 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2135 DW_MACRO_GNU_transparent_include_alt>: New cases.
2136 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2137 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2139 2012-07-20 Tom Tromey <tromey@redhat.com>
2141 * dwarf2read.c (try_open_dwo_file): Don't call
2142 gdb_bfd_stash_filename.
2144 2012-07-20 Pedro Alves <palves@redhat.com>
2146 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2147 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2148 (i386_process_record): Tweak description comments.
2150 2012-07-20 Pedro Alves <palves@redhat.com>
2152 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2153 (i386_process_record): Use record_read_memory.
2154 * record.c (record_read_memory): New function.
2155 (record_arch_list_add_mem, record_exec_insn): Use
2157 * record.h (record_read_memory): Declare.
2159 2012-07-20 Yao Qi <yao@codesourcery.com>
2161 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2164 2012-07-19 Pedro Alves <palves@redhat.com>
2166 * record.c (record_resume): Ask the target beneath to report all
2169 2012-07-19 Doug Evans <dje@google.com>
2171 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2172 there's no section at address zero.
2173 (dwarf2_record_block_ranges): Ditto.
2175 2012-07-19 Yao Qi <yao@codesourcery.com>
2177 * command.h, remote.c: Fix a typo in comment.
2179 2012-07-19 Tom Tromey <tromey@redhat.com>
2182 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2183 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2184 OP_DECLTYPE>: New cases.
2185 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2186 (type_exp): Add new productions.
2187 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2189 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2191 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2192 OP_DECLTYPE>: New case.
2193 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2195 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2196 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2198 2012-07-19 Tom Tromey <tromey@redhat.com>
2200 * c-exp.y (enum token_flags): New.
2201 (struct token) <cxx_only>: Remove.
2203 (tokentab3, tokentab2, ident_tokens): Update.
2204 (lex_one_token): Update. Handle FLAG_SHADOW.
2206 2012-07-19 Tom Tromey <tromey@redhat.com>
2208 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2209 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2210 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2211 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2212 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2213 type_exp production where appropriate.
2214 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2215 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2216 <UNOP_MEMVAL_TYPE>: New case.
2217 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2218 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2219 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2220 <UNOP_MEMVAL_TYPE>: New case.
2221 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2222 UNOP_REINTERPRET_CAST>: Update.
2223 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2224 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2225 UNOP_REINTERPRET_CAST>: Update.
2226 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2227 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2228 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2231 2012-07-19 Yao Qi <yao@codesourcery.com>
2232 Jan Kratochvil <jan.kratochvil@redhat.com>
2234 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2235 and case 'var_optional_filename' together.
2236 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2237 instead of add_setshow_optional_filename_cmd for setshow command
2238 'args'. Set completer for 'set args'.
2240 2012-07-18 Doug Evans <dje@google.com>
2242 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2243 * common/gdb_vecs.c: New file, contents from utils.c.
2244 * common/host-defs.h: New file, contents from defs.h.
2245 * utils.h: New file, contents from defs.h.
2246 * defs.h: Move all declarations of objects defined in utils.c
2247 to utils.h (except QUIT() and related).
2248 #include "utils.h", "host-defs.h".
2249 * probe.h (probe_p): Move here from gdb_vecs.h.
2250 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2251 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2252 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2253 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2254 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2255 (COMMON_OBS): Add gdb_vecs.o.
2256 (gdb_vecs.o): New rule.
2258 2012-07-18 Keith Seitz <keiths@redhat.com>
2260 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2261 parameter. If non-zero, use SYMNAME as the canonical name
2264 (convert_linespec_to_sals): Use add_sal_to_sals for
2266 (decode_line_full): No need to "fill in missing canonical names"
2267 anymore. Simply make cleanups for the allocated names.
2269 2012-07-18 Keith Seitz <keiths@redhat.com>
2271 * linespec.c (struct linespec): Constify expression,
2272 source_filename, function_name, and label_name.
2273 (symbol_not_found_error): Make all parameters const.
2274 (linespec_parser_delete): No need to check for NULL
2275 when using xfree. Cast const char * to char * for xfree.
2277 2012-07-18 Keith Seitz <keiths@redhat.com>
2279 * breakpoint.c (invalid_thread_id_error): New function.
2280 (find_condition_and_thread): Use invalid_thread_id_error.
2281 (watch_command_1): Likewise.
2283 2012-07-18 Tom Tromey <tromey@redhat.com>
2285 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2286 * contrib/cc-with-tweaks.sh: New file.
2288 2012-07-18 Tom Tromey <tromey@redhat.com>
2290 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2291 (locate_dwz_sections): Recognize .gdb_index.
2292 (create_cus_from_index_list): New function.
2293 (create_cus_from_index): Use it. Handle .dwz data.
2294 (read_index_from_section): New function, extracted from
2296 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2299 2012-07-18 Tom Tromey <tromey@redhat.com>
2301 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2302 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2303 <is_dwz>: New field.
2304 (struct dwz_file): New.
2305 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2306 (locate_dwz_sections, dwarf2_get_dwz_file)
2307 (get_abbrev_section_for_cu): New functions.
2308 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2309 (read_and_check_type_unit_head): Add abbrev_section argument.
2310 (create_debug_types_hash_table): Update.
2311 (init_cutu_and_read_dies): Use proper abbrev section.
2312 (init_cutu_and_read_dies_no_follow): Likewise.
2313 (set_partial_user): Do nothing if PST==NULL.
2314 (read_comp_units_from_section): New function.
2315 (create_all_comp_units): Use it.
2316 (scan_partial_symbols, partial_die_parent_scope): Update.
2317 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2318 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2319 (find_partial_die): Add offset_in_dwz argument. Update.
2320 (guess_partial_die_structure_name, fixup_partial_die): Update.
2321 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2322 DW_FORM_GNU_strp_alt.
2323 (read_indirect_string_from_dwz): New function.
2324 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2325 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2326 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2327 (follow_die_offset): Add offset_in_dwz argument.
2328 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2329 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2330 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2331 Handle new macro forms.
2332 (dwarf_decode_macros): Update.
2333 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2334 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2335 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2336 (create_debug_types_hash_table): Use correct abbrev section.
2337 (get_debug_line_section): New function.
2338 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2339 (process_full_comp_unit): Pass 'required' argument to
2340 end_symtab_get_static_block.
2341 * buildsym.h (end_symtab_get_static_block): Update.
2342 * buildsym.c (end_symtab_get_static_block): Add 'required'
2344 (end_symtab, end_expandable_symtab): Update.
2346 2012-07-18 Tom Tromey <tromey@redhat.com>
2348 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2350 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2351 (zlib_decompress_section): Remove.
2352 (dwarf2_read_section): Use gdb_bfd_map_section.
2353 (munmap_section_buffer): Remove.
2354 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2355 munmap_section_buffer.
2356 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2357 (struct gdb_bfd_section_data): New.
2358 (free_one_bfd_section): New function.
2359 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2360 (get_section_descriptor, zlib_decompress_section)
2361 (gdb_bfd_map_section): New functions.
2362 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2364 2012-07-18 Tom Tromey <tromey@redhat.com>
2366 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2368 2012-07-18 Tom Tromey <tromey@redhat.com>
2370 * gdb_bfd.c (struct gdb_bfd_data): New.
2371 (gdb_bfd_cache): New global.
2372 (struct gdb_bfd_cache_search): New.
2373 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2374 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2375 * gdb_bfd.h (gdb_bfd_open): Declare.
2377 2012-07-18 Tom Tromey <tromey@redhat.com>
2379 * utils.c (make_cleanup_bfd_unref): Rename from
2380 make_cleanup_bfd_close.
2381 * defs.h (make_cleanup_bfd_unref): Rename from
2382 make_cleanup_bfd_close.
2383 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2384 (bfd_openw_with_cleanup): Update.
2385 * corelow.c (core_open): Update.
2386 * dsrec.c (load_srec): Update.
2387 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2388 * remote-m32r-sdi.c (m32r_load): Update.
2389 * remote-mips.c (mips_load_srec): Update.
2390 (pmon_load_fast): Update.
2391 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2393 (darwin_bfd_open): Update.
2394 * solib.c (solib_bfd_fopen): Update.
2395 * symfile-mem.c (symbol_file_add_from_memory): Update.
2396 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2397 (symfile_bfd_open): Update.
2398 (generic_load): Update.
2400 2012-07-18 Tom Tromey <tromey@redhat.com>
2402 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2403 (pmon_load_fast): Likewise.
2404 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2405 (m32r_upload_command): Likewise.
2406 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2407 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2408 Use make_cleanup_bfd_close.
2410 2012-07-18 Tom Tromey <tromey@redhat.com>
2412 * symfile.c (symfile_bfd_open): Don't copy name. Call
2413 gdb_bfd_stash_filename.
2414 (load_command): Open the new BFD before freeing the old.
2415 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2416 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2417 Call gdb_bfd_stash_filename.
2418 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2419 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2420 gdb_bfd_stash_filename.
2421 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2422 Free found_pathname.
2423 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2424 gdb_bfd_stash_filename.
2425 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2426 * machoread.c (macho_add_oso_symfile): Call
2427 gdb_bfd_stash_filename.
2428 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2429 gdb_bfd_stash_filename.
2430 (macho_check_dsym): Don't copy filename. Call
2431 gdb_bfd_stash_filename.
2432 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2433 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2434 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2435 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2436 * exec.c (exec_close): Don't free the BFD's filename.
2437 (exec_file_attach): Don't copy the filename. Call
2438 gdb_bfd_stash_filename.
2439 * corelow.c (core_close): Don't free the BFD's filename.
2440 (core_open): Call gdb_bfd_stash_filename.
2441 * corefile.c (reopen_exec_file): Remove #if 0 code.
2442 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2444 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2446 2012-07-18 Tom Tromey <tromey@redhat.com>
2448 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2450 (free_dwo_file): Use gdb_bfd_unref.
2451 * cli/cli-dump.c: Include gdb_bfd.h.
2452 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2453 (bfd_openr_with_cleanup): Likewise.
2454 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2456 * utils.c: Include gdb_bfd.h.
2457 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2458 * symfile.c: Include gdb_bfd.h.
2459 (separate_debug_file_exists): Use gdb_bfd_unref.
2460 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2461 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2462 (generic_load): Use gdb_bfd_ref.
2463 (reread_symbols): Use gdb_bfd_unref.
2464 * symfile-mem.c: Include gdb_bfd.h.
2465 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2466 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2467 * solib.c: Include gdb_bfd.h.
2468 (solib_bfd_fopen): Use gdb_bfd_ref.
2469 (solib_bfd_open): Use gdb_bfd_unref.
2470 (free_so_symbols): Use gdb_bfd_unref.
2471 (reload_shared_libraries_1): Use gdb_bfd_unref.
2472 * solib-spu.c: Include gdb_bfd.h.
2473 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2474 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2476 * solib-frv.c: Include gdb_bfd.h.
2477 (enable_break2): Use gdb_bfd_unref.
2478 * solib-dsbt.c: Include gdb_bfd.h.
2479 (enable_break2): Use gdb_bfd_unref.
2480 * solib-darwin.c: Include gdb_bfd.h.
2481 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2483 (darwin_bfd_open): Use gdb_bfd_unref.
2484 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2485 * remote-mips.c: Include gdb_bfd.h.
2486 (mips_load_srec): Use gdb_bfd_ref.
2487 (pmon_load_fast): Use gdb_bfd_ref.
2488 * remote-m32r-sdi.c: Include gdb_bfd.h.
2489 (m32r_load): Use gdb_bfd_ref.
2490 * record.c: Include gdb_bfd.h.
2491 (record_save_cleanups): Use gdb_bfd_unref.
2492 (cmd_record_save): Use gdb_bfd_unref.
2493 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2495 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2496 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2497 * objfiles.c: Include gdb_bfd.h.
2498 (free_objfile): Use gdb_bfd_unref.
2499 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2501 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2502 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2503 (macho_check_dsym): Likewise.
2504 * m32r-rom.c: Include gdb_bfd.h.
2505 (m32r_load): Use gdb_bfd_ref.
2506 (m32r_upload_command): Use gdb_bfd_ref.
2507 * jit.c: Include gdb_bfd.h.
2508 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2509 * gdb_bfd.h: New file.
2510 * gdb_bfd.c: New file.
2511 * gcore.c: Include gdb_bfd.h.
2512 (create_gcore_bfd): Use gdb_bfd_ref.
2513 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2514 (gcore_command): Use gdb_bfd_unref.
2515 * exec.c: Include gdb_bfd.h.
2516 (exec_close): Use gdb_bfd_unref.
2517 (exec_close_1): Use gdb_bfd_unref.
2518 (exec_file_attach): Use gdb_bfd_ref.
2519 * elfread.c: Include gdb_bfd.h.
2520 (build_id_verify): Use gdb_bfd_unref.
2521 * dsrec.c: Include gdb_bfd.h.
2522 (load_srec): Use gdb_bfd_ref.
2523 * corelow.c: Include gdb_bfd.h.
2524 (core_close): Use gdb_bfd_unref.
2525 (core_open): Use gdb_bfd_ref.
2526 * bfd-target.c: Include gdb_bfd.h.
2527 (target_bfd_xclose): Use gdb_bfd_unref.
2528 (target_bfd_reopen): Use gdb_bfd_ref.
2529 * Makefile.in (SFILES): Add gdb_bfd.c.
2530 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2531 (COMMON_OBS): Add gdb_bfd.o.
2533 2012-07-18 Keith Seitz <keiths@redhat.com>
2535 * breakpoint.c (find_condition_and_thread): Initialize
2537 (create_breakpiont): find_condition_and_thread will now
2538 initialize COND_STRING, THREAD, and REST (and TASK).
2539 (addr_string_to_sals): Likewise.
2541 2012-07-18 Pedro Alves <palves@redhat.com>
2543 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2544 Pull the single step breakpoints out of the target.
2546 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2548 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2549 * stap-probe.c (compile_probe_arg): Likewise.
2551 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2553 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2554 (elf_compile_to_ax): Likewise.
2555 * infrun.c (insert_exception_resume_from_probe): Likewise.
2556 (check_exception_resume): Remove `objfile' variable.
2557 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2558 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2559 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2560 (compare_entries): Rename to...
2561 (compare_probes): ...this. Adjust function to work with
2562 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2564 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2566 (print_ui_out_info): Adjust argument to be `struct probe *'.
2567 (info_probes_for_ops): Adjust internal computations to use
2569 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2570 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2571 gen_info_probes_table_values>: Remove `objfile' argument.
2572 (struct probe) <objfile>: New field.
2573 (find_probe_by_pc): Remove `objfile' argument.
2574 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2575 (stap_get_probe_argument_count): Likewise.
2576 (stap_get_arg): Likewise.
2577 (stap_evaluate_probe_argument): Likewise.
2578 (stap_compile_to_ax): Likewise.
2579 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2580 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2581 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2582 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2583 sym_compile_to_ax>: Likewise.
2585 2012-07-18 Terry Guo <terry.guo@arm.com>
2588 * defs.h (GDB_MI_MSG_WIDTH): New.
2589 * ser_base (ser_base_read_error_fd): New function.
2590 (do_ser_base_readchar): Poll error file descriptor as well as
2592 (generic_readchar): Refactor error handling.
2594 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2596 * NEWS: Create a new section for the next release branch.
2597 Rename the section of the current branch, now that it has
2600 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2602 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2603 * version.in: Bump version to 7.5.50.20120718-cvs.
2605 2012-07-17 Keith Seitz <keiths@redhat.com>
2607 * linespec.c (linespec_parse_line_offset): Make parameter
2610 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2613 * f-valprint.c (info_common_command): New variable frame_id.
2614 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2615 * printcmd.c (print_variable_and_value): Extend function comment.
2616 Add comment for invalidated FRAME.
2617 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2618 FI form FRAME_ID after each print_frame_local_vars.
2619 (struct print_variable_and_value_data): Change frame to frame_id.
2620 (do_print_variable_and_value): New variable frame, initialize it from
2621 p->frame_id. Add comment for invalidated FRAME.
2622 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2623 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2624 for invalidated FRAME.
2626 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2627 Pedro Alves <palves@redhat.com>
2629 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2632 2012-07-16 Tom Tromey <tromey@redhat.com>
2634 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2636 2012-07-15 Doug Evans <dje@google.com>
2638 * dwarf2read.c (stmt_list_hash): New struct.
2639 (type_unit_group): Embed "per_cu" member, remove pointer.
2640 New union member "t", move member "tus" into it, all uses updated.
2641 New member "hash", replaces member "line_offset, all uses updated.
2642 (quick_file_names): Replace member "offset" with "hash", all uses
2644 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2645 (hash_file_name_entry, eq_file_name_entry): Call them.
2646 (hash_type_unit_group, eq_type_unit_group): Ditto.
2647 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2648 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2649 (dw2_get_file_names): Update.
2650 (create_type_unit_group): Replace "per_cu" arg with "cu".
2651 All callers updated. Fix "quick" (.gdb_index) handling.
2652 (get_type_unit_group): Replace "per_cu" arg with "cu".
2653 All callers updated.
2654 (build_type_unit_groups): Don't reset tu_stats.
2656 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2657 "tab_cur_size". Change member "tab" to be a htab_t.
2658 (create_filename_seen_cache): Update.
2659 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2660 (filename_seen): Update.
2662 2012-07-13 Doug Evans <dje@google.com>
2664 * symtab.c (filename_seen): Update comment.
2666 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2667 Doug Evans <dje@google.com>
2669 * buildsym.c (end_symtab_1): Split it to ...
2670 (end_symtab_get_static_block): ... this ...
2671 (end_symtab_from_static_block): ... and this function.
2672 (end_symtab, end_expandable_symtab): Call them.
2673 * buildsym.h (end_symtab_get_static_block)
2674 (end_symtab_from_static_block): New declarations.
2675 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2676 Set its valid CU ranges.
2678 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2680 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2681 DW_OP_GNU_parameter_ref.
2683 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2685 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2686 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2688 2012-07-13 Doug Evans <dje@google.com>
2690 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2691 (filename_seen_cache): New struct.
2692 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2693 (create_filename_seen_cache): New function.
2694 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2695 (filename_seen): Delete arg "first". New arg "cache". All callers
2697 (output_source_filename_data): New struct.
2698 (output_source_filename): Delete arg "first". New arg "data".
2699 All callers updated.
2700 (sources_info): Delete local "first". New locals "data", "cleanups".
2701 Rewrite to use filename_seen_cache.
2702 (add_partial_filename_data): Delete member "first". New member
2703 "filename_seen_cache". All uses updated.
2704 (make_source_files_completion_list): Rewrite to use
2705 filename_seen_cache.
2707 2012-07-12 Doug Evans <dje@google.com>
2709 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2711 2012-07-10 Doug Evans <dje@google.com>
2714 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2715 all_type_unit_groups, type_unit_groups, tu_stats.
2716 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2717 All uses updated. Add type_unit_group to union "s".
2718 (type_unit_group): New struct.
2719 (IS_TYPE_UNIT_GROUP): New macro.
2720 (abbrev_table): Delete unused member "section".
2721 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2722 (dw2_get_cu): Assert not used with type_unit_group.
2723 (dw2_get_primary_cu): New function.
2724 (dw2_build_type_unit_groups_reader): New function.
2725 (dw2_build_type_unit_groups): New function.
2726 (dw2_get_file_names): Assert not called on type units.
2727 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2728 Redo loop to iterate over type unit groups instead of type units.
2729 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2730 (read_abbrev_offset): New function.
2731 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2733 (create_partial_symtab): New function.
2734 (process_psymtab_comp_unit_reader): Assert not used with type units.
2735 Call create_partial_symtab.
2736 (process_psymtab_type_unit): Delete.
2737 (hash_type_unit_group, eq_type_unit_group): New functions.
2738 (allocate_type_unit_groups_table): New function.
2739 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2740 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2741 (create_type_unit_group, get_type_unit_group): New functions.
2742 (tu_abbrev_offset): New struct.
2743 (sort_tu_by_abbrev_offset): New function.
2744 (add_type_unit_group_to_table): New function.
2745 (build_type_unit_groups): New function.
2746 (build_type_psymtabs_reader): New function.
2747 (build_type_psymtab_dependencies): New function.
2748 (build_type_psymtabs): Rewrite.
2749 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2750 is seen in a type unit.
2751 (process_queue): Move symtab expansion debugging printfs here.
2752 Call process_full_type_unit for type units.
2753 (compute_symtab_includes): Assert not called for type units.
2754 (process_cu_includes): Don't call compute_symtab_includes for
2756 (process_full_type_unit): New function.
2757 (process_imported_unit_die): Flag an error if called for type units.
2758 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2759 updated. Assert not called for type units.
2760 (read_file_scope): Call dwarf2_start_symtab.
2761 (setup_type_unit_groups): New function.
2762 (read_type_unit_scope): Rewrite.
2763 (abbrev_table_read_table): Initialize abbrev_table->offset.
2764 (abbrev_table_free_cleanup): New function.
2765 (dwarf2_start_symtab): New function.
2766 (load_full_type_unit): Assert not called for type unit groups.
2767 * buildsym.c (finish_block_internal): New arg "expandable".
2768 All callers updated.
2769 (start_symtab): Move most contents to ...
2770 (restart_symtab): ... here. New function.
2771 (reset_symtab_globals): New function.
2772 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2773 Call reset_symtab_globals.
2774 (end_symtab, end_expandable_symtab): New functions.
2775 (set_missing_symtab, augment_type_symtab): New functions.
2776 * buildsym.h (end_expandable_symtab): Declare.
2777 (augment_type_symtab, restart_symtab): Declare.
2778 * psympriv.h (struct partial_symtab): New member "anonymous".
2779 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2781 (read_psymtabs_with_filename): Ditto.
2782 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2783 (expand_symtabs_matching_via_partial): Ditto.
2784 (dump_psymtab): Update.
2785 * dictionary.c (dict_add_pending): New function.
2786 * dictionary.h (dict_add_pending): Declare.
2788 2012-07-09 Doug Evans <dje@google.com>
2790 * buildsym.c (start_subfile): Remove unnecessary check for
2793 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2795 * dwarf2read.c (load_full_type_unit): Simplify.
2797 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2798 to struct signatured_type **. All uses updated.
2800 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2801 All callers updated.
2803 2012-07-09 Tom Tromey <tromey@redhat.com>
2805 * c-exp.y (check_parameter_typelist): New function.
2806 (parameter_typelist): Call it.
2807 * eval.c (make_params): Handle '(void)' case.
2808 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2811 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2813 * common/linux-ptrace.c: Include gdb_assert.h.
2814 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2815 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2817 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2819 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2820 * linux-nat.c (linux_child_post_attach)
2821 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2823 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2825 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2826 nptl <2.7 bug workaround for core files.
2828 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2830 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2832 (save_siginfo): Remove.
2833 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2835 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2836 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2837 * linux-nat.h (struct lwp_info): Remove field siginfo.
2839 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2841 Code cleanup for the next patch.
2842 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2843 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2845 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2846 (ia64_linux_stopped_data_address):
2847 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2849 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2850 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2851 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2854 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2857 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2858 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2860 2012-07-06 Tom Tromey <tromey@redhat.com>
2862 * c-exp.y (DOTDOTDOT): New token.
2863 (func_mod, exp): Use parameter_typelist.
2864 (parameter_typelist): New production.
2865 (tokentab3): Add "..." token.
2866 * eval.c (make_params): Handle varargs.
2867 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2870 2012-07-06 Tom Tromey <tromey@redhat.com>
2873 * c-exp.y (%union) <tvec>: Change type.
2874 (func_mod): Now uses <tvec> type.
2875 (exp): Update for tvec change.
2876 (direct_abs_decl): Push the typelist.
2877 (func_mod): Return a typelist.
2878 (nonempty_typelist): Update for tvec change.
2879 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2880 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2881 * parse.c (pop_type_list): New function.
2882 (push_typelist): New function.
2883 (follow_types): Handle tp_function_with_arguments.
2884 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2885 (enum type_pieces) <tp_function_with_arguments>: New constant.
2886 (union type_stack_elt) <typelist_val>: New field.
2887 (push_typelist): Declare.
2889 2012-07-06 Tom Tromey <tromey@redhat.com>
2891 * c-exp.y (%union) <type_stack>: New field.
2892 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2893 (ptr_operator_ts): New production.
2895 * parse.c (type_stack_reserve): New function.
2896 (check_type_stack_depth): Use it.
2897 (pop_type_stack, append_type_stack, push_type_stack)
2898 (get_type_stack, type_stack_cleanup): New functions.
2899 (follow_types): Handle tp_type_stack.
2900 (_initialize_parse): Simplify initialization.
2901 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2903 (union type_stack_elt) <stack_val>: New field.
2904 (get_type_stack, append_type_stack, push_type_stack)
2905 (type_stack_cleanup): Declare.
2907 2012-07-06 Tom Tromey <tromey@redhat.com>
2909 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2911 (struct type_stack): New.
2912 * parse.c (type_stack, type_stack_size, type_stack_depth):
2914 (type_stack): New global.
2915 (parse_exp_in_context, check_type_stack_depth)
2916 (insert_into_type_stack, insert_type, push_type, push_type_int)
2917 (insert_type_address_space, pop_type, pop_type_int)
2918 (_initialize_parse): Update.
2920 2012-07-06 Tom Tromey <tromey@redhat.com>
2922 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2925 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2927 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2929 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2930 Jan Kratochvil <jan.kratochvil@redhat.com>
2932 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2933 alloca with xmalloc/xfree.
2935 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2937 * MAINTAINERS (Write After Approval): Add myself to the list.
2939 2012-07-05 Doug Evans <dje@google.com>
2941 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2943 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2945 * ax-gdb.c (cli/cli-utils.h): New include.
2946 (linespec.h): Ditto.
2947 (agent_eval_command_one): New function.
2948 (agent_command_1): Ditto.
2949 (agent_command): Call function agent_command_1.
2950 (agent_eval_command): Ditto.
2951 (_initialize_ax_gdb): Change help for "maint agent"
2952 and "maint agent-eval".
2954 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2956 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2957 * cli/cli-utils.c (check_for_argument): New function.
2958 * cli/cli-utils.h (check_for_argument): Ditto.
2960 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2962 * NEWS: Mention x32 ABI support.
2964 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2966 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2967 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2969 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2970 and pc_regnum_from_eax to -1. Update SP regnum from
2971 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2974 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2977 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2979 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2980 * dwarf2expr.h: Include gdbtypes.h.
2981 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2982 these forward declarations.
2983 (cu_offset, sect_offset): Move these ...
2984 * gdbtypes.h: Remove include dwarf2expr.h.
2985 (cu_offset, sect_offset): ... here.
2987 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2989 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2990 (amd64_linux_sigtramp_code): This.
2991 (amd64_x32_linux_sigtramp_code): New.
2992 (LINUX_SIGTRAMP_LEN): Updated.
2993 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2995 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2997 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2999 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3001 * config.in: Regenerate.
3002 * configure: Regenerate.
3003 * configure.ac: Remove check for gnu/libc-version.h.
3004 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3006 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3007 variables libc_version, libc_major and libc_minor. Replace sscanf by
3008 inferior_has_bug. Extend the comment.
3010 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3012 * linux-thread-db.c (inferior_has_bug): New function.
3013 (thread_db_find_new_threads_silently): Return boolean as checked by
3014 inferior_has_bug, describe it in the comments.
3015 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3016 earlier. Abort the initialization if it returned non-zero.
3017 (thread_db_new_objfile): Exclude debug files.
3018 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3021 2012-07-02 Doug Evans <dje@google.com>
3023 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3024 related to queue management.
3026 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3027 instead of "debug dwarf2-die" in debugging printfs.
3028 (create_debug_info_hash_table_reader): Ditto.
3029 (create_debug_info_hash_table): Ditto.
3030 (init_dwo_file): Ditto.
3031 (init_cutu_and_read_dies): Add debugging printf.
3032 (init_cutu_and_read_dies_no_follow): Ditto.
3033 (process_psymtab_comp_unit_reader): Ditto.
3035 2012-07-02 Stan Shebs <stan@codesourcery.com>
3037 Add target-side support for dynamic printf.
3038 * NEWS: Mention the additional style.
3039 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3040 (struct bp_location): New field cmd_bytecode.
3041 * breakpoint.c: Include format.h.
3042 (disconnected_dprintf): New global.
3043 (parse_cmd_to_aexpr): New function.
3044 (build_target_command_list): New function.
3045 (insert_bp_location): Call it.
3046 (remove_breakpoints_pid): Skip dprintf breakpoints.
3047 (print_one_breakpoint_location): Ditto.
3048 (dprintf_style_agent): New global.
3049 (dprintf_style_enums): Add dprintf_style_agent.
3050 (update_dprintf_command_list): Add agent case.
3051 (agent_printf_command): New function.
3052 (_initialize_breakpoint): Add new commands.
3053 * common/ax.def (printf): New bytecode.
3054 * ax.h (ax_string): Declare.
3055 * ax-gdb.h (gen_printf): Declare.
3056 * ax-gdb.c: Include cli-utils.h, format.h.
3057 (gen_printf): New function.
3058 (maint_agent_print_command): New function.
3059 (_initialize_ax_gdb): Add maint agent-printf command.
3060 * ax-general.c (ax_string): New function.
3061 (ax_print): Add printf disassembly.
3062 * Makefile.in (SFILES): Add format.c
3063 (COMMON_OBS): Add format.o.
3064 * common/format.h: New file.
3065 * common/format.c: New file.
3066 * printcmd.c: Include format.h.
3067 (ui_printf): Call parse_format_string.
3068 * remote.c (remote_state): New field breakpoint_commands.
3069 (PACKET_BreakpointCommands): New enum.
3070 (remote_breakpoint_commands_feature): New function.
3071 (remote_protocol_features): Add new BreakpointCommands entry.
3072 (remote_can_run_breakpoint_commands): New function.
3073 (remote_add_target_side_commands): New function.
3074 (remote_insert_breakpoint): Call it.
3075 (remote_insert_hw_breakpoint): Ditto.
3076 (_initialize_remote): Add new packet configuration for
3077 target-side breakpoint commands.
3078 * target.h (struct target_ops): New field
3079 to_can_run_breakpoint_commands.
3080 (target_can_run_breakpoint_commands): New macro.
3081 * target.c (update_current_target): Handle
3082 to_can_run_breakpoint_commands.
3084 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3086 Execute -ix and -iex only after system and user gdbinit files.
3087 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3088 processing down after gdbinit files.
3090 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3092 Add fnmatch-gnu module.
3093 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3094 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3095 * gnulib/aclocal.m4: Regenerate.
3096 * gnulib/config.in: Regenerate.
3097 * gnulib/configure: Regenerate.
3098 * gnulib/import/dummy.c: Remove.
3099 * gnulib/import/Makefile.am: Regenerate.
3100 * gnulib/import/Makefile.in: Likewise.
3101 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3102 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3103 * gnulib/import/alloca.c: New file.
3104 * gnulib/import/alloca.in.h: Likewise.
3105 * gnulib/import/config.charset: Likewise.
3106 * gnulib/import/fnmatch.c: Likewise.
3107 * gnulib/import/fnmatch.in.h: Likewise.
3108 * gnulib/import/fnmatch_loop.c: Likewise.
3109 * gnulib/import/localcharset.c: Likewise.
3110 * gnulib/import/localcharset.h: Likewise.
3111 * gnulib/import/m4/alloca.m4: Likewise.
3112 * gnulib/import/m4/codeset.m4: Likewise.
3113 * gnulib/import/m4/configmake.m4: Likewise.
3114 * gnulib/import/m4/fcntl-o.m4: Likewise.
3115 * gnulib/import/m4/fnmatch.m4: Likewise.
3116 * gnulib/import/m4/glibc21.m4: Likewise.
3117 * gnulib/import/m4/localcharset.m4: Likewise.
3118 * gnulib/import/m4/locale-fr.m4: Likewise.
3119 * gnulib/import/m4/locale-ja.m4: Likewise.
3120 * gnulib/import/m4/locale-zh.m4: Likewise.
3121 * gnulib/import/m4/mbrtowc.m4: Likewise.
3122 * gnulib/import/m4/mbsinit.m4: Likewise.
3123 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3124 * gnulib/import/m4/mbstate_t.m4: Likewise.
3125 * gnulib/import/m4/stdbool.m4: Likewise.
3126 * gnulib/import/m4/wchar_h.m4: Likewise.
3127 * gnulib/import/m4/wctype_h.m4: Likewise.
3128 * gnulib/import/m4/wint_t.m4: Likewise.
3129 * gnulib/import/mbrtowc.c: Likewise.
3130 * gnulib/import/mbsinit.c: Likewise.
3131 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3132 * gnulib/import/mbsrtowcs-state.c: Likewise.
3133 * gnulib/import/mbsrtowcs.c: Likewise.
3134 * gnulib/import/ref-add.sin: Likewise.
3135 * gnulib/import/ref-del.sin: Likewise.
3136 * gnulib/import/stdbool.in.h: Likewise.
3137 * gnulib/import/streq.h: Likewise.
3138 * gnulib/import/strnlen1.c: Likewise.
3139 * gnulib/import/strnlen1.h: Likewise.
3140 * gnulib/import/verify.h: Likewise.
3141 * gnulib/import/wchar.in.h: Likewise.
3142 * gnulib/import/wctype.in.h: Likewise.
3144 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3146 Support shell wildcards for 'set auto-load safe-path'.
3147 * auto-load.c: Include fnmatch.h.
3148 (filename_is_in_dir): Rename to ...
3149 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3150 it. Update function comment. Rename dir_len to pattern_len. New
3151 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3152 messages. Use gdb_filename_fnmatch.
3153 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3155 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3156 * defs.h (gdb_filename_fnmatch): New declaration.
3157 * utils.c: Include fnmatch.h.
3158 (gdb_filename_fnmatch): New function.
3160 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3162 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3163 `-probe' and `-probe-stap' options.
3165 2012-07-01 Yao Qi <yao@codesourcery.com>
3167 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3168 always_inserted_off, and always_inserted_enums.
3169 Change always_inserted_mode's type to 'enum auto_boolean'.
3170 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3172 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3173 of add_setshow_enum_cmd.
3174 * infrun.c: Remove can_use_displaced_stepping_auto,
3175 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3176 can_use_displaced_stepping_enum.
3177 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3178 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3179 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3180 add_setshow_enum_cmd.
3182 2012-06-30 Doug Evans <dje@google.com>
3184 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3185 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3186 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3188 2012-06-29 Doug Evans <dje@google.com>
3190 * linespec.c: #include "stack.h".
3191 (decode_line_with_current_source): Moved here from symtab.c and
3192 renamed from decode_line_spec. All callers updated.
3193 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3194 renamed from decode_line_spec_1. All callers updated.
3195 * linespec.h (decode_line_with_current_source): Move declaration here
3196 from symtab.h and renamed from decode_line_spec.
3197 (decode_line_with_last_displayed): Move declaration here from symtab.h
3198 and renamed from decode_line_spec_1.
3199 * macrocmd.c: #include "linespec.h".
3200 * symtab.c: Remove #include "linespec.h".
3202 2012-06-28 Doug Evans <dje@google.com>
3204 * dwarf2read.c (get_cu_length): New function.
3205 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3206 (create_debug_types_hash_table): Ditto.
3207 (init_cutu_and_read_dies): Ditto.
3208 (init_cutu_and_read_dies_no_follow): Ditto.
3210 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3212 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3213 (struct abbrev_table): Define.
3214 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3216 (init_cutu_and_read_dies): Update.
3217 (abbrev_table_alloc_abbrev): New function. Replaces
3218 dwarf_alloc_abbrev. All callers updated.
3219 (abbrev_table_add_abbrev): New function.
3220 (abbrev_table_lookup_abbrev): New function. Replaces
3221 dwarf2_lookup_abbrev. All callers updated.
3222 (abbrev_table_read_table): New function. Contents moved here from
3223 dwarf2_read_abbrevs.
3224 (dwarf2_read_abbrevs): Call it.
3225 (abbrev_table_free): New function.
3226 (dwarf2_free_abbrev_table): Call it.
3228 2012-06-28 Stan Shebs <stan@codesourcery.com>
3230 * osdata.c (info_osdata_command): Filter out "Title" columns
3232 * common/linux-osdata.c (struct osdata_type): Add title field.
3233 (osdata_table): Add titles to each entry.
3234 (linux_command_xfer_osdata): Add a column for title data.
3236 2012-06-28 Stan Shebs <stan@codesourcery.com>
3238 Make logging work for MI.
3240 * interps.h (interp_set_logging_ftype): New typedef.
3241 (struct interp_procs): New field set_logging_proc.
3242 (current_interp_set_logging): Declare.
3243 * interps.c (current_interp_set_logging): New function.
3244 * cli/cli-logging.c: Include interps.h.
3245 (set_logging_redirect): Call current_interp_set_logging.
3246 (pop_output_files): Ditto.
3247 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3248 * mi/mi-console.h (mi_console_set_raw): Declare.
3249 * mi/mi-console.c (mi_console_set_raw): New function.
3250 * mi/mi-interp.c (saved_raw_stdout): New global.
3251 (mi_set_logging): New function.
3252 (_initialize_mi_interp): Add it to interp procs.
3254 2012-06-28 Doug Evans <dje@google.com>
3256 * symtab.c (lookup_symbol_aux_objfile): Use
3257 ALL_OBJFILE_PRIMARY_SYMTABS.
3259 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3261 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3263 * common/buffer.c: Include inttypes.h and stdint.h.
3264 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3266 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3267 Pedro Alves <palves@redhat.com>
3269 * gdbthread.h (ALL_THREADS): New macro.
3270 (thread_list): Declare.
3271 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3272 going, but instead fall through to the stepping handling.
3273 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3274 the passed in signal. Adjust debug output.
3275 (resume_callback): Rename to ...
3276 (linux_nat_resume_callback): ... this. Pass the thread's last
3277 stop signal, if in "pass" state.
3278 (linux_nat_resume): Adjust to rename.
3279 (stop_wait_callback): New assertion. Don't respawn signals;
3280 instead let the LWP remain with SIGNALLED set.
3281 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3282 * remote.c (append_pending_thread_resumptions): New.
3283 (remote_vcont_resume): Call it.
3284 * target.h (target_resume): Extend comment.
3286 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3288 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3290 2012-06-27 Doug Evans <dje@google.com>
3292 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3293 Delete have_addr_base, unused. All uses updated.
3294 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3295 (dwarf2_get_pc_bounds): Add ranges_base.
3296 (dwarf2_record_block_ranges): Ditto.
3298 2012-06-27 Tom Tromey <tromey@redhat.com>
3301 * varobj.c (varobj_create): Update.
3302 (varobj_set_value): Update.
3303 * tracepoint.c (validate_actionline): Update.
3304 (encode_actions_1): Update.
3305 * parse.c (parse_exp_1): Add 'pc' argument.
3306 (parse_exp_in_context): Add 'pc' argument. Change how
3307 expression_context_pc is set.
3308 (parse_expression): Update.
3309 (parse_field_expression): Update.
3310 * expression.h (parse_exp_1): Update.
3311 * eval.c (parse_to_comma_and_eval): Update.
3312 * breakpoint.c (set_breakpoint_condition): Update.
3313 (update_watchpoint): Update.
3314 (init_breakpoint_sal): Update
3315 (find_condition_and_thread): Update.
3316 (watch_command_1): Update.
3317 (update_breakpoint_locations): Update.
3318 * ada-lang.c (ada_read_renaming_var_value): Update.
3319 (create_excep_cond_exprs): Update.
3321 2012-06-27 Doug Evans <dje@google.com>
3323 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3326 2012-06-26 Doug Evans <dje@google.com>
3328 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3330 (error_check_comp_unit_head): New arg abbrev_section. All callers
3332 (read_and_check_comp_unit_head): Ditto.
3333 (read_and_check_type_unit_head): Ditto.
3335 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3337 New attribute 'last' for gdb.Symtab_and_line.
3338 * NEWS (Python Scripting): Add entry about the new attribute.
3339 * python/py-symtab.c (salpy_get_last): New function which
3340 implements the get method for the 'last' attribute of
3341 gdb.Symtab_and_line.
3342 (sal_object_getset): Add entry for the 'last' attribute.
3344 2012-06-26 Doug Evans <dje@google.com>
3346 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3347 (dwo_sections): Add macinfo, macro.
3348 (dwarf2_locate_dwo_sections): Watch for macro sections.
3349 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3350 All callers updated. Handle DWO files.
3352 * NEWS: Mention new options "set debug dwarf2-read" and
3353 "set debug symtab-create".
3354 * dwarf2read.c (dwarf2_read_debug): New static global.
3355 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3356 (process_queue): Ditto.
3357 (process_full_comp_unit): Ditto.
3358 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3359 * elfread.c (elf_symfile_read): Add debugging printf.
3360 * minsyms.c (install_minimal_symbols): Ditto.
3361 * psymtab.c (allocate_psymtab): Ditto.
3362 * symfile.c (allocate_symtab): Ditto.
3363 * symtab.c (symtab_create_debug): New global.
3364 (_initialize_symtab): Add new option "set debug symtab-create".
3365 * symtab.h (symtab_create_debug): Declare.
3367 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3368 (lookup_dwo_type_unit): Ditto.
3370 2012-06-26 Roland McGrath <roland@hack.frob.com>
3371 H.J. Lu <hongjiu.lu@intel.com>
3373 * amd64-linux-nat.c: Include <sys/user.h>.
3374 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3375 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3376 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3378 * configure.ac: Check if the fs_base and gs_base members of
3379 `struct user_regs_struct' exist.
3380 * config.in: Regenerated.
3381 * configure: Likewise.
3383 2012-06-25 Michael Eager <eager@eagercon.com>
3386 * python/python.c (gdbpy_write): Check for interrupted output.
3388 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3390 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3391 register as a stack alignment in ARM mode.
3393 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3395 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3396 * gnulib/config.in: Regenerate.
3397 * gnulib/configure: Likewise.
3398 * gnulib/import/m4/extensions.m4: Update it.
3399 * gnulib/import/m4/gnulib-common.m4: Likewise.
3400 * gnulib/import/m4/memmem.m4: Likewise.
3401 * gnulib/import/m4/mmap-anon.m4: Likewise.
3402 * gnulib/import/m4/multiarch.m4: Likewise.
3403 * gnulib/import/stdint.in.h: Likewise.
3405 2012-06-24 Yao Qi <yao@codesourcery.com>
3407 * corefile.c (write_memory_with_notification): New.
3408 * gdbcore.h: Declare write_memory_with_notification.
3409 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3410 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3411 * valops.c (value_assign): Likewise.
3412 * python/py-inferior.c (infpy_write_memory): Call
3413 'write_memory_with_notification'.
3415 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3417 * cc-with-index.sh: Use also -ex "set auto-load no".
3419 2012-06-23 Doug Evans <dje@google.com>
3422 * NEWS: Document additions to .gdb_index.
3423 * dwarf2read.c: #include "gdb/gdb-index.h".
3424 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3425 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3426 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3427 (dwarf2_read_index): Recognize version 7.
3428 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3429 block_kind, domain): All callers updated.
3430 (dw2_find_symbol_file): Handle new index CU values.
3431 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3432 (add_index_entry): New args is_static, kind. All callers updated.
3433 (offset_type_compare, uniquify_cu_indices): New functions
3434 (symbol_kind): New function.
3435 (write_psymtabs_to_index): Remove duplicate CU values.
3436 (write_psymtabs_to_index): Write .gdb_index version 7.
3438 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3440 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3441 * configure: Regenerate.
3443 2012-06-20 Yao Qi <yao@codesourcery.com>
3445 * python/py-inferior.c: Update comments of infpy_read_memory
3446 and infpy_write_memory.
3448 2012-06-19 Tom Tromey <tromey@redhat.com>
3451 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3452 (push_type_address_space): Remove.
3453 * parse.c (insert_into_type_stack): New function.
3454 (insert_type): Likewise.
3455 (insert_type_address_space): Rename from push_type_address_space.
3456 Insert tp_space_identifier.
3457 * c-exp.y (ptr_operator): New production.
3458 (abs_decl): Use ptr_operator.
3459 (space_identifier): Call insert_type_address_space.
3460 (ptype): Don't use const_or_volatile_or_space_identifier.
3461 (const_or_volatile_noopt): Call insert_type.
3462 (conversion_type_id, conversion_declarator): New productions.
3463 (operator): Use conversion_type_id.
3465 2012-06-18 Doug Evans <dje@google.com>
3467 * symtab.h (minimal_symbol): New member created_by_gdb.
3468 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3470 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3471 (search_symbols): Call it instead of lookup_symbol.
3472 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3474 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3475 Adjust address for DW_OP_GNU_addr_index.
3476 * dwarf2expr.h (dwarf_expr_context): Update comment.
3477 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3478 all callers updated. Handle TLS vars described with
3479 DW_OP_GNU_const_index.
3480 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3481 and DW_OP_GNU_const_index.
3482 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3484 * block.c (find_block_in_blockvector): Make explicit the fact that we
3485 ignore GLOBAL_BLOCK.
3487 2012-06-18 Tom Tromey <tromey@redhat.com>
3489 * c-exp.y (operator): Remove trailing space after "delete" and
3492 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3493 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 Switch i386 and derived targets to ON_STACK.
3496 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3497 (amd64_dicos_init_abi): Remove its installment.
3498 * dicos-tdep.c (dicos_init_abi): Remove the
3499 set_gdbarch_call_dummy_location call. Update the comment here.
3500 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3501 (i386_dicos_init_abi): Remove its installment.
3502 * i386-tdep.c (i386_push_dummy_code): New function.
3503 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3504 i386_push_dummy_code.
3506 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3508 Remove stale dummy frames.
3509 * breakpoint.c: Include dummy-frame.h.
3510 (longjmp_breakpoint_ops): New variable.
3511 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3512 bp_longjmp_call_dummy.
3513 (bpstat_what, bptype_string, print_one_breakpoint_location)
3514 (init_bp_location): Support bp_longjmp_call_dummy.
3515 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3516 (set_longjmp_breakpoint_for_call_dummy)
3517 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3519 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3520 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3521 FIXME comment and extend the other comment for bp_call_dummy.
3522 (set_longjmp_breakpoint_for_call_dummy)
3523 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3524 * dummy-frame.c: Include gdbthread.h.
3525 (pop_dummy_frame_bpt): New function.
3526 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3527 (dummy_frame_discard): New function.
3528 (cleanup_dummy_frames): Update the comment about longjmps.
3529 * dummy-frame.h (dummy_frame_discard): New declaration.
3530 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3531 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3532 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3533 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3534 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3535 keep_going if IS_LONGJMP and there is no other reason to stop.
3537 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3539 * remote-sim.c (sim_command_completer): Initialize
3542 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3544 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3545 * dwarf2loc.c (call_site_parameter_matches): Support
3546 CALL_SITE_PARAMETER_PARAM_OFFSET.
3547 (needs_dwarf_reg_entry_value): Push stub value.
3548 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3549 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3550 * gdbtypes.h (enum call_site_parameter_kind): New item
3551 CALL_SITE_PARAMETER_PARAM_OFFSET.
3552 (struct call_site.parameter.u): New field param_offset.
3554 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3556 Code cleanup: Generalize call_site.parameter key.
3557 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3558 variable dwarf_reg. New variable kind_u. Update parameters to
3559 push_dwarf_reg_entry_value.
3560 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3561 * dwarf2expr.h (enum call_site_parameter_kind)
3562 (union call_site_parameter_u): Forward declarations.
3563 (struct dwarf_expr_context_funcs): Update parameters and their
3564 description for push_dwarf_reg_entry_value.
3565 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3566 * dwarf2loc.c (call_site_parameter_matches): New function.
3567 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3568 description. Use call_site_parameter_matches.
3569 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3570 Update parameters and their description.
3571 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3572 New variable kind_u. Adjust the caller for updated parameters.
3573 (needs_dwarf_reg_entry_value): Update parameters.
3574 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3575 instead of attr. Update for the changed fields of struct
3576 call_site_parameter.
3577 * gdbtypes.h: Include dwarf2expr.h.
3578 (enum call_site_parameter_kind): New.
3579 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3580 fb_offset into new union u.
3582 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3584 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3585 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3588 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3590 * amd64-linux-nat.c (compat_x32_clock_t): New.
3591 (compat_x32_siginfo_t): Likewise.
3592 (compat_x32_siginfo_from_siginfo): Likewise.
3593 (siginfo_from_compat_x32_siginfo): Likewise.
3594 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3595 and siginfo_from_compat_x32_siginfo for x32.
3597 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3599 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3601 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3603 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3604 instead of gdbarch_ptr_bit.
3605 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3606 (amd64_supply_native_gregset): Likewise.
3607 (amd64_collect_native_gregset): Likewise.
3608 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3609 (amd64_supply_xsave): Likewise.
3610 (amd64_collect_fxsave): Likewise.
3611 (amd64_collect_xsave): Likewise.
3613 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3615 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3616 (amd64_linux_read_description): Check DS segment register for
3619 2012-06-15 Tom Tromey <tromey@redhat.com>
3621 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3622 init_cutu_and_read_dies.
3624 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3626 * MAINTAINERS (Write After Approval): Add myself to the list.
3628 2012-06-15 Tom Tromey <tromey@redhat.com>
3630 * valops.c (value_find_oload_method_list): Now static.
3631 * value.h (value_find_oload_method_list): Don't declare.
3633 2012-06-15 Tom Tromey <tromey@redhat.com>
3635 * valops.c (find_overload_match): Use value_ind.
3637 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3639 * infrun.c (handle_inferior_event): Correct indentation.
3641 2012-06-14 Doug Evans <dje@google.com>
3643 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3644 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3646 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3647 updated. Handle DEBUG_LOC_START_LENGTH.
3648 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3649 (loclist_describe_location): Ditto.
3651 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3654 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3655 after hiding inline functions.
3657 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3659 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3660 _initialize_inf_ttrace.
3662 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3664 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3665 _initialize_hppa_hpux_nat.
3667 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3669 * remote-sim.c (sim_command_completer): Change type of return
3670 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3672 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3673 Jan Kratochvil <jan.kratochvil@redhat.com>
3676 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3677 stack on a 16-byte boundary.
3679 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3681 * jit.c (finalize_symtab): Set function's return type to 'void' by
3684 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3685 H.J. Lu <hongjiu.lu@intel.com>
3687 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3688 Move bits common to both the classic LP64 and the new x32 ILP32
3690 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3691 (amd64_x32_linux_init_abi): New function.
3692 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3695 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3696 * i386-tdep.c (i386_pseudo_register_name): Make public.
3697 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3698 * amd64-tdep.c (amd64_dword_names): Add "eip".
3699 (amd64_x32_pseudo_register_type): New function
3700 (amd64_x32_init_abi): New function.
3702 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3705 * inferior.h (struct inferior_suspend_state): Comment out.
3706 (struct inferior): Comment out the field suspend.
3707 * infrun.c (struct infcall_suspend_state): Comment out the field
3709 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3712 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3714 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3715 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3716 function comment. Return ERROR for unresolved cases. Implement
3717 returning proper NAME.
3718 (yylex): Accept also NAME from classify_inner_name.
3719 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3720 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3722 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3724 2012-06-13 Tom Tromey <tromey@redhat.com>
3726 * breakpoint.c (condition_completer): New function.
3727 (_initialize_breakpoint): Use it.
3728 * value.c (complete_internalvar): New function.
3729 * value.h (complete_internalvar): Declare.
3731 2012-06-13 Tom Tromey <tromey@redhat.com>
3733 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3734 * breakpoint.c (catch_syscall_completer): Return a VEC.
3735 * cli/cli-cmds.c (complete_command): Update.
3736 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3737 (complete_on_enum): Likewise.
3738 * command.h: Include gdb_vecs.h.
3739 (completer_ftype): Change return type.
3740 (complete_on_cmdlist, complete_on_enum): Likewise.
3741 * completer.c (noop_completer, filename_completer)
3742 (location_completer): Return a VEC.
3743 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3745 (expression_completer, complete_line_internal, complete_line)
3746 (command_completer): Return a VEC.
3747 (gdb_completion_word_break_characters, line_completion_function):
3749 * completer.h: Include gdb_vecs.h.
3750 (complete_line, noop_completer, filename_completer)
3751 (expression_completer, location_completer, command_completer):
3753 * f-lang.c (f_word_break_characters): Return a VEC.
3754 * interps.c (interpreter_completer): Return a VEC.
3755 * language.h (struct language_defn)
3756 <la_make_symbol_completion_list>: Return a VEC.
3757 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3758 * symtab.c (free_completion_list): Take a VEC.
3759 (return_val_size, return_val_index): Remove.
3760 (return_val): Now a VEC.
3761 (completion_list_add_name): Update.
3762 (default_make_symbol_completion_list_break_on)
3763 (default_make_symbol_completion_list, make_symbol_completion_list)
3764 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3766 (add_filename_to_list): Update.
3767 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3769 (maybe_add_partial_symtab_filename): Update.
3770 (make_source_files_completion_list): Return a VEC.
3771 * symtab.h (default_make_symbol_completion_list_break_on)
3772 (default_make_symbol_completion_list, make_symbol_completion_list)
3773 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3774 (make_source_files_completion_list): Update.
3776 2012-06-13 Tom Tromey <tromey@redhat.com>
3778 * breakpoint.c (add_catch_command): Use completer_ftype.
3779 * breakpoint.h: Include command.h.
3780 (add_catch_command): Use completer_ftype.
3781 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3782 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3783 Use completer_ftype.
3784 * command.h (completer_ftype): New typedef.
3785 (set_cmd_completer): Use it.
3786 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3789 2012-06-13 Pedro Alves <palves@redhat.com>
3791 Partial revert of previous change.
3793 * serial.c (scb_base): New global.
3794 (serial_for_fd): New.
3795 (serial_open, serial_fdopen_ops): Link new serial in open serials
3797 (do_serial_close): Unlink serial from the open serials chain.
3799 2012-06-12 Pedro Alves <palves@redhat.com>
3801 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3803 (prepare_for_detach): No longer context switch here in non-stop
3805 (fetch_inferior_event): Ditto.
3806 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3807 to the event thread before removing breakpoints. Switch to the
3808 event thread before inserting breakpoints and resuming.
3809 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3810 event thread before resuming.
3811 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3812 Switch to the event thread before removing breakpoints.
3814 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3816 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3817 special characters correctly for the Windows shells. See
3818 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3820 [!__MINGW32__]: Remove extra double quote character from special
3823 2012-06-11 Stan Shebs <stan@codesourcery.com>
3825 * ui-out.h: Remove #if 0 declarations.
3826 * ui-out.c: Remove #if 0 functions.
3828 2012-06-11 Pedro Alves <palves@redhat.com>
3830 * ser-base.c (run_async_handler_and_reschedule): New.
3831 (fd_event, push_event): Use it.
3832 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3833 reference count to 1.
3834 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3836 (serial_is_open, serial_ref, serial_unref): New.
3837 * serial.h (serial_open): Adjust comment.
3838 (serial_is_open): Declare.
3839 (serial_close): Adjust comment.
3840 (serial_ref, serial_unref) Declare.
3841 (struct serial): New field 'refcnt'.
3843 2012-06-11 Pedro Alves <palves@redhat.com>
3845 Remove #if 0'd "connect" command, and unnecessary associated
3846 refcounting and serial reuse bits.
3848 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3849 * serial.c (last_serial_opened): Delete.
3851 (serial_open): Adjust.
3852 (serial_for_fd): Delete.
3853 (serial_fdopen_ops, do_serial_close): Adjust.
3854 (serial_fdopen_ops): Adjust.
3856 2012-06-11 Pedro Alves <palves@redhat.com>
3858 * serial.c (do_serial_close): Remove early return when SCB is
3861 2012-06-11 Tom Tromey <tromey@redhat.com>
3863 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3865 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3867 Fix regression by the "ambiguous linespec" series.
3868 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3869 get_last_displayed_symtab and get_last_displayed_line and depending
3872 2012-06-11 Tom Tromey <tromey@redhat.com>
3874 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3875 (dw2_find_symbol_file): Use it.
3877 2012-06-11 Michael Eager <eager@eagercon.com>
3879 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3880 * mips-linux-tdep.h (mips_signals): New
3882 2012-06-11 Tom Tromey <tromey@redhat.com>
3884 * infrun.c (handle_inferior_event)
3885 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3887 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3888 exception logic in all cases. Update comments.
3889 (insert_longjmp_resume_breakpoint): Set the exception resume
3892 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3894 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3896 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3898 * valarith.c (binop_types_user_defined_p): Fix a typo.
3900 2012-06-08 Yao Qi <yao@codesourcery.com>
3901 Chung-Lin Tang <cltang@codesourcery.com>
3903 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3904 * arch-utils.h: Declare.
3905 * gdbarch.sh: Add return_in_first_hidden_param_p.
3906 * gdbarch.c, gdbarch.h: Regenerated.
3907 * infcall.c (call_function_by_hand): Call
3908 gdbarch_return_in_first_hidden_param_p instead of
3909 language_pass_by_reference.
3911 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3912 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3913 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3914 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3915 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3916 `cplus_return_struct_by_reference'.
3917 (tic6x_return_value): Handle language cplusplus.
3918 (tic6x_return_in_first_hidden_param_p): New.
3919 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3921 2012-06-07 Doug Evans <dje@google.com>
3923 * dwarf2read.c (dwarf2_cu): Add comment.
3925 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3927 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3929 (mips_eabi_push_dummy_call): Likewise.
3930 (mips_n32n64_push_dummy_call): Likewise.
3931 (mips_o32_push_dummy_call): Likewise.
3932 (mips_o64_push_dummy_call): Likewise.
3934 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3936 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3938 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3940 * mips-tdep.c (mips_pseudo_register_type): Use
3941 mips_float_register_p.
3943 2012-06-06 Pedro Alves <palves@redhat.com>
3945 * infrun.c (handle_inferior_event): Remove calls to
3946 reinit_frame_cache that follow a context_switch call.
3948 2012-06-06 Pedro Alves <palves@redhat.com>
3950 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3951 context_switch and remove stale comment.
3953 2012-06-06 Pedro Alves <palves@redhat.com>
3955 * infrun.c (struct execution_control_state): Remove
3956 `new_thread_event' field.
3957 (handle_inferior_event): Simplify new threads handling; don't
3958 resume the inferior if we find a new thread.
3960 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3962 * NEWS: Document the deprecation of SH's 'regs' command.
3963 * inferior.h (all_registers_info): Add function declaration.
3964 * sh-tdep.c (sh_show_regs): Remove variable.
3965 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3966 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3967 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3968 (sh_show_regs_command): Remove functions.
3969 (sh_gdbarch_init): Don't set sh_show_regs.
3970 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3971 'info all-registers'.
3972 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3973 (sh64_show_regs): Remove functions.
3974 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3976 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3978 * configure.ac: Move development=true below AC_INIT.
3979 * configure: Regenerate.
3981 2012-06-05 Stan Shebs <stan@codesourcery.com>
3983 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3986 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3988 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3989 argument as ssize_t.
3990 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3991 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3992 * target.c (target_read_stack, target_write_memory)
3993 (target_write_raw_memory): Likewise.
3994 * target.h (target_read_stack, target_write_memory)
3995 (target_write_raw_memory): Likewise.
3997 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3999 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4000 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4001 * target.c (target_read_memory): Change LEN to ssize_t.
4002 * target.h (target_read_memory): Change LEN to ssize_t.
4004 2012-06-05 Pedro Alves <palves@redhat.com>
4008 * breakpoint.c (until_break_command): Only fetch the selected
4009 frame after decode_line_1.
4011 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4013 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4014 event breakpoint at _start, __start or main if a program
4015 interpreter is not found.
4017 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4019 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4021 * windows-tdep.c: #include "objfiles.h".
4022 (windows_iterate_over_objfiles_in_search_order): New function.
4023 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4024 iterate_over_objfiles_in_search_order gdbarch method to
4025 windows_iterate_over_objfiles_in_search_order.
4026 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4028 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4030 * gdbarch.sh: Add generation of
4031 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4032 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4033 (iterate_over_objfiles_in_search_order): New gdbarch method.
4034 * gdbarch.h, gdbarch.c: Regenerate.
4035 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4037 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4039 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4040 out of lookup_symbol_aux_symtabs.
4041 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4042 call to lookup_symbol_aux_objfile.
4043 (struct global_sym_lookup_data): New type.
4044 (lookup_symbol_global_iterator_cb): New function.
4045 (lookup_symbol_global): Search for symbol using
4046 gdbarch_iterate_over_objfiles_in_search_order and
4047 lookup_symbol_global_iterator_cb.
4048 * findvar.c (struct minsym_lookup_data): New type.
4049 (minsym_lookup_iterator_cb): New function.
4050 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4051 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4052 and minsym_lookup_iterator_cb.
4054 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4056 Revert the following patch:
4057 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4058 try locating the symbol in the symbol's own objfile first, before
4059 extending the search to all objfiles.
4060 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4061 out of lookup_symbol_aux_symtabs.
4062 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4063 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4064 Do not search EXCLUDE_OBJFILE.
4065 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4066 (lookup_symbol_global): Search for matches in the block's objfile
4067 first, before searching all other objfiles.
4069 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4071 * breakpoint.c (find_condition_and_thread): Stop parsing
4072 as soon as the first invalid keyword is found.
4074 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4076 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4078 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4080 * config/djgpp/djcheck.sh: Add copyright header.
4082 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4084 * copyright.py (update_files, main): Fix path to update-copyright
4087 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4089 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4090 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4091 for which a reminder to update by hand is printed.
4093 2012-06-04 Doug Evans <dje@google.com>
4095 * buildsym.c (make_blockvector): Add comment.
4097 2012-06-04 Pedro Alves <palves@redhat.com>
4099 * arch-utils.c (default_gdb_signal_from_target): Delete.
4100 * arch-utils.h (default_gdb_signal_from_target): Delete.
4101 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4102 gdbarch_gdb_signal_from_target_p.
4103 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4105 * gdbarch.h: Regenerate.
4106 * gdbarch.c: Regenerate.
4108 2012-06-04 Pedro Alves <palves@redhat.com>
4110 * gdbarch.sh (gdb_signal_from_target): Mention that the
4111 implementation of the method must be host independent.
4112 * gdbarch.h: Regenerate.
4114 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4116 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4118 (target_read_memory_bfd): New function.
4119 (symbol_file_add_from_memory): Use it.
4121 2012-06-03 Doug Evans <dje@google.com>
4123 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4125 (basic_lookup_transparent_type): Ditto.
4127 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4128 (ALL_PRIMARY_SYMTABS): Use it.
4129 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4130 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4131 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4132 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4133 (basic_lookup_transparent_type): Ditto.
4135 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4137 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4138 it to optimize resolution of demangled name.
4140 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4142 * configure.ac (development): Define new variable.
4143 Call AC_CHECK_LIB for mcheck if $development.
4144 (ERROR_ON_WARNING): Enable it by default only if $development.
4145 * config.in: Regenerate.
4146 * configure: Regenerate.
4148 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4150 * target.c (target_read_memory): Make LEN argument as size_t.
4151 * target.h (target_read_memory): Likewise.
4153 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4155 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4157 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4159 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4160 BookE interface for PowerPC server processors if not available
4161 in the Linux Kernel.
4163 2012-05-31 Keith Seitz <keiths@redhat.com>
4165 * linespec.c (decode_objc): Add cleanup to free
4167 (find_linespec_symbols): Add cleanup to free CLASSES.
4168 * symfile.c (find_separate_debug_file_by_debuglink): Add
4169 cleanup to free DEBUGLINK.
4170 * ui-out.c (clear_header_list): No need to check if
4171 HEADER_NEXT.COLHDR is NULL.
4172 Free HEADER_NEXT.COL_NAME.
4174 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4176 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4179 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4181 * configure.host (gdb_host_cpu): Handle tilegx*.
4182 (gdb_host): Handle tilegx-*-linux*.
4183 * tilegx-linux-nat.c: New file.
4184 * config/tilegx/linux.mh: New file.
4186 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4188 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4189 tilegx-linux-tdep.o.
4190 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4191 tilegx-linux-tdep.c.
4192 * configure.tgt: Handle tilegx-*-linux*.
4193 * tilegx-tdep.h: New file.
4194 * tilegx-tdep.c: New file.
4195 * tilegx-linux-tdep.c: New file.
4196 * regformats/reg-tilegx.dat: New file.
4198 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4200 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4201 accounting of hw watchpoints on ppc.
4203 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4205 * source.c (openp): Expand tilde in path entries.
4207 2012-05-29 Doug Evans <dje@google.com>
4209 * buildsym.c (block_compar): Fix comment.
4210 (end_symtab): Fix and clarify some comments.
4212 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4213 cleanup_undefined_types.
4214 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4215 All callers updated.
4217 2012-05-29 Tom Tromey <tromey@redhat.com>
4219 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4221 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4222 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4224 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4227 2012-05-29 Tristan Gingold <gingold@adacore.com>
4229 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4230 (struct darwin_info): ... New struct.
4231 (solib_darwin_pspace_data): New variable.
4232 (darwin_pspace_data_cleanup): New function.
4233 (get_darwin_info): Likewise.
4234 (darwin_dyld_version_ok, darwin_load_image_infos)
4235 (darwin_solib_get_all_image_info_addr_at_init)
4236 (darwin_solib_read_all_image_info_addr): Add info argument.
4238 (darwin_current_sos): Use per pspace structure.
4239 (darwin_solib_create_inferior_hook): Likewise.
4240 (darwin_clear_solib): Likewise.
4241 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4243 2012-05-28 Pedro Alves <palves@redhat.com>
4245 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4246 block that uses them. Clear ecss before handling each event.
4248 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4250 * solib-svr4.c (svr4_current_sos): New comment on
4251 svr4_current_sos_via_xfer_libraries fall back.
4253 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4255 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4256 it as a fallback for TYPE_IS_OPAQUE.
4257 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4258 symbols for lookup_symbol.
4260 2012-05-24 John Steele Scott <toojays@toojays.net>
4262 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4263 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4264 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4265 (check_producer): ... this new function, which also checks for ICC
4266 and caches the result.
4267 (producer_is_icc): New function.
4268 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4271 2012-05-24 Pedro Alves <palves@redhat.com>
4275 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4276 (default_gdb_signal_to_target): ... this. Add comment.
4277 (default_gdb_signal_from_host): Rename to ...
4278 (default_gdb_signal_from_target): ... this. Add comment.
4279 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4280 (default_gdb_signal_to_target): ... this.
4281 (default_gdb_signal_from_host): Rename to ...
4282 (default_gdb_signal_from_target): ... this.
4283 * corelow.c (core_open): Adjust to naming change. Replace comment.
4284 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4285 (gdb_signal_from_target): ... this. Adjust to
4286 default_gdb_signal_from_host naming change. Extend comment.
4287 (gdb_signal_to_host): Rename to ...
4288 (gdb_signal_to_target): ... this. Adjust to
4289 default_gdb_signal_to_host naming change.
4290 * gdbarch.h, gdbarch.c: Renegerate.
4292 2012-05-24 Pedro Alves <palves@redhat.com>
4296 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4298 2012-05-24 Pedro Alves <palves@redhat.com>
4302 Replace target_signal with gdb_signal throughout.
4304 2012-05-24 Pedro Alves <palves@redhat.com>
4308 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4309 string, instead of reusing the va_list argument.
4311 2012-05-24 Tom Tromey <tromey@redhat.com>
4313 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4316 2012-05-23 Doug Evans <dje@google.com>
4318 * symtab.c (search_symbols): Formatting fixes.
4319 (print_symbol_info): Formatting fixes.
4321 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4322 int64_t change to leb128 API.
4323 (read_encoded_value, decode_frame_entry_1): Ditto.
4324 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4325 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4326 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4327 (execute_stack_op): Ditto.
4328 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4329 (safe_read_uleb128, safe_read_sleb128): Ditto.
4330 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4331 (dwarf2_compile_expr_to_ax): Ditto.
4332 (locexpr_describe_location_piece): Ditto.
4333 (disassemble_dwarf_expression): Ditto.
4334 (locexpr_describe_location_1): Ditto.
4336 2012-05-23 Stan Shebs <stan@codesourcery.com>
4337 Kwok Cheung Yeung <kcy@codesourcery.com>
4339 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4340 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4341 (mi-cmd-info.o): New rule.
4342 * osdata.h (info_osdata_command): New declaration.
4343 * osdata.c (info_osdata_command): Change to non-static.
4344 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4345 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4346 * mi/mi-cmd-info.c: New file.
4348 2012-05-23 Doug Evans <dje@google.com>
4350 * symtab.c (search_symbols): Pass NULL for file_matcher to
4351 expand_symtabs_matching if there are no files to match.
4353 * gdbtypes.c (lookup_typename): Simplify.
4355 2012-05-23 Pedro Alves <palves@redhat.com>
4357 * arch-utils.h (default_target_signal_to_host): Delete.
4358 * arch-utils.c (default_target_signal_to_host): Delete.
4359 * gdbarch.sh (target_signal_to_host): Remove.
4360 * gdbarch.h, gdbarch.c: Regenerate.
4362 2012-05-22 Doug Evans <dje@google.com>
4364 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4366 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4367 (execute_cfa_program): Update to match API of leb128 functions.
4368 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4370 (read_unsigned_leb128, read_signed_leb128): Delete.
4371 (read_initial_length): Change type of buf argument to
4373 (read_encoded_value): Update to match API of leb128 functions.
4374 (decode_frame_entry): Change result to "const gdb_byte *", and
4375 similarly for "start" parameter.
4376 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4377 (dwarf2_build_frame_info): Change local frame_ptr to
4379 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4380 read_uleb128, read_sleb128. All callers updated.
4381 (safe_skip_leb128): New function.
4382 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4383 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4384 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4385 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4386 read_uleb128, read_sleb128.
4387 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4388 (execute_stack_op): Update to match API of leb128 functions.
4389 * dwarf2expr.h: #include "leb128.h".
4390 (read_uleb128, read_sleb128): Delete.
4391 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4392 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4393 * dwarf2loc.c (debug_loc_kind): New enum.
4394 (decode_debug_loc_addresses): New function.
4395 (decode_debug_loc_dwo_addresses): New function.
4396 (dwarf2_find_location_expression): Rewrite.
4397 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4398 (locexpr_describe_location_piece): Ditto.
4399 (disassemble_dwarf_expression): Ditto.
4400 (locexpr_describe_location_1): Ditto.
4401 (loclist_describe_location): Rewrite.
4402 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4403 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4404 (dwarf2_section_buffer_overflow_complaint): Renamed from
4405 dwarf2_macros_too_long_complaint. All callers updated.
4406 (skip_leb128): Delete.
4407 (init_cu_die_reader): Initialize reader->buffer_end.
4408 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4409 (skip_form_bytes): New arg buffer_end. All callers updated.
4410 Replace call to skip_leb128 with gdb_skip_leb128.
4411 (skip_unknown_opcode): New arg mac_end. All callers updated.
4412 (fill_in_loclist_baton): Initialize baton->from_dwo.
4414 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4416 * mips-linux-nat.c (mips_linux_read_description): Use a more
4417 verbose error message.
4419 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4421 * NEWS: Add MIPS/Linux DSP support.
4422 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4423 (SIGCONTEXT_DSPCTL): New macro.
4424 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4425 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4426 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4427 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4428 (N64_SIGCONTEXT_HI3): Likewise.
4429 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4430 (N64_SIGCONTEXT_LO3): Likewise.
4431 (N64_SIGCONTEXT_DSPCTL): Likewise.
4432 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4433 (mips_linux_o32_sigframe_init): Handle DSP registers.
4434 (mips_linux_n32n64_sigframe_init): Likewise.
4436 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4438 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4441 2012-05-22 Pedro Alves <palves@redhat.com>
4443 * target.h (store_waitstatus): Move declaration ...
4444 * inf-child.h (store_waitstatus): ... here.
4445 * target.c: Move inclusion of gdb_wait.h, and ...
4446 (store_waitstatus): ... this ...
4447 * inf-child.c: ... here.
4448 * linux-nat.c: Include inf-child.h.
4449 * rs6000-nat.c: Include inf-child.h.
4450 * spu-linux-nat.c: Include inf-child.h.
4452 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4454 * tracepoint.c (start_tracing): Add missing i18n markup.
4455 (stop_tracing, set_trace_user): Ditto.
4456 (set_trace_notes, set_trace_stop_notes): Ditto.
4458 2012-05-21 Tom Tromey <tromey@redhat.com>
4461 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4463 * value.h (value_cast_pointers): Update.
4464 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4465 (value_cast): Update.
4466 (update_search_result): New function.
4467 (do_search_struct_field): New, from search_struct_field. Check
4468 for ambiguous results.
4469 (search_struct_field): Rewrite.
4470 * infcall.c (value_arg_coerce): Update.
4471 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4472 value_cast_pointers.
4473 * ada-lang.c (ada_convert_actual): Update.
4475 2012-05-21 Tom Tromey <tromey@redhat.com>
4477 * macroexp.c (macro_stringify): Terminate the string.
4479 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4481 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4483 * auto-load.c (auto_load_expand_dir_vars): New function.
4484 (auto_load_safe_path_vec_update): Use it, remove the
4485 substitute_path_component call thanks to it.
4486 (auto_load_objfile_script): Remove the debug_file_directory processing.
4487 Use auto_load_expand_dir_vars, remove the substitute_path_component
4489 * configure: Regenerate.
4490 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4491 path. Escape $ also for $debugdir.
4492 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4493 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4495 2012-05-20 Doug Evans <dje@google.com>
4497 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4498 before use. Check for symtab->includes == NULL before scanning it.
4500 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4502 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4504 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4506 * NEWS: Add microMIPS support and "set mips compression",
4507 "show mips compression" commands.
4508 * mips-tdep.h (mips_isa): New enum.
4509 (gdbarch_tdep): Add mips_isa.
4510 (mips_pc_is_mips16): Update prototype.
4511 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4512 * mips-tdep.c (mips_compression_mips16): New variable.
4513 (mips_compression_micromips): Likewise.
4514 (mips_compression_strings): Likewise.
4515 (mips_compression_string): Likewise.
4516 (is_mips16_isa, is_micromips_isa): New functions.
4517 (is_mips16_addr): Rename to...
4518 (is_compact_addr): ... this.
4519 (unmake_mips16_addr): Likewise to...
4520 (unmake_compact_addr): ... this.
4521 (make_mips16_addr): Likewise to...
4522 (make_compact_addr): ... this.
4523 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4525 (mips_elf_make_msymbol_special): Handle microMIPS code.
4526 (msymbol_is_special): Rename to...
4527 (msymbol_is_mips16): ... this.
4528 (mips_make_symbol_special, mips_pc_is_mips16): Update
4530 (msymbol_is_mips, msymbol_is_micromips): New functions.
4531 (mips16_to_32_reg): Rename to...
4532 (mips_reg3_to_reg): ... this.
4533 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4534 (mips_pc_isa): Likewise.
4535 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4537 (mips_fetch_instruction): Pass return status instead of printing
4538 an error message if requested. Handle microMIPS code. Bail out
4540 (micromips_op): New macro.
4541 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4542 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4543 (b6s4_op, b7s3_reg): Likewise.
4544 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4545 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4546 (mips_insn_size): New function.
4547 (mips32_next_pc): Update mips_fetch_instruction call.
4548 (micromips_relative_offset7): New function.
4549 (micromips_relative_offset10): Likewise.
4550 (micromips_relative_offset16): Likewise.
4551 (micromips_pc_insn_size): Likewise.
4552 (micromips_bc1_pc): Likewise.
4553 (micromips_next_pc): Likewise.
4554 (unpack_mips16): Update mips_fetch_instruction call.
4555 (extended_mips16_next_pc): Update according to change to
4557 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4559 (mips16_scan_prologue): Update mips_fetch_instruction call.
4560 Update according to change to mips16_to_32_reg.
4561 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4562 (mips_insn16_frame_base_sniffer): Likewise.
4563 (micromips_decode_imm9): New function.
4564 (micromips_scan_prologue): Likewise.
4565 (mips_micro_frame_cache): Likewise.
4566 (mips_micro_frame_this_id): Likewise.
4567 (mips_micro_frame_prev_register): Likewise.
4568 (mips_micro_frame_sniffer): Likewise.
4569 (mips_micro_frame_unwind): New variable.
4570 (mips_micro_frame_base_address): New function.
4571 (mips_micro_frame_base): New variable.
4572 (mips_micro_frame_base_sniffer): New function.
4573 (mips32_scan_prologue): Update mips_fetch_instruction call.
4574 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4575 rather than for MIPS16.
4576 (mips_insn32_frame_base_sniffer): Likewise.
4577 (mips_addr_bits_remove): Handle microMIPS code.
4578 (deal_with_atomic_sequence): Rename to...
4579 (mips_deal_with_atomic_sequence): ... this. Update the type
4580 of the variable used to hold an instruction. Remove the ISA bit
4581 check. Update mips_fetch_instruction call.
4582 (micromips_deal_with_atomic_sequence): New function.
4583 (deal_with_atomic_sequence): Likewise.
4584 (mips_about_to_return): Handle microMIPS code. Update
4585 mips_fetch_instruction call.
4586 (heuristic_proc_start): Check for the standard MIPS ISA rather
4587 than for MIPS16. Update mips_pc_is_mips16 and
4588 mips_fetch_instruction calls. Handle microMIPS code.
4589 (mips_push_dummy_code): Handle microMIPS code.
4590 (mips_eabi_push_dummy_call): Likewise.
4591 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4592 (mips_o64_push_dummy_call): Handle microMIPS code.
4593 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4594 (is_delayed): Remove function.
4595 (mips_single_step_through_delay): Replace the call to is_delayed
4596 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4597 Handle microMIPS code.
4598 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4600 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4602 (micromips_in_function_epilogue_p): New function.
4603 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4605 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4607 (gdb_print_insn_mips): Likewise.
4608 (mips_breakpoint_from_pc): Likewise.
4609 (mips_remote_breakpoint_from_pc): New function.
4610 (mips32_instruction_has_delay_slot): Simplify making use of the
4611 updated mips_fetch_instruction interface.
4612 (micromips_instruction_has_delay_slot): New function.
4613 (mips16_instruction_has_delay_slot): Simplify making use of the
4614 updated mips_fetch_instruction interface.
4615 (mips_adjust_breakpoint_address): Check for the standard MIPS
4616 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4617 calls. Handle microMIPS code.
4618 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4619 (mips_skip_trampoline_code): Handle microMIPS code.
4620 (global_mips_compression): New function.
4621 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4622 file flags. Register the microMIPS remote breakpoint handler
4623 and heuristic frame unwinder.
4624 (show_mips_compression): New function.
4625 (_initialize_mips_tdep): Add the "set mips compression" and
4626 "show mips compression" commands.
4628 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4633 * amd64-darwin-tdep.c:
4634 * arm-symbian-tdep.c:
4638 * bfin-linux-tdep.c:
4645 * dwarf2-frame-tailcall.c:
4674 * microblaze-tdep.c:
4675 * mips-linux-tdep.c:
4683 * python/py-finishbreakpoint.c:
4684 * python/py-inferior.c:
4685 * python/py-infthread.c:
4689 * remote-m32r-sdi.c:
4693 * rs6000-aix-tdep.c:
4719 * amd64-darwin-tdep.c:
4720 * arm-symbian-tdep.c:
4721 * arm-tdep.c: Delete unused variables.
4723 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4725 Rename $ddir to $datadir.
4726 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4727 * auto-load.c (auto_load_safe_path_vec_update)
4728 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4729 * configure: Regenerate.
4730 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4731 Likewise. Remove the 'use $ddir' help string.
4733 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4735 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4736 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4738 2012-05-18 Tom Tromey <tromey@redhat.com>
4741 * valprint.h (struct value_print_options) <symbol_print>: New
4743 * valprint.c (user_print_options): Add default for symbol_print.
4744 (show_symbol_print): New function.
4745 (generic_val_print): Respect symbol_print.
4746 (_initialize_valprint): Add "print symbol" setting.
4747 * f-valprint.c (f_val_print): Respect symbol_print.
4748 * c-valprint.c (c_val_print): Respect symbol_print.
4750 * printcmd.c (print_address_symbolic): Return int. Ignore some
4752 (print_address_demangle): Return int.
4753 * defs.h: (print_address_symbolic): Return int.
4754 * value.h (print_address_demangle): Return int.
4756 2012-05-18 Tom Tromey <tromey@redhat.com>
4758 * valprint.c (val_print_string): Don't print leading space.
4759 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4760 print space before string or vtbl.
4761 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4763 * jv-valprint.c (java_value_print): Print space before string.
4764 * go-valprint.c (print_go_string): Print space before string.
4765 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4766 space before string.
4767 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4768 space before string or vtbl.
4769 * auxv.c (fprint_target_auxv): Print space after address.
4771 2012-05-18 Tom Tromey <tromey@redhat.com>
4773 * printcmd.c (print_address_demangle): Remove special case for 0.
4775 2012-05-18 Tom Tromey <tromey@redhat.com>
4777 * printcmd.c (print_address_demangle): Add 'opts' argument.
4778 * p-valprint.c (pascal_val_print): Update.
4779 * jv-valprint.c (java_val_print): Update.
4781 * valprint.c (generic_val_print): Update.
4782 (print_function_pointer_address): Add 'options' argument. Remove
4783 'addressprint' argument. Update.
4784 * m2-valprint.c (print_unpacked_pointer): Update.
4785 * gnu-v3-abi.c (print_one_vtable): Update.
4786 (gnuv3_print_method_ptr): Update.
4787 * f-valprint.c (f_val_print): Update.
4788 * cp-valprint.c (cp_print_value_fields): Update.
4789 * valprint.h (print_function_pointer_address): Update.
4790 * c-valprint.c (c_val_print): Update.
4792 2012-05-18 Tom Tromey <tromey@redhat.com>
4794 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4795 directly corresponding to the found psymtab.
4796 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4797 (dw2_find_pc_sect_symtab): Use it.
4798 * block.h (blockvector_contains_pc): Declare.
4799 * block.c (find_block_in_blockvector): New function.
4800 (blockvector_for_pc_sect): Use it.
4801 (blockvector_contains_pc): New function.
4803 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4805 * mips-tdep.h (mips_write_pc): New prototype.
4806 * mips-tdep.c (mips_write_pc): Make external, add description.
4807 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4810 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4812 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4814 (mips_unwind_pc, mips_write_pc): Likewise.
4815 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4818 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4820 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4821 proc_warn, proc_error, proc_get_status, proc_flags,
4822 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4823 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4824 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4825 proc_stop_process, proc_wait_for_stop, proc_run_process,
4826 proc_set_traced_signals, proc_set_traced_faults,
4827 proc_set_traced_sysentry, proc_set_traced_sysexit,
4828 proc_set_held_signals, proc_get_held_signals,
4829 proc_get_traced_signals, proc_get_traced_faults,
4830 proc_get_traced_sysentry, proc_get_traced_sysexit,
4831 proc_clear_current_fault, proc_set_current_signal,
4832 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4833 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4834 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4835 proc_get_current_thread, proc_get_current_thread,
4836 proc_get_current_thread, proc_update_threads,
4837 proc_update_threads, proc_update_threads, proc_update_threads,
4838 proc_iterate_over_threads, procfs_find_new_threads,
4839 procfs_pid_to_str): Make static. Remove advance declaration.
4840 (proc_cursig): Make static. Conditionalized defintion on
4841 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4842 (proc_syscall, proc_set_kill_on_last_close,
4843 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4844 proc_get_pending_signals, proc_get_signal_actions,
4845 proc_trace_signal, proc_ignore_signal): Delete.
4847 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4849 * coffread.c (cs_section_address): Passing proper argument for
4850 `bfd_get_section_vma'.
4851 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4852 `bfd_get_section_flags'.
4853 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4854 `bfd_get_section_vma'.
4856 2012-05-16 Tom Tromey <tromey@redhat.com>
4859 * macrotab.h: (macro_define_special): Declare.
4860 (enum macro_special_kind): New.
4861 (struct macro_definition) <argc, replacement>: Update comments.
4862 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4863 (macro_define_object_internal): New function.
4864 (macro_define_object): Use it.
4865 (macro_define_special): New function.
4866 (fixup_definition): New function.
4867 (macro_lookup_definition, foreach_macro_in_scope)
4868 (foreach_macro): Use fixup_definition.
4869 * macroexp.h (macro_stringify): Declare.
4870 * macroexp.c (free_buffer_return_text): New function.
4871 (stringify): Constify "arg".
4872 (macro_stringify): New function.
4873 * dwarf2read.c (macro_start_file): Call macro_define_special.
4875 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4876 Maciej W. Rozycki <macro@mips.com>
4878 * breakpoint.h (bp_location): Add related_address member.
4879 * inferior.h (get_return_value): Take a pointer to struct value
4880 instead of struct type for the function requested.
4881 * value.h (using_struct_return): Likewise.
4882 * gdbarch.sh (return_value): Take a pointer to struct value
4883 instead of struct type for the function requested.
4884 * breakpoint.c (set_breakpoint_location_function): Initialize
4885 related_address for bp_gnu_ifunc_resolver breakpoints.
4886 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4887 requested function's address to gdbarch_return_value.
4888 * eval.c (evaluate_subexp_standard): Pass the requested
4889 function's address to using_struct_return.
4890 * infcall.c (call_function_by_hand): Pass the requested
4891 function's address to using_struct_return and
4892 gdbarch_return_value.
4893 * infcmd.c (get_return_value): Take a pointer to struct value
4894 instead of struct type for the function requested.
4895 (print_return_value): Update accordingly.
4896 (finish_command_continuation): Likewise.
4897 * stack.c (return_command): Pass the requested function's
4898 address to using_struct_return and gdbarch_return_value.
4899 * value.c (using_struct_return): Take a pointer to struct value
4900 instead of struct type for the function requested. Pass the
4901 requested function's address to gdbarch_return_value.
4902 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4903 New function_value member, replacing function_type.
4904 (bpfinishpy_dealloc): Update accordingly.
4905 (bpfinishpy_pre_stop_hook): Likewise.
4906 (bpfinishpy_init): Likewise. Record the requested function's
4908 * mips-tdep.c (mips_fval_reg): New enum.
4909 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4910 words put in GP registers.
4911 (mips_o64_push_dummy_call): Update a comment.
4912 (mips_o32_return_value): Take a pointer to struct value instead
4913 of struct type for the function requested and use it to check if
4914 using the MIPS16 calling convention. Return the designated
4915 general purpose registers for floating-point values returned in
4917 (mips_o64_return_value): Likewise.
4918 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4919 (ppc_sysv_abi_broken_return_value): Likewise.
4920 (ppc64_sysv_abi_return_value): Likewise.
4921 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4922 value instead of struct type for the function requested.
4923 * amd64-tdep.c (amd64_return_value): Likewise.
4924 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4925 * arm-tdep.c (arm_return_value): Likewise.
4926 * avr-tdep.c (avr_return_value): Likewise.
4927 * bfin-tdep.c (bfin_return_value): Likewise.
4928 * cris-tdep.c (cris_return_value): Likewise.
4929 * frv-tdep.c (frv_return_value): Likewise.
4930 * h8300-tdep.c (h8300_return_value): Likewise.
4931 (h8300h_return_value): Likewise.
4932 * hppa-tdep.c (hppa32_return_value): Likewise.
4933 (hppa64_return_value): Likewise.
4934 * i386-tdep.c (i386_return_value): Likewise.
4935 * ia64-tdep.c (ia64_return_value): Likewise.
4936 * iq2000-tdep.c (iq2000_return_value): Likewise.
4937 * lm32-tdep.c (lm32_return_value): Likewise.
4938 * m32c-tdep.c (m32c_return_value): Likewise.
4939 * m32r-tdep.c (m32r_return_value): Likewise.
4940 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4941 * m68k-tdep.c (m68k_return_value): Likewise.
4942 (m68k_svr4_return_value): Likewise.
4943 * m88k-tdep.c (m88k_return_value): Likewise.
4944 * mep-tdep.c (mep_return_value): Likewise.
4945 * microblaze-tdep.c (microblaze_return_value): Likewise.
4946 * mn10300-tdep.c (mn10300_return_value): Likewise.
4947 * moxie-tdep.c (moxie_return_value): Likewise.
4948 * mt-tdep.c (mt_return_value): Likewise.
4949 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4950 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4951 (ppc_sysv_abi_broken_return_value): Likewise.
4952 (ppc64_sysv_abi_return_value): Likewise.
4953 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4954 * rl78-tdep.c (rl78_return_value): Likewise.
4955 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4956 * rx-tdep.c (rx_return_value): Likewise.
4957 * s390-tdep.c (s390_return_value): Likewise.
4958 * score-tdep.c (score_return_value): Likewise.
4959 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4960 (sh_return_value_fpu): Likewise.
4961 * sh64-tdep.c (sh64_return_value): Likewise.
4962 * sparc-tdep.c (sparc32_return_value): Likewise.
4963 * sparc64-tdep.c (sparc64_return_value): Likewise.
4964 * spu-tdep.c (spu_return_value): Likewise.
4965 * tic6x-tdep.c (tic6x_return_value): Likewise.
4966 * v850-tdep.c (v850_return_value): Likewise.
4967 * vax-tdep.c (vax_return_value): Likewise.
4968 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4969 * xtensa-tdep.c (xtensa_return_value): Likewise.
4970 * gdbarch.c: Regenerate.
4971 * gdbarch.h: Regenerate.
4973 2012-05-15 Tom Tromey <tromey@redhat.com>
4975 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4977 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4979 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4980 of command in two error message.
4982 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4984 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4986 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4988 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4990 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4992 * NEWS (show auto-load scripts-directory): Add forgotten command.
4994 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4996 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4999 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5001 * amd64-tdep.c: Include features/i386/x32.c and
5002 features/i386/x32-avx.c.
5003 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5004 initialize_tdesc_x32_avx.
5006 2012-05-14 Stan Shebs <stan@codesourcery.com>
5009 * breakpoint.h (enum bptype): New type bp_dprintf.
5010 (struct breakpoint): New field extra_string.
5011 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5012 (create_breakpoint): Add extra_string arg.
5013 * breakpoint.c (dprintf_breakpoint_ops): New.
5014 (is_breakpoint): Add bp_dprintf.
5015 (bpstat_what): Add dprintf case.
5016 (bptype_string): Ditto.
5017 (print_one_breakpoint_location): Ditto.
5018 (init_bp_location): Ditto.
5019 (bkpt_print_mention): Ditto.
5020 (dprintf_style_enums): New array.
5021 (dprintf_style): New global.
5022 (dprintf_function): New global.
5023 (dprintf_channel): New global.
5024 (update_dprintf_command_list): New function.
5025 (update_dprintf_commands): New function.
5026 (init_breakpoint_sal): Add extra_string argument, handle it.
5027 (create_breakpoint_sal): Add extra_string argument.
5028 (create_breakpoints_sal): Add extra_string argument, update callers.
5029 (find_condition_and_thread): Add extra argument.
5030 (create_breakpoint): Add extra_string argument, record it.
5031 (dprintf_command): New function.
5032 (break_command_1): Add arg to create_breakpoint call.
5033 (handle_gnu_v3_exceptions): Ditto.
5034 (trace_command): Ditto.
5035 (ftrace_command): Ditto.
5036 (strace_command): Ditto.
5037 (bkpt_print_mention): Add dprintf case.
5038 (create_breakpoint_sal_default): Add extra_string argument.
5039 (_initialize_breakpoint): Add new commands.
5040 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5041 * python/py-breakpoint.c (bppy_init): Ditto.
5042 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5044 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5046 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5048 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5050 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5053 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5055 Add a new function gdb.find_pc_line to the Python API.
5056 * NEWS (Python Scripting): Add entry about the new function.
5057 * python/python.c (gdbpy_find_pc_line): New function which
5058 implements gdb.find_pc_line.
5059 (GdbMethods): Add entry for the new function.
5061 2012-05-12 Pedro Alves <palves@redhat.com>
5063 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5064 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5066 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5068 * inferior.c: Include completer.h
5069 (initialize_inferiors): Set completer of add-inferior to
5072 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5074 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5075 gdbarch_ptr_bit for x32 core dump.
5077 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5079 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5080 and features/i386/x32-avx-linux.c.
5082 2012-05-11 Stan Shebs <stan@codesourcery.com>
5083 Kwok Cheung Yeung <kcy@codesourcery.com>
5085 * NEWS: Describe new info os commands.
5086 * common/linux-osdata.c (PID_T, TIME_T): Define.
5087 (MAX_PID_T_STRLEN): New.
5088 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5090 (command_from_pid): Add comment. Change to use PID_T.
5091 (commandline_from_pid): Change to use PID_T.
5092 (user_from_pid): Add comment.
5093 (get_process_owner): Add comment. Change to use PID_T and
5095 (get_number_of_cpu_cores): Add comment.
5096 (get_cores_used_by_process): Add comment. Change to use PID_T and
5098 (linux_xfer_osdata_processes): Change to use PID_T and
5100 (compare_processes): New function.
5101 (linux_xfer_osdata_processgroups): New function.
5102 (linux_xfer_osdata_threads): Change to use PID_T.
5103 (linux_xfer_osdata_fds): New function.
5104 (format_socket_state, print_sockets): New functions.
5105 (union socket_addr): New union.
5106 (linux_xfer_osdata_isockets): New function.
5107 (time_from_time_t, group_from_gid): New functions.
5108 (linux_xfer_osdata_shm): New function.
5109 (linux_xfer_osdata_sem): New function.
5110 (linux_xfer_osdata_msg): New function.
5111 (linux_xfer_osdata_modules): New function.
5112 (osdata_table): Add new entries.
5113 * common/buffer.c (buffer_xml_printf): Add support for long and
5114 long long format specifiers.
5116 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5118 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5119 (tdesc_x32_avx_linux): Likewise.
5121 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5123 Implement multi-component --with-auto-load-dir.
5124 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5126 (--with-auto-load-safe-path): Update the default value description.
5127 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5129 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5130 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5131 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5132 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5133 "set auto-load scripts-directory".
5134 * config.in: Regenerate.
5135 * configure: Regenerate.
5136 * configure.ac (--with-auto-load-dir): New configure option.
5137 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5139 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5141 Provide $ddir substitution for --with-auto-load-safe-path.
5142 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5144 * auto-load.c: Include observer.h.
5145 (auto_load_safe_path_vec_update): Call substitute_path_component for
5146 each component. New variable ddir_subst.
5147 (auto_load_gdb_datadir_changed): New function.
5148 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5149 AUTO_LOAD_SAFE_PATH. New comment.
5150 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5151 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5152 * config.in: Regenerate.
5153 * configure: Regenerate.
5154 * configure.ac (--auto-load-safe-path): Rename
5155 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5156 GDB_DATADIR/auto-load.
5157 * defs.h (substitute_path_component): New declaration.
5158 * top.c: Include observer.h.
5159 (set_gdb_datadir): New function.
5160 (init_main): Install it for "set data-directory".
5161 * utils.c (substitute_path_component): New function.
5163 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5165 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5166 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5167 DEBUG_FILE_DIRECTORY. Handle multiple components of
5168 DEBUG_FILE_DIRECTORY.
5170 2012-05-10 Tom Tromey <tromey@redhat.com>
5172 * dwarf2read.c (recursively_write_psymbols): New function.
5173 (write_psymtabs_to_index): Use it.
5175 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5177 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5178 (load_partial_comp_unit): Update.
5179 (queue_comp_unit): Add argument 'pretend_language'.
5180 (process_queue): Update.
5181 (psymtab_to_symtab_1): Skip dependencies that have a user.
5182 (load_partial_comp_unit_reader): Give meaning to the 'data'
5184 (load_full_comp_unit): Add 'pretend_language' argument.
5185 (process_full_comp_unit): Add 'pretend_language' argument. Set
5187 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5189 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5190 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5192 (prepare_one_comp_unit): Add 'pretend_language' argument.
5194 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5195 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5196 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5197 (dw2_do_instantiate_symtab): Check whether symtab was read in
5199 (dw2_instantiate_symtab): Add assertion. Call
5200 process_cu_includes.
5201 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5202 (partial_symtab_p): New typedef.
5203 (set_partial_user): New function.
5204 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5205 (scan_partial_symbols): Add imported CU to imported_symtabs.
5206 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5207 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5208 (get_symtab, recursively_compute_inclusions)
5209 (compute_symtab_includes, process_cu_includes)
5210 (process_imported_unit_die): New functions.
5211 (process_die) <DW_TAG_imported_unit>: New case.
5212 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5214 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5216 (struct partial_die_info) <locdesc>: Remove.
5218 (process_psymtab_comp_unit): Add 'read_partial' argument.
5220 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5221 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5222 (add_partial_symbol): Update.
5223 (process_die): Handle DW_TAG_partial_unit.
5224 (read_file_scope): Update comment.
5225 (load_partial_dies): Handle DW_TAG_imported_unit.
5226 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5227 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5229 2012-05-10 Tom Tromey <tromey@redhat.com>
5231 * cc-with-dwz.sh: New file.
5233 2012-05-10 Tom Tromey <tromey@redhat.com>
5235 * symtab.h (struct symtab) <includes, user>: New fields.
5236 * block.h (struct block_iterator) <d, idx, which>: New fields.
5237 * block.c (initialize_block_iterator, find_iterator_symtab)
5238 (block_iterator_step, block_iter_name_step)
5239 (block_iter_match_step): New functions.
5240 (block_iterator_first, block_iterator_next)
5241 (block_iter_name_first, block_iter_name_next)
5242 (block_iter_match_first, block_iter_match_next): Rewrite.
5243 (get_block_symtab): New function.
5245 2012-05-10 Tom Tromey <tromey@redhat.com>
5247 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5249 * jit.c (finalize_symtab): Use allocate_global_block,
5251 * buildsym.c (finish_block_internal): New function, from old
5253 (finish_block): Rewrite.
5254 (end_symtab): Use finish_block_internal, set_block_symtab.
5255 * block.h (struct global_block): New.
5256 (allocate_global_block, set_block_symtab): Declare.
5257 * block.c (allocate_global_block, set_block_symtab): New
5260 2012-05-10 Tom Tromey <tromey@redhat.com>
5262 * psymtab.c (partial_map_expand_apply): Add assertion.
5263 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5264 (psymtab_to_symtab): Find unshared psymtab.
5265 (dump_psymtab): Print including psymtabs.
5266 (recursively_search_psymtabs): New function.
5267 (expand_symtabs_matching_via_partial): Use it.
5268 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5270 (enum psymtab_search_status): New.
5272 2012-05-10 Tom Tromey <tromey@redhat.com>
5274 * tracepoint.c (scope_info): Update.
5275 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5276 (find_pc_sect_symtab, search_symbols)
5277 (default_make_symbol_completion_list_break_on)
5278 (make_file_symbol_completion_list): Update.
5279 * symmisc.c (dump_symtab_1): Update.
5280 * stack.c (print_frame_args, iterate_over_block_locals)
5281 (print_frame_labels, iterate_over_block_arg_vars): Update.
5282 * python/py-block.c (block_object) <dict>: Remove.
5284 <iter>: Change type.
5285 (blpy_iter): Update.
5286 (blpy_block_syms_iternext): Update.
5287 * psymtab.c (map_block): Use block iterators.
5288 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5289 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5290 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5291 * infrun.c (check_exception_resume): Update.
5292 * cp-support.c (make_symbol_overload_list_block): Update.
5293 * coffread.c (patch_opaque_types): Update.
5294 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5295 * block.h (struct block_iterator): New.
5296 (block_iterator_first, block_iterator_next, block_iter_name_first)
5297 (block_iter_name_next, block_iter_match_first)
5298 (block_iter_match_next): Declare.
5299 (ALL_BLOCK_SYMBOLS): Redefine.
5300 * block.c (block_iterator_first, block_iterator_next)
5301 (block_iter_name_first, block_iter_name_next)
5302 (block_iter_match_first, block_iter_match_next): New functions.
5303 * ada-lang.c (ada_add_block_symbols)
5304 (ada_make_symbol_completion_list): Use block iterator.
5306 2012-05-10 Tom Tromey <tromey@redhat.com>
5308 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5309 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5310 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5311 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5312 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5315 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5317 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5318 print-file-var-lib2.c, print-file-var-main.c and
5319 print-file-var.exp (located in gdb/testsuite/gdb.base).
5321 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5323 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5324 try locating the symbol in the symbol's own objfile first, before
5325 extending the search to all objfiles.
5326 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5327 out of lookup_symbol_aux_symtabs.
5328 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5329 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5330 Do not search EXCLUDE_OBJFILE.
5331 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5332 (lookup_symbol_global): Search for matches in the block's objfile
5333 first, before searching all other objfiles.
5335 2012-05-10 Tristan Gingold <gingold@adacore.com>
5337 * printcmd.c (set_command): Add pre/post inc/dec.
5339 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5341 * gdb.1: Document -ex option.
5343 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5345 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5346 * inferior.h (AT_SYMBOL): Delete.
5348 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5350 * mips-tdep.c (mips_push_dummy_code): New function.
5351 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5352 ON_STACK and install mips_push_dummy_code as our gdbarch
5353 push_dummy_code routine.
5355 2012-05-09 Pedro Alves <palves@redhat.com>
5357 * target.c (set_maintenance_target_async_permitted): Rename to ...
5358 (set_target_async_command): ... this.
5359 (show_maintenance_target_async_permitted): Rename to ...
5360 (show_target_async_command): ... this.
5361 (initialize_targets): Adjust.
5363 2012-05-08 Doug Evans <dje@google.com>
5365 * go-exp.y (classify_name): Add missing assignment of fields of
5368 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5370 Display the ">" prompt in interactive mode while reading canned
5371 commands, even when the current interpreter is MI.
5373 * interps.c (interp_set_temp): New function.
5375 * interps.h (interp_set_temp): Add prototype.
5377 * cli/cli-script.c (restore_interp): New cleanup function.
5378 (read_command_lines): Temporarily override the current interpreter
5379 with CLI and arrange for restoring the original one.
5381 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5383 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5385 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5387 * probe.c (parse_probes): Move conditional to check for
5388 debuginfo files from here...
5389 * stap-probe.c (stap_get_probes): ... to here.
5391 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5392 H.J. Lu <hongjiu.lu@intel.com>
5394 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5395 `movl %esp, %ebp' for the X32 ABI.
5397 2012-05-07 Tom Tromey <tromey@redhat.com>
5399 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5401 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5402 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5403 (dwarf_stack_op_name): Remove.
5404 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5405 (decode_locdesc): Use get_DW_OP_name.
5406 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5407 (dwarf2_compile_expr_to_ax): Likewise.
5408 (disassemble_dwarf_expression): Likewise.
5409 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5411 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5413 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5414 (sh_linux_sigtramp_cache): New function.
5415 (sh_linux_sigreturn_init): New function.
5416 (sh_linux_rt_sigreturn_init): New function.
5417 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5419 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5421 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5422 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5423 (sh_linux_init_abi): Add init calls to register new tramp_frame
5424 definitions under 32-bit SH, update comments.
5426 2012-05-07 Pedro Alves <palves@redhat.com>
5430 * amd64-linux-tdep.c: Include glibc-tdep.h.
5431 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5432 gdbarch_skip_solib_resolver callback.
5434 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5436 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5437 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5438 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5439 (add_auto_load_safe_path): Change the error message.
5440 (_initialize_auto_load): Change the "safe-path" help text.
5441 * configure: Regenerate
5442 * configure.ac (--without-auto-load-safe-path): Set
5443 WITH_AUTO_LOAD_SAFE_PATH to /.
5445 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5447 * stap-probe.h: Do not include unecessary `probe.h'.
5449 2012-05-05 Alan Modra <amodra@gmail.com>
5451 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5452 bfd_und_section_ptr.
5453 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5454 and bfd_com_section_ptr.
5456 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5458 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5460 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5462 * windows-nat.h (segment_register_p_ftype): New typedef.
5463 (windows_set_segment_register_p): Add declaration.
5464 * windows-nat.c (segment_register_p): New static global.
5465 (windows_set_segment_register_p): New function.
5466 (do_windows_fetch_inferior_registers): Add special handling
5467 for segment registers.
5468 * amd64-windows-nat.c: #include "amd64-tdep.h".
5469 (amd64_windows_segment_register_p): New function.
5470 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5471 * i386-windows-nat.c: #include "i386-tdep.h".
5472 (i386_windows_segment_register_p): New function.
5473 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5475 2012-05-04 Tristan Gingold <gingold@adacore.com>
5477 * printcmd.c (set_command): Emit a warning if the expression is not
5480 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5482 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5485 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5487 * stap-probe.c (stap_is_operator): Change declaration.
5488 (stap_get_opcode): Change return value.
5489 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5490 `stap_parse_argument_1'.
5492 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5494 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5497 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5499 Add two new methods global_block and static_block to gdb.Symtab
5501 * NEWS (Python scripting): Add entry about the new methods.
5502 * python/py-symtab.c (stpy_global_block): New function which
5503 implements the gdb.Symtab.global_block() method.
5504 (stpy_static_block): New function which implements the
5505 gdb.Symtab.static_block() method.
5506 (symtab_object_methods): Add entries for the two new methods.
5508 2012-05-03 Doug Evans <dje@google.com>
5510 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5513 2012-05-03 Yao Qi <yao@codesourcery.com>
5515 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5517 (i386_process_record): Ditto.
5519 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5521 * infcall.c (unwind_on_signal_p): Make static.
5523 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5525 * sol-thread.c (solaris_pid_to_str): Make static.
5526 (_initialize_sol_thread): Add prototype.
5528 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5530 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5532 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5534 * MAINTAINERS: Remove myself.
5536 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5538 Fix --without-auto-load-safe-path for MS-Windows host platform.
5539 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5541 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5543 * gdb_curses.h: Undefine KEY_EVENT before including curses
5544 headers. Move "#undef MOUSE_MOVED" before any curses header
5547 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5549 * features/i386/i386-mmx-linux.c: Regenerate.
5550 * features/rs6000/powerpc-32.c: Likewise.
5551 * features/rs6000/powerpc-32l.c: Likewise.
5552 * features/rs6000/powerpc-403.c: Likewise.
5553 * features/rs6000/powerpc-403gc.c: Likewise.
5554 * features/rs6000/powerpc-405.c: Likewise.
5555 * features/rs6000/powerpc-505.c: Likewise.
5556 * features/rs6000/powerpc-601.c: Likewise.
5557 * features/rs6000/powerpc-602.c: Likewise.
5558 * features/rs6000/powerpc-603.c: Likewise.
5559 * features/rs6000/powerpc-604.c: Likewise.
5560 * features/rs6000/powerpc-64.c: Likewise.
5561 * features/rs6000/powerpc-64l.c: Likewise.
5562 * features/rs6000/powerpc-750.c: Likewise.
5563 * features/rs6000/powerpc-860.c: Likewise.
5564 * features/rs6000/powerpc-e500.c: Likewise.
5565 * features/rs6000/powerpc-e500l.c: Likewise.
5566 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5567 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5568 * features/rs6000/rs6000.c: Likewise.
5570 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5572 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5574 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5575 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5576 (stap_parse_argument) <e>: Likewise.
5577 (handle_stap_probe) <byte_order>: Likewise.
5579 2012-04-30 Doug Evans <dje@google.com>
5581 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5582 init_and_read_dies_worker. All callers updated.
5583 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5584 replaced with init_cutu_and_read_dies.
5585 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5586 (find_partial_die): Remove FIXME. Don't free current CU.
5588 2012-04-30 Sterling Augustine <saugustine@google.com>
5590 * contrib: New directory.
5591 * contrib/test_pubnames_and_indexes.py: New file.
5593 2012-04-30 Doug Evans <dje@google.com>
5595 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5596 All callers updated.
5597 (init_cu_die_reader): Verify the section is non-empty.
5598 (dwarf_decode_line_header): Don't dereference section->asection
5599 until we know the section is present.
5601 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5603 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5606 2012-04-29 Yao Qi <yao@codesourcery.com>
5608 * gdb-code-style.el: New hook gdb-markup-hook
5609 and gdb-comment-hook.
5611 2012-04-28 Doug Evans <dje@google.com>
5613 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5614 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5616 * symfile.h (dwarf2_debug_sections): New member addr.
5617 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5618 (ctx_no_get_addr_index): New function.
5619 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5620 (ctx_no_get_addr_index): Declare.
5621 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5622 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5623 (dwarf_expr_ctx_funcs): Update.
5624 (needs_get_addr_index): New function.
5625 (needs_frame_ctx_funcs): Update.
5626 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5627 * dwarf2read.c: #include "gdbcore.h".
5628 (dwarf2_per_objfile): New members addr, dwo_files.
5629 (dwarf2_elf_names): Add entry for addr.
5630 (struct dwo_section_names): New type.
5631 (dwo_section_names): New static global.
5632 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5633 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5634 old debug_types_section member updated to use this.
5635 Rename member debug_types_section to info_or_types_section,
5637 (signatured_type): Rename member type_offset to type_offset_in_tu,
5638 all uses updated. New member type_offset_in_section.
5639 (struct dwo_sections): New type.
5640 (struct dwo_unit): New type.
5641 (struct dwo_file): New type.
5642 (die_reader_specs): New member dwo_file.
5643 (dwarf2_locate_sections): Watch for .debug_addr.
5644 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5645 (dwarf2_read_section): Get bfd of section from bfd's asection,
5647 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5648 (create_signatured_type_table_from_index): Initialize
5649 sig_type->info_or_types_section.
5650 (dw2_get_file_names): Statement lists for type units with DWO files
5651 live in the DWO file.
5652 (create_debug_types_hash_table): New function.
5653 (create_all_type_units): Rewrite.
5654 (init_cu_die_reader): New arg dwo_file, all callers updated.
5655 (init_and_read_dies_worker): Get section from
5656 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5657 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5658 continue reading the CU/TU from there.
5659 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5660 updated. Get section from this_cu->info_or_types_section.
5661 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5662 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5663 DW_FORM_GNU_str_index.
5664 (hash_dwo_file, eq_dwo_file): New functions.
5665 (allocate_dwo_file_hash_table): New function.
5666 (hash_dwo_unit, eq_dwo_unit): New functions.
5667 (allocate_dwo_unit_table): New function.
5668 (dwarf2_locate_dwo_sections): New function.
5669 (struct create_dwo_info_table_data): New type.
5670 (create_debug_info_hash_table_reader): New function.
5671 (create_debug_info_hash_table): New function.
5672 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5673 (lookup_dwo_file): New function.
5674 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5675 (free_dwo_file, free_dwo_file_cleanup): New functions.
5676 (free_dwo_file_from_slot, free_dwo_files): New functions.
5677 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5678 (dwarf2_record_block_ranges): Ditto.
5679 (read_partial_die): Ditto.
5680 (process_enumeration_scope): Update to use type_offset_in_section.
5681 (read_full_die_1): New function.
5682 (read_full_die): Rewrite.
5683 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5684 DW_FORM_GNU_str_index.
5685 (read_addr_index_1, read_addr_index): New functions.
5686 (read_addr_index_from_leb128): New function.
5687 (struct dwarf2_read_addr_index_data): New type.
5688 (dwarf2_read_addr_index_reader): New function.
5689 (dwarf2_read_addr_index): New function.
5690 (read_str_index): New function.
5691 (leb128_size): New function.
5692 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5693 If processing a type unit from a DWO file, get the line section
5695 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5696 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5697 DW_FORM_GNU_str_index.
5698 (lookup_die_type): Check whether section offset of type's die is
5699 known before looking it up. Remove assert. Condition can
5700 legimately happen for inter-cu type references.
5701 (dwarf_attr_name): Handle Fission attributes.
5702 (dwarf_form_name): Handle Fission forms.
5703 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5704 DW_FORM_GNU_str_index.
5705 (follow_die_sig): Update to use type_offset_in_section.
5706 (decode_locdesc): New case DW_OP_GNU_addr_index.
5707 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5708 DW_FORM_GNU_str_index.
5709 (cu_debug_loc_section): New function.
5710 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5711 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5712 Free DWO files if present.
5713 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5715 Refactor DIE reading.
5716 * dwarf2read.c (dwarf2_per_objfile): Replace members
5717 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5718 (die_reader_specs): New member "die_section". Temporarily make
5719 member "buffer" non-const, pending constifying all info_ptr uses.
5720 (die_reader_func_ftype): New typedef.
5721 (dw2_get_file_names_reader): New function.
5722 (dw2_get_file_names): Rewrite.
5723 (read_and_check_type_unit_head): Rename arg type_offset to
5725 (create_all_type_units): Improve debugging message.
5726 Improve dummy type unit check.
5727 (init_cu_die_reader): New arg "section". All callers updated.
5728 (init_and_read_dies_worker): New function.
5729 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5730 (init_cutu_and_read_dies_no_follow): New function.
5731 (init_cutu_and_read_dies_simple): New function.
5732 (process_psymtab_comp_unit_reader): New function.
5733 (process_psymtab_comp_unit): Delete args section,
5734 is_debug_types_section. Rewrite. All callers updated.
5735 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5736 All callers updated. Rewrite.
5737 (load_partial_comp_unit_reader): New function.
5738 (load_partial_comp_unit): Rewrite.
5739 (skip_children): New arg reader. Delete args buffer, cu.
5740 All callers updated.
5741 (skip_one_die): New arg reader. Delete args buffer, cu.
5742 All callers updated.
5743 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5744 All callers updated.
5745 (load_full_comp_unit_reader): New function.
5746 (load_full_comp_unit): Rewrite.
5747 (read_comp_unit): Delete.
5748 (read_die_and_children_1): Delete, contents moved ...
5749 (read_die_and_children): ... here.
5750 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5751 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5752 All callers updated.
5753 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5754 All callers updated.
5755 (find_partial_die): Rewrite load_all_dies support.
5756 (read_attribute_value): New arg reader. Delete args abfd, cu.
5757 All callers updated.
5758 (read_attribute): New arg reader. Delete args abfd, cu.
5759 All callers updated.
5760 (load_full_type_unit): Add assert.
5761 (read_signatured_type_reader): New function.
5762 (read_signatured_type): Rewrite.
5763 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5764 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5765 All callers updated. Set per_cu->cu = NULL after freeing it.
5766 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5767 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5768 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5769 (set_die_type): Update.
5770 (get_die_type_at_offset): Update.
5771 (read_file_scope): Call prepare_one_comp_unit.
5772 (read_type_unit_scope): Ditto.
5773 (prepare_one_comp_unit): Set producer if present.
5775 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5777 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5778 gettext function on `error'.
5780 2012-04-27 Doug Evans <dje@google.com>
5782 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5785 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5786 Tom Tromey <tromey@redhat.com>
5788 * breakpoint.c (struct breakpoint_objfile_data)
5789 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5790 <exception_probes>: New fields.
5791 (free_breakpoint_probes): New function.
5792 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5793 `_Unwind_DebugHook'.
5794 (create_exception_master_breakpoint): Likewise.
5795 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5796 * infrun.c: Including necessary header files for handling SystemTap
5798 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5799 via SystemTap probes.
5800 (check_exception_resume): Remove `func' argument. Handle exception
5801 unwinding breakpoint set via a SystemTap probe.
5802 (insert_exception_resume_from_probe): New function.
5804 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5805 Tom Tromey <tromey@redhat.com>
5806 Jan Kratochvil <jan.kratochvil@redhat.com>
5808 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5809 (COMMON_OBS): Likewise.
5810 (HFILES_NO_SRCDIR): Add `probe'.
5811 * NEWS: Mention support for static and SystemTap probes.
5812 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5813 SystemTap probes' arguments parser.
5814 * arm-linux-tdep.c: Including headers needed to perform the parsing
5815 of SystemTap probes' arguments.
5816 (arm_stap_is_single_operand): New function.
5817 (arm_stap_parse_special_token): Likewise.
5818 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5819 probes' arguments parser.
5820 * ax-gdb.c (require_rvalue): Removing static declaration.
5821 (gen_expr): Likewise.
5822 * ax-gdb.h (gen_expr): Declaring function.
5823 (require_rvalue): Likewise.
5824 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5825 (bkpt_probe_breakpoint_ops): New variable.
5826 (momentary_breakpoint_from_master): Set the `probe' value.
5827 (add_location_to_breakpoint): Likewise.
5828 (break_command_1): Using proper breakpoint_ops according to the
5829 argument passed by the user in the command line.
5830 (bkpt_probe_insert_location): New function.
5831 (bkpt_probe_remove_location): Likewise.
5832 (bkpt_probe_create_sals_from_address): Likewise.
5833 (bkpt_probe_decode_linespec): Likewise.
5834 (tracepoint_probe_create_sals_from_address): Likewise.
5835 (tracepoint_probe_decode_linespec): Likewise.
5836 (tracepoint_probe_breakpoint_ops): New variable.
5837 (trace_command): Using proper breakpoint_ops according to the
5838 argument passed by the user in the command line.
5839 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5840 static probes on breakpoints and tracepoints.
5841 * breakpoint.h (struct bp_location) <probe>: New field.
5842 * cli-utils.c (skip_spaces_const): New function.
5843 (extract_arg): Likewise.
5844 * cli-utils.h (skip_spaces_const): Likewise.
5845 (extract_arg): Likewise.
5846 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5847 * configure.ac: Append `stap-probe.o' to be generated when ELF
5849 * configure: Regenerate.
5850 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5851 * elfread.c: Include `probe.h' and `arch-utils.h'.
5852 (probe_key): New variable.
5853 (elf_get_probes): New function.
5854 (elf_get_probe_argument_count): Likewise.
5855 (elf_evaluate_probe_argument): Likewise.
5856 (elf_compile_to_ax): Likewise.
5857 (elf_symfile_relocate_probe): Likewise.
5858 (stap_probe_key_free): Likewise.
5859 (elf_probe_fns): New variable.
5860 (elf_sym_fns): Add `sym_probe_fns' value.
5861 (elf_sym_fns_lazy_psyms): Likewise.
5862 (elf_sym_fns_gdb_index): Likewise.
5863 (_initialize_elfread): Initialize objfile cache for static
5865 * gdb_vecs.h (struct probe): New forward declaration.
5866 (probe_p): New VEC declaration.
5867 * gdbarch.c: Regenerate.
5868 * gdbarch.h: Regenerate.
5869 * gdbarch.sh (stap_integer_prefix): New variable.
5870 (stap_integer_suffix): Likewise.
5871 (stap_register_prefix): Likewise.
5872 (stap_register_suffix): Likewise.
5873 (stap_register_indirection_prefix): Likewise.
5874 (stap_register_indirection_suffix): Likewise.
5875 (stap_gdb_register_prefix): Likewise.
5876 (stap_gdb_register_suffix): Likewise.
5877 (stap_is_single_operand): New function.
5878 (stap_parse_special_token): Likewise.
5879 (struct stap_parse_info): Forward declaration.
5880 * i386-tdep.c: Including headers needed to perform the parsing
5881 of SystemTap probes' arguments.
5882 (i386_stap_is_single_operand): New function.
5883 (i386_stap_parse_special_token): Likewise.
5884 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5885 probes' arguments parser.
5886 * i386-tdep.h (i386_stap_is_single_operand): New function.
5887 (i386_stap_parse_special_token): Likewise.
5888 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5889 * mipsread.c (ecoff_sym_fns): Likewise.
5890 * objfiles.c (objfile_relocate1): Support relocation for static
5892 * parse.c (prefixify_expression): Remove static declaration.
5893 (initialize_expout): Likewise.
5894 (reallocate_expout): Likewise.
5895 * parser-defs.h (initialize_expout): Declare function.
5896 (reallocate_expout): Likewise.
5897 (prefixify_expression): Likewise.
5898 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5899 of SystemTap probes' arguments.
5900 (ppc_stap_is_single_operand): New function.
5901 (ppc_stap_parse_special_token): Likewise.
5902 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5903 probes' arguments parser.
5904 * probe.c: New file, for generic statically defined probe support.
5905 * probe.h: Likewise.
5906 * s390-tdep.c: Including headers needed to perform the parsing of
5907 SystemTap probes' arguments.
5908 (s390_stap_is_single_operand): New function.
5909 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5910 probes' arguments parser.
5911 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5912 * stap-probe.c: New file, for SystemTap probe support.
5913 * stap-probe.h: Likewise.
5914 * symfile.h: Include `gdb_vecs.h'.
5915 (struct sym_probe_fns): New struct.
5916 (struct sym_fns) <sym_probe_fns>: New field.
5917 * symtab.c (init_sal): Initialize `probe' field.
5918 * symtab.h (struct probe): Forward declaration.
5919 (struct symtab_and_line) <probe>: New field.
5920 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5922 (stop_tracing): Likewise.
5923 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5925 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5926 Tom Tromey <tromey@redhat.com>
5928 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5929 and to compile agent expressions.
5930 * infrun.c (siginfo_make_value): New argument `ignore'.
5931 (siginfo_funcs): New struct.
5932 (_initialize_infrun): New argument when calling
5933 `create_internalvar_type_lazy'.
5934 * thread.c (thread_id_make_value): New argument `ignore'.
5935 (thread_funcs): New struct.
5936 (_initialize_thread): New argument when calling
5937 `create_internalvar_type_lazy'.
5938 * tracepoint.c (sdata_make_value): New argument `ignore'.
5939 (sdata_funcs): New struct.
5940 (_initialize_tracepoint): New argument when calling
5941 `create_internalvar_type_lazy'.
5942 * value.c (make_value): New struct.
5943 (create_internalvar_type_lazy): New argument `data'.
5944 (compile_internalvar_to_ax): New function.
5945 (value_of_internalvar): Properly handling `make_value' case.
5946 (clear_internalvar): Likewise.
5947 (show_convenience): Adding `TRY_CATCH' block.
5948 * value.h (internalvar_make_value): Delete, replace by...
5949 (struct internalvar_funcs): ... this.
5950 (create_internalvar_type_lazy) <fun>: Delete argument.
5951 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5952 (compile_internalvar_to_ax): New function.
5953 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5954 (tlb_funcs): New struct.
5955 (_initialize_windows_tdep): New argument when calling
5956 `create_internalvar_type_lazy'.
5958 2012-04-27 Mark Wielaard <mjw@redhat.com>
5960 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5961 see whether it is an address or a constant offset from DW_AT_low_pc.
5962 (dwarf2_record_block_ranges): Likewise.
5963 (read_partial_die): Likewise.
5965 2012-04-26 Mark Wielaard <mjw@redhat.com>
5967 * MAINTAINERS (Write After Approval): Add myself to the list.
5969 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5971 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5972 (proc_prettyprint_signal): Likewise.
5973 (proc_prettyprint_faultset): Likewise.
5974 (proc_prettyprint_fault): Likewise.
5975 (proc_prettyprint_actionset): Likewise.
5976 (proc_prettyprint_flags): Move to new proc-flags.c section.
5977 (proc_prettyfprint_flags): New prototype.
5978 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5979 (proc_syscall, proc_cursig): Likewise.
5980 (proc_set_kill_on_last_close): Likewise.
5981 (proc_unset_kill_on_last_close): Likewise.
5982 (proc_set_watchpoint): Make static.
5983 (proc_delete_dead_threads): Likewise.
5984 (procfs_set_watchpoint): Likewise.
5985 (_initialize_procfs): Add prototype.
5986 * proc-events.c: Include proc-utils.h.
5987 (init_syscall_table): Make static.
5988 * proc-api.c (_initialize_proc_api): Add prototype.
5989 * proc-flags.c: Include proc-utils.h.
5991 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5993 * configure.ac: Add AC_ARG_PROGRAM.
5994 * configure: Regenerate.
5996 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5998 Fix DW_AT_lower_bound defaults for DWARF-4+.
5999 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6000 high. New variable low_default_is_valid. Implement DWARF-4+
6001 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6002 no default by the DWARF standard.
6004 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6005 Maciej W. Rozycki <macro@codesourcery.com>
6007 * infrun.c (handle_inferior_event): Move the check for return
6008 trampolines ahead of the check for function trampolines.
6009 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6010 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6011 (mips_str_mips16_ret_stub): Likewise.
6012 (mips_str_call_fp_stub): Likewise.
6013 (mips_str_call_stub): Likewise.
6014 (mips_str_fn_stub): Likewise.
6015 (mips_str_pic): Likewise.
6016 (mips_in_frame_stub): New function.
6017 (mips_unwind_pc): Return the return address rather than the PC
6018 if the PC of an intermediate frame is inside a call thunk.
6019 (mips_is_stub_suffix): New function.
6020 (mips_is_stub_mode): Likewise.
6021 (mips_get_mips16_fn_stub_pc): Likewise.
6022 (mips_skip_mips16_trampoline_code): Update to handle all the
6023 currently generated stub types. Don't recurse into __fn_stub
6024 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6025 Use cooked register accesses.
6026 (mips_in_return_stub): Reintroduce function.
6027 (mips_skip_trampoline_code): Traverse trampolines recursively.
6028 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6030 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6034 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6036 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6037 * features/arm-with-m-vfp-d16.xml: New file. Describes
6038 Cortex-M with VFPv4-sp-d16 FPU register layout.
6039 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6040 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6041 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6042 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6043 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6045 2012-04-25 Doug Evans <dje@google.com>
6047 * cli/cli-decode.c (print_doc_line): Use stream instead of
6050 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6052 * features/arm-with-iwmmxt.c: Regenerate.
6053 * features/arm-with-m-fpa-layout.c: Likewise.
6054 * features/arm-with-m.c: Likewise.
6055 * features/arm-with-neon.c: Likewise.
6056 * features/arm-with-vfpv2.c: Likewise.
6057 * features/arm-with-vfpv3.c: Likewise.
6058 * features/mips-dsp-linux.c: Likewise.
6059 * features/mips-linux.c: Likewise.
6060 * features/mips64-dsp-linux.c: Likewise.
6061 * features/mips64-linux.c: Likewise.
6062 * features/s390-linux32.c: Likewise.
6063 * features/s390-linux32v1.c: Likewise.
6064 * features/s390-linux32v2.c: Likewise.
6065 * features/s390-linux64.c: Likewise.
6066 * features/s390-linux64v1.c: Likewise.
6067 * features/s390-linux64v2.c: Likewise.
6068 * features/s390x-linux64.c: Likewise.
6069 * features/s390x-linux64v1.c: Likewise.
6070 * features/s390x-linux64v2.c: Likewise.
6071 * features/tic6x-c62x-linux.c: Likewise.
6072 * features/tic6x-c62x.c: Likewise.
6073 * features/tic6x-c64x-linux.c: Likewise.
6074 * features/tic6x-c64x.c: Likewise.
6075 * features/tic6x-c64xp-linux.c: Likewise.
6076 * features/tic6x-c64xp.c: Likewise.
6077 * target-descriptions.c: Only generate `field_type' and `type'
6078 variables when needed.
6080 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6082 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6084 2012-04-25 Doug Evans <dje@google.com>
6086 Initial pass at Go language support.
6088 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6090 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6091 (YYFILES): Add go-exp.c.
6092 (YYOBJ): Add go-exp.o.
6093 (local-maintainer-clean): Delete go-exp.c.
6094 * defs.h (enum language): Add language_go.
6095 * dwarf2read.c: #include "go-lang.h".
6096 (fixup_go_packaging): New function.
6097 (process_full_comp_unit): Call it when processing Go CUs.
6098 (dwarf2_physname): Add Go support.
6099 (read_file_scope): Handle missing language spec for GNU Go.
6100 (set_cu_language): Handle DW_LANG_Go.
6101 * go-exp.y: New file.
6102 * go-lang.h: New file.
6103 * go-lang.c: New file.
6104 * go-typeprint.c: New file.
6105 * go-valprint.c: New file.
6106 * symtab.c: #include "go-lang.h".
6107 (symbol_set_language): Handle language_go.
6108 (symbol_find_demangled_name, symbol_set_names): Ditto.
6109 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6111 2012-04-24 Jim Meyering <meyering@redhat.com>
6113 avoid a few strncpy-induced buffer overruns
6114 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6115 fname and psargs before trying to concatenate.
6116 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6117 "name" before applying strchr.
6119 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6121 * CONTRIBUTE: Use unified diff instead of context diff when
6124 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6126 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6127 code. Handle JR.HB correctly.
6129 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6132 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6133 with the other MIPS16 helpers.
6135 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6137 * observer.sh: Conditionally declare `args', thus cleaning up
6138 unused instances of this variable.
6140 2012-04-24 Yao Qi <yao@codesourcery.com>
6142 Revert this patch to allow breakpoint always-inserted
6144 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6145 * breakpoint.c: Include record.h.
6146 (breakpoints_always_inserted_mode): Return false when the record
6149 * breakpoint.c (iterate_over_bp_locations): New.
6150 * breakpoint.h: Declare.
6151 New typedef walk_bp_location_callback.
6152 * record.c (record_open): Call record_init_record_breakpoints.
6153 (record_sync_record_breakpoints): New.
6154 (record_init_record_breakpoints): New.
6155 * NEWS: Mention supporting breakpoint always-inserted mode in
6158 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6160 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6163 2012-04-24 Yao Qi <yao@codesourcery.com>
6165 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6166 (is_catchpoint): ... it.
6167 (print_one_breakpoint_location): Caller update.
6168 * breakpoint.h: Update declaration.
6170 2012-04-23 David S. Miller <davem@davemloft.net>
6172 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6174 2012-04-23 Tom Tromey <tromey@redhat.com>
6176 * buildsym.c (add_free_pendings): Remove.
6177 * buildsym.h (add_free_pendings): Remove.
6179 2012-04-23 Doug Evans <dje@google.com>
6181 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6182 attr.u.unsnd instead of attr.u.addr.
6183 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6184 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6186 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6187 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6189 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6191 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6193 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6194 (mips_o32_return_value): Likewise.
6195 (mips_o64_return_value): Likewise.
6197 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6199 * ada-lang.c (ada_evaluate_subexp): Add cases for
6200 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6201 their treatment in eval.c.
6203 2012-04-21 David S. Miller <davem@davemloft.net>
6205 * sparc-tdep.c (X_DISP10): Define.
6206 (sparc_analyze_control_transfer): Handle compare-and-branch.
6208 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6210 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6211 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6213 2012-04-20 Nigel Stephens <nigel@mips.com>
6214 Maciej W. Rozycki <macro@codesourcery.com>
6216 * mips-tdep.c (mips_float_register_p): New function.
6217 (mips_convert_register_float_case_p): Use mips_float_register_p.
6218 (mips_register_type): Likewise.
6219 (mips_print_register): Likewise.
6220 (print_gp_register_row): Likewise.
6221 (mips_print_registers_info): Likewise.
6223 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6225 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6228 2012-04-20 Andrew Pinski <apinski@cavium.com>
6230 * MAINTAINERS (Write After Approval): Add myself to the list.
6232 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6234 * MAINTAINERS: Update my e-mail address.
6236 2012-04-20 Pedro Alves <palves@redhat.com>
6238 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6240 * configure: Regenerate.
6242 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6244 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6246 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6248 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6250 Fix compilation compatibility with python-2.4
6251 * python/py-type.c (convert_field): Cast ADDRSTRING for
6252 PyObject_SetAttrString as non-const. New comment.
6254 2012-04-19 Tom Tromey <tromey@redhat.com>
6256 * top.c (quit_target): Use all_cleanups.
6257 * main.c (captured_command_loop): Use all_cleanups.
6258 * exceptions.c (throw_exception): Use all_cleanups.
6260 2012-04-19 Pedro Alves <palves@redhat.com>
6262 * Makefile.in (GNULIB_BUILDDIR): New.
6263 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6264 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6265 (CLEANDIRS). Remove gnulib/import.
6266 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6268 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6269 (gnulib/import/Makefile): Replace gnulib/import with
6270 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6271 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6272 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6273 acx_configure_dir.m4.
6274 * acinclude.m4: Include acx_configure_dir.m4.
6275 * acx_configure_dir.m4: New file.
6276 * aclocal.m4: Regenerate.
6277 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6278 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6279 (GNULIB): New variable.
6280 (GNULIB_STDINT_H): Adjust.
6281 (AC_OUTPUT): Don't output gnulib/Makefile.
6282 * gdb/defs.h: Include build-gnulib/config.h.
6283 * aclocal.m4: Regenerate.
6284 * config.in: Regenerate.
6285 * configure: Regenerate.
6287 * gnulib/Makefile.in: New file.
6288 * gnulib/configure.ac: New file.
6289 * gnulib/aclocal.m4: New file.
6290 * gnulib/config.in: New file.
6291 * gnulib/configure: New file.
6292 * gnulib/: Re-run gnulib-tool to adjust.
6294 2012-04-19 Doug Evans <dje@google.com>
6296 * cleanups.h (struct cleanup): Move to cleanups.c.
6297 (make_cleanup_dtor_ftype): New typedef.
6298 (make_cleanup_dtor): Use it.
6299 (ALL_CLEANUPS): Replace with ...
6300 (all_cleanups): ... this. Declare. All uses updated.
6301 * cleanups.c: #include "gdb_assert.h".
6302 (sentinel_cleanup): New static global.
6303 (SENTINEL_CLEANUP): Define.
6304 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6305 (make_my_cleanup2): Assert result is non-NULL.
6306 (all_cleanups): New function.
6307 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6310 2012-04-19 Pedro Alves <palves@redhat.com>
6312 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6313 Adjust paths to gnulib imported files.
6315 2012-04-19 Pedro Alves <palves@redhat.com>
6317 * gnulib/: Move whole directory ...
6318 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6319 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6320 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6321 (aclocal_m4_deps): Adjust.
6322 * aclocal.m4: Regenerate.
6323 * configure: Regenerate.
6324 * configure.ac: Adjust AC_OUTPUT output.
6326 2012-04-19 Yao Qi <yao@codesourcery.com>
6328 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6330 * vec.c: Move it ...
6331 * common/vec.c: ... here.
6332 * vec.h: Move it ...
6333 * common/vec.h: ... here.
6335 2012-04-19 Yao Qi <yao@codesourcery.com>
6337 * gdb-code-style.el: New.
6339 2012-04-18 Pedro Alves <palves@redhat.com>
6341 Update gnulib from latest git.
6342 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6344 * gnulib/Makefile.am: Update.
6345 * gnulib/dummy.c: Update.
6346 * gnulib/extra/arg-nonnull.h: Update.
6347 * gnulib/extra/c++defs.h: Update.
6348 * gnulib/extra/update-copyright: Update.
6349 * gnulib/extra/warn-on-use.h: Update.
6350 * gnulib/inttypes.in.h: Update.
6351 * gnulib/m4/00gnulib.m4: Update.
6352 * gnulib/m4/extensions.m4: Update.
6353 * gnulib/m4/gnulib-cache.m4: Update.
6354 * gnulib/m4/gnulib-common.m4: Update.
6355 * gnulib/m4/gnulib-comp.m4: Update.
6356 * gnulib/m4/gnulib-tool.m4: Update.
6357 * gnulib/m4/include_next.m4: Update.
6358 * gnulib/m4/inttypes-pri.m4: Update.
6359 * gnulib/m4/inttypes.m4: Update.
6360 * gnulib/m4/longlong.m4: Update.
6361 * gnulib/m4/memchr.m4: Update.
6362 * gnulib/m4/memmem.m4: Update.
6363 * gnulib/m4/mmap-anon.m4: Update.
6364 * gnulib/m4/multiarch.m4: Update.
6365 * gnulib/m4/onceonly.m4: Update.
6366 * gnulib/m4/stddef_h.m4: Update.
6367 * gnulib/m4/stdint.m4: Update.
6368 * gnulib/m4/string_h.m4: Update.
6369 * gnulib/m4/warn-on-use.m4: Update.
6370 * gnulib/m4/wchar_h.m4: Update.
6371 * gnulib/m4/wchar_t.m4: Update.
6372 * gnulib/m4/wint_t.m4: Update.
6373 * gnulib/memchr.c: Update.
6374 * gnulib/memmem.c: Update.
6375 * gnulib/stddef.in.h: Update.
6376 * gnulib/stdint.in.h: Update.
6377 * gnulib/str-two-way.h: Update.
6378 * gnulib/string.in.h: Update.
6379 * gnulib/wchar.in.h: Update.
6381 * gnulib/extra/arg-nonnull.h: Delete.
6382 * gnulib/extra/c++defs.h: Delete.
6383 * gnulib/extra/warn-on-use.h: Delete.
6384 * gnulib/m4/wchar_h.m4: Delete.
6385 * gnulib/m4/wint_t.m4: Delete.
6386 * gnulib/wchar.in.h: Delete.
6388 * gnulib/extra/snippets/arg-nonnull.h: New.
6389 * gnulib/extra/snippets/c++defs.h: New.
6390 * gnulib/extra/snippets/warn-on-use.h: New.
6392 * aclocal.m4: Regenerate.
6393 * config.in: Regenerate.
6394 * configure: Regenerate.
6395 * gnulib/Makefile.in: Regenerate.
6397 2012-04-18 Pedro Alves <palves@redhat.com>
6399 Reimport the update-copyright module from gnulib
6400 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6402 * configure: Regenerate.
6403 * gnulib/Makefile.am: Update.
6404 * gnulib/Makefile.in: Regenerate.
6405 * gnulib/extra/update-copyright: Update.
6406 * gnulib/m4/gnulib-cache.m4: Update.
6407 * gnulib/m4/gnulib-comp.m4: Update.
6409 2012-04-18 Tristan Gingold <gingold@adacore.com>
6411 * configure.ac (aix): Put -lpthread into libs.
6412 * configure: Regenerate.
6414 2012-04-18 Tom Tromey <tromey@redhat.com>
6416 * linespec.c (convert_linespec_to_sals): Don't use
6418 (compare_msymbols): Arguments are minsym_and_objfile, not
6419 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6421 2012-04-18 Pedro Alves <palves@redhat.com>
6423 Revert gnulib/ part of:
6424 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6425 Copyright year update in most files (performed by copyright.sh).
6427 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6429 Fix 64-bit constants on 32-bit hosts.
6430 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6431 from unsigned long to ULONGEST.
6432 (read_signed_leb128): Change declaration return type from long to
6434 (dwarf2_const_value_attr): Change declaration parameter value from long
6436 (dwarf2_compute_name): Change variable value from long to LONGEST.
6437 (read_unsigned_leb128): Change return type, variable result and some
6438 casts from unsigned long to ULONGEST.
6439 (read_signed_leb128): Change return type, variable result and some
6440 casts from long to LONGEST.
6441 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6442 value from long to LONGEST.
6443 (dwarf2_const_value): Change variable value from long to LONGEST.
6444 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6445 plongest and hex_string.
6446 * symtab.h (struct general_symbol_info): Change ivalue from long to
6447 LONGEST, remove the comment.
6448 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6449 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6451 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6454 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6455 * ada-lang.c (ada_discrete_type_high_bound)
6456 (ada_discrete_type_low_bound): Fix function comment. Use
6457 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6458 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6459 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6460 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6461 Use TYPE_FIELD_ENUMVAL.
6462 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6463 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6464 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6465 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6467 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6468 * dwarf2read.c (process_enumeration_scope): Likewise.
6469 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6471 (class StructMainTypePrettyPrinter): Support also
6472 FIELD_LOC_KIND_ENUMVAL.
6473 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6475 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6476 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6477 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6478 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6480 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6481 accommodate enumval.
6482 (struct call_site): Adjust loc_kind to accommodate enumval.
6483 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6484 (TYPE_FIELD_ENUMVAL): New macros.
6485 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6486 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6488 * p-typeprint.c (pascal_type_print_base): Likewise.
6489 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6491 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6492 * python/py-type.c (convert_field): New variable addrstring. Use
6493 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6494 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6495 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6496 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6498 * valprint.c (generic_val_print): Likewise.
6500 2012-04-17 Doug Evans <dje@google.com>
6502 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6504 * dwarf2read.c: Whitespace fixes.
6505 (lookup_signatured_type): Tweak comment.
6506 (get_die_type_at_offset): Fix comment.
6508 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6510 * xcoffread.c (xcoff_secnum_to_sections): New function.
6511 (secnum_to_section, secnum_to_bfd_section): Reimplement
6512 using xcoff_secnum_to_sections. Rename "secnum" parameter
6514 (RECORD_MINIMAL_SYMBOL): Delete.
6515 (record_minimal_symbol): New function.
6516 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6517 by call to record_minimal_symbol and set misc_func_recorded
6518 to 1. Set last_csect_sec to the XCOFF section index instead
6519 of GDB's section_offset index. Update calls to
6520 prim_record_minimal_symbol_and_info to pass the BFD section
6523 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6525 * xcoffread.c (read_xcoff_symtab): Delete variables
6526 last_csect_val and last_csect_sec and associated code.
6528 2012-04-17 Doug Evans <dje@google.com>
6530 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6531 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6532 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6533 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6535 * cleanups.h: New file.
6536 * cleanups.c: New file.
6537 * Makefile.in (SFILES): Add cleanups.c.
6538 (HFILES_NO_SRCDIR): Add cleanups.h.
6539 (COMMON_OBS): Add cleanups.o.
6540 * defs.h (struct cleanup): Moved to cleanups.h.
6541 (do_cleanups,do_final_cleanups): Ditto.
6542 (discard_cleanups,discard_final_cleanups): Ditto
6543 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6544 (save_cleanups,save_final_cleanups): Ditto.
6545 (restore_cleanups,restore_final_cleanups): Ditto.
6546 (null_cleanup): Ditto.
6547 (make_my_cleanup,make_my_cleanup2): Ditto.
6548 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6549 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6550 (do_cleanups,do_final_cleanups): Ditto.
6551 (discard_cleanups,discard_final_cleanups): Ditto
6552 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6553 (save_cleanups,save_final_cleanups): Ditto.
6554 (restore_cleanups,restore_final_cleanups): Ditto.
6555 (null_cleanup): Ditto.
6556 (make_my_cleanup,make_my_cleanup2): Ditto.
6557 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6559 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6561 (make_cleanup_dyn_string_delete): Ditto.
6562 (make_cleanup_ui_file_delete): Ditto.
6563 (make_cleanup_ui_out_redirect_pop): Ditto.
6564 (make_cleanup_free_section_addr_info): Ditto.
6565 (make_cleanup_restore_integer): Ditto.
6566 (make_cleanup_unpush_target): Ditto.
6567 (make_cleanup_value_free_to_mark): Ditto.
6568 (make_cleanup_value_free): Ditto.
6569 (make_cleanup_free_so): Ditto.
6571 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6573 New option "set debug auto-load".
6574 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6575 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6576 (auto_load_safe_path_vec_update)
6577 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6579 (file_is_auto_load_safe): New parameters debug_fmt and ....
6580 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6581 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6582 caller by explanatory string.
6583 (_initialize_auto_load): Register "set debug auto-load".
6584 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6586 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6587 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6588 by explanatory string.
6589 * main.c (captured_main): Likewise.
6590 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6591 (source_section_scripts): Likewise.
6593 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6595 New option "set auto-load safe-path".
6596 * NEWS: New commands "set auto-load safe-path"
6597 and "show auto-load safe-path".
6598 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6599 (auto_load_safe_path, auto_load_safe_path_vec)
6600 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6601 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6602 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6603 (source_gdb_script_for_objfile): New variable is_safe. Call
6604 file_is_auto_load_safe. Return if it is not.
6605 (struct loaded_script): New field loaded.
6606 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6607 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6608 output "Missing" to "No".
6609 (_initialize_auto_load): New variable cmd. Initialize
6610 auto_load_safe_path. Register "set auto-load safe-path",
6611 "show auto-load safe-path" and "add-auto-load-safe-path".
6612 * auto-load.h (maybe_add_script): Add parameter loaded.
6613 (file_is_auto_load_safe): New declaration.
6614 * config.in: Regenerate.
6615 * configure: Regenerate.
6616 * configure.ac: New parameters --with-auto-load-safe-path
6617 and --without-auto-load-safe-path.
6618 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6619 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6620 * main.c (captured_main): Check file_is_auto_load_safe for
6622 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6623 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6624 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6627 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6629 auto-load: Implementation.
6630 * NEWS: New descriptions for "info auto-load",
6631 "info auto-load gdb-scripts", "info auto-load python-scripts",
6632 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6633 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6634 and "show auto-load-scripts". New description for "set auto-load",
6635 "show auto-load", "set auto-load gdb-scripts",
6636 "show auto-load gdb-scripts", "set auto-load python-scripts",
6637 "show auto-load python-scripts", "set auto-load local-gdbinit",
6638 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6639 "show auto-load libthread-db".
6640 * auto-load.c: Remove include python/python-internal.h. Add includes
6641 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6643 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6644 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6645 (gdbpy_global_auto_load): Rename to ...
6646 (global_auto_load): ... here.
6647 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6648 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6649 (script_language_gdb, source_gdb_script_for_objfile): New.
6650 (struct loaded_script): New field language.
6651 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6653 (maybe_add_script): Add parameter language. Drop redundant
6654 entry.full_path initialization. Initialize entry.language and
6656 (auto_load_objfile_script): Change parameter suffix to language.
6657 Remove the call of maybe_add_script.
6658 Call language->source_script_for_objfile.
6659 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6661 (collect_matching_scripts): Adjust it for
6662 struct collect_matching_scripts_data.
6663 (auto_load_info_scripts_pattern_nl): New variable.
6664 (info_auto_load_scripts): Rename to ...
6665 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6666 for struct collect_matching_scripts_data.
6667 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6668 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6669 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6670 (auto_load_info_cmdlist_get): New.
6671 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6672 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6673 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6674 "info auto-load local-gdbinit".
6675 * auto-load.h (struct script_language): New.
6676 (gdbpy_global_auto_load): Rename to ...
6677 (global_auto_load): ... here.
6678 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6679 (auto_load_local_gdbinit_loaded): New declarations.
6680 (maybe_add_script): New parameter language.
6681 (auto_load_objfile_script): Change parameter suffix to language.
6682 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6683 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6684 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6686 * linux-thread-db.c: Include auto-load.h and ctype.h.
6687 (auto_load_thread_db, show_auto_load_thread_db): New.
6688 (struct thread_db_info): New field filename.
6689 (delete_thread_db_info): Call xfree for FILENAME.
6690 (try_thread_db_load): Initialize FILENAME.
6691 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6692 if !AUTO_LOAD_THREAD_DB.
6693 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6694 (_initialize_thread_db): Install auto_load_thread_db
6695 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6696 as "info auto-load libthread-db".
6697 * main.c (captured_main): Rename gdbpy_global_auto_load to
6698 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6699 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6700 (print_gdb_help): Extend the help for 'local init file'.
6701 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6702 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6703 (auto_load_scripts): Rename to ...
6704 (auto_load_python_scripts): ... here, update the comment.
6705 (gdbpy_load_auto_script_for_objfile): New declaration.
6706 (show_auto_load_python_scripts, script_language_python)
6707 (gdbpy_load_auto_script_for_objfile): New.
6708 (source_section_scripts): Refactor the code.
6709 (load_auto_scripts_for_objfile): Rename to ...
6710 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6711 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6712 (info_auto_load_python_scripts): New.
6713 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6714 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6715 Register "set auto-load-scripts" as its deprecated alias. Register
6716 "info auto-load python-scripts". Register "info auto-load-scripts" as
6717 its deprecated alias.
6718 (load_auto_scripts_for_objfile): Rename to ...
6719 (gdbpy_load_auto_scripts_for_objfile): ... here.
6720 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6721 (gdbpy_load_auto_scripts_for_objfile): ... here.
6723 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6725 auto-load: Move files.
6726 * Makefile.in (SFILES): Add auto-load.c.
6727 (HFILES_NO_SRCDIR): Add auto-load.h.
6728 (COMMON_OBS): Add auto-load.o.
6729 (distclean): Change .gdbinit for gdb-gdb.gdb.
6730 * auto-load.c: New file, with parts from python/py-auto-load.c.
6731 * auto-load.h: New file, with parts from python/python.h.
6732 * configure: Regenerate.
6733 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6734 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6735 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6736 * main.c: Include auto-load.h.
6737 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6738 command.h, observer.h and progspace.h to auto-load.c. Add include
6740 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6741 (struct loaded_script, auto_load_pspace_data)
6742 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6743 (hash_loaded_script_entry, eq_loaded_script_entry)
6744 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6745 (maybe_add_script): Move to auto-load.c.
6746 (source_section_scripts): Change maybe_add_script parameters passing,
6747 use script_not_found_warning_print.
6748 (clear_section_scripts, auto_load_objfile_script)
6749 (auto_load_new_objfile, loaded_script_ptr)
6750 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6751 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6752 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6753 auto_load_new_objfile and info_auto_load_scripts initizations to
6755 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6757 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6760 * charset.c (find_charset_names): Remove variables ix and elt.
6761 Use free_char_ptr_vec.
6762 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6763 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6764 debugdir_end. New variable debugdir_len.
6765 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6766 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6768 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6769 and elt. Use free_char_ptr_vec.
6770 * source.c (add_path): Remove variables argv, arg and argv_index.
6771 New variables dir_vec, back_to, ix and name.
6772 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6773 make_cleanup_freeargv. Remove variable separator. Simplify the code
6774 no longer expecting DIRNAME_SEPARATOR.
6775 (openp): Remove variable p, p1 and len. New variables dir_vec,
6776 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6777 no longer expecting DIRNAME_SEPARATOR.
6778 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6779 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6781 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6782 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6783 (dirnames_to_char_ptr_vec): New functions.
6785 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6788 * source.c (add_path): Remove always true conditional 'p == 0' and
6789 unindent its code block.
6791 2012-04-17 Pedro Alves <palves@redhat.com>
6793 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6794 (FIELD_BITPOS_LVAL): ... this.
6795 (FIELD_BITPOS): New.
6796 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6797 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6798 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6800 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6802 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6803 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6804 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6807 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6809 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6810 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6811 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6812 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6813 * jv-lang.c (java_link_class_type): Likewise, once.
6814 * stabsread.c (read_enum_type): Likewise.
6816 2012-04-16 Yao Qi <yao@codesourcery.com>
6818 * common/agent.c (agent_run_command): Add one more parameter `len'.
6820 * common/agent.h: Update declaration.
6821 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6823 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6825 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6828 * value.c (value_actual_type): New function.
6829 * value.h (value_actual_type): New declaration.
6830 * varobj.c (update_type_if_necessary): New function.
6831 (varobj_create): Call value_actual_type instead of
6833 (install_dynamic_child): distinct changed and type changed MI variable
6835 (update_dynamic_varobj_children): Updated for install_dynamic_child
6836 change. All callers updated.
6837 (varobj_update): Support for MI variable object type change if
6838 the value changed and RTTI is used to determine the type.
6839 (create_child_with_value): Call value_actual_type instead of
6841 (adjust_value_for_child_access): Extended with a new parameter which
6842 specify whether the given value should be casted to enclosing type.
6843 All callers updated.
6845 2012-04-14 Yao Qi <yao@codesourcery.com>
6847 Import gnulib module inttypes from git
6848 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6849 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6850 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6851 gnulib/m4/inttypes-pri.m4
6852 * aclocal.m4, config.in, configure: Regenerated.
6853 * gnulib/Makefile.am: Update.
6854 * gnulib/Makefile.in: Update.
6855 * gnulib/m4/gnulib-cache.m4: Update.
6856 * gnulib/m4/gnulib-comp.m4: Update.
6857 * gnulib/inttypes.in.h: New.
6858 * gnulib/m4/inttypes-pri.m4: New.
6859 * gnulib/m4/inttypes.m4: New.
6861 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6863 * infrun.c (resume): Update PC address to the real PC after
6864 preparing to do displaced stepping.
6866 2012-04-12 Doug Evans <dje@google.com>
6868 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6869 All callers updated.
6871 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6873 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6875 2012-04-12 Doug Evans <dje@google.com>
6877 * dwarf2read.c (create_all_type_units): Renamed from
6878 create_debug_types_hash_table. All callers updated.
6880 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6881 local type_sig to sig_type, type_offset to type_offset_in_tu.
6882 (hash_signatured_type): Renamed from hash_type_signature,
6883 all callers updated.
6884 (eq_signatured_type): Renamed from eq_type_signature,
6885 all callers updated.
6886 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6887 (process_enumeration_scope): Ditto.
6888 (lookup_signatured_type_at_offset): Ditto.
6889 (load_full_type_unit, read_signatured_type): Ditto.
6891 2012-04-12 Yao Qi <yao@codesourcery.com>
6893 * remote.c (async_remote_interrupt): Correct function name in
6895 (async_remote_interrupt_twice): Ditto.
6897 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6899 * source.c (find_and_open_source): Consistently pass resulting
6900 full path through xfullpath.
6902 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6904 Provide more specific displaced-stepping memory error message.
6905 * infrun.c (displaced_step_prepare): New variable status. Call
6906 target_read_memory instead of read_memory, provide more specific
6909 2012-04-11 Tristan Gingold <gingold@adacore.com>
6912 * darwin-nat.c (darwin_execvp): Revert previous patch.
6914 2012-04-11 Tristan Gingold <gingold@adacore.com>
6917 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6920 2012-04-11 Tristan Gingold <gingold@adacore.com>
6922 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6925 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6927 New command 'explore' which helps explore values and types in
6929 * NEWS: Add an entry about the new 'explore' command.
6930 * data-directory/Makefile.in: Add gdb/command/explore.py
6931 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6932 command using the GDB Python API.
6934 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6936 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6937 extension in jump target calculation.
6939 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6941 * mips-tdep.c (mips32_next_pc): Handle JALX.
6943 2012-04-10 Yao Qi <yao@codesourcery.com>
6945 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6947 2012-04-10 Yao Qi <yao@codesourcery.com>
6949 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6950 and gnulib/m4/gnulib-tool.m4.
6952 2012-04-10 Doug Evans <dje@google.com>
6954 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6955 (load_partial_dies): Clarify comment.
6956 (find_partial_die): Support rereading type units.
6957 Clarify CU handling, if we know offset is in CU, don't search for the
6958 containing CU. Add comment regarding memory waste.
6960 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6962 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6963 i386/x32-avx and i386/x32-avx-linux.
6964 (i386/x32-expedite): New.
6965 (i386/x32-linux-expedite): Likewise.
6966 (i386/x32-avx-expedite): Likewise.
6967 (i386/x32-avx-linux-expedite): Likewise.
6968 ($(outdir)/i386/x32.dat): Likewise.
6969 ($(outdir)/i386/x32-linux.dat): Likewise.
6970 ($(outdir)/i386/x32-avx.dat): Likewise.
6971 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6973 * features/i386/x32-avx-linux.xml: New file.
6974 * features/i386/x32-avx.xml: Likewise.
6975 * features/i386/x32-core.xml: Likewise.
6976 * features/i386/x32-linux.xml: Likewise.
6977 * features/i386/x32.xml: Likewise.
6979 * features/i386/x32-avx-linux.c: New. Generated.
6980 * features/i386/x32-avx.c: Likewise.
6981 * features/i386/x32-linux.c: Likewise.
6982 * features/i386/x32.c: Likewise.
6983 * regformats/i386/x32-avx-linux.dat: Likewise.
6984 * regformats/i386/x32-avx.dat: Likewise.
6985 * regformats/i386/x32-linux.dat: Likewise.
6986 * regformats/i386/x32.dat: Likewise.
6988 2012-04-10 Tristan Gingold <gingold@adacore.com>
6990 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6991 code to kill the inferior.
6993 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6995 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6997 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6999 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7000 (yyvsp): New defines.
7001 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7003 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7005 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7007 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7009 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7012 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7014 * sparc64-tdep.c (sparc64_store_arguments)
7015 (sparc64_store_arguments): Fix coding style.
7017 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7019 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7020 complex floats, adjust some related comments and tighten a related
7022 (sparc64_extract_return_value): Handle complex floats.
7024 2012-04-07 Doug Evans <dje@google.com>
7026 * dwarf2read.c (load_partial_dies): Change condition to assert.
7028 2012-04-06 Doug Evans <dje@google.com>
7030 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7033 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7035 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7037 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7038 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7041 2012-04-05 Keith Seitz <keiths@redhat.com>
7043 * linespec.c (decode_compound): Remove.
7044 (enum offset_relative_sign): New enum.
7045 (struct line_offset): New struct.
7046 (struct linespec): New struct.
7047 (struct linespec_state): Move file_symtabs,
7048 user_filename, and user_function into struct linespec.
7049 Make result an anonymous struct holding vectors of
7050 symbolp and minsym_and_objfile_d.
7051 Add language member.
7052 (enum ls_token_type): New enum.
7053 (linespec_keywords): New array.
7054 (struct ls_token): New struct.
7055 (struct ls_parser): New struct.
7056 (linespec_lexer_lex_number): New function.
7057 (linespec_lexer_lex_keyword): New function.
7058 (is_ada_operator): New function.
7059 (skip_quote_char): New function.
7060 (copy_token_string): New function.
7061 (is_closing_quote_enclosed): New function.
7062 (find_parameter_list_end): New function.
7063 (linespec_lexer_lex_string): New function.
7064 (linespec_lexer_lex_one): New function.
7065 (linespec_lexer_consume_token): New function.
7066 (linespec_lexer_peek_token): New function.
7067 (cplusplus_error): Remove unused function.
7068 (find_methods): Update comment.
7069 (find_toplevel_char): Return const.
7070 (is_objc_method_format): Remove unused function.
7071 (find_toplevel_string): New function.
7072 (is_linespec_boundary): Remove.
7073 (symbol_not_found_error): New function.
7074 (find_method_overload_end): Remove function.
7075 (unexpected_linespec_error): New function.
7076 (keep_name_info): Remove.
7077 (linespec_parse_line_offset): New function.
7078 (linespec_parse_basic): New function.
7079 (canonicalize_linespec): New function.
7080 (decode_line_internal): Remove.
7081 (create_sals_line_offset): New function adapted from
7083 (convert_linespec_to_sals): New function.
7084 (parse_linespec): New function.
7085 (linespec_parser_new): New function.
7086 (linespec_state_destructor): Change parameter type to
7087 struct linespec_state *.
7088 Add language parameter.
7089 Remove freeing of moved members.
7090 (linespec_parser_delete): New function.
7091 (decode_line_full): Use parse_linespec and linespec_parser_new.
7092 (decode_line_1): Likewise.
7093 (decode_indirect): Rename to ...
7094 (linespec_expression_to_pc): ... this and rewrite
7095 to simply find CORE_ADDR, storing this result for later
7097 (locate_first_half): Remove.
7098 (deocde_objc): Add parameter LS.
7099 Initialize new struct collect_info members.
7100 Handle minimal symbols, too.
7101 (decode_compound): Delete.
7102 (lookup_prefix_sym): Rewrite.
7103 (compare_msymbols): New function.
7104 (find_method): Rewrite.
7105 Do not call cplusplus_error.
7106 (symtabs_from_filename): Rewrite.
7107 (collect_function_symbols): Delete.
7108 (find_function_symbols): Rewrite without ARGPTR-style
7110 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7111 (decode_dollar): Adapted and renamed to ...
7112 (linespec_parse_variable): ... this.
7113 (find_linespec_symbols): New function.
7114 (decode_label): Adapted and renamed to ...
7115 (find_label_symbols): ... this.
7116 (decode_digits_list_mode): Add and use LS argument.
7117 (decode_digits_ordinary): Likewise.
7118 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7119 If in list mode, allow any symbol class. Otherwise, only
7120 permit LOC_BLOCK symbols.
7121 (minsym_found): Update comments.
7122 (search_minsyms_for_name): Do not convert the matching symbol
7123 into a SAL. Simply push the symbol and objfile into the
7125 (decode_variable): Delete. Contents adapted into
7126 find_linespec_symbols.
7128 * cp-support.c (SKIP_SPACE): Remove.
7129 (operator_tokens): Remove unused global.
7130 (cp_validate_operator): Remove.
7131 * cp-support.h (cp_validate_operator): Remove declaration.
7133 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7135 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7136 for TYPE_VPTR_FIELDNO.
7137 * valprint.c (valprint_check_validity): Make it global, move the
7138 function comment ...
7139 * value.h (valprint_check_validity): ... to this new declaration.
7141 2012-04-02 Tristan Gingold <gingold@adacore.com>
7143 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7144 the STATE32 api for i386 state.
7145 (i386_darwin_store_inferior_registers): Likewise.
7147 2012-04-02 Tristan Gingold <gingold@adacore.com>
7149 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7151 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7154 2012-04-02 Tristan Gingold <gingold@adacore.com>
7157 * darwin-nat.c (darwin_execvp): Set binary preference.
7159 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7161 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7163 2012-03-30 Tom Tromey <tromey@redhat.com>
7165 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7166 of TRY_CATCH. Fix error handling.
7167 * python/py-value.c (convert_value_from_python): Move 'old'
7168 declaration to innermost scope.
7170 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7171 Andrey Smirnov <andrew.smirnov@gmail.com>
7173 -Wshadow warning fix.
7174 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7175 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7176 Adjust code accordingly.
7178 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7180 * ada-lang.c (symbol_completion_add): Rename parameter
7181 "encoded" into "encoded_p". Ajust code and documentation
7184 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7185 Andrey Smirnov <andrew.smirnov@gmail.com>
7187 -Wshadow warning fix.
7188 * ada-lang.c (symbol_completion_add): Rename parameter
7189 "wild_match" into wild_match_p. Update code and documentation
7192 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7194 * ada-lang.c (symbol_completion_match): Rename parameter
7195 "encoded" into "encoded_p". Ajust code and documentation
7198 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7199 Andrey Smirnov <andrew.smirnov@gmail.com>
7201 -Wshadow warning fix.
7202 * ada-lang.c (symbol_completion_match): Rename parameter
7203 "wild_match" into "wild_match_p". Adjust code and function
7204 documentation accordingly.
7206 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7207 Andrey Smirnov <andrew.smirnov@gmail.com>
7209 -Wshadow warning fix.
7210 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7211 "symbol_info" into "info". Adjust code accordingly.
7212 (ada_lookup_symbol): Likewise.
7214 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7216 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7217 of this function's documentation.
7219 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7220 Andrey Smirnov <andrew.smirnov@gmail.com>
7222 -Wshadow warning fix.
7223 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7224 variable into "wild_match_p". Adjust code accordingly.
7226 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7227 Andrey Smirnov <andrew.smirnov@gmail.com>
7229 -Wshadow warning fix.
7230 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7231 parameter into "wild_match_p". Adjust code accordingly.
7232 Document this parameter in the function description.
7234 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7235 Andrey Smirnov <andrew.smirnov@gmail.com>
7237 -Wshadow warning fix.
7238 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7239 "wild_match" parameter to "wild_match_p" (-Wshadow).
7241 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7243 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7244 in function documentation.
7246 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7247 Andrey Smirnov <andrew.smirnov@gmail.com>
7249 -Wshadow warning fix.
7250 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7251 variable into wild_match_p. Adjust code accordingly.
7253 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7254 Andrey Smirnov <andrew.smirnov@gmail.com>
7256 * ada-valprint.c (ada_val_print_1): Move the code handling
7257 TYPE_CODE_ENUM inside its own lexical block. Declare
7258 variables len and val there, instead of in the function's
7259 top level block. Avoid declaring deref_val again in a way
7260 that shadows another variable of the same name declared
7261 in one of the up-level blocks. Just re-use the up-level
7264 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7266 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7267 Replace block_found argument by symbol_info. Adjust
7268 implementation accordingly. Add function documentation.
7269 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7271 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7272 * ada-exp.y (write_object_renaming): Adjust to new
7273 ada_lookup_encoded_symbol API.
7275 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7277 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7280 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7282 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7283 (v850_register_name): Add the mpu and fpu register names.
7284 (v850e_register_name): Add the mpu and fpu register names.
7285 (v850e2_register_name): New function.
7286 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7289 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7291 * NEWS: Add entry for Ada varobj support.
7293 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7295 * varobj.c (default_value_is_changeable_p): New function,
7296 extracted from varobj_value_is_changeable_p. Add declaration.
7297 (ada_value_is_changeable_p): New function, extracted from
7298 varobj_value_is_changeable_p. Add declaration.
7299 (struct language_specific): New field "value_is_changeable_p".
7300 (languages): Add entries for new field.
7301 (varobj_create): Set language before calling install_new_value.
7302 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7303 "value_is_changeable_p" language callback.
7305 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7307 * ada-varobj.h, ada-varobj.c: New files.
7308 * Makefile.in (SFILES): Add ada-varobj.c.
7309 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7310 (COMMON_OBS): Add ada-varobj.o.
7312 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7314 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7315 (struct language_specific): New field "value_has_mutated".
7316 (languages): Set field "value_has_mutated" in each entry of array.
7317 (varobj_value_has_mutated): New function.
7318 (varobj_udpdate): Add handling of type mutation.
7319 (value_of_root): Add handling of type mutation.
7320 (ada_value_has_mutated): New function.
7322 2012-03-28 Pedro Alves <palves@redhat.com>
7324 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7325 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7327 2012-03-28 Tom Tromey <tromey@redhat.com>
7329 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7330 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7333 2012-03-28 Tom Tromey <tromey@redhat.com>
7335 * .dir-locals.el: New file.
7337 2012-03-28 Pedro Alves <palves@redhat.com>
7339 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7341 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7343 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7346 2012-03-27 Pedro Alves <palves@redhat.com>
7348 Eliminate struct ui_stream.
7350 * ui-out.h (struct ui_stream): Delete.
7351 (ui_out_field_stream): Adjust prototype.
7352 (ui_out_stream_new, ui_out_stream_delete)
7353 (make_cleanup_ui_out_stream_delete): Delete declarations.
7354 * ui-out.c (ui_out_field_stream): Change prototype to take a
7355 ui_file instead of a ui_stream. Adjust.
7356 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7357 (make_cleanup_ui_out_stream_delete): Delete.
7358 * breakpoint.c (print_breakpoint_location)
7359 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7360 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7361 * disasm.c (dump_insns): Ditto.
7362 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7364 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7365 ui_stream/ui_out_stream_new.
7366 * infcmd.c (print_return_value): Ditto.
7367 * osdata.c (info_osdata_command): Don't allocate a local
7369 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7370 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7371 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7372 allocate a local ui_stream.
7373 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7374 instead of ui_stream/ui_out_stream_new.
7375 (list_args_or_locals): Don't allocate a local ui_stream.
7376 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7377 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7378 ui_stream/ui_out_stream_new.
7379 * cli/cli-setshow.c (do_setshow_command): Ditto.
7381 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7383 * arm-linux-tdep.c (arm_linux_init_abi): Call
7384 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7385 * arm-tdep.c (arm_process_record): New function.
7386 (deallocate_reg_mem): New function.
7387 (decode_insn): New function.
7388 (thumb_record_branch): New function.
7389 (thumb_record_ldm_stm_swi(): New function.
7390 (thumb_record_misc): New function.
7391 (thumb_record_ld_st_stack): New function.
7392 (thumb_record_ld_st_imm_offset): New function.
7393 (thumb_record_ld_st_reg_offset(): New function.
7394 (thumb_record_add_sub_cmp_mov): New function.
7395 (thumb_record_shift_add_sub): New function.
7396 (arm_record_coproc_data_proc): New function.
7397 (arm_record_coproc): New function.
7398 (arm_record_b_bl): New function.
7399 (arm_record_ld_st_multiple): New function.
7400 (arm_record_ld_st_reg_offset): New function.
7401 (arm_record_ld_st_imm_offset): New function.
7402 (arm_record_data_proc_imm): New function.
7403 (arm_record_data_proc_misc_ld_str): New function.
7404 (arm_record_extension_space): New function.
7405 (arm_record_strx): New function.
7406 (sbo_sbz): New function.
7407 (struct insn_decode_record): New structure for arm insn record.
7408 (REG_ALLOC): New macro for reg allocations.
7409 (MEM_ALLOC): New macro for memory allocations.
7410 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7412 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7414 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7415 (store_register): Likewise.
7417 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7419 * MAINTAINERS (Write After Approval): Add myself to the list.
7421 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7423 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7424 Describe also the option "auto".
7426 2012-03-22 Richard Henderson <rth@redhat.com>
7428 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7429 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7431 2012-03-22 Richard Henderson <rth@redhat.com>
7433 * jit.c (jit_read_code_entry): Compute alignment and offset of
7434 int64_t member before computing entry_size.
7436 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7438 Python scripting: Add new method Value.referenced_value to
7439 gdb.Value which can dereference pointer as well as reference
7441 * NEWS: Add entry under 'Python scripting' about the new method
7442 Value.referenced_value on gdb.Value objects.
7443 * python/py-value.c (valpy_referenced_value): New function
7444 defining a new method on gdb.Value objects which can dereference
7445 pointer and reference values.
7447 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7449 * MAINTAINERS (Write After Approval): Add myself to the list.
7451 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7453 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7454 in addition to "main".
7456 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7458 * expression.h (op_name): Add declaration.
7459 * expprint.c (op_name): Remove declaration. Make non-static.
7460 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7462 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7464 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7466 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7467 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7468 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7469 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7470 (linux_nat_get_siginfo): Likewise.
7471 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7472 (linux_nat_get_siginfo): Likewise.
7473 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7474 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7475 * procfs.c (gdb_siginfo_t): Likewise.
7477 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7479 * .gitignore: Ignore more files.
7481 2012-03-20 Pedro Alves <palves@redhat.com>
7483 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7486 2012-03-20 Yao Qi <yao@codesourcery.com>
7488 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7491 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7493 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7494 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7495 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7497 * dwarf2expr.h (cu_offset, sect_offset): New types.
7498 (struct dwarf_expr_context_funcs) <dwarf_call>
7499 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7501 (struct dwarf_expr_context) <len>: Improve the comment.
7502 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7503 cu_offset and sect_offset.
7504 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7505 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7506 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7507 * dwarf2loc.h: Include dwarf2expr.h.
7508 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7510 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7511 Improve the comment.
7512 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7513 (struct signatured_type, struct line_header, struct partial_die_info)
7514 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7515 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7516 (get_die_type_at_offset, create_cus_from_index)
7517 (create_signatured_type_table_from_index, dw2_get_file_names)
7518 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7519 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7520 (create_debug_types_hash_table, process_psymtab_comp_unit)
7521 (load_partial_comp_unit, create_all_comp_units)
7522 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7523 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7524 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7525 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7526 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7527 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7528 (find_partial_die, read_attribute_value, lookup_die_type)
7529 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7530 (is_ref_attr): New function comment.
7531 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7532 Use cu_offset and sect_offset.
7533 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7534 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7535 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7536 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7537 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7538 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7539 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7542 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7545 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7546 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7548 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7550 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7552 * NEWS: Describe new options --init-command=FILE, -ix and
7553 --init-eval-command=COMMAND, -iex.
7554 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7555 CMDARG_INIT_COMMAND.
7556 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7557 "init-command", "init-eval-command", "ix" and "iex" to the variable
7558 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7559 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7560 (print_gdb_help): Describe --init-command=FILE, -ix and
7561 --init-eval-command=COMMAND, -iex.
7563 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7566 * main.c (struct cmdarg): Move it here from main. Add more comments.
7567 (cmdarg_s, VEC (cmdarg_s)): New.
7568 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7569 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7570 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7571 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7574 2012-03-19 Tom Tromey <tromey@redhat.com>
7576 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7578 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7581 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7584 2012-03-16 Chris January <chris.january@allinea.com>
7586 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7589 2012-03-16 Chris January <chris.january@allinea.com>
7591 * source.c (add_path): Use memmove instead of strcpy because the
7594 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7596 * value.h (set_value_parent): Add declaration.
7597 * value.c (set_value_parent): New function.
7598 (value_address): If VALUE->PARENT is not NULL, then use it as
7599 the base address instead of VALUE->LOCATION.address.
7600 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7601 the same as OBJ's address. Adjust V's offset accordingly.
7604 2012-03-16 Gary Benson <gbenson@redhat.com>
7606 PR breakpoints/10738
7607 * dwarf2read.c (use_deprecated_index_sections): New global.
7608 (struct partial_die_info): New member may_be_inlined.
7609 (read_partial_die): Set may_be_inlined where appropriate.
7610 (add_partial_subprogram): Add partial symbols for partial
7611 DIEs that may be inlined.
7612 (new_symbol_full): Add inlined subroutines to the current
7614 (write_psymtabs_to_index): Bump version number.
7615 (dwarf2_read_index): Read only version 6 indices unless
7616 use_deprecated_index_sections is set.
7617 * linespec.c (symbol_and_data_callback): New structure.
7618 (iterate_inline_only): New function.
7619 (iterate_over_all_matching_symtabs): New argument
7620 "include_inline". If nonzero, also call the callback for
7621 symbols representing inlined subroutines.
7622 (lookup_prefix_sym): Pass extra argument to the above.
7623 (find_function_symbols): Likewise.
7624 (add_matching_symbols_to_info): Likewise.
7625 * NEWS: Mention that GDB can now set breakpoints on inlined
7628 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7630 * p-typeprint.c (pascal_type_print_method_args):
7631 Fix display of parameter of methods.
7633 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7635 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7636 Add missing prototype.
7638 2012-03-16 Yao Qi <yao@codesourcery.com>
7639 Jan Kratochvil <jan.kratochvil@redhat.com>
7641 Fix false compilation warning.
7642 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7644 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7645 Pedro Alves <pedro@codesourcery.com>
7647 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7648 (arm_register_g_packet_guesses): New function.
7649 (arm_gdbarch_init): Don't force a target description with
7650 registers when the executable is detected as M-profile. Instead
7651 set gdbarch->tdep->is_m. Register `g' packet guesses.
7652 (_initialize_arm_tdep): Initialize the new target description.
7653 * features/arm-with-m-fpa-layout.xml: New description.
7654 * features/arm-with-m-fpa-layout.c: New, generated.
7656 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7658 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7659 Update function description.
7660 (insert_bp_location): Do not wipe bl->target_info out.
7661 * mem-break.c: #include "gdb_string.h".
7662 (default_memory_insert_breakpoint): Do not call target_read_memory
7663 with a pointer to the breakpoint's shadow_contents buffer. Use
7664 a local buffer instead.
7665 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7667 2012-03-15 Tom Tromey <tromey@redhat.com>
7669 * NEWS: Mention "info vtbl", not "info vtable".
7670 * cp-support.c (info_vtbl_command): Fix comment.
7671 (_initialize_cp_support): Fix text.
7673 2012-03-15 Tom Tromey <tromey@redhat.com>
7675 * cp-valprint.c (cp_print_value_fields): Use
7676 print_function_pointer_address for vtable slot.
7678 2012-03-15 Tom Tromey <tromey@redhat.com>
7680 * gnu-v3-abi.c (struct value_and_voffset): New.
7681 (hash_value_and_voffset, eq_value_and_voffset)
7682 (compare_value_and_voffset, compute_vtable_size)
7683 (print_one_vtable, gnuv3_print_vtable): New functions.
7684 (init_gnuv3_ops): Initialize 'print_vtable' field.
7685 * cp-support.c (info_vtbl_command): New function.
7686 (_initialize_cp_support): Add "info vtbl".
7687 * cp-abi.h (cplus_print_vtable): Declare.
7688 (struct cp_abi_ops) <print_vtable>: New field.
7689 * cp-abi.c (cplus_print_vtable): New function.
7692 2012-03-15 Tom Tromey <tromey@redhat.com>
7694 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7695 iterate_over_symbols.
7697 2012-03-14 Doug Evans <dje@google.com>
7699 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7700 DW_OP_GNU_parameter_ref.
7702 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7704 Fix double prompt of 'interpreter-exec mi'.
7705 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7706 (mi_interpreter_resume): use it.
7707 (mi_execute_command_input_handler): New function.
7708 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7709 mi_execute_command_input_handler.
7711 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7713 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7715 (darwin_debug_port_info): Make static.
7716 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7717 * machoread.c (_initialize_machoread): Add prototype.
7718 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7719 (i386_darwin_set_control, i386_darwin_get_control)
7720 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7721 i386_darwin_get_status, i386_darwin_get_control):
7722 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7724 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7726 * ax-gdb.c (gen_usual_unary): Remove special handling of
7727 enum and bool types.
7729 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7731 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7733 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7735 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7737 2012-03-13 Chris January <chris.january@allinea.com>
7739 * aix-thread.c (fill_sprs): Store the floating point registers
7740 at the correct offsets into vals.
7742 2012-03-13 Doug Evans <dje@google.com>
7744 * NEWS: Mention symbol-reloading has been deleted.
7745 * symfile.c (symbol_reloading): Delete.
7746 (show_symbol_reloading): Delete.
7747 (_initialize_symfile): Delete set/show symbol-reloading.
7749 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7750 read_in_chain until we have successfully read it in.
7751 (load_full_comp_unit): Ditto.
7752 (read_signatured_type): Add comment.
7754 2012-03-13 Chris January <chris.january@allinea.com>
7756 * stabsread.c (fix_common_block): Change type of valu argument
7759 2012-03-13 Chris January <chris.january@allinea.com>
7761 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7764 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7766 * common/linux-procfs.c (linux_proc_get_int): New, from
7767 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7769 (linux_proc_get_tgid): Only call linux_proc_get_int.
7770 (linux_proc_get_tracerpid): New.
7771 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7772 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7773 linux_proc_pid_has_state.
7774 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7775 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7776 (linux_ptrace_attach_warnings): New.
7777 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7779 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7780 (linux_nat_attach): New variables ex, buffer, message and message_s.
7781 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7783 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7785 * Makefile.in (linux-ptrace.o): New.
7786 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7788 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7789 * common/linux-ptrace.c: New file.
7790 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7791 * config/arm/linux.mh: Likewise.
7792 * config/i386/linux.mh: Likewise.
7793 * config/i386/linux64.mh: Likewise.
7794 * config/ia64/linux.mh: Likewise.
7795 * config/m32r/linux.mh: Likewise.
7796 * config/m68k/linux.mh: Likewise.
7797 * config/mips/linux.mh: Likewise.
7798 * config/pa/linux.mh: Likewise.
7799 * config/powerpc/linux.mh: Likewise.
7800 * config/powerpc/ppc64-linux.mh: Likewise.
7801 * config/powerpc/spu-linux.mh: Likewise.
7802 * config/s390/s390.mh: Likewise.
7803 * config/sparc/linux.mh: Likewise.
7804 * config/sparc/linux64.mh: Likewise.
7805 * config/xtensa/linux.mh: Likewise.
7806 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7807 common/linux-procfs.c.
7808 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7810 2012-03-13 Hui Zhu <teawater@gmail.com>
7811 Pedro Alves <palves@redhat.com>
7813 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7814 CREATE_BREAKPOINT_FLAGS_INSERTED.
7815 (create_breakpoint_sal, create_breakpoints_sal)
7816 (base_breakpoint_create_breakpoints_sal)
7817 (tracepoint_create_breakpoints_sal)
7818 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7820 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7821 (ftrace_command, strace_command): Adjust.
7822 (create_tracepoint_from_upload): Pass
7823 CREATE_BREAKPOINT_FLAGS_INSERTED.
7824 * breakpoint.h (enum breakpoint_create_flags): New.
7825 (create_breakpoint): New flags parameter.
7826 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7827 * python/py-breakpoint.c (bppy_init): Adjust.
7828 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7829 * spu-tdep.c (spu_catch_start): Adjust.
7831 2012-03-13 Pedro Alves <palves@redhat.com>
7832 Hui Zhu <teawater@gmail.com>
7833 Yao Qi <yao@codesourcery.com>
7835 * remote.c (struct remote_state): New field `starting_up'.
7836 (remote_start_remote): Set and clear it.
7837 (remote_can_download_tracepoint): If starting up, return false.
7839 2012-03-13 Yao Qi <yao@codesourcery.com>
7841 * inferior.h (struct inferior): Remove fields any_syscall_count,
7842 syscalls_counts and total_syscalls_count. Move them to new
7843 struct catch_syscall_inferior_data in breakpoint.c.
7844 * breakpoint.c: Call DEF_VEC_I(int).
7845 (struct catch_syscall_inferior_data): New.
7846 (get_catch_syscall_inferior_data): New.
7847 (catch_syscall_inferior_data_cleanup): New.
7848 (insert_catch_syscall): Update to access data in
7849 struct catch_syscall_inferior_data.
7850 (insert_catch_syscall): Likewise.
7851 (remove_catch_syscall): Likewise.
7852 (remove_catch_syscall): Likewise.
7853 (is_syscall_catchpoint_enabled): Likewise.
7854 (add_catch_command): Likewise.
7855 (_initialize_breakpoint): Register cleanup.
7856 * breakpoint.h: Removed DEF_VEC_I(int).
7857 * dwarf2loc.c: Call DEF_VEC_I(int).
7858 * mi/mi-main.c: Likewise.
7860 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7862 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7864 2012-03-12 Chris January <chris.january@allinea.com>
7866 * aix-thread.c (_initialize_aix_thread): Add prototype.
7867 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7868 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7870 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7872 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7873 include of "amd64-nat.h".
7875 2012-03-12 Tom Tromey <tromey@redhat.com>
7877 * buildsym.c (record_pending_block): Now static.
7878 * buildsym.h: (record_pending_block): Remove.
7880 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7882 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7884 2012-03-09 Tom Tromey <tromey@redhat.com>
7886 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7887 producer_is_gxx_lt_4_6>: New fields.
7888 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7890 2012-03-09 Tom Tromey <tromey@redhat.com>
7892 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7894 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7896 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7899 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7901 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7903 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7905 Fix -Wmissing-prototypes build.
7906 * arm-linux-nat.c (get_thread_id): Make it static.
7907 * xtensa-linux-nat.c (get_thread_id): Likewise.
7909 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7911 * server.c (process_point_options): If a conditional expression
7912 is found, only print a message if remote_debug is nonzero.
7914 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7916 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7917 of internal error for unknown/unsupported types.
7919 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7921 Fix CU relative vs. absolute DIE offsets.
7922 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7923 offset to offset_in_cu.
7924 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7926 (dwarf2_fetch_die_location_block): Rename parameter offset to
7927 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7929 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7931 * libunwind-frame.c: Rename to ...
7932 * ia64-libunwind-tdep.c: ... here.
7933 * libunwind-frame.h: Rename to ...
7934 * ia64-libunwind-tdep.h: ... here.
7935 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7936 ia64-libunwind-tdep.h.
7937 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7938 * README (--with-libunwind): Rename to ...
7939 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7940 * config.in: Regenerate.
7941 * configure: Regenerate.
7942 * configure.ac: New option --with-libunwind-ia64, make the
7943 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7944 Remove AC_DEFINE for HAVE_LIBUNWIND.
7945 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7946 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7947 Rename libunwind-frame in the general comment.
7948 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7949 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7950 Move forward declarations inside #ifndef. Rename libunwind-frame in
7951 the general comment.
7952 * ia64-tdep.c: Rename libunwind-frame.h #include to
7953 ia64-libunwind-tdep.h.
7954 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7955 (ia64_libunwind_descr): Rename libunwind-frame to
7956 ia64-libunwind-tdep in these function comments.
7957 * ia64-tdep.h: Rename libunwind-frame.h #include to
7958 ia64-libunwind-tdep.h.
7959 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7960 ia64-libunwind-tdep in that data comment.
7962 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7964 * libunwind-frame.h (struct frame_unwind): New declaration.
7966 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7968 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7969 "set breakpoint condition-evaluation" command.
7971 2012-03-08 Tristan Gingold <gingold@adacore.com>
7973 * sparc-stub.c: Move to stubs/
7974 * sh-stub.c: Likewise.
7975 * m68k-stub.c: Likewise.
7976 * m32r-stub.c: Likewise.
7977 * i386-stub.c: Likewise.
7979 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7981 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7982 linux_get_siginfo_type.
7984 * m68klinux-nat.c: Include "gdb_proc_service.h".
7985 (PTRACE_GET_THREAD_AREA): Define.
7986 (ps_get_thread_area): New function.
7988 2012-03-08 Yao Qi <yao@codesourcery.com>
7990 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7992 (remote_query_attached): Likewise.
7993 (remote_static_tracepoint_marker_at): Likewise.
7994 (remote_set_permissions): Likewise.
7995 (remote_detach_1, extended_remote_attach_1): Likewise.
7996 (send_g_packet, remote_vkill): Likewise.
7997 (extended_remote_disable_randomization): Likewise.
7998 (remote_add_target_side_condition): Likewise.
7999 (remote_insert_breakpoint): Likewise.
8000 (remote_remove_breakpoint): Likewise.
8001 (remote_insert_watchpoint): Likewise.
8002 (remote_remove_watchpoint): Likewise.
8003 (remote_insert_hw_breakpoint): Likewise.
8004 (remote_insert_hw_breakpoint): Likewise.
8005 (remote_remove_hw_breakpoint): Likewise.
8006 (remote_download_command_source): Likewise.
8007 (remote_download_tracepoint): Likewise.
8008 (remote_download_trace_state_variable): Likewise.
8009 (remote_disable_tracepoint): Likewise.
8010 (remote_trace_set_readonly_regions): Likewise.
8011 (remote_get_tracepoint_status): Likewise.
8012 (remote_trace_find): Likewise.
8013 (remote_get_trace_state_variable_value): Likewise.
8014 (remote_set_disconnected_tracing): Likewise.
8015 (remote_set_circular_trace_buffer): Likewise.
8016 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8017 (remote_use_agent): Likewise.
8018 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8021 2012-03-07 Pedro Alves <palves@redhat.com>
8023 * NEWS: Mention QProgramSignals.
8024 * inferior.h (update_signals_program_target): Declare.
8025 * infrun.c: (update_signals_program_target): New.
8026 (handle_command): Update the target of the new program signals
8028 * remote.c (PACKET_QProgramSignals): New enum.
8029 (last_program_signals_packet): New global.
8030 (remote_program_signals): New.
8031 (remote_start_remote): Update the target with the program signals
8033 (remote_protocol_features): Add entry for QPassSignals.
8034 (remote_open_1): Free anc clear last_program_signals_packet.
8035 (init_remote_ops): Install remote_program_signals.
8036 * target.c (update_current_target): Adjust.
8037 (target_program_signals): New.
8038 * target.h (struct target_ops) <to_program_signals>: New field.
8039 (target_program_signals): Declare.
8041 2012-03-07 Pedro Alves <palves@redhat.com>
8043 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8046 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8048 * m68klinux-nat.c (getregs_supplies): Make static.
8049 (getfpregs_supplies): Likewise.
8050 (have_ptrace_getregs): Likewise.
8052 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8054 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8055 in call to get_die_type_at_offset.
8057 2012-03-06 Stan Shebs <stan@codesourcery.com>
8059 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8060 * mi/mi-cmd-disas.c: Ditto.
8061 * mi/mi-cmd-env.c: Ditto.
8062 * mi/mi-cmd-file.c: Ditto.
8063 * mi/mi-cmd-stack.c: Ditto.
8064 * mi/mi-cmd-target.c: Ditto.
8065 * mi/mi-cmd-var.c: Ditto.
8066 * mi/mi-cmds.c: Ditto.
8067 * mi/mi-cmds.h: Ditto.
8068 * mi/mi-console.c: Ditto.
8069 * mi/mi-getopt.c: Ditto.
8070 * mi/mi-getopt.h: Ditto.
8071 * mi/mi-interp.c: Ditto.
8072 * mi/mi-main.c: Ditto.
8073 * mi/mi-out.c: Ditto.
8074 * mi/mi-parse.c: Ditto.
8075 * mi/mi-parse.h: Ditto.
8076 * mi/mi-symbol-cmds.c: Ditto.
8078 * mi/mi-getopt.h: Move mi_opt struct up.
8079 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8081 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8083 2012-03-06 Tom Tromey <tromey@redhat.com>
8085 * proc-service.c (ps_pglobal_lookup): Set the current program
8088 2012-03-06 Pedro Alves <palves@redhat.com>
8090 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8092 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8094 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8096 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8099 * common/linux-osdata.c (linux_common_core_of_thread): New function
8101 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8102 call by linux_common_core_of_thread.
8103 (linux_nat_core_of_thread_1): Remove.
8104 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8105 * linux-thread-db.c: Include linux-osdata.h.
8106 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8107 linux_common_core_of_thread.
8109 2012-03-05 Tom Tromey <tromey@redhat.com>
8111 * value.c (value_primitive_field): Don't fetch contents for
8114 2012-03-05 Tom Tromey <tromey@redhat.com>
8116 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8118 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8120 * s390-nat.c: Include "gregset.h".
8122 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8124 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8125 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8126 (libunwind_load): New variable so_error, use it for dlerror. Try to
8127 load also LIBUNWIND_SO_7.
8129 2012-03-05 Pedro Alves <palves@redhat.com>
8131 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8132 is not NULL, and remove resulting dead code.
8134 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8136 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8137 prologue to sh_analyze_prologue.
8138 (sh_analyze_prologue): Make better use of such an upper limit, and
8139 generally be more cautious about accessing memory.
8141 2012-03-05 Tom Tromey <tromey@redhat.com>
8143 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8144 _initialize_ia64_hpux_tdep.
8146 2012-03-05 Pedro Alves <palves@redhat.com>
8150 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8151 the register state is clear, supply explicit zero, instead of
8152 marking the register unavailable.
8154 2012-03-05 Tristan Gingold <gingold@adacore.com>
8156 * NEWS: Mention OpenVMS ia64 new target.
8158 2012-03-05 Tristan Gingold <gingold@adacore.com>
8160 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8161 (ia64_unw_accessors, ia64_unw_rse_accessors)
8162 (ia64_libunwind_descr): Declare.
8163 * ia64-vms-tdep.c: New file.
8164 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8165 (ia64_libunwind_descr): Make them public.
8166 * configure.tgt: Add ia64-*-*vms*.
8167 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8168 (ALLDEPFILES): Add ia64-vms-tdep.c
8170 2012-03-05 Tristan Gingold <gingold@adacore.com>
8172 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8173 * remote.c (PACKET_qXfer_uib): New enum value.
8174 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8175 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8176 (_initialize_remote): Call add_packet_config_cmd for
8179 2012-03-05 Tristan Gingold <gingold@adacore.com>
8181 * osabi.c (gdb_osabi_names): Add OpenVMS.
8182 (generic_elf_osabi_sniffer): Likewise.
8183 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8185 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8187 Removed unused code.
8188 * libunwind-frame.c (libunwind_frame_unwind)
8189 (libunwind_frame_base_address): Remove.
8190 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8192 2012-03-04 Yao Qi <yao@codesourcery.com>
8194 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8195 remove trailing new line.
8196 (agent_run_command, agent_run_command): Add _ markup.
8197 (agent_capability_check): Likewise.
8199 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8201 * breakpoint.c (set_condition_evaluation_mode): Set
8202 CONDITION_EVALUATION_MODE unconditionally.
8204 2012-03-03 Yao Qi <yao@codesourcery.com>
8206 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8207 * common/agent.h: Update declaration.
8208 * inf-child.c (inf_child_use_agent): New.
8209 (inf_child_can_use_agent): New.
8210 (inf_child_target): Initialize fields `to_use_agent'
8211 and `to_can_use_agent'.
8212 * agent.c (agent_new_objfile): New.
8213 (_initialize_agent): Add agent_new_objfile to new_objfile
8216 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8218 (linux_target_install_ops): Initialize field
8219 `to_static_tracepoint_markers_by_strid'.
8220 * remote.c (free_current_marker): Move it to ...
8221 * tracepoint.c (free_current_marker): ... here. New.
8222 (cleanup_target_stop): New.
8223 * tracepoint.h: Declare free_current_marker.
8224 * NEWS: Add one entry about `info static-tracepoint-marker'.
8226 2012-03-03 Yao Qi <yao@codesourcery.com>
8228 * common/agent.c (agent_loaded_p): New.
8229 (agent_look_up_symbols): New global.
8230 * common/agent.h: Declare agent_loaded_p.
8232 2012-03-03 Yao Qi <yao@codesourcery.com>
8234 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8235 (agent_capability_check, agent_capability_invalidate): New.
8236 (symbol_list): New array element.
8237 * common/agent.h (enum agent_capa): New.
8238 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8240 2012-03-03 Yao Qi <yao@codesourcery.com>
8242 * target.h (struct target_ops) <to_use_agent>: New field.
8243 (struct target_ops) <to_can_use_agent>: New field.
8244 (target_use_agent, target_can_use_agent): New macro.
8245 * target.c (update_current_target): Update.
8246 * remote.c: New enum `PACKET_QAgent'.
8247 (remote_protocol_features): Add a new element.
8248 (remote_use_agent, remote_can_use_agent): New.
8249 (init_remote_ops): Initialize field `can_use_agent' with
8250 remote_can_use_agent. Intiailize field `use_agent' with
8252 * common/agent.c (use_agent): New global.
8253 * common/agent.h: Declare it.
8254 * tracepoint.c (info_static_tracepoint_markers_command): Add
8256 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8257 (COMMON_OBS): Add common/agent.o and agent.o
8258 (common-agent.o): New rule.
8261 2012-03-03 Yao Qi <yao@codesourcery.com>
8263 * common/agent.c: New.
8264 * common/agent.h: New.
8265 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8267 * configure, configh.in: Regenerated.
8269 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8271 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8272 unless it exists for this architecture.
8274 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8276 * language.h (struct language_defn): New "method" la_read_var_value.
8277 * findvar.c: #include "language.h".
8278 (default_read_var_value): Renames read_var_value. Rewrite
8279 function description.
8280 (read_var_value): New function.
8281 * value.h (default_read_var_value): Add prototype.
8282 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8284 (ada_language_defn): Add entry for la_read_var_value.
8285 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8286 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8287 language_defn structures to add entry for new la_read_var_value
8290 2012-03-02 Tom Tromey <tromey@redhat.com>
8291 Pedro Alves <palves@redhat.com>
8293 PR breakpoints/13776:
8294 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8296 (delete_longjmp_breakpoint_at_next_stop): New.
8297 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8298 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8299 before deleting the inferior. Add comments.
8300 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8301 breakpoints immediately, but only on next stop. Move that code
8302 next to where we mark other breakpoints for deletion.
8304 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8306 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8308 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8311 2012-03-02 Pedro Alves <palves@redhat.com>
8313 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8315 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8317 Fix -Wmissing-prototypes build.
8318 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8319 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8320 (gdbsim_has_memory): Likewise.
8322 2012-03-02 Yao Qi <yao@codesourcery.com>
8324 Fix -Wmissing-prototypes build.
8325 * charset.c (phony_iconv_open): Make static.
8326 (phony_iconv_close, phony_iconv): Likewise.
8327 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8328 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8330 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8331 * ser-mingw.c (create_select_thread): Make static.
8332 * windows-termcap.c (tgetent): New prototype.
8333 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8335 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8337 Fix -Wmissing-prototypes build.
8338 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8339 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8340 (_initialize_loadable): New prototypes.
8342 2012-03-02 Doug Evans <dje@google.com>
8344 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8345 abbrev table, read_comp_unit will do it.
8347 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8349 Fix -Wmissing-prototypes build.
8350 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8351 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8352 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8353 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8354 (_initialize_arm_symbian_tdep): New prototype.
8355 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8356 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8357 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8359 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8360 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8362 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8363 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8364 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8366 * moxie-tdep.c (moxie_process_record): Likewise.
8367 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8368 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8369 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8370 (_initialize_rl78_tdep): New prototype.
8371 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8372 (_initialize_rx_tdep): New prototype.
8373 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8374 (_initialize_darwin_solib): New prototype.
8375 * solib-spu.c: Include solib-spu.h.
8376 (_initialize_spu_solib): New prototype.
8377 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8378 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8379 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8380 (tic6x_software_single_step): Make it static.
8381 (_initialize_tic6x_tdep): New prototype.
8383 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8385 Fix -Wmissing-prototypes build.
8386 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8387 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8389 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8391 Fix -Wmissing-prototypes build.
8392 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8393 (frv_have_stopped_data_address): Remove.
8395 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8397 Fix -Wmissing-prototypes build.
8398 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8399 * sh-tdep.c: Include sh64-tdep.h.
8400 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8401 * sh64-tdep.c: Include sh64-tdep.h.
8402 * sh64-tdep.h: New file.
8404 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8406 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8408 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8410 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8411 sp_regnum once the gdbarch_init_osabi hook has been called.
8413 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8415 * mips-tdep.c (mips32_bc1_pc): New function.
8416 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8417 BPOSGE32 and BPOSGE64 instructions.
8418 (deal_with_atomic_sequence): Likewise.
8419 (mips32_instruction_has_delay_slot): Likewise.
8421 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8422 Chris Dearman <chris@mips.com>
8423 Maciej W. Rozycki <macro@codesourcery.com>
8424 Joseph Myers <joseph@codesourcery.com>
8426 * features/mips-dsp.xml: New file.
8427 * features/mips64-dsp.xml: New file.
8428 * features/mips-dsp-linux.xml: New file.
8429 * features/mips64-dsp-linux.xml: New file.
8430 * features/Makefile (WHICH): Add mips-dsp-linux and
8432 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8433 * features/mips-dsp-linux.c: New file.
8434 * features/mips64-dsp-linux.c: New file.
8435 * regformats/mips-dsp-linux.dat: New file.
8436 * regformats/mips64-dsp-linux.dat: New file.
8437 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8439 (mips64_linux_register_addr): Likewise.
8440 (mips64_linux_regsets_fetch_registers): Likewise.
8441 (mips64_linux_regsets_store_registers): Likewise.
8442 (mips64_linux_fetch_registers): Update call to
8443 mips64_linux_regsets_fetch_registers.
8444 (mips64_linux_store_registers): Update call to
8445 mips64_linux_regsets_store_registers.
8446 (mips_linux_read_description): Probe for DSP registers.
8447 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8448 and initialize_tdesc_mips64_dsp_linux.
8449 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8450 Remove padding of no longer used embedded register slots.
8451 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8452 (MIPS_RESTART_REGNUM): Redefine enum value.
8453 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8455 (mips_tx39_reg_names): Likewise.
8456 (mips_linux_reg_names): New array of register names for Linux
8458 (mips_register_name): Check for a null pointer in
8459 mips_processor_reg_names and return an empty string.
8460 (mips_register_type): Exclude embedded registers for the IRIX
8462 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8463 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8465 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8466 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8467 (mips_gdbarch_init): Likewise. Initialize internal register
8468 indices for the Linux ABI. Use dynamic numbers to refer to
8469 registers, as applicable, while parsing the target description.
8470 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8472 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8474 * frame.h (read_frame_register_unsigned): Fix typo in function
8477 2012-03-01 Pedro Alves <palves@redhat.com>
8479 * jit-reader.in [!__cplusplus]
8480 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8482 2012-03-01 Pedro Alves <palves@redhat.com>
8484 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8485 * configure: Regenerate.
8487 2012-03-01 Pedro Alves <palves@redhat.com>
8489 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8490 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8491 (ftrace_command, strace_command): Make static.
8492 * d-lang.c (_initialize_d_language): Declare.
8493 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8494 * dwarf2loc.c (_initialize_dwarf2loc):
8495 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8496 * exec.c (exec_get_section_table): Make static.
8497 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8498 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8499 * inferior.c (remove_inferior_command, add_inferior_command)
8500 (clone_inferior_command): Make static.
8501 * linux-nat.c (linux_nat_thread_address_space)
8502 (linux_nat_core_of_thread): Make static.
8503 * linux-tdep.c (_initialize_linux_tdep): Declare.
8504 * objc-lang.c (_initialize_objc_lang): Declare.
8505 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8507 (_initialize_opencl_language): Declare.
8508 * record.c (_initialize_record): Declare.
8509 * remote.c (demand_private_info, remote_get_tib_address)
8510 (remote_supports_cond_tracepoints)
8511 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8513 * skip.c (_initialize_step_skip): Declare.
8514 * symtab.c (skip_prologue_using_lineinfo): Make static.
8515 * tracepoint.c (delete_trace_state_variable)
8516 (trace_variable_command, delete_trace_variable_command)
8517 (get_uploaded_tsv, find_matching_tracepoint_location)
8518 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8520 * value.c (pack_unsigned_long): Make static.
8521 * varobj.c (varobj_ensure_python_env): Make static.
8522 * windows-tdep.c (_initialize_windows_tdep): Declare.
8523 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8525 2012-03-01 Pedro Alves <palves@redhat.com>
8527 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8529 (linux_init_abi): Install it as has_shared_address_space gdbarch
8532 2012-03-01 Pedro Alves <palves@redhat.com>
8534 * observer.c (observer_test_first_notification_function)
8535 (observer_test_second_notification_function)
8536 (observer_test_third_notification_function): Add declarations.
8538 2012-03-01 Pedro Alves <palves@redhat.com>
8540 * common/signals.c (default_target_signal_to_host)
8541 (default_target_signal_from_host): Move ...
8542 * arch-utils.c: ... here.
8543 * arch-utils.h (default_target_signal_to_host)
8544 (default_target_signal_from_host): Declare.
8546 * common/signals.c (target_signal_from_command): Move ...
8547 * infrun.c: ... here.
8548 * inferior.h (target_signal_from_command): Declare.
8549 * target.h (target_signal_from_command)
8550 (default_target_signal_from_host, default_target_signal_to_host):
8551 Delete declarations.
8553 * common/signals.c (_initialize_signals): Delete.
8555 2012-03-01 Pedro Alves <palves@redhat.com>
8557 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8558 both __cplusplus and !__cplusplus.
8560 2012-03-01 Pedro Alves <palves@redhat.com>
8562 * psymtab.c (find_and_open_source): Delete declaration.
8563 * source.c (find_and_open_source): Move comment ...
8564 * source.h (find_and_open_source): ... to this new declaration.
8566 2012-03-01 Pedro Alves <palves@redhat.com>
8568 * inline-frame.c: Include inline-frame.h.
8570 2012-03-01 Pedro Alves <palves@redhat.com>
8572 * tui/tui-data.c (set_gen_win_origin): Delete.
8573 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8574 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8576 2012-03-01 Pedro Alves <palves@redhat.com>
8578 * remote.c (encode_actions): Delete declaration.
8579 * tracepoint.c (encode_actions): Make extern.
8580 * tracepoint.h (encode_actions): Declare.
8582 2012-03-01 Pedro Alves <palves@redhat.com>
8584 * python/py-breakpoint.c: Include python.h.
8585 * python/py-continueevent.c (create_continue_event_object): Make
8587 * python/py-lazy-string.c (stpy_get_type): Make static.
8588 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8590 * python/py-utils.c (unicode_to_target_python_string): Make
8592 * python/py-value.c: Include python.h.
8594 2012-03-01 Pedro Alves <palves@redhat.com>
8596 * inferior.c (delete_threads_of_inferior): Delete.
8598 2012-03-01 Pedro Alves <palves@redhat.com>
8600 Import fallback definitions from glibc.
8602 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8603 ps_prochandle): Forward declare.
8604 (ps_err_e): Use glibc's comments.
8605 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8606 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8607 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8608 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8609 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8610 (struct ps_prochandle): Adjust comment.
8612 2012-03-01 Pedro Alves <palves@redhat.com>
8614 * ada-lang.c (ada_modulus_from_name): Delete.
8615 * ada-lex.l (lexer_init): Make static.
8617 2012-03-01 Pedro Alves <palves@redhat.com>
8621 * frame.c (read_frame_register_unsigned): New.
8622 * frame.h (read_frame_register_unsigned): Declare.
8623 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8625 (print_i387_control_word): New parameter `control_p'. Handle it.
8626 (i387_print_float_info): Handle unavailable float registers.
8628 2012-03-01 Keith Seitz <keiths@redhat.com>
8630 * linespec.c (decode_line_2): Sort the list of methods
8631 alphabetically before presenting the user with a selection
8634 2012-03-01 Doug Evans <dje@google.com>
8636 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8638 (dwarf2_read_abbrevs): Remove corresponding initialization.
8640 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8642 * NEWS: Mention new python command class gdb.COMMAND_USER.
8643 * cli/cli-cmds.c (show_user): Print error when used on a python
8645 (init_cli_cmds): Update documentation strings for "show user" and
8646 "set/show max-user-call-depth" to clarify that it does not apply to
8648 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8650 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8652 * top.c (execute_command): Only execute a user-defined command as a
8653 legacy macro if c->user_commands is set.
8655 2012-03-01 Tom Tromey <tromey@redhat.com>
8657 * valprint.h (struct generic_val_print_decorations): New.
8658 (generic_val_print): Declare.
8659 * valprint.c (generic_val_print): New function.
8660 * p-valprint.c (p_decorations): New global.
8661 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8662 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8663 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8664 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8665 * m2-valprint.c (m2_decorations): New global.
8666 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8667 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8668 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8669 TYPE_CODE_ERROR>: Call generic_val_print.
8670 * f-valprint.c (f_decorations): New global.
8671 (f_val_print): Use print_function_pointer_address.
8672 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8673 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8674 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8676 * c-valprint.c (c_decorations): New global.
8677 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8678 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8679 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8680 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8681 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8682 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8685 2012-03-01 Tom Tromey <tromey@redhat.com>
8687 * valprint.c (val_print): Update.
8688 * p-valprint (pascal_val_print): Return void.
8689 * p-lang.h (pascal_val_print): Return void.
8690 * m2-valprint.c (m2_val_print): Return void.
8691 * m2-lang.h (m2_val_print): Return void.
8692 * language.h (struct language_defn) <la_val_print>: Return void.
8693 * language.c (unk_lang_val_print): Return void.
8694 * jv-valprint.c (java_val_print): Return void.
8695 * jv-lang.h (java_val_print): Return void.
8696 * f-valprint.c (f_val_print): Return void.
8697 * f-lang.h (f_val_print): Return void.
8698 * d-valprint.c (d_val_print): Return void.
8699 (dynamic_array_type): Update.
8700 * d-lang.h (d_val_print): Return void.
8701 * c-valprint.c (c_val_print): Return void.
8702 * c-lang.h (c_val_print): Return void.
8703 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8705 * ada-lang.h (ada_val_print): Return void.
8707 2012-03-01 Tom Tromey <tromey@redhat.com>
8709 * value.h (val_print): Return void.
8710 * valprint.c (val_print): Return void.
8712 2012-03-01 Tom Tromey <tromey@redhat.com>
8714 * value.h (common_val_print): Return void.
8715 * valprint.c (common_val_print): Return void.
8717 2012-03-01 Tom Tromey <tromey@redhat.com>
8719 * value.h (value_print): Return void.
8720 * valprint.c (value_print): Return void.
8721 * p-valprint.c (pascal_value_print): Return void.
8722 * p-lang.h (pascal_value_print): Return void.
8723 * language.h (struct language_defn) <la_value_print>: Return
8725 * language.c (unk_lang_value_print): Return void.
8726 * jv-valprint.c (java_value_print): Return void.
8727 * jv-lang.h (java_value_print): Return void.
8728 * f-valprint.c (c_value_print): Don't declare.
8730 * c-valprint.c (c_value_print): Return void.
8731 * c-lang.h (c_value_print): Return void.
8732 * ada-valprint.c (ada_value_print): Return void.
8733 * ada-lang.h (ada_value_print): Return void.
8735 2012-03-01 Tom Tromey <tromey@redhat.com>
8737 * value.c (value_primitive_field): Handle virtual base classes.
8739 2012-03-01 Tom Tromey <tromey@redhat.com>
8741 * gdbtypes.h (struct vbase): Remove.
8743 2012-03-01 Tom Tromey <tromey@redhat.com>
8745 * c-valprint.c (print_function_pointer_address): Move...
8746 * valprint.c: ... here. Make non-static.
8747 * m2-valprint.c (print_function_pointer_address): Remove.
8748 * valprint.h (print_function_pointer_address): Declare.
8750 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8752 * NEWS: Document the fact that one can provide a condition when
8753 creating an Ada exception catchpoint.
8755 2012-03-01 Tom Tromey <tromey@redhat.com>
8757 * valprint.c (val_print_type_code_flags): Fix placement of
8760 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8762 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8763 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8764 environment variable before calling update-copyright.
8766 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8768 * gnulib/extra/update-copyright: Update to the latest from
8769 gnulib's git repository.
8770 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8771 variable to 2 instead of 1.
8773 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8775 * varobj.c (c_value_of_variable): Remove dead code.
8777 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8779 * ada-lex.p (processId): Do not modify already encoded IDs.
8780 Update function documentation.
8782 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8784 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8785 "name" with "struct symbol *name_sym".
8786 * ada-exp.y (write_var_or_type): Update call to
8787 ada_find_renaming_symbol.
8788 "name" with "struct symbol *name_sym". Adjust Implementation
8789 accordingly. Adjust the function documentation.
8791 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8793 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8794 * ada-lang.c (ada_find_any_type): Add advance declaration.
8795 Make static. Replace ada_find_any_symbol by
8796 ada_find_any_type_symbol.
8797 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8798 Improve function description. Make static.
8799 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8800 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8802 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8804 * ada-lang.c (struct tag_args): Delete.
8805 (ada_get_tsd_type): Function body moved up in source file.
8806 (ada_tag_name_1, ada_tag_name_2): Delete.
8807 (ada_get_tsd_from_tag): New function.
8808 (ada_tag_name_from_tsd): New function.
8809 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8810 to determine the tag name.
8812 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8814 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8816 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8819 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8821 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8823 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8825 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8828 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8830 * ada-lang.c (constrained_packed_array_type): If there is a
8831 parallel XA type, use it to determine the array index type.
8833 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8835 * ada-valprint.c (ada_val_print_1): If our value is a reference
8836 to an array descriptor, dereference it before converting it
8839 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8841 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8842 creating fixed value.
8843 (ada_value_ind, ada_coerce_ref, assign_component)
8844 (ada_evaluate_subexp): Remove call to unwrap_value before
8845 call to ada_to_fixed_value.
8847 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8849 * ada-lang.c (to_fixed_array_type): Set result's type name.
8851 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8853 * ada-lang.c (catch_ada_exception_command_split): Add new
8854 argument cond_string. Add support for condition at end of
8855 "catch exception" commands.
8856 (ada_decode_exception_location): Add new argument cond_string.
8857 Update call to catch_ada_exception_command_split.
8858 (create_ada_exception_catchpoint): Add new argument cond_string.
8859 Set the breakpoint condition if needed.
8860 (catch_ada_exception_command): Update call to
8861 ada_decode_exception_location.
8862 (ada_decode_assert_location): Add function documentation.
8863 Add support for condition at end of "catch assert" command.
8864 (catch_assert_command): Update calls to ada_decode_assert_location
8865 and create_ada_exception_catchpoint.
8867 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8869 Fix disp-step-syscall.exp: fork: single step over fork.
8870 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8871 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8872 comment, change parameters gdbarch and ptid to regcache. Remove
8873 parameter regcache, initialize gdbarch from regcache here.
8874 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8876 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8878 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8879 'syscall'. Make the 'int' check more strict.
8881 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8883 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8884 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8885 (i386_linux_intx80_sysenter_syscall_record): ... here.
8886 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8887 Use the renamed function name.
8889 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8891 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8892 * breakpoint.c (until_break_command): Likewise.
8893 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8894 * infcall.c (call_function_by_hand): Likewise.
8895 * infcmd.c (finish_forward): Likewise.
8896 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8898 2012-02-28 Tristan Gingold <gingold@adacore.com>
8900 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8901 avoid variable assignments inside condition.
8903 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8905 Fix static analysis issue found by cppcheck.
8906 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8907 uninitialized BUF for size 2.
8909 2012-02-27 Chris Dearman <chris@mips.com>
8910 Nathan Froyd <froydnj@codesourcery.com>
8911 Maciej W. Rozycki <macro@codesourcery.com>
8913 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8914 (mips16_instruction_has_delay_slot): Likewise.
8915 (mips_segment_boundary): Likewise.
8916 (mips_adjust_breakpoint_address): Likewise.
8917 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8919 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8920 Maciej W. Rozycki <macro@codesourcery.com>
8922 * infrun.c (handle_inferior_event): Don't proceed through
8923 shared library trampolines if stepping at the machine
8926 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8928 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8931 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8933 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8934 (sh_stub_unwind_sniffer): New functions.
8935 (sh_stub_unwind): New variable.
8936 (sh_gdbarch_init): Wire everything.
8938 2012-02-27 Pedro Alves <palves@redhat.com>
8940 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8941 (linux_nat_post_attach_wait): Adjust to use
8942 linux_proc_pid_is_stopped.
8943 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8944 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8945 based on pid_is_stopped from both linux-nat.c and
8946 gdbserver/linux-low.c, and renamed.
8948 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8950 * remote.c (remote_watchpoint_addr_within_range): New function.
8951 (init_remote_ops): Use it.
8953 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8955 * target.h (target_watchpoint_addr_within_range): Document macro.
8957 2012-02-24 Pedro Alves <palves@redhat.com>
8959 * stack.c (set_last_displayed_sal): Issue internal_error instead
8960 of warning, and issue it after clearing the last displayed sal.
8962 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8963 Pedro Alves <palves@redhat.com>
8965 * breakpoint.c (until_break_command): Install breakpoints after
8966 all frame manipulations.
8968 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8970 * remote.c (remote_supports_cond_breakpoints): New forward
8972 (remote_add_target_side_condition): New function.
8973 (remote_insert_breakpoint): Add target-side breakpoint
8974 conditional if supported.
8975 (remote_insert_hw_breakpoint): Likewise.
8976 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8979 * target.c (update_current_target): Inherit
8980 to_supports_evaluation_of_breakpoint_conditions.
8981 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8983 * target.h (struct target_ops)
8984 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8985 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8987 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8988 (condition_evaluation_both, condition_evaluation_auto,
8989 condition_evaluation_host, condition_evaluation_target,
8990 condition_evaluation_enums, condition_evaluation_mode_1,
8991 condition_evaluation_mode): New static globals.
8992 (translate_condition_evaluation_mode): New function.
8993 (breakpoint_condition_evaluation_mode): New function.
8994 (gdb_evaluates_breakpoint_condition_p): New function.
8995 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8996 (mark_breakpoint_modified): New function.
8997 (mark_breakpoint_location_modified): New function.
8998 (set_condition_evaluation_mode): New function.
8999 (show_condition_evaluation_mode): New function.
9000 (bp_location_compare_addrs): New function.
9001 (get_first_location_gte_addr): New helper function.
9002 (set_breakpoint_condition): Free condition bytecode if locations
9003 has become unconditional. Call mark_breakpoint_modified (...).
9004 (condition_command): Call update_global_location_list (1) for
9006 (breakpoint_xfer_memory): Use is_breakpoint (...).
9007 (is_breakpoint): New function.
9008 (parse_cond_to_aexpr): New function.
9009 (build_target_condition_list): New function.
9010 (insert_bp_location): Handle target-side conditional
9011 breakpoints and call build_target_condition_list (...).
9012 (update_inserted_breakpoint_locations): New function.
9013 (insert_breakpoint_locations): Handle target-side conditional
9015 (bpstat_check_breakpoint_conditions): Add comment.
9016 (bp_condition_evaluator): New function.
9017 (bp_location_condition_evaluator): New function.
9018 (print_breakpoint_location): Print information on where the condition
9020 (print_one_breakpoint_location): Likewise.
9021 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9022 breakpoint location.
9023 (force_breakpoint_reinsertion): New functions.
9024 (update_global_location_list): Handle target-side breakpoint
9026 Reinsert locations that are already inserted if conditions have
9028 (bp_location_dtor): Free agent expression bytecode.
9029 (disable_breakpoint): Call mark_breakpoint_modified (...).
9030 Call update_global_location_list (...) with parameter 1 for breakpoints.
9031 (disable_command): Call mark_breakpoint_location_modified (...).
9032 Call update_global_location_list (...) with parameter 1 for breakpoints.
9033 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9034 (enable_command): mark_breakpoint_location_modified (...).
9035 (_initialize_breakpoint): Update documentation and add
9036 condition-evaluation breakpoint subcommand.
9038 * breakpoint.h: Include ax.h.
9039 (condition_list): New data structure.
9040 (condition_status): New enum.
9041 (bp_target_info) <cond_list>: New field.
9042 (bp_location) <condition_changed, cond_bytecode>: New fields.
9043 (is_breakpoint): New prototype.
9045 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9047 * remote.c (remote_state) <cond_breakpoints>: New field.
9048 (PACKET_ConditionalBreakpoints): New enum.
9049 (remote_cond_breakpoint_feature): New function.
9050 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9051 (remote_supports_cond_breakpoints): New function.
9052 (_initialize_remote): Add new packet configuration for
9053 target-side conditional breakpoints.
9055 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9057 * NEWS: Mention target-side conditional breakpoint support,
9058 new condition-evaluation breakpoint subcommand and remote
9061 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9063 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9066 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9068 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9069 (after_prologue): Remove.
9071 2012-02-23 Tom Tromey <tromey@redhat.com>
9073 * jv-valprint.c (java_val_print): Remove dead code.
9075 2012-02-23 Tristan Gingold <gingold@adacore.com>
9077 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9078 known_tasks_element and known_tasks_length fields.
9079 (read_known_tasks_array): Change argument type. Use pointer type
9080 and number of elements from DATA. Adjust.
9081 (read_known_tasks_list): Likewise.
9082 (get_known_tasks_addr): Remove.
9083 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9084 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9085 type and array length. Merge former get_known_tasks_addr code.
9087 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9090 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9091 it after set_momentary_breakpoint.
9093 2012-02-22 Sterling Augustine <saugustine@google.com>
9096 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9098 2012-02-22 Gary Benson <gbenson@redhat.com>
9100 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9101 (find_slot_in_mapped_hash): Likewise.
9103 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9106 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9107 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9108 * configure: Regenerate.
9110 2012-02-21 Tristan Gingold <gingold@adacore.com>
9111 Pedro Alves <palves@redhat.com>
9113 * ia64-tdep.c: Do not include libunwind-ia64.h.
9114 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9115 Include libunwind-ia64.h instead of libunwind.h.
9116 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9117 for libunwind.h existence.
9118 * configure, config.in: Regenerate.
9120 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9122 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9123 instead of value_rtti_target_type.
9124 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9125 instead of value_rtti_target_type.
9126 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9127 value_rtti_target_type.
9128 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9129 (value_rtti_target_type): Rename to ...
9130 (value_rtti_indirect_type): ... here and make it indirect. Update
9132 * value.c (readjust_indirect_value_type): New function.
9133 (coerce_ref): Support for enclosing type setting for references
9134 with readjust_indirect_value_type.
9135 * value.h (readjust_value_type): New declaration.
9136 (value_rtti_target_type): Rename to ...
9137 (value_rtti_indirect_type): ... here.
9139 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9141 * MAINTAINERS (Write After Approval): Add myself to the list.
9143 2012-02-20 Doug Evans <dje@google.com>
9145 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9146 Rename objfile_p_char parameter to objfilep.
9147 (build_objfile_section_table): Result is now void. All callers
9149 * objfiles.h (struct objfile): Tweak comments, whitespace.
9150 (build_objfile_section_table): Update.
9152 * elfread.c (elf_symfile_segments): Fix warning text.
9154 2012-02-20 Tom Tromey <tromey@redhat.com>
9157 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9158 particular set of file names once.
9159 (dw2_map_symbol_filenames): Likewise.
9161 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9164 * main.c (write_files): Remove the declaration.
9165 (external_editor_command): Move the declaration ...
9166 [GDBTK] (external_editor_command): ... here. Fix the comment.
9168 2012-02-20 Tom Tromey <tromey@redhat.com>
9170 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9173 2012-02-20 Tristan Gingold <gingold@adacore.com>
9175 * darwin-nat.h (enum darwin_msg_state): Add comments.
9177 2012-02-20 Tristan Gingold <gingold@adacore.com>
9179 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9182 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9184 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9185 between function description and implementation.
9187 2012-02-17 Tom Tromey <tromey@redhat.com>
9190 * python/py-event.c (event_object_getset): New global.
9191 (event_object_type): Reference it.
9192 * python/py-type.c (field_object_getset): New global.
9193 (field_object_type): Reference it.
9194 * python/python-internal.h (gdb_py_generic_dict): Declare.
9195 * python/py-utils.c (gdb_py_generic_dict): New function.
9197 2012-02-17 Tristan Gingold <gingold@adacore.com>
9199 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9201 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9203 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9204 TYPE_CALLING_CONVENTION annotation.
9206 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9208 * MAINTAINERS: Add rx to target ISA section.
9209 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9210 (ALLDEPFILES): Add rx-tdep.c.
9212 2012-02-16 Tom Tromey <tromey@redhat.com>
9214 * symfile.c (symbol_file_add_main_1): Use inferior's
9216 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9217 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9219 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9221 (follow_exec): Use inferior's symfile_flags.
9222 * inferior.h (struct inferior) <symfile_flags>: New field.
9224 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9227 * remote-sim.c (gdbsim_create_inferior): Call error() when
9228 sim_create_inferior() fails.
9230 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9232 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9234 2012-02-16 Tom Tromey <tromey@redhat.com>
9237 * thread.c (struct current_thread_cleanup) <was_removable>: New
9239 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9240 (make_cleanup_restore_current_thread): Initialize new field.
9242 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9244 * MAINTAINERS: Add rl78 to target ISA section.
9245 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9246 (ALLDEPFILES): Add rl78-tdep.c.
9247 * NEWS: Mention rl78 as a new target.
9249 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9251 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9253 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9255 2012-02-15 Tom Tromey <tromey@redhat.com>
9258 * infcmd.c (registers_info): Print just the current register's
9261 2012-02-15 Tom Tromey <tromey@redhat.com>
9263 * python/py-symbol.c (sympy_value): Use _().
9265 2012-02-15 Pedro Alves <palves@redhat.com>
9267 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9268 output to be like native targets'.
9269 (remote_pid_to_str): Special case the null ptid.
9271 2012-02-14 Stan Shebs <stan@codesourcery.com>
9273 * NEWS: Mention enable count command.
9274 * breakpoint.h (struct breakpoint): New field enable_count.
9275 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9276 (enable_breakpoint): Add arg to call.
9277 (struct disp_data): New struct.
9278 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9279 (do_map_enable_once_breakpoint): Create a struct and pass it.
9280 (do_map_enable_delete_breakpoint): Ditto.
9281 (do_map_enable_count_breakpoint): New function.
9282 (enable_count_command): New function.
9283 (bpstat_stop_status): Decrement enable_count.
9284 (print_one_breakpoint_location): Report enable count.
9285 (_initialize_breakpoint): Add enable count command.
9287 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9289 * rl78-tdep.c (reggroups.h): Include.
9290 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9291 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9292 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9293 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9294 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9295 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9296 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9297 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9298 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9299 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9300 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9301 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9302 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9303 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9304 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9305 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9306 beginning of register list.
9307 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9308 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9309 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9310 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9311 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9312 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9313 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9314 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9315 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9316 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9317 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9318 the pseudo registers. Rearrange other pseudo registers too so
9319 that the bank registers appear at the end.
9320 (rl78_register_type): Account for the fact that the byte sized
9321 bank registers are now pseudo-registers.
9322 (rl78_register_name): Rearrange the register name array. Make
9323 initial set of raw banked registers inaccessible.
9324 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9325 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9326 case for copying bytes back and forth between raw and pseudo
9327 versions of the banked registers. Update other cases to reflect
9329 (rl78_return_value): Update to account for changed names of
9331 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9332 rl78_register_sim_regno().
9334 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9336 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9337 the name parameter being passed to find_pc_partial_function().
9339 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9341 * MAINTAINERS: Step down from being ia64 target maintainer.
9343 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9345 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9346 compilation warning.
9348 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9350 Fix crash on loaded shlibs without loaded exec_bfd.
9351 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9352 (set_section_command): Replace exec_bfd by p->bfd.
9354 2012-02-10 Tom Tromey <tromey@redhat.com>
9356 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9357 when we have a C++ qualified name.
9359 2012-02-10 Pedro Alves <palves@redhat.com>
9361 * inferior.c (inferior_pid_to_str): New.
9362 (print_inferior, inferior_command): Use it.
9364 2012-02-10 Pedro Alves <palves@redhat.com>
9366 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9368 * configure: Regenerate.
9370 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9372 * linespec.c (decode_line_internal): Fix comment correctness.
9374 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9377 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9378 * amd64bsd-nat.c: Add support for debug registers (adapted from
9380 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9381 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9382 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9383 (amd64bsd_dr_get_control): New functions.
9384 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9385 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9386 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9387 watchpoints initialization.
9388 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9390 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9392 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9394 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9396 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9398 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9400 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9402 * language.h (symbol_name_cmp_ftype): Renames
9403 symbol_name_match_p_ftype.
9404 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9405 la_get_symbol_name_match_p.
9406 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9407 ada_get_symbol_name_match_p. Update comment.
9408 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9409 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9410 Renames symbol_name_match_p. Update field type.
9411 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9412 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9413 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9414 "la_get_symbol_name_cmp" in comments.
9415 * language.c: Likewise.
9417 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9419 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9421 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9422 (amd64_sol2_gregset32_reg_offs): Likewise.
9424 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9426 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9427 of the returned BFD is allocated by GDB.
9429 2012-02-07 Tom Tromey <tromey@redhat.com>
9432 * python/python-internal.h (frame_object_type): Declare.
9433 * python/py-symbol.c (sympy_needs_frame): New function.
9434 (sympy_value): New function.
9435 (symbol_object_getset): Add "needs_frame".
9436 (symbol_object_methods): Add "value".
9437 * python/py-frame.c (frame_object_type): No longer static.
9439 2012-02-07 Tom Tromey <tromey@redhat.com>
9442 * python/py-symbol.c (sympy_line): New function.
9443 (symbol_object_getset): Add "line".
9445 2012-02-07 Tom Tromey <tromey@redhat.com>
9447 * charset.c (find_charset_names): Check 'in' against NULL.
9449 2012-02-06 Doug Evans <dje@google.com>
9451 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9452 and fields.name members from char * to const char *. All uses updated.
9453 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9454 from char * to const char *. All uses updated.
9455 (type_name_no_tag): Update.
9456 (lookup_unsigned_typename, lookup_signed_typename): Update.
9457 * gdbtypes.c (type_name_no_tag): Change result type
9458 from char * to const char *. All callers updated.
9459 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9460 name parameter from char * to const char *.
9461 * symtab.h (struct cplus_specific): Change type of demangled_name
9462 member from char * to const char *. All uses updated.
9463 (struct general_symbol_info): Change type of name and
9464 mangled_lang.demangled_name members from char * to const char *.
9466 (symbol_get_demangled_name, symbol_natural_name): Update.
9467 (symbol_demangled_name, symbol_search_name): Update.
9468 * symtab.c (symbol_get_demangled_name): Change result type
9469 from char * to const char *. All callers updated.
9470 (symbol_natural_name, symbol_demangled_name): Ditto.
9471 (symbol_search_name): Ditto.
9472 (completion_list_add_name): Change type of symname,sym_text,
9473 text,word parameters from char * to const char *.
9474 (completion_list_objc_symbol): Change type of sym_text,
9475 text,word parameters from char * to const char *.
9476 * ada-lang.c (find_struct_field): Change type of name parameter
9477 from char * to const char *.
9478 (encoded_ordered_before): Similarly for N0,N1 parameters.
9479 (old_renaming_is_invisible): Similarly for function_name parameter.
9480 (ada_type_name): Change result type from char * to const char *.
9481 All callers updated.
9482 * ada-lang.h (ada_type_name): Update.
9483 * buildsym.c (hashname): Change type of name parameter
9484 from char * to const char *.
9485 * buildsym.h (hashname): Update.
9486 * dbxread.c (end_psymtab): Change type of include_list parameter
9487 from char ** to const char **.
9488 * dwarf2read.c (determine_prefix): Change result type
9489 from char * to const char *. All callers updated.
9490 * f-lang.c (find_common_for_function): Change type of name, funcname
9491 parameters from char * to const char *.
9492 * f-lang.c (find_common_for_function): Update.
9493 * f-valprint.c (list_all_visible_commons): Change type of funcname
9494 parameters from char * to const char *.
9495 * gdbarch.sh (static_transform_name): Change type of name parameter
9496 and result from char * to const char *.
9497 * gdbarch.c: Regenerate.
9498 * gdbarch.h: Regenerate.
9499 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9500 of name parameter from char * to const char *.
9501 * jv-lang.c (java_primitive_type_from_name): Ditto.
9502 (java_demangled_signature_length): Similarly for signature parameter.
9503 (java_demangled_signature_copy): Ditto.
9504 (java_demangle_type_signature): Ditto.
9505 * jv-lang.h (java_primitive_type_from_name): Update.
9506 (java_demangle_type_signature): Update.
9507 * objc-lang.c (specialcmp): Change type of a,b parameters
9508 from char * to const char *.
9509 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9510 from char * to const char *. All callers updated.
9511 * p-lang.h (is_pascal_string_type): Update.
9512 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9513 of name parameter from char * to const char *.
9514 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9515 * utils.c (fprintf_symbol_filtered): Ditto.
9516 * defs.h (fprintf_symbol_filtered): Update.
9517 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9518 * stabsread.h (end_psymtab): Update.
9519 * stack.c (find_frame_funname): Change type of funname parameter
9520 from char ** to const char **.
9521 * stack.h (find_frame_funname): Update.
9522 * typeprint.c (type_print): Change type of varstring parameter
9523 from char * to const char *.
9524 * value.h (type_print): Update.
9525 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9526 from char * to const char *. All callers updated.
9527 (xcoff_end_psymtab): Change type of include_list parameter
9528 from char ** to const char **. All callers updated.
9529 (swap_sym): Similarly for name parameter. All callers updated.
9530 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9532 (process_coff_symbol): Use xstrdup.
9533 * stabsread.c (stabs_method_name_from_physname): Renamed from
9534 update_method_name_from_physname. Change result type from void
9535 to char *. All callers updated.
9536 (read_member_functions): In has_destructor case, store name in objfile
9537 obstack instead of malloc space. In !has_stub case, fix mem leak.
9539 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9541 * configure: Rebuild.
9542 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9545 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9547 * configure.tgt (rl78-*-elf): New target.
9548 * rl78-tdep.c: New file.
9550 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9552 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9553 and continue the loop. Add QUIT statement.
9555 2012-02-03 Tom Tromey <tromey@redhat.com>
9558 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9559 bfd_lookup_symbol_from_symtab.
9560 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9561 gdb_bfd_lookup_symbol_from_symtab.
9563 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9565 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9566 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9567 symbol. Add assertion that sym2 is never NULL.
9569 2012-02-02 Doug Evans <dje@google.com>
9571 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9572 "name" parameter to const char ** from char **. All callers updated.
9573 (find_pc_partial_function): Ditto.
9574 (cache_pc_function_name): Change type to const char * from char *.
9575 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9576 (find_pc_partial_function): Update.
9577 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9578 type of "name" parameter to const char * from char *.
9580 * arch-utils.c (generic_in_solib_return_trampoline): Change
9581 type of "name" parameter to const char * from char *.
9582 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9583 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9584 type of "name" parameter to const char * from char *.
9585 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9586 * gdbarch.c: Regenerate.
9587 * gdbarch.h: Regenerate.
9588 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9589 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9590 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9591 type of "name" parameter to const char * from char *.
9592 * skip.c (skip_function_pc): Ditto.
9593 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9594 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9595 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9596 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9597 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9598 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9599 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9600 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9601 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9603 2012-02-02 Pedro Alves <palves@redhat.com>
9605 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9606 the current inferior has no execution. Make sure the current
9607 remote process matches gdb's current inferior.
9609 2012-02-02 Tom Tromey <tromey@redhat.com>
9612 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9615 2012-02-02 Tom Tromey <tromey@redhat.com>
9618 * symtab.c (lookup_language_this): Set block_found.
9620 2012-02-01 Tom Tromey <tromey@redhat.com>
9623 * jit.c (struct jit_inferior_data): Rewrite.
9624 (struct jit_objfile_data): New.
9625 (get_jit_objfile_data): New function.
9626 (add_objfile_entry): Update.
9627 (jit_read_descriptor): Return int. Replace descriptor_addr
9628 argument with inf_data. Update. Don't call error.
9629 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9631 (jit_inferior_init): Don't look up descriptor. Don't call error.
9632 (jit_reset_inferior_data_and_breakpoints)
9633 (jit_inferior_created_observer): Remove.
9634 (jit_inferior_exit_hook): Update.
9635 (jit_executable_changed_observer): Remove.
9636 (jit_event_handler): Update.
9637 (free_objfile_data): Reset inferior data if needed.
9638 (_initialize_jit): Update.
9640 2012-02-01 Tom Tromey <tromey@redhat.com>
9642 * jit.c (bfd_open_from_target_memory): Move higher in file.
9644 2012-02-01 Tristan Gingold <gingold@adacore.com>
9646 * libunwind-frame.c (libunwind_load): Display message if dlopen
9649 2012-02-01 Gary Benson <gbenson@redhat.com>
9651 * symtab.h (symbol_found_callback_ftype): New typedef.
9652 (iterate_over_symbols): Use the above.
9653 * symtab.c (iterate_over_symbols): Likewise.
9654 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9655 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9656 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9657 (iterate_name_matcher): Document return values.
9658 (collect_one_symbol): Likewise.
9659 (collect_function_symbols): Likewise.
9660 (collect_symbols): Likewise.
9662 2012-02-01 Tom Tromey <tromey@redhat.com>
9664 * ada-lang.c (resolve_subexp): Update.
9665 (ada_lookup_symbol_list): Add 'full_search' argument.
9666 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9667 ada_lookup_symbol_list.
9668 (ada_lookup_encoded_symbol): Update.
9669 (get_var_value): Update.
9670 * ada-exp.y (block_lookup): Update.
9671 (write_var_or_type): Update.
9672 (write_name_assoc): Update.
9673 * ada-lang.h (ada_lookup_symbol_list): Update.
9675 2012-01-31 Tom Tromey <tromey@redhat.com>
9677 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9680 2012-01-31 Doug Evans <dje@google.com>
9682 * symtab.h: Remove outdated comment.
9683 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9685 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9687 Fix build error in Darwin port.
9688 * i386-darwin-nat.c: Include i386-nat.h.
9690 2012-01-30 Tom Tromey <tromey@redhat.com>
9692 PR breakpoints/13568:
9693 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9694 argument. Check for recursive includes.
9695 (dwarf_decode_macros): Create an include hash.
9697 2012-01-30 Michael Eager <eager@eagercon.com>
9699 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9700 * ppc-linux-tdep.c: Include glibc-tdep.h.
9701 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9702 (powerpc_linux_in_plt_stub): New function.
9703 (powerpc_linux_in_dynsym_resolve_code): New function.
9704 (ppc_skip_trampoline_code): New function.
9705 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9706 Use glibc_skip_solib_resolver.
9708 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9710 Code cleanup: Make 1440 bytes of data segment read-only.
9711 * arch-utils.c (endian_enum): Make it const char *const [].
9712 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9714 * breakpoint.c (always_inserted_enums): Likewise.
9715 * cli/cli-cmds.c (script_ext_enums): Likewise.
9716 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9717 enumlist parameter const char *const *.
9718 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9719 const char *const *.
9720 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9721 parameter const char *const *.
9722 * cris-tdep.c (cris_modes): Make it const char *const [].
9723 * filesystem.c (target_file_system_kinds): Likewise.
9724 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9725 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9726 (can_use_displaced_stepping_enum, scheduler_enums)
9727 (exec_direction_names): Likewise.
9728 * language.c (_initialize_language): Make the type_or_range_names and
9729 case_sensitive_names variables const char *const [].
9730 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9731 * python/python.c (python_excp_enums): Likewise.
9732 * remote.c (interrupt_sequence_modes): Likewise.
9733 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9734 * serial.c (logbase_enums): Likewise.
9735 * sh-tdep.c (sh_cc_enum): Likewise.
9736 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9738 * symtab.c (multiple_symbols_modes): Likewise.
9739 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9741 * utils.c (internal_problem_modes): Likewise.
9743 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9745 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9746 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9749 2012-01-27 Doug Evans <dje@google.com>
9751 * configure.ac (with_python): Fix absolute path handling for win32.
9752 * configure: Regenerate.
9754 2012-01-26 Doug Evans <dje@google.com>
9756 * symtab.c: Whitespace cleanup, no code changes.
9758 * symtab.c (lookup_symbol_in_language): Improve comment.
9759 (lookup_symbol_aux): Fix comment.
9761 * psymtab.c (add_psymbol_to_list): Result is now "void".
9762 * psympriv.h (add_psymbol_to_list): Update.
9764 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9766 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9768 Do not open script filenames twice.
9769 * cli/cli-cmds.c (source_script_from_stream): Pass to
9770 source_python_script also STREAM.
9771 * python/py-auto-load.c (source_section_scripts): Pass to
9772 source_python_script_for_objfile also STREAM.
9773 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9775 * python/python-internal.h (source_python_script_for_objfile): New
9776 parameter file, rename parameter file to filename.
9777 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9778 instead if !_WIN32. Update the function comment.
9779 (source_python_script, source_python_script_for_objfile)
9780 (source_python_script): New parameter file, rename parameter file to
9781 filename. Pass FILENAME to python_run_simple_file.
9782 * python/python.h (source_python_script): New parameter file, rename
9783 parameter file to filename.
9785 2012-01-26 Pedro Alves <palves@redhat.com>
9787 * corelow.c (core_has_fake_pid): Delete.
9788 (core_close): Delete references to `core_has_fake_pid'.
9789 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9790 (core_open): Delete references to `core_has_fake_pid'.
9791 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9794 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9796 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9797 Remove language parameter from name_matcher. Adjust the comment.
9798 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9799 Remove language parameter.
9800 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9801 * linespec.c (iterate_name_matcher): Likewise.
9802 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9803 name_matcher. Adjust call accordingly.
9804 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9805 (maintenance_check_symtabs): Adjust type of parameter "fun".
9806 * psymtab.h (maintenance_check_symtabs): Likewise.
9808 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9810 * language.h (symbol_name_match_p_ftype): New typedef.
9811 (struct language_defn): Replace field la_symbol_name_compare
9812 by la_get_symbol_name_match_p.
9813 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9814 (ada_language_defn): Use it.
9815 * linespec.c (struct symbol_matcher_data): New type.
9816 (iterate_name_matcher): Rewrite.
9817 (iterate_over_all_matching_symtabs): Pass a pointer to
9818 a symbol_matcher_data struct to expand_symtabs_matching
9819 instead of just the lookup name.
9820 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9821 opencl-lang.c, p-lang.c, language.c: Delete field
9822 la_symbol_name_compare, and replace by NULL for new field
9823 la_get_symbol_name_match_p.
9824 * symfile.h (struct quick_symbol_functions): Update comment.
9826 2012-01-25 Tom Tromey <tromey@redhat.com>
9828 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9831 2012-01-24 Tom Tromey <tromey@redhat.com>
9834 * solib.c (update_solib_list): Update the program space's
9835 added_solibs and deleted_solibs fields.
9836 * progspace.h (struct program_space) <added_solibs,
9837 deleted_solibs>: New fields.
9838 (clear_program_space_solib_cache): Declare.
9839 * progspace.c (release_program_space): Call
9840 clear_program_space_solib_cache.
9841 (clear_program_space_solib_cache): New function.
9842 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9843 bpstat_stop_status. Use handle_solib_event.
9844 * breakpoint.c: Include gdb_regex.h.
9845 (print_solib_event): New function.
9846 (bpstat_print): Use print_solib_event.
9847 (bpstat_stop_status): Add special case for bp_shlib_event.
9848 (handle_solib_event): New function.
9849 (bpstat_what): Use handle_solib_event.
9850 (struct solib_catchpoint): New.
9851 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9852 (breakpoint_hit_catch_solib, check_status_catch_solib)
9853 (print_it_catch_solib, print_one_catch_solib)
9854 (print_mention_catch_solib, print_recreate_catch_solib): New
9856 (catch_solib_breakpoint_ops): New global.
9857 (catch_load_or_unload, catch_load_command_1)
9858 (catch_unload_command_1): New functions.
9859 (internal_bkpt_check_status): Add special case for
9861 (internal_bkpt_print_it): Use print_solib_event.
9862 (initialize_breakpoint_ops): Initialize
9863 catch_solib_breakpoint_ops.
9864 (_initialize_breakpoint): Register "catch load" and "catch
9866 * breakpoint.h (handle_solib_event): Declare.
9867 * NEWS: Add entry for "catch load" and "catch unload".
9869 2012-01-24 Tom Tromey <tromey@redhat.com>
9871 * ada-lang.c: Include gdb_vecs.h.
9872 * charset.c: Include gdb_vecs.h.
9873 * tracepoint.h: Include gdb_vecs.h.
9874 * gdb_vecs.h: New file.
9876 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9878 * breakpoint.c (breakpoint_hit_catch_fork)
9879 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9880 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9881 * infrun.c (inferior_has_forked, inferior_has_vforked)
9882 (inferior_has_execd, inferior_has_called_syscall): Delete.
9883 (handle_syscall_event): Get syscall_number from the execution
9884 control state's wait status.
9885 (wait_for_inferior): Don't clear syscall_number.
9887 2012-01-24 Pedro Alves <palves@redhat.com>
9889 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9890 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9891 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9892 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9894 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9895 false for events other than TARGET_SIGNAL_TRAP.
9896 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9898 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9899 events other than TARGET_SIGNAL_TRAP.
9900 (tracepoint_breakpoint_hit): Add `ws' parameter.
9901 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9903 (bpstat_stop_status): Same.
9904 (pc_at_non_inline_function): Same.
9905 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9906 to pass the current event's waitstatus to bpstat_stop_status
9907 and pc_at_non_inline_function.
9909 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9912 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9913 Update the function comment for it.
9914 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9915 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9918 2012-01-24 Pedro Alves <palves@redhat.com>
9920 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9921 outside `bs->stop' block.
9922 (bpstat_what): Rework bp_shlib_event handling.
9923 (internal_bkpt_check_status): If the breakpoint is a
9924 bp_shlib_event, then set bs->stop and bs->print if
9925 stop_on_solib_events is set.
9927 2012-01-24 Gary Benson <gbenson@redhat.com>
9929 Delete #if 0'd out code.
9930 * stack.c (print_frame_label_vars): Remove.
9931 (catch_info): Likewise.
9932 (_initialize_stack): Remove "info catch" command.
9933 * NEWS: Mention the above.
9935 2012-01-24 Pedro Alves <palves@redhat.com>
9937 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9939 (remote_notice_new_inferior): If the remote end doesn't support
9940 the multiprocess extensions, then the PID is fake.
9941 (add_current_inferior_and_thread): New.
9942 (remote_start_remote): Use it.
9943 (extended_remote_attach_1): Adjust.
9944 (extended_remote_create_inferior_1): Use
9945 add_current_inferior_and_thread.
9947 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9949 Fix watchpoints to be specific for each inferior.
9950 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9951 current_program_space.
9952 * i386-nat.c (i386_inferior_data_cleanup): New.
9953 (i386_inferior_data_get): Replace variable inf_data_local by an
9955 (i386_use_watchpoints): Initialize i386_inferior_data.
9956 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9957 specific iterate_over_lwps.
9959 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9961 Fix watchpoints across inferior fork.
9962 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9963 comment for linux_nat_iterate_watchpoint_lwps.
9964 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9965 linux_nat_iterate_watchpoint_lwps.
9966 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9967 * i386-linux-nat.c (update_debug_registers_callback): Update the
9968 comment for linux_nat_iterate_watchpoint_lwps.
9969 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9970 linux_nat_iterate_watchpoint_lwps.
9971 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9972 * i386-nat.c: Include inferior.h.
9973 (dr_mirror): Remove.
9974 (i386_inferior_data, struct i386_inferior_data)
9975 (i386_inferior_data_get): New.
9976 (i386_debug_reg_state): Use i386_inferior_data_get.
9977 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9978 (i386_insert_watchpoint, i386_remove_watchpoint)
9979 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9980 (i386_remove_hw_breakpoint): New variable state, use
9981 i386_debug_reg_state instead of DR_MIRROR.
9982 * linux-nat.c (delete_lwp): New declaration.
9983 (num_lwps): Move here from downwards.
9984 (delete_lwp_cleanup): New.
9985 (linux_child_follow_fork): Create new child_lp, call
9986 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9988 (num_lwps): Move upwards.
9989 (linux_nat_iterate_watchpoint_lwps): New.
9990 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9991 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9993 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9997 2012-01-23 Pedro Alves <palves@redhat.com>
9999 * top.c (caution): Rename to ...
10000 (confirm): ... this.
10001 (show_caution): Rename to ...
10002 (show_confirm): ... this.
10003 (quit_cover): Adjust.
10004 (init_main): Adjust.
10005 * top.h (caution): Rename to ...
10006 (confirm): ... this.
10007 * utils.c (internal_vproblem, defaulted_query): Adjust.
10009 2012-01-23 Pedro Alves <palves@redhat.com>
10011 * top.c (caution): Update comment.
10012 (execute_command): Don't consider the current value of `caution'.
10014 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10016 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10018 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10020 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10021 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10022 * target.c (target_fileio_pwrite): Remove buffer address from
10024 (target_fileio_pread): Likewise.
10026 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10028 * NEWS: Document remote "info proc" and "generate-core-file".
10030 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10032 * gdbarch.sh (find_memory_regions): New callback.
10033 * gdbarch.c, gdbarch.h: Regenerate.
10035 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10036 callback before falling back to target method.
10038 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10039 (linux_target_install_ops): No longer install it.
10041 * linux-tdep.c (linux_find_memory_regions): New function.
10042 (linux_init_abi): Install it.
10044 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10046 * gdbarch.sh (make_corefile_notes): New architecture callback.
10047 * gdbarch.c: Regenerate.
10048 * gdbarch.h: Likewise.
10050 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10051 before target_make_corefile_notes. If NULL is returned, the
10052 target does not support core file generation.
10054 * linux-nat.c: Include "linux-tdep.h".
10055 (find_signalled_thread, find_stop_signal): Remove.
10056 (linux_nat_do_thread_registers): Likewise.
10057 (struct linux_nat_corefile_thread_data): Likewise.
10058 (linux_nat_corefile_thread_callback): Likewise.
10059 (iterate_over_spus): Likewise.
10060 (struct linux_spu_corefile_data): Likewise.
10061 (linux_spu_corefile_callback): Likewise.
10062 (linux_spu_make_corefile_notes): Likewise.
10063 (linux_nat_collect_thread_registers): New function.
10064 (linux_nat_make_corefile_notes): Replace contents by call to
10065 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10066 as native-only callback.
10068 * linux-tdep.h: Include "bfd.h".
10069 (struct regcache): Add forward declaration.
10070 (linux_collect_thread_registers_ftype): New typedef.
10071 (linux_make_corefile_notes): Add prototype.
10072 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10073 "regset.h", and "elf-bfd.h".
10074 (find_signalled_thread, find_stop_signal): New functions.
10075 (linux_spu_make_corefile_notes): Likewise.
10076 (linux_collect_thread_registers): Likewise.
10077 (struct linux_corefile_thread_data): New data structure.
10078 (linux_corefile_thread_callback): New funcion.
10079 (linux_make_corefile_notes): Likewise.
10080 (linux_make_corefile_notes_1): Likewise.
10081 (linux_init_abi): Install it.
10083 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10085 * gdbarch.sh (info_proc): New callback.
10086 * gdbarch.c, gdbarch.h: Regenerate.
10088 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10089 before falling back to the target info_proc callback.
10091 * linux-nat.c: Do not include "cli/cli-utils.h".
10092 (linux_nat_info_proc): Remove.
10093 (linux_target_install_ops): No longer install it.
10095 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10096 (read_mapping): New function.
10097 (linux_info_proc): Likewise.
10098 (linux_init_abi): Install it.
10100 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10102 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10103 * infcmd.c: (info_proc_cmd_1): New function.
10104 (info_proc_cmd): New function, moved here from equivalent routine
10105 orignally in linux-nat.c.
10106 (info_proc_cmd_mappings): Likewise.
10107 (info_proc_cmd_stat): Likewise.
10108 (info_proc_cmd_status): Likewise.
10109 (info_proc_cmd_cwd): Likewise.
10110 (info_proc_cmd_cmdline): Likewise.
10111 (info_proc_cmd_exe): Likewise.
10112 (info_proc_cmd_all): Likewise.
10113 (_initialize_infcmd): Install "info proc" command and subcommands.
10115 * target.h (struct target_ops): Add to_info_proc.
10116 (target_info_proc): Add prototype.
10117 * target.c (target_info_proc): New function.
10119 * procfs.c (procfs_info_proc): Add prototype.
10120 (info_proc_cmd): Rename into ...
10121 (procfs_info_proc): ... this. Update argument types as appropriate
10122 for a to_info_proc implementation. Handle "what" argument.
10123 (procfs_target): Install procfs_info_proc.
10124 (_initialize_procfs): No longer install "info proc" command.
10126 * linux-nat.c: (enum info_proc_what): Remove.
10127 (linux_nat_info_proc_cmd_1): Rename into ...
10128 (linux_nat_info_proc): ... this. Update argument types as appropriate
10129 for a to_info_proc implementation.
10130 (linux_nat_info_proc_cmd): Remove.
10131 (linux_nat_info_proc_cmd_mappings): Likewise.
10132 (linux_nat_info_proc_cmd_stat): Likewise.
10133 (linux_nat_info_proc_cmd_status): Likewise.
10134 (linux_nat_info_proc_cmd_cwd): Likewise.
10135 (linux_nat_info_proc_cmd_cmdline): Likewise.
10136 (linux_nat_info_proc_cmd_exe): Likewise.
10137 (linux_nat_info_proc_cmd_all): Likewise.
10138 (linux_target_install_ops): Install linux_nat_info_proc.
10139 (_initialize_linux_nat): No longer install "info proc" command
10142 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10144 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10145 * config.in, configure: Regenerate.
10147 * target.h (struct target_ops): Add to_fileio_readlink.
10148 (target_fileio_readlink): Add prototype.
10149 * target.c (target_fileio_readlink): New function.
10151 * inf-child.c: Conditionally include <sys/param.h>.
10152 (inf_child_fileio_readlink): New function.
10153 (inf_child_target): Install it.
10155 * remote.c (PACKET_vFile_readlink): New enum value.
10156 (remote_hostio_readlink): New function.
10157 (init_remote_ops): Install it.
10158 (_initialize_remote): Handle vFile:readlink packet type.
10160 2012-01-20 Pedro Alves <palves@redhat.com>
10161 Ulrich Weigand <ulrich.weigand@linaro.org>
10163 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10164 * config.in, configure: Regenerate.
10166 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10167 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10168 (target_fileio_open): Add prototype.
10169 (target_fileio_pwrite): Likewise.
10170 (target_fileio_pread): Likewise.
10171 (target_fileio_close): Likewise.
10172 (target_fileio_unlink): Likewise.
10173 (target_fileio_read_alloc): Likewise.
10174 (target_fileio_read_stralloc): Likewise.
10176 * target.c: Include "gdb/fileio.h".
10177 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10178 (default_fileio_target): New function.
10179 (target_fileio_open): Likewise.
10180 (target_fileio_pwrite): Likewise.
10181 (target_fileio_pread): Likewise.
10182 (target_fileio_close): Likewise.
10183 (target_fileio_unlink): Likewise.
10184 (target_fileio_close_cleanup): Likewise.
10185 (target_fileio_read_alloc_1): Likewise.
10186 (target_fileio_read_alloc): Likewise.
10187 (target_fileio_read_stralloc): Likewise.
10189 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10190 <fcntl.h>, and <unistd.h>.
10191 (inf_child_fileio_open_flags_to_host): New function.
10192 (inf_child_errno_to_fileio_error): Likewise.
10193 (inf_child_fileio_open): Likewise.
10194 (inf_child_fileio_pwrite): Likewise.
10195 (inf_child_fileio_pread): Likewise.
10196 (inf_child_fileio_close): Likewise.
10197 (inf_child_fileio_unlink): Likewise.
10198 (inf_child_target): Install to_fileio routines.
10200 * remote.c (init_remote_ops): Install to_fileio routines.
10202 2012-01-20 Pedro Alves <palves@redhat.com>
10203 Ulrich Weigand <ulrich.weigand@linaro.org>
10205 * remote.c (remote_multi_process_p): Only check for multi-process
10206 protocol feature, do not check for extended protocol.
10207 (remote_supports_multi_process): Check for extended protocol here.
10208 (set_general_process): Likewise.
10209 (extended_remote_kill): Likewise.
10210 (remote_pid_to_str): Likewise.
10211 (remote_query_supported): Always query multiprocess mode.
10213 2012-01-20 Pedro Alves <palves@redhat.com>
10214 Ulrich Weigand <ulrich.weigand@linaro.org>
10216 * inferior.h (struct inferior): Add fake_pid_p.
10217 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10218 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10219 magic_null_ptid since the remote side doesn't provide a real PID.
10221 2012-01-19 Tom Tromey <tromey@redhat.com>
10223 * NEWS: Combine the two Python sections.
10225 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10227 * target.h (target_close): Update comment on the target's unpush state.
10229 2012-01-19 Pedro Alves <palves@redhat.com>
10231 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10232 linux_nat_async directly instead of going through the target
10234 * target.c (unpush_target): Close target after unpushing it, not
10237 2012-01-19 Gary Benson <gbenson@redhat.com>
10239 * mdebugread.c (sort_blocks): Replace integer constants with ones
10240 derived from FIRST_LOCAL_BLOCK.
10242 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10243 Jan Kratochvil <jan.kratochvil@redhat.com>
10246 * symfile.c (find_separate_debug_file): New function.
10247 (terminate_after_last_dir_separator): Likewise.
10248 (find_separate_debug_file_by_debuglink): Also try realpath.
10249 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10250 * configure: Regenerate.
10251 * config.in: Regenerate.
10253 2012-01-18 Doug Evans <dje@google.com>
10255 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10256 (main.o): Remove rule.
10257 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10258 (--with-sysroot): Rewrite.
10259 * configure: Regenerate.
10260 * config.in: Regenerate.
10262 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10264 * parse.c (initialize_expout): New function.
10265 (reallocate_expout): Likewise.
10266 (parse_exp_in_context): Use `initialize_expout' and
10267 `reallocate_expout' when appropriate.
10269 2012-01-18 Pedro Alves <palves@redhat.com>
10271 * record.c (struct record_breakpoint, record_breakpoint_p)
10272 (record_breakpoints): New.
10273 (record_insert_breakpoint, record_remove_breakpoint): Manage
10274 record breakpoints list. Only remove breakpoints from the
10275 inferior if they had been inserted there in the first place.
10277 2012-01-17 Doug Evans <dje@google.com>
10279 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10280 if we know we don't have a file name to look for.
10282 2012-01-17 Pedro Alves <palves@redhat.com>
10284 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10285 the frame's stop reason is UNWIND_UNAVAILABLE.
10287 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10289 Fix compilation error.
10290 * m2-exp.y (yyerror): Use ANSI C prototype.
10292 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10294 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10295 (growbuf_by_size): Likewise.
10296 (yyerror): Likewise.
10297 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10298 (modblock): Remove variable (was #if 0'ed).
10299 (parse_number): Convert prototype from K&R to ANSI C.
10300 (yyerror): Likewise.
10301 * objc-exp.y (parse_number): Likewise.
10302 (yyerror): Likewise.
10303 (yylex): Remove #if 0'ed code.
10304 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10305 (yyerror): Likewise.
10307 2012-01-16 Tom Tromey <tromey@redhat.com>
10310 * symtab.h (compare_filenames_for_search): Declare.
10311 * symtab.c (compare_filenames_for_search): New function.
10312 (iterate_over_some_symtabs): Use it.
10313 * symfile.h (struct quick_symbol_functions)
10314 <map_symtabs_matching_filename>: Change spec.
10315 * psymtab.c (partial_map_symtabs_matching_filename): Use
10316 compare_filenames_for_search. Update for new spec.
10317 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10318 compare_filenames_for_search. Update for new spec.
10319 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10321 2012-01-16 Tom Tromey <tromey@redhat.com>
10324 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10325 (struct main_type) <flag_flag_enum>: New field.
10326 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10327 * NEWS: Add entries.
10328 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10330 * python/lib/gdb/printing.py (_EnumInstance): New class.
10331 (FlagEnumerationPrinter): Likewise.
10333 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10335 * breakpoint.c (create_sals_from_address_default): New function.
10336 (create_breakpoints_sal_default): Likewise.
10337 (decode_linespec_default): Likewise.
10338 (is_marker_spec): Removed.
10339 (strace_marker_p): New function.
10340 (init_breakpoint_sal): Using `strace_marker_p' instead of
10342 (create_breakpoint): Call method `create_sals_from_address' from
10343 breakpoint_ops, replacing code that created SALs conditionally
10344 on the type of the breakpoint. Call method `create_breakpoints_sal',
10345 replacing code that created breakpoints conditionally on the type
10347 (base_breakpoint_create_sals_from_address): New function.
10348 (base_breakpoint_create_breakpoints_sal): Likewise.
10349 (base_breakpoint_decode_linespec): Likewise.
10350 (base_breakpoint_ops): Add methods
10351 `base_breakpoint_create_sals_from_address',
10352 `base_breakpoint_create_breakpoints_sal' and
10353 `base_breakpoint_decode_linespec'.
10354 (bkpt_create_sals_from_address): New function.
10355 (bkpt_create_breakpoints_sal): Likewise.
10356 (bkpt_decode_linespec): Likewise.
10357 (tracepoint_create_sals_from_address): Likewise.
10358 (tracepoint_create_breakpoints_sal): Likewise.
10359 (tracepoint_decode_linespec): Likewise.
10360 (strace_marker_create_sals_from_address): Likewise.
10361 (strace_marker_create_breakpoints_sal): Likewise.
10362 (strace_marker_decode_linespec): Likewise.
10363 (strace_marker_breakpoint_ops): New variable.
10364 (addr_string_to_sals): Remove `marker_spec'. Call method
10365 `decode_linespec' from breakpoint_ops, replacing code that decoded
10366 an address string into a SAL. Use `strace_marker_p' instead of
10368 (strace_command): Decide whether we are dealing with a static
10369 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10370 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10371 * breakpoint.h (linespec_result, linespec_sals): New forward
10373 (breakpoint_ops) <create_sals_from_address>,
10374 <create_breakpoints_sal>, <decode_linespec>: New methods.
10376 2012-01-14 Doug Evans <dje@google.com>
10378 * NEWS: Update text for "maint set python print-stack".
10379 It is deprecated in gdb 7.4 and deleted in 7.5.
10381 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10383 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10384 including curses.h.
10386 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10388 * configure: Regenerate.
10389 * config.in: Regenerate.
10391 2012-01-12 Keith Seitz <keiths@redhat.com>
10394 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10395 (ANONYMOUS_UNION_NAME): Define.
10396 (is_path_expr_parent): New function.
10397 (get_path_expr_parent): New function.
10398 (is_anonymous_child): New function.
10399 (create_child_with_value): If the child is anonymous and without
10400 a name, assign an object name to it.
10401 (c_describe_child): Use get_path_expr_parent to determine
10402 the parent expression.
10403 If there field represents an anonymous struct or union and
10404 has no name, set an appropriate display name and expression.
10405 (cplus_describe_child): Likewise.
10407 2012-01-12 Pedro Alves <palves@redhat.com>
10409 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10410 available when %ebp is found to be zero (outermost).
10412 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10414 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10415 an internal gdb_static_assert.
10416 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10418 2012-01-11 Tom Tromey <tromey@redhat.com>
10421 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10422 catch" and "catch throw".
10424 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10426 * blockframe.c (block_innermost_frame): Start search from selected
10427 frame, if present, or otherwise the current frame.
10429 * c-exp.y (variable): Update innermost_block for
10430 'block COLONCOLON NAME' clause.
10431 * m2-exp.y (variable): Ditto.
10432 * objc-exp.y (variable): Ditto.
10434 2012-01-10 Tom Tromey <tromey@redhat.com>
10437 * python/python.c (finish_python_initialization): Set sys.argv.
10439 2012-01-10 Doug Evans <dje@google.com>
10441 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10442 "want_line_info". All callers updated.
10443 (dwarf_decode_lines_1): New function.
10444 (handle_DW_AT_stmt_list): Add function comment.
10445 New arg "want_line_info". All callers updated.
10446 (read_file_scope,read_type_unit_scope): Move comment from
10447 handle_DW_AT_stmt_list to here.
10449 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10451 Fix regression after libiberty/ update for GCC PR 6057 and others.
10452 * c-exp.y (operator) <OPERATOR DELETE>
10453 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10454 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10455 (make_builtin_type, make_name): New variable i, add gdb_assert.
10456 (operator) <OPERATOR NEW>: Update ARGS to 3.
10457 (operator) <OPERATOR DELETE>: Add trailing space.
10458 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10459 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10460 * cp-support.c (cp_canonicalize_string): Check NULL from
10461 cp_comp_to_string, call warning and return.
10463 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10465 Fix duplicate .o files after omitting libbfd.a.
10466 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10467 (SFILES): Add corelow.c.
10468 (COMMON_OBS): Add corelow.o.
10469 (ALLDEPFILES): Remove corelow.c.
10470 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10471 * config/alpha/alpha-osf3.mh: Likewise.
10472 * config/alpha/fbsd.mh: Likewise.
10473 * config/arm/nbsdaout.mh: Likewise.
10474 * config/arm/nbsdelf.mh: Likewise.
10475 * config/i386/i386gnu.mh: Likewise.
10476 * config/ia64/hpux.mh: Likewise.
10477 * config/ia64/linux.mh: Likewise.
10478 * config/m32r/linux.mh: Likewise.
10479 * config/m68k/linux.mh: Likewise.
10480 * config/mips/irix5.mh: Likewise.
10481 * config/mips/irix6.mh: Likewise.
10482 * config/pa/hpux.mh: Likewise.
10483 * config/pa/linux.mh: Likewise.
10484 * config/powerpc/aix.mh: Likewise.
10485 * config/sparc/linux.mh: Likewise.
10486 * config/sparc/linux64.mh: Likewise.
10487 * config/sparc/sol2.mh: Likewise.
10488 * config/vax/vax.mh: Likewise.
10489 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10490 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10491 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10492 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10493 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10494 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10495 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10496 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10497 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10498 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10499 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10500 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10501 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10502 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10503 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10504 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10505 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10506 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10507 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10508 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10509 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10510 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10511 corelow.o from gdb_target_obs.
10512 * corefile.c (core_target): Update the comment on NULL value.
10513 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10514 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10515 MATCHES. Drop YUMMY set on NULL.
10516 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10517 reclaim CORE_DATA if it is already NULL.
10519 2012-01-09 Doug Evans <dje@google.com>
10521 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10522 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10524 2012-01-09 Keith Seitz <keiths@redhat.com>
10526 * breakpoint.c (wrapper.h): Don't include.
10528 2012-01-09 Keith Seitz <keiths@redhat.com>
10530 * Makefile.in (SFILES): Remove wrapper.c.
10531 (HFILES_NO_SRCDIR): Remove wrapper.h.
10532 (COMMON_OBS): Remove wrapper.o.
10533 * cli/cli-interp.c: Don't inlude wrapper.h.
10534 * corelow.c: Likewise.
10535 (core_open): Replace gdb_target_find_new_threads with
10536 TRY_CATCH around target_find_new_threads.
10537 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10538 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10539 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10540 evaluate_expression.
10541 (varobj_set_value): Likewise for evaluate_expression and
10543 (install_new_variable): Likewise for value_fetch_lazy.
10544 (adjust_value_for_child_access): Likewise for value_ind.
10545 (c_describe_child): Likewise for value_subscript and
10547 (c_value_of_root): Likewise for evaluate_expression.
10548 * wrapper.c: Remove.
10549 * wrapper.h: Remove.
10551 2012-01-09 Doug Evans <dje@google.com>
10553 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10554 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10555 "abfd" args with "section". All callers updated.
10556 Error checking code moved ...
10557 (error_check_comp_unit_head): ... here. New function.
10558 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10559 Delete arg "abfd". New arg "type_offset". All callers updated.
10560 (create_debug_types_hash_table): Simplify by using
10561 read_and_check_type_unit_head.
10563 * parser-defs.h (namecopy): Delete.
10564 * parse.c (namecopy, namecopy_size): Move into copy_name.
10566 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10568 Partially fix duplicate .o files after omitting libbfd.a.
10569 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10570 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10571 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10572 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10573 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10574 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10575 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10577 2012-01-09 Pedro Alves <palves@redhat.com>
10579 * MAINTAINERS: Update my email address.
10581 2012-01-08 Doug Evans <dje@google.com>
10583 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10584 n_type_units. Rename type_comp_units to all_type_units.
10586 (add_signatured_type_cu_to_table): Renamed from
10587 add_signatured_type_cu_to_list. All callers updated.
10589 * gdbtypes.h (struct cplus_struct_type): Delete member
10590 nfn_fields_total. All uses removed.
10592 2012-01-06 Doug Evans <dje@google.com>
10594 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10596 (dwarf2_find_comp_unit): Delete.
10597 (process_psymtab_comp_unit): Make result "void".
10598 Delete args buffer, info_ptr, buffer_size, and replace with
10599 "section". All callers updated.
10600 (dwarf2_build_psymtabs_hard): Simplify.
10602 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10603 Thiago Jung Bauermann <bauerman@br.ibm.com>
10605 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10606 before `struct gdb_exception'.
10607 * breakpoint.c (update_global_location_list_nothrow)
10608 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10609 * cp-abi.c (value_rtti_type): Likewise.
10610 * cp-support.c (cp_validate_operator): Likewise.
10611 * infrun.c (insert_exception_resume_breakpoint)
10612 (check_exception_resume, keep_going): Likewise.
10613 * mi-interp.c (mi_breakpoint_created)
10614 (mi_breakpoint_modified): Likewise.
10615 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10616 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10617 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10619 2012-01-05 Doug Evans <dje@google.com>
10621 * dwarf2read.c (statement_prologue): Delete, unused.
10623 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10624 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10626 * dwarf2read.c (comp_unit_header): Delete, unused.
10628 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10630 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10631 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10633 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10635 * infrun.c (normal_stop): Don't skip calling the normal_stop
10636 observers if the thread was doing a multi-step, but stopped for
10637 some reason other than stepping.
10639 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10641 * cli/cli-decode.h: Add comments.
10642 (CMD_LIST_AMBIGUOUS): Moved to command.h
10643 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10644 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10645 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10646 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10647 (add_com, add_com_alias, add_info, add_info_alias)
10648 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10650 * command.h: Add and adjust comments.
10651 (CMD_LIST_AMBIGUOUS): Moved here.
10652 (help_cmd, help_cmd_list): Delete declarations.
10654 2012-01-04 Doug Evans <dje@google.com>
10656 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10657 All callers updated.
10658 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10659 Replace all arguments with "per_cu". All callers updated.
10661 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10663 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10664 New arg "per_cu". All callers updated.
10666 Delete #if 0'd out code.
10667 * language.c (binop_result_type): Delete.
10668 (simple_type, ordered_type, same_type, integral_type): Delete.
10669 (numeric_type, character_type, string_type, boolean_type): Delete.
10670 (float_type, structured_type): Delete.
10671 * language.h: Update.
10673 2012-01-04 Tom Tromey <tromey@redhat.com>
10675 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10677 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10679 * corefile.c (close_exec_file): Delete.
10680 (reopen_exec_file): Remove commented out code that seems related
10681 to close_exec_file, which is being deleted here.
10682 * inferior.h (close_exec_file): Delete.
10683 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10685 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10687 * ada-lang.c: #include "cli/cli-utils.h".
10688 (get_selections): Use skip_spaces.
10689 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10690 (catch_ada_exception_command_split): Use skip_spaces.
10691 (ada_decode_assert_location): Likewise.
10693 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10695 * linespec.c (decode_line_internal): Check for C++ or Java
10696 compound constructs only if the current language is C, C++
10699 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10702 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10703 Joel Brobecker <brobecker@adacore.com>
10704 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10705 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10707 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10708 fall through into AT_ENTRY_POINT.
10709 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10710 DUMMY_ADDR with it.
10711 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10712 PPC_INSN_SIZE skip to 3 times.
10714 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10716 * linespec.c (add_minsym): Preserve function descriptors.
10718 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10720 * breakpoint.c (all_locations_are_pending): Consider locations
10721 in program spaces executing during startup pending as well.
10723 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10725 Copyright year update in most files of the GDB Project.
10727 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10729 * copyright.sh: Delete.
10730 * copyright.py: Rewrite.
10732 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10734 * gnulib/extra/update-copyright: New file, imported from gnulib.
10736 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10738 * README (Copyright and License Notices): New section.
10740 2012-01-03 Tom Tromey <tromey@redhat.com>
10743 * python/py-value.c (valpy_dereference, valpy_get_address
10744 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10745 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10746 (valpy_absolute, valpy_richcompare): Free intermediate values.
10748 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10750 * ada-lang.c: Reformat the copyright notice.
10752 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10754 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10755 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10756 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10757 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10758 Revert this part of:
10759 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10760 Build gdb directly from *.o files not using libgdb.a.
10761 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10763 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10765 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10766 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10767 Reformat the copyright header.
10769 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10771 Revert this part of:
10772 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10773 Remove the gdbtui binary.
10774 * gdb.c (main): Remove args.interpreter_p initialization.
10775 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10776 * main.h (struct captured_main_args): Remove interpreter_p.
10778 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10780 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10782 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10784 * top.c (print_gdb_version): Update copyright year.
10786 2012-01-02 Yao Qi <yao@codesourcery.com>
10788 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10790 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10791 Joel Brobecker <brobecker@adacore.com>
10793 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10794 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10796 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10797 fall through into AT_ENTRY_POINT.
10798 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10799 DUMMY_ADDR with it.
10800 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10801 PPC_INSN_SIZE skip to 3 times.
10803 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10805 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10807 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10809 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10811 Build gdb directly from *.o files not using libgdb.a.
10812 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10813 (COMMON_OBS): Remove solib-target.o.
10814 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10815 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10816 (LIBGDB_OBS, libgdb.a): Move it above.
10817 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10818 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10819 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10820 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10821 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10822 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10823 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10824 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10825 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10826 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10827 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10828 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10829 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10830 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10831 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10832 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10833 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10834 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10835 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10836 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10837 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10838 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10839 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10840 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10841 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10842 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10843 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10845 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10847 Remove the gdbtui binary.
10848 * .gitignore (/gdbtui): Remove.
10849 * Makefile.in (TUI): Remove.
10850 (SUBDIR_TUI_OBS): Remove tui-main.o.
10851 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10852 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10853 (tui-main.o): Remove.
10854 (all_object_files): Remove tui-main.o.
10855 * NEWS: New note for the gdbtui removal.
10856 * configure: Rebuilt.
10857 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10858 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10859 CONFIG_UNINSTALL respectively.
10860 * gdb.c (main): Remove args.interpreter_p initialization.
10861 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10862 * main.h (struct captured_main_args): Remove interpreter_p.
10863 * tui/tui-main.c: Remove.
10865 2012-01-01 Doug Evans <dje@google.com>
10867 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10868 (dwarf2_physname, read_import_statement): Ditto.
10869 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10870 (process_structure_scope read_subroutine_type): Ditto.
10871 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10872 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10873 (dwarf2_fetch_die_location_block): Ditto.
10874 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10876 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10877 All callers updated.
10878 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10879 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10880 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10882 * dwarf2read.c (load_cu): Move assert to more useful location.
10884 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10885 All callers updated.
10887 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10888 (dwarf2_elf_names): Minor reformat.
10889 (dwarf2_per_cu_data): Tweak comment.
10890 (dwarf2_read_section): Fix comment.
10891 (create_all_comp_units): Fix comment.
10892 (load_full_comp_unit): Fix comment.
10893 (process_full_comp_unit): Fix comment.
10894 (read_signatured_type): Fix comment.
10896 For older changes see ChangeLog-2011.
10902 version-control: never