1 2012-10-26 Pedro Alves <palves@redhat.com>
3 * amd64-tdep.c (amd64_relocate_instruction): Use
4 store_unsigned_integer instead of memcpy.
5 * i386-tdep.c (i386_relocate_instruction): Ditto.
7 2012-10-26 Pedro Alves <palves@redhat.com>
9 * infrun.c (handle_inferior_event): Merge handling of
10 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
13 2012-10-26 Pedro Alves <palves@redhat.com>
15 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
18 2012-10-26 Pedro Alves <palves@redhat.com>
20 * target.c (target_waitstatus_to_string): Handle
21 TARGET_WAITKIND_VFORK_DONE.
23 2012-10-26 Pedro Alves <palves@redhat.com>
25 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
26 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
28 2012-10-24 Tristan Gingold <gingold@adacore.com>
30 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
33 2012-10-24 Joel Brobecker <brobecker@adacore.com>
35 * ravenscar-thread.c (ravenscar_wait): Only update the list
36 of threads and inferior_ptid if the inferior is still alive.
38 2012-10-24 Joel Brobecker <brobecker@adacore.com>
40 * ada-lang.c (is_known_support_routine): Use lbasename when
41 matching the symtab's filename against
42 known_runtime_file_name_patterns.
44 2012-10-24 Joel Brobecker <brobecker@adacore.com>
46 * ada-lang.c (ada_same_array_size_p): New function.
47 (ada_promote_array_of_integrals): New function.
48 (coerce_for_assign): Add handling of arrays where the elements
49 are integrals of a smaller size than the size of the target
52 2012-10-24 Joel Brobecker <brobecker@adacore.com>
54 * doublest.c (convert_doublest_to_floatformat): Fix comparison
55 against maximum exponent value.
57 2012-10-24 Joel Brobecker <brobecker@adacore.com>
59 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
62 2012-10-24 Joel Brobecker <brobecker@adacore.com>
64 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
65 strip typedef layer when computing the fixed type's field type,
66 only when computing its size.
68 2012-10-24 Mark Kettenis <kettenis@gnu.org>
71 * i386-tdep.c (i386_return_value): Handle complex double and long
74 2012-10-24 Joel Brobecker <brobecker@adacore.com>
76 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
77 New local variable args_len.
78 Quote the name of the executable when computing the command line.
80 2012-10-23 Mark Kettenis <kettenis@gnu.org>
85 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
87 * amd64-tdep.c (amd64_classify): Classify complex types.
88 (amd64_return_value): Handle the COMPLEX_X87 class.
90 2012-10-23 Joel Brobecker <brobecker@adacore.com>
92 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
93 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
95 2012-10-23 Joel Brobecker <brobecker@adacore.com>
97 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
99 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
100 to amd64_windows_auto_wide_charset.
102 2012-10-23 Yao Qi <yao@codesourcery.com>
104 * event-top.c (mark_async_signal_handler_wrapper): Remove.
105 * event-top.h: Remove its declaration.
106 (async_request_quit): Call mark_async_signal_handler instead of
107 mark_async_signal_handler_wrapper.
108 (async_do_nothing, async_disconnect): Likewise.
109 (async_stop_sig): Likewise.
110 * remote.c (handle_remote_sigint): Likewise.
111 (handle_remote_sigint_twice): Likewise.
113 2012-10-23 Yao Qi <yao@codesourcery.com>
115 * event-top.c (sigint_token, sighup_token): Replace 'void *'
116 with 'static struct async_signal_handler *'.
117 (sighup_token, sigquit_token, sigstp_token): Likewise.
119 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
121 * gdbarch.sh (function_list): Use 'pstring' when printing
122 a variable which could return NULL.
123 * gdbarch.c: Regenerate.
125 2012-10-10 Joel Brobecker <brobecker@adacore.com>
126 Tom Tromey <tromey@redhat.com>
128 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
129 inneffective if condition by gdb assertion. Add function
132 2012-10-19 Joel Brobecker <brobecker@adacore.com>
134 * parser-defs.h (struct exp_descriptor): Document constraint
135 on return value for "op_name" callbacks.
137 2012-10-18 Tom Tromey <tromey@redhat.com>
139 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
140 * symtab.c (iterate_over_some_symtabs): Constify.
141 * source.h (symtab_to_fullname): Return 'const char *'.
142 * source.c (symtab_to_fullname): Return 'const char *'.
143 * python/py-symtab.c (stpy_fullname): Constify.
144 * cli/cli-cmds.c (edit_command): Constify.
145 * breakpoint.c (print_breakpoint_location)
146 (update_static_tracepoint): Constify.
148 2012-10-18 Tom Tromey <tromey@redhat.com>
150 * breakpoint.c (compare_breakpoints): Fix comparison.
152 2012-10-18 Tom Tromey <tromey@redhat.com>
154 * valprint.c (generic_emit_char, generic_printstr): Pass size of
155 gdb_wchar_t to convert_between_encodings.
157 2012-10-17 Yao Qi <yao@codesourcery.com>
159 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
160 more parameter 'inferior'.
161 * corefile.c (write_memory_with_notification): Caller update.
163 * mi/mi-cmd-var.c: Include "mi-main.h".
164 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
165 to 1 and restore it later.
166 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
167 and "data-write-memory-bytes.
168 * mi/mi-interp.c: Include objfiles.h.
169 (mi_interpreter_init): Call observer_attach_memory_changed.
170 (mi_memory_changed): New.
171 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
174 * NEWS: Mention new MI notification "memory-changed".
176 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
178 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
180 2012-10-15 Doug Evans <dje@google.com>
182 New option -nh: inhibit loading of ~/.gdbinit.
184 * main.c (captured_main): Recognize and process -nh.
185 (print_gdb_help): Mention -nh.
186 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
188 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
192 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
194 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
195 nor pc_regnum_from_eax.
196 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
197 nor pc_regnum_from_eax.
199 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
201 Fix entry values resolving in inlined frames.
202 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
203 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
206 2012-10-15 Joel Brobecker <brobecker@adacore.com>
208 * configure.ac: Build with -DMS_WIN64 if building with Python
209 enabled using GCC on amd64-windows.
210 * configure: Regenerate.
212 2012-10-15 Tom Tromey <tromey@redhat.com>
215 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
218 2012-10-15 Tom Tromey <tromey@redhat.com>
221 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
223 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
225 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
226 reset thread numbering back to 1.
228 2012-10-11 Doug Evans <dje@google.com>
230 PR breakpoints/14643.
231 * linespec.c (struct ls_parser): New member keyword_ok.
232 (linespec_lexer_lex_string): Add comment.
233 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
235 (parse_linespec): Set keyword_ok.
237 2012-10-10 Doug Evans <dje@google.com>
239 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
240 "0x" prefix on address in log message.
242 * dwarf2read.c (read_1_byte): Add const to buf parameter.
243 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
244 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
245 (lookup_dwo_file): Add const to dwo_name parameter.
246 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
248 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
250 Fix crash during stepping on ppc32.
251 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
254 2012-10-03 Doug Evans <dje@google.com>
257 * buildsym.c (buildsym_init): Reset using_directives to NULL.
259 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
261 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
262 output and use uint32_t not long to ensure 4 byte size.
264 2012-10-02 Joel Brobecker <brobecker@adacore.com>
266 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
269 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
271 * target.c (simple_search_memory): Include access length in
274 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
275 Edjunior Machado <emachado@linux.vnet.ibm.com>
278 * solib.c (solib_find): Prevent GDB from loading native libraries when
279 debugging a cross-target corefile.
281 2012-09-28 selven <pcthegreat@gmail.com>
283 Make definition match declaration.
285 * regcache.c (regcache_register_status): Change return type to
286 enum register_status.
288 2012-09-28 Yao Qi <yao@codesourcery.com>
290 * mi/mi-main.c (mi_cmd_data_write_memory): Call
291 write_memory_with_notification instead of write_memory.
292 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
293 instead of target_write_memory.
295 2012-09-28 Yao Qi <yao@codesourcery.com>
297 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
298 when the length of content is not an even number.
300 2012-09-27 Tom Tromey <tromey@redhat.com>
302 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
303 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
305 2012-09-27 Joel Brobecker <brobecker@adacore.com>
307 * sol-thread.c (sol_thread_fetch_registers)
308 (sol_thread_store_registers): Delete commented out code.
310 2012-09-27 Joel Brobecker <brobecker@adacore.com>
312 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
313 Move these functions to sparc-sol-thread.c.
314 * sparc-sol-thread.c: New file.
315 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
316 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
318 * configure: Regenerate.
320 2012-09-27 Joel Brobecker <brobecker@adacore.com>
322 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
323 Remove commented-out code.
325 2012-09-27 Joel Brobecker <brobecker@adacore.com>
327 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
328 Enable this code for sparc hosts only.
330 2012-09-27 Joel Brobecker <brobecker@adacore.com>
332 * procfs.h (procfs_find_LDT_entry): Add declaration.
333 * sol-thread.c (ps_lgetLDT): Delete local declaration of
334 function procfs_find_LDT_entry.
336 2012-09-27 Joel Brobecker <brobecker@adacore.com>
338 * procfs.c (proc_get_LDT_entry): Make static.
340 2012-09-27 Joel Brobecker <brobecker@adacore.com>
342 * procfs.c (proc_find_memory_regions): Fix declaration.
344 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
346 * amd64-tdep.c (amd64_return_value): Revert previous change
347 that used TYPE_LENGTH directly.
348 * bfin-tdep.c (bfin_extract_return_value): Likewise.
349 (bfin_store_return_value): Likewise.
350 * cris-tdep.c (cris_store_return_value): Likewise.
351 (cris_extract_return_value): Likewise.
352 * h8300-tdep.c (h8300_extract_return_value): Likewise.
353 * hppa-tdep.c (hppa64_return_value): Likewise.
354 * lm32-tdep.c (lm32_store_return_value): Likewise.
355 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
356 * spu-tdep.c (spu_value_from_register): Likewise.
357 * vax-tdep.c (vax_return_value): Likewise.
359 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
361 * gdbtypes.c (lookup_array_range_type): Expand parameters
362 LOW_BOUND and HIGH_BOUND to LONGEST.
363 (lookup_string_range_type): Likewise.
364 * gdbtypes.h (lookup_array_range_type): Likewise.
365 (lookup_string_range_type): Likewise.
366 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
367 Expand HIGHBOUND to ssize_t.
368 (value_string): Likewise.
369 * value.h (value_cstring): Expand parameter LEN to ssize_t.
370 (value_string): Likewise.
372 2012-09-27 Yao Qi <yao@codesourcery.com>
375 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
376 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
379 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
381 * procfs.c: Add gdb_bfd header.
382 * rs6000-nat.c: Likewise.
383 * solib-pa64.c: Likewise.
384 * spu-linux-nat.c: Likewise.
385 * windows-nat.c: Likewise.
387 2012-09-26 Tom Tromey <tromey@redhat.com>
389 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
391 2012-09-26 Tom Tromey <tromey@redhat.com>
393 * dwarf2read.c (mark_common_block_symbol_computed): New function.
394 (read_common_block): Handle child DIEs with
395 DW_AT_data_member_location.
396 (new_symbol_full): Add special case for common blocks.
398 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
399 Tom Tromey <tromey@redhat.com>
401 * dwarf2read.c (read_common_block): Rewrite.
402 (new_symbol_full): Handle DW_TAG_common_block.
403 * f-lang.c (head_common_list, find_common_for_function):
405 * f-lang.h (struct common_entry, struct saved_f77_common,
406 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
407 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
408 BLANK_COMMON_NAME_LOCAL): Remove.
409 (struct common_block): New.
410 * f-valprint.c (list_all_visible_commons): Remove.
411 (info_common_command_for_block): New function.
412 (info_common_command): Use it.
413 * stack.c (iterate_over_block_locals): Special case for
415 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
417 (struct general_symbol_info) <value.common_block>: New field.
418 (SYMBOL_VALUE_COMMON_BLOCK): New define.
420 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
421 Tom Tromey <tromey@redhat.com>
423 * f-lang.c (allocate_saved_bf_node,
424 allocate_saved_function_node, allocate_saved_f77_common_node,
425 allocate_common_entry_node, tail_common_list, current_common,
426 saved_bf_list, saved_bf_list_end, current_head_bf_list,
427 tmp_bf_ptr, add_common_block, add_common_entry,
428 find_first_common_named, patch_common_entries,
429 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
430 global_remote_debug, get_bf_for_fcn, saved_function_list,
431 saved_function_list_end, clear_function_list, struct saved_fcn,
432 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
433 SAVED_BF, SAVED_BF_PTR): Remove.
434 * f-lang.h (tail_common_list, current_common,
435 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
436 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
437 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
438 real_main_c_value): Remove.
439 * f-valprint.c (there_is_a_visible_common_named): Remove.
441 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
443 * breakpoint.c (update_global_location_list): Ignore previous
444 duplicate status of a breakpoint when starting a new scan for
445 duplicate breakpoints.
447 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
449 * arm-tdep.c (arm_skip_prologue): Extending producer check to
450 support LLVM compiler.
452 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
454 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
455 * bfin-tdep.c (bfin_extract_return_value): Likewise.
456 (bfin_store_return_value): Likewise.
457 * cris-tdep.c (cris_store_return_value): Likewise.
458 (cris_extract_return_value): Likewise.
459 * h8300-tdep.c (h8300_extract_return_value): Likewise.
460 * hppa-tdep.c (hppa64_return_value): Likewise.
461 * lm32-tdep.c (lm32_store_return_value): Likewise.
462 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
463 * spu-tdep.c (spu_value_from_register): Likewise.
464 * vax-tdep.c (vax_return_value): Likewise.
466 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
468 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
469 parameter LEN to ssize_t.
471 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
473 * ada-valprint.c (ada_val_print_1): Eliminate single-use
475 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
477 (alpha_store_return_value): Likewise.
478 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
479 (amd64_push_arguments): Likewise.
480 * ax-gdb.c (gen_trace_static_fields): Likewise.
481 (gen_traced_pop): Likewise.
482 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
483 * breakpoint.c (update_watchpoint): Likewise.
484 * findcmd.c (parse_find_args): Use local variable for type
486 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
487 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
488 (h8300_store_return_value): Likewise.
489 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
490 Use i386_darwin_arg_type_alignment directly.
491 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
492 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
493 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
494 (m68hc11_extract_return_value): Likewise.
495 * mep-tdep.c (mep_push_dummy_call): Likewise.
496 * printcmd.c (float_type_from_length): Likewise.
497 * s390-tdep.c (s390_value_from_register): Likewise.
498 * stack.c (read_frame_arg): Likewise.
499 * tracepoint.c (encode_actions_1): Likewise.
500 * valops.c (value_fetch_lazy): Use local variable for type
501 instead of length. Use TYPE_LENGTH directly.
502 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
504 2012-09-25 Joel Brobecker <brobecker@adacore.com>
506 * symtab.c (skip_prologue_sal): Fix typo in comment.
508 2012-09-25 Joel Brobecker <brobecker@adacore.com>
510 * linespec.c (create_sals_line_offset): Fix typo in comment.
512 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
514 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
515 use plongest to print the array size.
517 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
519 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
520 * p-valprint.c (pascal_type_print_base): Likewise.
522 2012-09-22 Yao Qi <yao@codesourcery.com>
524 * remote.c (remote_get_trace_status): Remove setting default
525 values of fields of 'ts'.
527 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
529 Fix internal error on canonicalization of clang types.
530 * cp-name-parser.y (operator): New comment at make_operator call for
531 new, delete, new[] and delete[].
532 (exp): Use "sizeof ". Add new comment at make_operator call.
534 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
536 Fix disassemble without parameters in tailcall frame.
537 * cli/cli-cmds.c (disassemble_current_function): Use
538 get_frame_address_in_block.
540 2012-09-21 Tom Tromey <tromey@redhat.com>
542 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
543 TYPE_CODE_UNION>: Unify, removing a goto.
545 2012-09-21 Tom Tromey <tromey@redhat.com>
547 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
549 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
551 * findvar.c (read_frame_register_value): Mark the result value as
552 optimized out if any of the input registers have been optimized out.
554 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
556 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
558 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
560 * eval.c (evaluate_subexp_standard): Eliminate single-use
563 2012-09-21 Yao Qi <yao@codesourcery.com>
565 * mi/mi-interp.c: Declare mi_record_changed.
566 (mi_interpreter_init): Call observer_attach_record_changed.
567 (mi_record_changed): New.
568 * record.c (record_open): Call observer_notify_record_changed.
569 (cmd_record_stop): Call observer_notify_record_changed.
572 2012-09-20 Tom Tromey <tromey@redhat.com>
575 * python/python.c (finalize_python): New function.
576 (_initialize_python): Make a final cleanup.
578 2012-09-19 Doug Evans <dje@google.com>
580 * buildsym.h (param_symbols): Delete, unused.
581 (context_stack): Delete member "params", unused.
582 * buildsym.c (push_context): Update.
583 * dwarf2read.c (read_func_scope): Update.
585 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
587 * sh-tdep.c (sh_register_convert_to_virtual)
588 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
589 all callers. Just do a memcpy if not the little-endian case.
591 * h8300-tdep.c (h8300_gdbarch_init): Invoke
592 set_gdbarch_double_format and set_gdbarch_long_double_format.
593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
594 set_gdbarch_double_format.
595 * sh-tdep.c (sh_gdbarch_init): Likewise.
597 * NEWS: Document the removal of SH's 'regs' command.
598 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
601 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
603 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
606 2012-09-18 Joel Brobecker <brobecker@adacore.com>
608 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
609 language when iterating over symbols.
611 2012-09-18 Yao Qi <yao@codesourcery.com>
613 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
614 (mi_interpreter_init): Call observer_attach_tsv_created and
615 observer_attach_tsv_deleted.
616 (mi_tsv_created, mi_tsv_deleted): New.
617 * tracepoint.c (delete_trace_state_variable): Call
618 observer_notify_tsv_deleted.
619 (trace_variable_command): Call observer_notify_tsv_created.
620 (delete_trace_variable_command): Call
621 observer_notify_tsv_deleted.
622 (create_tsv_from_upload): Call observer_notify_tsv_created.
625 2012-09-18 Yao Qi <yao@codesourcery.com>
627 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
628 if traceframe changed.
629 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
631 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
632 (mi_interpreter_init): Hook mi_traceframe_changed to observer
633 'traceframe_changed'.
634 (mi_traceframe_changed): New.
635 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
637 * NEWS: Mention the new MI notification.
639 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
641 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
643 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
645 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
646 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
647 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
648 Extend code also for PaX support. Convert all gdb_assert to warning
651 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
653 Implement auto-load user conveniences suggested by Doug Evans.
654 * auto-load.c: Include top.h.
655 (file_is_auto_load_safe): New variable advice_printed. Print advice.
656 (_initialize_auto_load): New variable scripts_directory_help. Mention
657 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
658 scripts-directory. Document in online help one can use also files for
659 set auto-load safe-path.
660 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
661 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
663 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
665 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
668 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
670 * m2-valprint.c (m2_print_array_contents): Eliminate variable
671 ELTLEN and use TYPE_LENGTH directly.
672 (m2_val_print): Likewise.
673 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
674 variable LEN and use TYPE_LENGTH directly.
675 (m68k_svr4_store_return_value): Likewise.
676 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
677 ARGLEN and use TYPE_LENGTH directly.
678 (mips_o64_push_dummy_call): Likewise.
679 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
680 variable LENGTH and use TYPE_LENGTH directly.
681 (s390_function_arg_float): Likewise.
682 (s390_function_arg_integer): Likewise.
683 (s390_push_dummy_call): Likewise.
684 (s390_return_value_convention): Likewise.
685 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
686 TYPE_LENGTH directly.
688 2012-09-17 Yao Qi <yao@codesourcery.com>
690 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
691 Update comment to add_setshow_integer_cmd.
692 * cli/cli-setshow.c (do_set_command): Handle case
693 'var_zuinteger_unlimited'.
694 (do_show_command): Likewise.
695 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
696 for command 'remotetimeout'.
697 * command.h (enum var_types): New zuinteger_unlimited. Update comment
699 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
700 for command 'set listsize'.
702 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
704 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
707 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
710 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
711 (frame_pop): Drop also TAILCALL_FRAME frames.
712 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
714 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
715 Pedro Alves <palves@redhat.com>
718 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
719 function start if we are already at function start. Both for
720 reverse-next and for reverse-step into function without line number
723 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
725 Code cleanup - rename 'inline' depth to 'artificial' depth.
726 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
727 frame_id_artificial_p, extend the comment.
728 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
729 * frame.c (fprint_frame_id): Rename at a user, change debug output
730 text to "artificial=".
731 (skip_inlined_frames): Rename to ...
732 (skip_artificial_frames): ... here. Extend the comment.
733 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
734 (frame_id_inlined_p): Rename to ...
735 (frame_id_artificial_p): ... here. Rename at a user.
736 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
737 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
739 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
741 (frame_id_inlined_p): Rename to ...
742 (frame_id_artificial_p): ... here.
743 * inline-frame.c (inline_frame_this_id): Rename at a user.
745 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
747 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
748 vector variables using vector_size syntax rather than array
751 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
753 * valarith.c (value_concat): Replace unsafe ALLOCA with
756 2012-09-14 Pedro Alves <palves@redhat.com>
758 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
760 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
762 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
763 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
764 data-directory as appropriate.
766 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
768 * printcmd.c (ui_printf): Eliminate single-use variable
771 2012-09-14 Yao Qi <yao@codesourcery.com>
772 Pedro Alves <palves@redhat.com>
774 * valops.c (value_assign): Move observer_notify_target_changed
775 below to replace reinit_frame_cache.
777 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
779 Refactor Python "gdb" module into a proper Python package, by
780 introducing a new "_gdb" module for code implemented in C, and
781 using reload/__import__ instead of exec.
782 * python/lib/gdb/__init__.py: Import * from _gdb.
783 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
784 prompt_hook, sys.argv): Moved from finish_python_initialization.
785 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
786 (packages, auto_load_packages): New list and function replacing
787 module_dict and auto-loading code, using __file__ instead of
788 gdb.PYTHONDIR and reload/__import__ instead of exec.
789 (GdbSetPythonDirectory): Replacing function of the same name
790 from finish_python_initialization, using reload/__import__ instead
791 of exec, as well as call auto_load_packages.
792 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
793 gdb_python_module and not gdb_module.
794 * python/python-internal.h (gdb_python_module): Declare.
795 * python/python.c (gdb_python_module): New global.
796 (before_prompt_hook): Check gdb_python_module and not gdb_module.
797 (_initialize_python): Rename gdb module to _gdb.
798 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
799 (finish_python_initialization): Move Python code to
800 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
803 2012-09-13 Pedro Alves <palves@redhat.com>
805 * Makefile.in (COMMON_OBS): Add registry.o.
806 * registry.c: New file.
807 * registry.h (struct registry_container): Declare.
808 (registry_data_callback): New typedef.
809 (struct registry_data, struct registry_data_registration, struct
810 registry_data_registry): New type.
811 (register_data_with_cleanup, registry_alloc_data)
812 (registry_callback_adaptor, registry_clear_data)
813 (registry_container_free_data, registry_set_data, registry_data):
815 (DEFINE_REGISTRY): Refactor structures and functions as shims over
816 the new common structures and functions.
817 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
820 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
822 * remote.c (remote_insert_hw_breakpoint): Throw exception if
823 there is an error inserting hardware breakpoints and use the
824 error message from the target.
826 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
827 Catch this exception and print the error message contained within. Do not
828 print the default hardware error breakpoint message in this case.
830 2012-09-12 Doug Evans <dje@google.com>
832 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
835 2012-09-11 Doug Evans <dje@google.com>
837 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
838 .gdb_index symbol attributes if there are none.
840 2012-09-11 Joel Brobecker <brobecker@adacore.com>
842 * symtab.h (struct minimal_symbol) [has_size]: New field.
843 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
844 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
845 * printcmd.c (build_address_symbolic): Only filter out zero-sized
846 minimal symbols if the symbol's size is actually known.
847 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
848 of msymbol's size field. Add comment.
849 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
850 SET_MSYMBOL_SIZE to set the minimal symbol size.
852 2012-09-11 Joel Brobecker <brobecker@adacore.com>
854 * minsyms.c (install_minimal_symbols): Use memset to fill entire
855 minimal_symbol struct object, rather than setting some of its
858 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
860 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
861 passed_a_ptr flag when displaying typedef types.
863 2012-09-10 Joel Brobecker <brobecker@adacore.com>
865 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
866 the optimized_out flag is preserved.
868 2012-09-10 Anthony Green <green@moxielogic.com>
870 * moxie-tdep.c (moxie_analyze_prologue): Update for function
871 prologue changes in GCC.
873 2012-09-10 Keith Seitz <keiths@redhat.com>
876 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
877 (BOOL_CONVERSION_BADNESS): ... this.
878 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
879 (rank_one_type): Allow all boolean conversions
880 permitted by the standard.
882 2012-09-06 Tom Tromey <tromey@redhat.com>
884 * python/py-newobjfileevent.c (create_new_objfile_event_object):
885 Don't decref py_objfile.
887 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
889 Do not enable -lmcheck by default when Python is enabled with
891 * configure.ac: (python_has_threads) New variable, by testing
892 if WITH_THREAD is defined in Python.h.
893 Move --enable-lmcheck after --with-python.
894 Do not enable -lmcheck by default if python_has_threads=yes.
895 Warn if --enable-lmcheck and python_has_threads=yes.
896 * configure: Regenerate.
898 2012-08-31 Yao Qi <yao@codesourcery.com>
900 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
901 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
902 Update some commands.
903 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
904 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
907 2012-08-31 Yao Qi <yao@codesourcery.com>
909 * mi/mi-cmds.c (mi_cmds): Add 'static'.
911 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
913 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
915 2012-08-29 Doug Evans <dje@google.com>
917 * main.c (print_gdb_help): Remove reference to
918 --use-deprecated-index-sections.
920 2012-08-28 Yao Qi <yao@codesourcery.com>
922 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
923 (init_cmds): Call add_setshow_uinteger_cmd for command
924 'max-user-call-depth'.
925 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
926 declaration of 'max_user_call_depth'.
927 * frame.c (backtrace_limit): Add 'unsigned'.
928 (_initialize_frame): Call add_setshow_uinteger_cmd for command
930 * remote.c (remoteaddresssize): Add 'unsigned'.
931 (remote_address_masked): Change local var 'address_size' to
933 (_initialize_remote): Call add_setshow_uinteger_cmd for
935 * top.c (history_size): Add 'unsigned'.
936 (show_commands): Change local variables to 'unsigned'.
937 (set_history_size_command): Don't check history_size is negative.
938 Adjust the condition to call unstifle_history and set history_size
941 2012-08-28 Pedro Alves <palves@redhat.com>
945 * infcmd.c (default_print_one_register_info): New, factored out
946 from default_print_registers_info.
947 (default_print_registers_info): Use it. Mark value unavailable if
949 (registers_info): Print user registers with
950 default_print_one_register_info.
952 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
955 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
956 is not NULL before referencing it.
958 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
960 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
961 variable pc. Call find_pc_line instead of find_pc_overlay, restore
964 2012-08-27 Eli Zaretskii <eliz@gnu.org>
965 Jan Kratochvil <jan.kratochvil@redhat.com>
967 * auto-load.c (auto_load_objfile_script): Rename to ...
968 (auto_load_objfile_script_1): ... here, change variable realname to
969 parameter realname, document it, add return value, add variable retval.
970 (auto_load_objfile_script): New function.
972 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
974 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
975 followed by a whitespace.
977 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
980 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
981 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
982 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
985 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
987 * memattr.c (create_mem_region): Fix memory region overlapping
990 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
992 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
993 with xmalloc/cleanup.
994 * mt-tdep.c (mt_push_dummy_call): Likewise.
995 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
996 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
998 2012-08-24 Yao Qi <yao@codesourcery.com>
1000 * jv-exp.y (push_expression_name): Add "." at the end of error
1003 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1005 Document how to return from "python-interactive" to GDB.
1006 * python/python.c (_initialize_python): Update documentation.
1008 2012-08-23 Pedro Alves <palves@redhat.com>
1010 * infrun.c (_initialize_infrun) <handle command help text>:
1011 Mention that multiple signals are supported.
1013 2012-08-23 Pedro Alves <palves@redhat.com>
1015 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1018 2012-08-23 Yao Qi <yao@codesourcery.com>
1020 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1021 (tfind_1): Don't call registers_changed, set_traceframe_num,
1022 and clear_traceframe_info.
1023 Call set_current_traceframe.
1024 (set_current_traceframe): call set_traceframe_num.
1026 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1028 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1029 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1031 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1033 Enable readline in Python in a GDB-specific way and block the
1034 standard Python readline module to prevent conflicts with GDB.
1035 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1036 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1037 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1038 * python/py-gdb-readline.c: New file.
1039 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1041 * python/python.c (_initialize_python): Call
1042 gdbpy_initialize_gdb_readline.
1044 2012-08-22 Keith Seitz <keiths@redhat.com>
1046 * defs.h: Include build-gnulib/config.h
1048 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1050 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1053 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1055 Add a new "python-interactive" command that starts a standard
1056 Python interactive prompt with "pi" as alias, and add "py" as
1057 an alias to "python".
1058 * NEWS: Mention the new commands.
1059 * python/python.c (eval_python_command): New function.
1060 (python_interactive_command): For "python-interactive" with
1061 arguments, call eval_python_command. For "python-interactive"
1062 without arguments, call PyRun_InteractiveLoop.
1063 (_initialize_python): Add "python-interactive" command with
1064 "pi" as alias, and add "py" as an alias to "python".
1066 2012-08-22 Tom Tromey <tromey@redhat.com>
1068 * defs.h (quit_flag): Don't declare.
1069 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1070 (QUIT): Use new functions.
1071 * event-top.c (command_handler): Use clear_quit_flag.
1072 (handle_sigint): Use set_quit_flag.
1073 (async_request_quit): Use check_quit_flag. Don't check
1075 * exceptions.c (throw_exception): Use clear_quit_flag.
1076 * main.c (captured_main): Use clear_quit_flag.
1077 * python/python.c (clear_quit_flag, set_quit_flag)
1078 (check_quit_flag): New functions.
1079 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1081 * remote.c (remote_wait_as): Use check_quit_flag,
1083 (remote_start_remote): Call QUIT.
1084 * symfile.c (load_progress): Use check_quit_flag.
1085 * top.c (command_loop): Use clear_quit_flag.
1086 (command_line_input): Call QUIT.
1087 * utils.c (quit_flag): Conditionally define.
1088 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1090 (prompt_for_continue): Call QUIT. Use quit, not
1092 * remote-mips.c (mips_expect_timeout): Call QUIT.
1093 * monitor.c (monitor_expect): Call QUIT.
1095 2012-08-22 Tom Tromey <tromey@redhat.com>
1097 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1098 (async_init_signals): Update.
1099 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1100 (SIGWINCH_HANDLER_BODY): Remove.
1102 2012-08-22 Tom Tromey <tromey@redhat.com>
1104 * jit.c (jit_object_close_impl): Don't malloc the objfile
1106 * objfiles.c (allocate_objfile): Don't malloc the objfile
1108 (free_objfile): Don't free the objfile name.
1109 * objfiles.h (struct objfile) <name>: Update comment.
1110 * symfile.c (reread_symbols): Fix reference counting. Don't
1111 malloc objfile name.
1113 2012-08-22 Tom Tromey <tromey@redhat.com>
1115 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1116 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1117 (symfile_bfd_open): Likewise.
1118 (generic_load): Likewise.
1119 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1120 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1122 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1124 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1125 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1126 (pmon_load_fast): Likewise.
1127 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1128 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1129 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1130 (macho_check_dsym): Likewise.
1131 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1132 (m32r_upload_command): Likewise.
1133 * gdb_bfd.h (gdb_bfd_cache): Declare.
1134 * gdb_bfd.c (struct gdb_bfd_data): New.
1135 (gdb_bfd_cache): New global.
1136 (struct gdb_bfd_cache_search): New.
1137 (hash_bfd): New function.
1139 (gdb_bfd_open): Likewise.
1140 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1141 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1143 * exec.c (exec_file_attach): Use gdb_bfd_open.
1144 * dsrec.c (load_srec): Use gdb_bfd_open.
1146 2012-08-22 Tom Tromey <tromey@redhat.com>
1148 * dwarf2read.c (macro_start_file): Update.
1149 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1150 (free_objfile_per_bfd_storage): Destroy macro_cache.
1151 (allocate_objfile, free_objfile): Update.
1152 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1154 (struct objfile) <macro_cache>: Remove.
1155 * symfile.c (reread_symbols): Update.
1156 * symmisc.c (print_symbol_bcache_statistics): Update.
1157 (print_objfile_statistics): Update.
1159 2012-08-22 Tom Tromey <tromey@redhat.com>
1161 * elfread.c (elf_symtab_read): Update.
1162 * objfiles.c (objfiles_bfd_data): New global.
1163 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1164 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1165 (allocate_objfile, free_objfile): Update.
1166 (_initialize_objfiles): Initialize objfiles_bfd_data.
1167 * objfiles.h (struct objfile_per_bfd_storage): New.
1168 (struct objfile) <per_bfd>: New field.
1169 <filename_cache>: Remove.
1170 (set_objfile_per_bfd): Declare.
1171 * symfile.c (reread_symbols): Update. Call
1172 set_objfile_per_bfd.
1173 (allocate_symtab): Update.
1174 * symmisc.c (print_symbol_bcache_statistics): Update.
1175 (print_objfile_statistics): Print the size of the BFD obstack.
1177 2012-08-22 Tom Tromey <tromey@redhat.com>
1179 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1180 * gdb_bfd.c: Use DEFINE_REGISTRY.
1181 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1182 (gdb_bfd_ref): Call bfd_alloc_data.
1183 (gdb_bfd_unref): Call bfd_free_data.
1185 2012-08-22 Tom Tromey <tromey@redhat.com>
1187 * registry.h (struct registry_fields): New.
1188 (REGISTRY_FIELDS): Redefine.
1189 (REGISTRY_ACCESS_FIELD): New macro.
1190 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1193 2012-08-22 Tom Tromey <tromey@redhat.com>
1195 * auto-load.c (_initialize_auto_load): Update.
1196 * solib-svr4.c (_initialize_svr4_solib): Update
1197 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1198 * solib-darwin.c (_initialize_darwin_solib): Update.
1199 * registry.h: New file.
1200 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1201 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1202 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1203 (register_program_space_data_with_cleanup)
1204 (register_program_space_data, program_space_alloc_data)
1205 (clear_program_space_data, set_program_space_data)
1206 (program_space_data): Don't declare.
1207 * progspace.c: Use DEFINE_REGISTRY.
1208 (struct program_space_data, struct
1209 program_space_data_registration, struct
1210 program_space_data_registry, program_space_data_registry)
1211 (register_program_space_data_with_cleanup)
1212 (register_program_space_data, program_space_alloc_data)
1213 (program_space_free_data, clear_program_space_data)
1214 (set_program_space_data, program_space_data): Remove.
1215 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1216 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1217 (register_objfile_data_with_cleanup, register_objfile_data)
1218 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1220 * objfiles.c: Use DEFINE_REGISTRY.
1221 (struct objfile_data, struct objfile_data_registration, struct
1222 objfile_data_registry, objfile_data_registry)
1223 (register_objfile_data_with_cleanup, register_objfile_data)
1224 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1225 (set_objfile_data, objfile_data): Remove.
1226 (_initialize_objfiles): Update.
1227 * jit.c (_initialize_jit): Update.
1228 * inflow.c (_initialize_inflow): Update.
1229 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1230 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1231 (register_inferior_data_with_cleanup, register_inferior_data)
1232 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1234 * inferior.c: Use DEFINE_REGISTRY.
1235 (struct inferior_data, struct inferior_data_registration, struct
1236 inferior_data_registry, inferior_data_registry)
1237 (register_inferior_data_with_cleanup, register_inferior_data)
1238 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1239 (set_inferior_data, inferior_data): Remove.
1240 * auxv.c (_initialize_auxv): Update.
1241 * ada-lang.c (_initialize_ada_language): Update.
1242 * breakpoint.c (_initialize_breakpoint): Update.
1243 * i386-nat.c (i386_use_watchpoints): Update.
1245 2012-08-22 Tom Tromey <tromey@redhat.com>
1247 * exec.c (exec_close, exec_file_attach): Update.
1248 (add_to_section_table): Initialize 'key' field.
1249 (add_target_sections, remove_target_sections): Add 'key' argument.
1250 * exec.h (add_target_sections, remove_target_sections): Add
1252 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1253 (reload_shared_libraries_1): Update.
1254 * target.h (struct target_section) <key>: New field.
1256 2012-08-22 Tom Tromey <tromey@redhat.com>
1258 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1260 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1262 * symfile.c (allocate_symtab): Use host_address_to_string
1263 function instead of cast of pointer to long which is not
1264 compatible with x86_64-w64-mingw32 build.
1266 2012-08-19 Andrew Pinski <apinski@cavium.com>
1268 * mips-tdep.c (is_octeon): New function.
1269 (is_octeon_bbit_op): New function.
1270 (mips32_next_pc): Handle Octeon's bbit instructions.
1271 (mips32_instruction_has_delay_slot): Likewise.
1273 2012-08-19 Andrew Pinski <apinski@cavium.com>
1275 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1276 before the function.
1278 2012-08-19 Andrew Pinski <apinski@cavium.com>
1280 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1282 2012-08-19 Keith Seitz <keiths@redhat.com>
1285 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1286 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1288 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1290 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1291 The typo broke "make TAGS".
1293 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1297 2012-08-17 Keith Seitz <keiths@redhat.com>
1300 * gdbtypes.c (strict_type_checking): New variable.
1301 (show_strict_type_checking): New function.
1302 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1303 if strict type checking is disabled.
1304 (_initialize_gdbtypes): Add "check type" subcommand.
1305 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1307 2012-08-17 Keith Seitz <keiths@redhat.com>
1309 * language.h (type_mode): Remove.
1310 (type_check): Remove.
1311 (struct language_defn): Remove la_type_check.
1312 (STRICT_TYPE): Remove unused macro.
1313 (type_error): Remove.
1314 * language.c (set_type_range_case): Renamed to ...
1315 (set_range_case): ... this. Update all callers.
1316 Remove type_mode/type_check.
1317 (type_mode): Remove.
1318 (type_check): Remove.
1319 (show_type_command): Remove.
1320 (set_type_command): Remove.
1321 (language_info): Remove type checking output.
1322 (type_error): Remove unused function.
1323 (range_error): Update comment.
1324 (unknown_language_defn): Remove la_type_check.
1325 (auto_language_defn): Likewise.
1326 (local_language_defn): Likewise.
1327 (_initialize_language): Remove "check type" subcommand.
1328 * ada-lang.c (ada_language_defn): Remove la_type_check.
1329 * c-lang.c (c_language_defn): Likewise.
1330 (cplus_language_defn): Likewise.
1331 (asm_language_defn): Likewise.
1332 (minimal_language_defn): Likewise.
1333 * d-lang.c (d_language_defn): Likewise.
1334 * f-lang.c (f_language_defn): Likewise.
1335 * go-lang.c (go_language_defn): Likewise.
1336 * jv-lang.c (java_language_defn): Likewise.
1337 * m2-lang.c (m2_language_defn): Likewise.
1338 * objc-lang.c (objc_language_defn): Likewise.
1339 * opencl-lang.c (opencl_language_defn): Likewise.
1340 * p-lang.c (pascal_language_defn): Likewise.
1342 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1344 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1346 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1348 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1350 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1351 using the regache. Use ia64_hpux_get_register_from_save_state_t
1352 to access the bsp and bspstore registers if not.
1354 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1356 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1357 * breakpoint.c (detach_breakpoints): Change pid parameter into
1358 a ptid. Adjust code accordingly.
1359 * infrun.c (handle_inferior_event): Delete variable child_pid.
1360 Update call to detach_breakpoints to pass the child ptid for
1362 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1363 assert that inferior_ptid's lwp is zero.
1364 (linux_handle_extended_wait): Update call to detach_breakpoints.
1365 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1368 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1370 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1371 parent, only call detach_breakpoints if tts.tts_event ==
1374 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1376 * dwarf2-frame.c (dwarf2_frame_cache): Use
1377 get_frame_address_in_block instead of get_frame_pc as
1378 the bound for executing the frame's FDE.
1380 2012-08-16 Yao Qi <yao@codesourcery.com>
1382 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1383 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1384 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1385 (c_type_print_varspec_suffix): Likewise.
1386 * eval.c (evaluate_subexp_standard): Likewise.
1387 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1388 (f_type_print_varspec_suffix): Likewise.
1389 * gdbtypes.c (is_scalar_type): Likewise.
1390 (recursive_dump_type): Likewise.
1391 * infcall.c (value_arg_coerce): Likewise.
1392 * m2-valprint.c (m2_val_print): Likewise.
1393 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1394 (pascal_type_print_varspec_suffix): Likewise.
1395 (pascal_type_print_base): Likewise.
1396 * p-valprint.c (pascal_val_print): Likewise.
1397 (pascal_val_print): Likewise.
1398 * valops.c (value_slice): Likewise.
1399 * valprint.c (scalar_type_p): Likewise.
1400 * valarith.c (value_bitstring_subscript): Remove.
1401 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1402 Remove comment on TYPE_CODE_BITSTRING.
1404 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1405 TYPE_CODE_BITSTRING.
1407 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1410 2012-08-16 Yao Qi <yao@codesourcery.com>
1412 * tracepoint.c (trace_find_none_command): Remove.
1413 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1415 2012-08-16 Yao Qi <yao@codesourcery.com>
1417 * remote.c (handle_notification): Remove parameter 'length'.
1418 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1420 2012-08-15 Keith Seitz <keiths@redhat.com>
1422 * gdbtypes.c (opaque_type_resolution): Make static.
1423 Add missing comment.
1424 (overload_debug): Add missing comment.
1425 (show_opaque_type_resolution): Likewise.
1426 (show_overload_debug): Likewise.
1427 (print_bit_vector): Remove unnecessary forward declaration.
1428 (print_arg_types): Likewise.
1429 (dump_fn_fieldlists): Likewise.
1430 (print_cplus_stuff): Likewise.
1432 2012-08-15 Tom Tromey <tromey@redhat.com>
1434 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1435 (gdb_bfd_ref): Initialize new field.
1436 (gdb_bfd_unref): Unref the archive BFD.
1437 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1440 2012-08-15 Tom Tromey <tromey@redhat.com>
1443 * python/py-bpevent.c (create_breakpoint_event_object): Update
1445 * python/py-event.c (evpy_add_attribute): Update comment.
1446 * python/py-exitedevent.c (create_exited_event_object): Fix
1447 reference counting and error handling.
1448 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1449 Fix reference counting.
1450 * python/py-signalevent.c (create_signal_event_object): Fix
1451 reference counting and error handling.
1452 * python/py-stopevent.c (emit_stop_event): Fix reference
1454 * python/py-threadevent.c (get_event_thread): Return a
1456 * python/py-type.c (convert_field): Fix reference counting.
1458 2012-08-15 Tom Tromey <tromey@redhat.com>
1460 * dwarf2read.c (dwarf_decode_macro_bytes)
1461 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1464 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1466 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1467 stepi, nexti, finish, next, step, jump, and continue commands.
1468 * infrun.c (_initialize_infrun): Update help text for the handle
1471 2012-08-14 Doug Evans <dje@google.com>
1473 * gdbtypes.c (struct extra): Delete, unused.
1475 * gdbtypes.c: Whitespace cleanup.
1476 (address_space_name_to_int): Remove "extern" from definition.
1477 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1479 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1480 TYPE_POINTER_TYPE (type).
1482 2012-08-14 Gary Benson <gbenson@redhat.com>
1484 * solib-svr4.c (svr4_free_library_list): Use free_so.
1486 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1488 * .gitignore: Add go-exp.c.
1490 2012-08-13 Doug Evans <dje@google.com>
1492 * value.c (show_convenience): Tweak comment.
1493 (_initialize_values): Mention convenience functions in the help text
1494 for "show convenience".
1496 2012-08-13 Yao Qi <yao@codesourcery.com>
1498 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1499 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1501 * eval.c (evaluate_subexp_standard): Likewise.
1502 * expprint.c (print_subexp_standard): Likewise.
1503 (dump_subexp_body_standard): Likewise.
1504 * parse.c (operator_length_standard): Likewise.
1506 2012-08-13 Yao Qi <yao@codesourcery.com>
1508 * std-operator.def: Remove OP_BITSTRING.
1509 * breakpoint.c (watchpoint_exp_is_const): Update.
1510 * eval.c (evaluate_subexp_standard): Remove handling to
1512 * expprint.c (print_subexp_standard): Likewise.
1513 (dump_subexp_body_standard): Likewise.
1514 * parse.c (operator_length_standard): Likewise.
1515 * valops.c (value_bitstring): Remove.
1516 * value.h: Remove the declaration of 'value_bitstring'.
1518 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1520 * linespec.c (find_methods): Remove unused variables `i1' and
1522 (decode_line_full): Likewise for `arg_start'.
1524 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1526 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1527 (zlib_decompress_section): Likewise for `section_data'.
1528 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1530 2012-08-10 Doug Evans <dje@google.com>
1532 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1533 * NEWS: Document them.
1534 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1536 * python/py-type.c (typy_array_1): New function.
1537 (typy_array): Call it.
1538 (typy_vector): New function.
1539 (type_object_methods): Add "vector".
1540 * python/lib/gdb/function/__init__.py: New file.
1541 * python/lib/gdb/function/strfns.py: New file.
1543 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1545 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1546 for TYPE_FIELD_BITPOS.
1547 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1549 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1552 * common/vec.h (VEC_merge): Define.
1553 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1554 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1555 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1556 * completer.c: Include gdb_signals.h.
1557 (signal_completer): Define.
1558 * completer.h (signal_completer): Add prototype.
1559 * infcmd.c (_initialize_infcmd): Assign the command
1560 completer for "signal" to handle_completer.
1561 * infrun.c: Include completer.h.
1562 (handle_completer): Define.
1563 (_initialize_infrun): Declare a new local variable c. Store the
1564 result of add_com("handle") to it. Assign the command
1565 completer for "handle" to handle_completer.
1567 2012-08-09 Yao Qi <yao@codesourcery.com>
1569 * cli/cli-decode.c (set_cmd_prefix): New.
1570 (lookup_cmd_for_prefixlist): New.
1571 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1572 of each cmd_list_element in *prefixlist.
1573 (add_setshow_cmd_full): set_cmd_prefix.
1574 (add_alias_cmd): Likewise.
1575 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1576 Declare 'auto_boolean_enums'.
1577 * cli/cli-setshow.c: Include "observer.h".
1578 (notify_command_param_changed_p): New.
1579 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1581 (do_setshow_command): Split it to ...
1582 (do_set_command, do_show_command): ... them. New.
1583 (do_set_command): Call observer_notify_command_param_changed if
1584 notify_command_param_changed_p returns true.
1585 (cmd_show_list): Caller update.
1586 * auto-load.c (set_auto_load_cmd): Likewise.
1587 * remote.c (show_remote_cmd): Likewise.
1588 * cli/cli-setshow.h: Update declarations.
1589 * top.c (execute_command): Call do_set_command and do_show_command.
1591 * NEWS: Mention new MI notification.
1592 * mi/mi-interp.c: Declare mi_command_param_changed.
1593 (mi_interpreter_init): Attach mi_command_param_changed to
1594 observer command_param_changed.
1595 (mi_command_param_changed): New.
1596 Remove mi_suppress_breakpoint_notifications.
1597 Define global variable mi_suppress_notification.
1598 (mi_breakpoint_created): Update.
1599 (mi_breakpoint_deleted): Likewise.
1600 (mi_breakpoint_modified): Likewise.
1601 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1602 'gdb-set' and set mi_suppress_notification.
1603 * mi/mi-main.h: (mi_suppress_notification): New struct.
1605 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1606 Jan Kratochvil <jan.kratochvil@redhat.com>
1608 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1610 2012-08-09 Yao Qi <yao@codesourcery.com>
1612 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1613 (skiplist): Move it to skip.c.
1614 (init_cmd_lists): Remove code setting enablebreaklist and
1616 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1617 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1619 * gdbcmd.h: Likewise.
1620 * skip.c (_initialize_step_skip): Move 'skiplist' from
1623 2012-08-09 Yao Qi <yao@codesourcery.com>
1625 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1626 * gnu-nat.c, symfile.c: Likewise.
1628 2012-08-08 Aaron Gamble <agamble@google.com>
1630 * utils.c (prompt_for_continue_wait_time): New static global.
1631 (make_command_stats_cleanup): Initialize it.
1632 (report_command_stats): Subtract time waiting for user.
1633 (prompt_for_continue): Track time waiting for user.
1634 (defaulted_query): Track time waiting for user.
1636 2012-08-08 Doug Evans <dje@google.com>
1638 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1640 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1641 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1642 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1643 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1644 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1645 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1647 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1648 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1649 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1650 (dump_prefix_expression): Handle OP_TYPE.
1652 2012-08-08 Keith Seitz <keiths@redhat.com>
1654 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1657 2012-08-08 Doug Evans <dje@google.com>
1659 * linux-thread-db.c: #include "gdb_vecs.h".
1660 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1662 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1663 (thread_db_load_search): Use a vector to iterate over path elements.
1664 Handle text appearing after "$pdir".
1666 * gdb_string.h: Moved to ...
1667 * common/gdb_string.h: ... here.
1668 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1669 gdb_string.h and gdb_assert.h.
1671 2012-08-08 Yao Qi <yao@codesourcery.com>
1673 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1674 (tic6x_value_to_register): Likewise.
1675 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1676 and set_gdbarch_value_to_register.
1678 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1679 Jean-Marc Saffroy <saffroy@gmail.com>
1682 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1683 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1684 * gcore.c (gcore_create_callback): New function comment. Add modified
1685 parameter. Only write modified regions. Set SEC_READONLY exactly
1686 according to MODIFIED.
1687 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1688 the passed modified value to FUNC.
1689 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1690 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1691 first. New variables modified and has_anonymous. Parse the lines of
1692 smaps file. Add the passed MODIFIED value to FUNC.
1693 * procfs.c (find_memory_regions_callback): Add the passed modified
1696 2012-08-06 Tom Tromey <tromey@redhat.com>
1698 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1699 (dwarf2_frame_cache): Use it.
1700 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1701 cache initialization constraint.
1703 2012-08-06 Tom Tromey <tromey@redhat.com>
1706 * varobj.c (update_dynamic_varobj_children): Don't call
1709 2012-08-06 Tom Tromey <tromey@redhat.com>
1712 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1714 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1716 * NEWS: New entry for 'cd' default parameters.
1717 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1719 2012-08-03 Tom Tromey <tromey@redhat.com>
1721 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1724 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1726 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1727 to attempting lseek/write.
1728 (inf_child_fileio_pread): Likewise for pread.
1730 2012-08-02 Yao Qi <yao@codesourcery.com>
1732 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1733 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1734 add_setshow_zinteger_cmd.
1735 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1736 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1737 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1738 instead of add_setshow_zinteger_cmd.
1739 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1740 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1741 instead of add_setshow_zinteger_cmd.
1742 * frame.c (frame_debug): Add 'unsigned'.
1743 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1744 add_setshow_zinteger_cmd.
1745 * frame.h: Update the declaration of 'frame_debug'.
1746 * gdbtypes.c (overload_debug): Add 'unsigned'.
1747 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1748 add_setshow_zinteger_cmd.
1749 * inferior.h: Update declaration of 'debug_infrun'.
1750 * infrun.c (debug_infrun): Add 'unsigned'.
1751 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1752 add_setshow_zinteger_cmd.
1753 * jit.c (jit_debug): Add 'unsigned'.
1754 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1755 add_setshow_zinteger_cmd.
1756 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1757 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1758 instead of add_setshow_zinteger_cmd.
1759 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1760 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1761 add_setshow_zinteger_cmd.
1762 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1763 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1764 instead of add_setshow_zinteger_cmd.
1765 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1766 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1767 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1768 intead of add_setshow_zinteger_cmd.
1769 * mips-tdep.c (mips_debug): Add 'unsigned'.
1770 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1771 instead of add_setshow_zinteger_cmd.
1772 * monitor.c (monitor_debug): Add 'unsigned'.
1773 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1774 add_setshow_zinteger_cmd.
1775 * observer.c (observer_debug): Add 'unsigned'.
1776 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1777 add_setshow_zinteger_cmd.
1778 * parse.c (expressiondebug): Add 'unsigned'.
1779 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1780 add_setshow_zinteger_cmd.
1781 * record.c (record_debug): Add 'unsigned'.
1782 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1783 add_setshow_zinteger_cmd.
1784 * record.h: Update the declaration of 'record_debug'.
1785 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1786 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1787 add_setshow_zinteger_cmd.
1788 * serial.c (global_serial_debug_p): Add 'unsigned'.
1789 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1790 add_setshow_zinteger_cmd.
1791 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1792 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1793 add_setshow_zinteger_cmd.
1794 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1795 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1796 add_setshow_zinteger_cmd.
1797 * target.c (targetdebug): Add 'unsigned'.
1798 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1799 add_setshow_zinteger_cmd.
1800 * valops.c (overload_debug): Add 'unsigned'.
1801 * varobj.c (varobjdebug): Add 'unsigned'.
1802 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1803 add_setshow_zinteger_cmd.
1804 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1805 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1806 instead of add_setshow_zinteger_cmd.
1808 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1809 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1810 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1811 instead of add_setshow_zinteger_cmd.
1812 * gdbarch.c, gdbarch.h: Re-generated.
1814 2012-08-02 Yao Qi <yao@codesourcery.com>
1816 * nto-tdep.c: Don't include cli/cli-decode.h and
1818 (_initialize_nto_tdep): Remove.
1819 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1821 Remove macro nto_internal_debugging.
1823 2012-08-01 Richard Henderson <rth@redhat.com>
1825 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1826 (mep-*-*) [gdb_target_obs]: Likewise.
1828 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1830 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1831 linux_get_siginfo_type.
1833 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1835 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1837 (call_function_by_hand) <ON_STACK>: Call write_memory with
1838 gdbarch_breakpoint_from_pc, if possible.
1839 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1842 2012-07-31 Yao Qi <yao@codesourcery.com>
1844 * tracepoint.c: Add 'static' for some variables.
1846 2012-07-31 Yao Qi <yao@codesourcery.com>
1848 * go32-nat.c: Declare _initialize_go32_nat.
1849 * ser-go32.c: Declare _initialize_ser_dos.
1850 * top.c (do_chdir_cleanup): Add 'static'.
1852 2012-07-30 Keith Seitz <keiths@redhat.com>
1854 * linespec.c (linespec_lex_number): A number followed
1855 by quotes is a valid number, too.
1857 2012-07-30 Tom Tromey <tromey@redhat.com>
1859 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1861 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1863 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1864 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1866 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1868 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1869 invalid or reevaluated to prevent prevent references to possibly
1870 delete'd type objects being left in the varobj.
1872 2012-07-27 Tom Tromey <tromey@redhat.com>
1873 Jan Kratochvil <jan.kratochvil@redhat.com>
1875 * copying.awk: Print buffer-read-only and vi ro markers.
1876 * copying.c: Rebuild.
1877 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1878 * gdbarch.c, gdbarch.h: Rebuild.
1879 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1880 buffer-read-only and vi ro markers.
1881 * features/arm-with-iwmmxt.c: Rebuild.
1882 * features/arm-with-m-fpa-layout.c: Rebuild.
1883 * features/arm-with-m-vfp-d16.c: Rebuild.
1884 * features/arm-with-m.c: Rebuild.
1885 * features/arm-with-neon.c: Rebuild.
1886 * features/arm-with-vfpv2.c: Rebuild.
1887 * features/arm-with-vfpv3.c: Rebuild.
1888 * features/i386/amd64-avx-linux.c: Rebuild.
1889 * features/i386/amd64-avx.c: Rebuild.
1890 * features/i386/amd64-linux.c: Rebuild.
1891 * features/i386/amd64.c: Rebuild.
1892 * features/i386/i386-avx-linux.c: Rebuild.
1893 * features/i386/i386-avx.c: Rebuild.
1894 * features/i386/i386-linux.c: Rebuild.
1895 * features/i386/i386-mmx-linux.c: Rebuild.
1896 * features/i386/i386-mmx.c: Rebuild.
1897 * features/i386/i386.c: Rebuild.
1898 * features/i386/x32-avx-linux.c: Rebuild.
1899 * features/i386/x32-avx.c: Rebuild.
1900 * features/i386/x32-linux.c: Rebuild.
1901 * features/i386/x32.c: Rebuild.
1902 * features/mips-dsp-linux.c: Rebuild.
1903 * features/mips-linux.c: Rebuild.
1904 * features/mips64-dsp-linux.c: Rebuild.
1905 * features/mips64-linux.c: Rebuild.
1906 * features/rs6000/powerpc-32.c: Rebuild.
1907 * features/rs6000/powerpc-32l.c: Rebuild.
1908 * features/rs6000/powerpc-403.c: Rebuild.
1909 * features/rs6000/powerpc-403gc.c: Rebuild.
1910 * features/rs6000/powerpc-405.c: Rebuild.
1911 * features/rs6000/powerpc-505.c: Rebuild.
1912 * features/rs6000/powerpc-601.c: Rebuild.
1913 * features/rs6000/powerpc-602.c: Rebuild.
1914 * features/rs6000/powerpc-603.c: Rebuild.
1915 * features/rs6000/powerpc-604.c: Rebuild.
1916 * features/rs6000/powerpc-64.c: Rebuild.
1917 * features/rs6000/powerpc-64l.c: Rebuild.
1918 * features/rs6000/powerpc-7400.c: Rebuild.
1919 * features/rs6000/powerpc-750.c: Rebuild.
1920 * features/rs6000/powerpc-860.c: Rebuild.
1921 * features/rs6000/powerpc-altivec32.c: Rebuild.
1922 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1923 * features/rs6000/powerpc-altivec64.c: Rebuild.
1924 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1925 * features/rs6000/powerpc-cell32l.c: Rebuild.
1926 * features/rs6000/powerpc-cell64l.c: Rebuild.
1927 * features/rs6000/powerpc-e500.c: Rebuild.
1928 * features/rs6000/powerpc-e500l.c: Rebuild.
1929 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1930 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1931 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1932 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1933 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1934 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1935 * features/rs6000/powerpc-vsx32.c: Rebuild.
1936 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1937 * features/rs6000/powerpc-vsx64.c: Rebuild.
1938 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1939 * features/rs6000/rs6000.c: Rebuild.
1940 * features/s390-linux32.c: Rebuild.
1941 * features/s390-linux32v1.c: Rebuild.
1942 * features/s390-linux32v2.c: Rebuild.
1943 * features/s390-linux64.c: Rebuild.
1944 * features/s390-linux64v1.c: Rebuild.
1945 * features/s390-linux64v2.c: Rebuild.
1946 * features/s390x-linux64.c: Rebuild.
1947 * features/s390x-linux64v1.c: Rebuild.
1948 * features/s390x-linux64v2.c: Rebuild.
1949 * features/tic6x-c62x-linux.c: Rebuild.
1950 * features/tic6x-c62x.c: Rebuild.
1951 * features/tic6x-c64x-linux.c: Rebuild.
1952 * features/tic6x-c64x.c: Rebuild.
1953 * features/tic6x-c64xp-linux.c: Rebuild.
1954 * features/tic6x-c64xp.c: Rebuild.
1956 2012-07-27 Tom Tromey <tromey@redhat.com>
1958 * c-exp.y (classify_name): Avoid assignment in condition.
1960 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1962 * amd64-windows-tdep.c: Include "frame.h".
1963 (amd64_windows_skip_trampoline_code): New function.
1964 (amd64_windows_init_abi): Add trampoline registration.
1966 2012-07-27 Yao Qi <yao@codesourcery.com>
1968 * tracepoint.c (cur_traceframe_number): Remove.
1969 (set_tfile_traceframe): Remove.
1970 (tfile_trace_find, tfile_fetch_registers): Update callers.
1971 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1972 (tfile_open, tfile_trace_find): Likewise.
1974 2012-07-27 Yao Qi <yao@codesourcery.com>
1976 * thread.c (switch_to_thread): Don't call registers_changed.
1978 2012-07-26 Tom Tromey <tromey@redhat.com>
1980 * Makefile.in (SFILES): Remove objc-exp.y.
1981 (YYFILES): Remove objc-exp.c.
1982 (YYOBJ): Remove objc-exp.o.
1983 (local-maintainer-clean): Don't mention objc-exp.c.
1984 * c-exp.y: Include objc-lang.h.
1985 (%union) <class>: New field.
1986 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1987 (exp): Clone subscript production for OBJC_LBRAC. Add various
1988 Objective C productions.
1989 (msglist, msgarglist, msgarg): New productions.
1990 (array_mod, func_mod, operator): Clone productions for
1992 (parse_string_or_char): Handle '@' strings.
1993 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1994 (classify_name): Check la_name_of_this. Recognize ObjC class
1996 * objc-exp.y: Remove.
1997 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1998 * objc-lang.h (objc_parse, objc_error): Don't declare.
2000 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2002 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2004 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2006 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2009 2012-07-26 Tom Tromey <tromey@redhat.com>
2011 * copying.c: Rebuild.
2012 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2015 2012-07-26 Tom Tromey <tromey@redhat.com>
2017 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2019 (print_objfile_statistics): Likewise.
2020 (maintenance_print_symbols): Likewise.
2021 (maintenance_print_msymbols): Likewise.
2022 (maintenance_print_objfiles): Likewise.
2023 * psymtab.c (print_partial_symbols): Call QUIT.
2024 (maintenance_print_psymbols): Likewise. Don't modify
2026 * copying.c (show_copying_command): Don't modify immediate_quit.
2027 (show_warranty_command): Likewise.
2028 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2030 2012-07-26 Keith Seitz <keiths@redhat.com>
2032 * linespec.c (linespec_lexer_lex_number): The input
2033 is also a valid number if the next character is a comma
2036 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2038 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2041 2012-07-26 Tristan Gingold <gingold@adacore.com>
2043 * machoread.c: Include gdb_bfd.h.
2045 2012-07-26 Tristan Gingold <gingold@adacore.com>
2047 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2050 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2052 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2054 (dwarf2_evaluate_loc_desc): Likewise.
2055 (dwarf2_loc_desc_needs_frame): Likewise.
2056 (locexpr_describe_location_1): Likewise.
2057 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2059 (struct dwarf2_loclist_baton): Likewise.
2060 * dwarf2read.c (struct dwarf_block): Likewise.
2061 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2062 (decode_locdesc): Expand SIZE and I to size_t.
2064 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2066 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2068 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2070 * doublest.c (convert_doublest_to_floatformat): If the exponent
2071 is too small, treat the value as zero. If the exponent is too
2072 large, treat the value as infinity.
2074 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2076 * configure.ac: Add --enable-lmcheck configure option.
2077 * configure: Regenerate.
2079 2012-07-25 Tom Tromey <tromey@redhat.com>
2081 * NEWS: Mention maint info bfds.
2082 * gdb_bfd.c (all_bfds): New global.
2083 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2084 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2087 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2089 * configure.tgt: Add v850*-*-rtems*.
2091 2012-07-25 Tom Tromey <tromey@redhat.com>
2093 * macrotab.c (macro_bcache_str): Remove cast.
2095 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2097 * linespec.c (linespec_lexer_lex_number): Update comments,
2098 change the return and add check to make sure the input is
2099 the decimal numbers.
2100 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2101 false, call linespec_lexer_lex_string.
2103 2012-07-24 Tom Tromey <tromey@redhat.com>
2105 * symfile.c (symbol_file_add): Don't open BFD twice.
2107 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2109 * breakpoint.c (create_breakpoint): Store condition for pending
2112 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2114 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2115 (m68k_return_value): Handle complex types like structures.
2116 (m68k_svr4_return_value): Likewise.
2118 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2120 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2121 parameters to bfd_get_section_name.
2123 2012-07-24 Yao Qi <yao@codesourcery.com>
2125 * cli/cli-setshow.c: Handle case 'var_uinteger'
2126 and 'var_zuninteger' together. Handle case 'var_integer' and
2127 'var_zinteger' together.
2129 2012-07-23 Keith Seitz <keiths@redhat.com>
2131 * linespec.c (convert_linespec_to_sal): Don't add
2132 any symbols to the result vector if symbol_to_sal
2135 2012-07-23 Keith Seitz <keiths@redhat.com>
2137 * linespec.c (decode_objc): Record the function name
2140 2012-07-23 Tom Tromey <tromey@redhat.com>
2142 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2144 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2145 (map_vmap): Acquire a reference to the BFD.
2147 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2149 * p-valprint.c (pascal_object_print_value): Replace potentially
2150 unsafe alloca with xmalloc/xfree.
2151 * valops.c (search_struct_method): Likewise.
2153 2012-07-23 Tom Tromey <tromey@redhat.com>
2155 * solib-svr4.c (enable_break): Update.
2156 * bfd-target.h (target_bfd_reopen): Update documentation.
2158 2012-07-23 Tom Tromey <tromey@redhat.com>
2160 * symfile.c (separate_debug_file_exists): Update.
2161 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2162 (reread_symbols): Update.
2163 * elfread.c (build_id_verify): Update.
2164 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2165 bfd_open_maybe_remote.
2167 2012-07-23 Tom Tromey <tromey@redhat.com>
2169 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2171 2012-07-23 Tom Tromey <tromey@redhat.com>
2173 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2175 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2177 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2178 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2180 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2181 * objfiles.c (allocate_objfile): Acquire a new reference.
2182 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2183 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2184 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2185 a cleanup for 'nbfd'.
2186 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2188 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2189 make a cleanup for 'abfd'.
2190 (symbol_file_add): Make a BFD cleanup.
2192 2012-07-23 Tom Tromey <tromey@redhat.com>
2194 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2195 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2196 * corelow.c (core_open): Use gdb_bfd_fopen.
2197 * dsrec.c (load_srec): Use gdb_bfd_openr.
2198 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2199 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2200 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2201 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2202 (gdb_bfd_fdopenr): New functions.
2203 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2204 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2205 (gdb_bfd_fdopenr): Declare.
2206 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2207 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2208 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2209 gdb_bfd_openr_next_archived_file.
2210 (macho_check_dsym): Use gdb_bfd_openr.
2211 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2212 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2213 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2214 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2216 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2217 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2218 gdb_bfd_openr_next_archived_file.
2219 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2221 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2223 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2224 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2225 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2226 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2227 (symfile_bfd_open): Use gdb_bfd_fopen.
2228 (generic_load): Use gdb_bfd_openr.
2229 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2231 2012-07-23 Tom Tromey <tromey@redhat.com>
2233 * bfd-target.c (target_bfd_reopen): Update.
2234 * cli/cli-dump.c (bfd_openr_with_cleanup)
2235 (bfd_openw_with_cleanup): Update.
2236 * corelow.c (core_open): Update.
2237 * dsrec.c (load_srec): Update.
2238 * exec.c (exec_file_attach): Update.
2239 * gcore.c (create_gcore_bfd): Update.
2240 * gdb_bfd.c (gdb_bfd_ref): Return void.
2241 (gdb_bfd_open): Update.
2242 * gdb_bfd.h (gdb_bfd_ref): Return void.
2244 * jit.c (jit_bfd_try_read_symtab): Update.
2245 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2246 * machoread.c (macho_symfile_read_all_oso): Update.
2247 (macho_check_dsym): Update.
2248 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2249 * remote-m32r-sdi.c (m32r_load): Update.
2250 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2251 * rs6000-nat.c (add_vmap): Update.
2252 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2254 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2255 * solib-spu.c (spu_bfd_open): Update.
2256 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2257 * spu-linux-nat.c (spu_bfd_open): Update.
2258 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2259 (generic_load): Update.
2260 * windows-nat.c (windows_make_so): Update.
2262 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2264 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2266 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2268 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2269 SIGTRAMP_FRAME unwinding.
2271 2012-07-20 Doug Evans <dje@google.com>
2273 * NEWS: Document new options "set/show use-deprecated-index-sections",
2274 and delete reference to --use-deprecated-index-sections.
2275 * symfile.h (use_deprecated_index_sections): Delete.
2276 * dwarf2read.c (use_deprecated_index_sections): Make static.
2277 (read_index_from_section): Update wording of how to load
2278 deprecated index sections.
2279 (_initialize_dwarf2_read): New options
2280 "set/show use-deprecated-index-sections".
2281 * main.c (captured_main): Delete --use-deprecated-index-sections.
2283 2012-07-20 Pedro Alves <palves@redhat.com>
2288 * infrun.c (handle_inferior_event) <new thread>: Don't special
2289 case minus_one_ptid.
2290 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2291 * linux-thread-db.c (thread_get_info_callback): Don't return early
2292 if the thread is zombie.
2293 (thread_from_lwp): Change return type to void. Rewrite stale
2295 (attach_thread): Don't return early if the thread is zombie,
2296 instead set its "dying" flag.
2297 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2298 (find_new_threads_callback): Don't return early if the thread is
2301 2012-07-20 Pedro Alves <palves@redhat.com>
2303 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2304 * target.c (target_wait): Likewise.
2305 (str_comma_list_concat_elem, do_option, target_options_to_string):
2307 * target.h (target_options_to_string): Declare.
2309 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2310 Tom Tromey <tromey@redhat.com>
2312 * dwarf2read.c (dwarf_decode_macros)
2313 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2314 DW_MACRO_GNU_transparent_include_alt>: New cases.
2315 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2316 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2318 2012-07-20 Tom Tromey <tromey@redhat.com>
2320 * dwarf2read.c (try_open_dwo_file): Don't call
2321 gdb_bfd_stash_filename.
2323 2012-07-20 Pedro Alves <palves@redhat.com>
2325 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2326 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2327 (i386_process_record): Tweak description comments.
2329 2012-07-20 Pedro Alves <palves@redhat.com>
2331 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2332 (i386_process_record): Use record_read_memory.
2333 * record.c (record_read_memory): New function.
2334 (record_arch_list_add_mem, record_exec_insn): Use
2336 * record.h (record_read_memory): Declare.
2338 2012-07-20 Yao Qi <yao@codesourcery.com>
2340 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2343 2012-07-19 Pedro Alves <palves@redhat.com>
2345 * record.c (record_resume): Ask the target beneath to report all
2348 2012-07-19 Doug Evans <dje@google.com>
2350 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2351 there's no section at address zero.
2352 (dwarf2_record_block_ranges): Ditto.
2354 2012-07-19 Yao Qi <yao@codesourcery.com>
2356 * command.h, remote.c: Fix a typo in comment.
2358 2012-07-19 Tom Tromey <tromey@redhat.com>
2361 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2362 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2363 OP_DECLTYPE>: New cases.
2364 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2365 (type_exp): Add new productions.
2366 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2368 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2370 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2371 OP_DECLTYPE>: New case.
2372 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2374 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2375 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2377 2012-07-19 Tom Tromey <tromey@redhat.com>
2379 * c-exp.y (enum token_flags): New.
2380 (struct token) <cxx_only>: Remove.
2382 (tokentab3, tokentab2, ident_tokens): Update.
2383 (lex_one_token): Update. Handle FLAG_SHADOW.
2385 2012-07-19 Tom Tromey <tromey@redhat.com>
2387 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2388 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2389 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2390 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2391 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2392 type_exp production where appropriate.
2393 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2394 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2395 <UNOP_MEMVAL_TYPE>: New case.
2396 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2397 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2398 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2399 <UNOP_MEMVAL_TYPE>: New case.
2400 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2401 UNOP_REINTERPRET_CAST>: Update.
2402 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2403 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2404 UNOP_REINTERPRET_CAST>: Update.
2405 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2406 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2407 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2410 2012-07-19 Yao Qi <yao@codesourcery.com>
2411 Jan Kratochvil <jan.kratochvil@redhat.com>
2413 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2414 and case 'var_optional_filename' together.
2415 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2416 instead of add_setshow_optional_filename_cmd for setshow command
2417 'args'. Set completer for 'set args'.
2419 2012-07-18 Doug Evans <dje@google.com>
2421 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2422 * common/gdb_vecs.c: New file, contents from utils.c.
2423 * common/host-defs.h: New file, contents from defs.h.
2424 * utils.h: New file, contents from defs.h.
2425 * defs.h: Move all declarations of objects defined in utils.c
2426 to utils.h (except QUIT() and related).
2427 #include "utils.h", "host-defs.h".
2428 * probe.h (probe_p): Move here from gdb_vecs.h.
2429 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2430 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2431 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2432 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2433 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2434 (COMMON_OBS): Add gdb_vecs.o.
2435 (gdb_vecs.o): New rule.
2437 2012-07-18 Keith Seitz <keiths@redhat.com>
2439 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2440 parameter. If non-zero, use SYMNAME as the canonical name
2443 (convert_linespec_to_sals): Use add_sal_to_sals for
2445 (decode_line_full): No need to "fill in missing canonical names"
2446 anymore. Simply make cleanups for the allocated names.
2448 2012-07-18 Keith Seitz <keiths@redhat.com>
2450 * linespec.c (struct linespec): Constify expression,
2451 source_filename, function_name, and label_name.
2452 (symbol_not_found_error): Make all parameters const.
2453 (linespec_parser_delete): No need to check for NULL
2454 when using xfree. Cast const char * to char * for xfree.
2456 2012-07-18 Keith Seitz <keiths@redhat.com>
2458 * breakpoint.c (invalid_thread_id_error): New function.
2459 (find_condition_and_thread): Use invalid_thread_id_error.
2460 (watch_command_1): Likewise.
2462 2012-07-18 Tom Tromey <tromey@redhat.com>
2464 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2465 * contrib/cc-with-tweaks.sh: New file.
2467 2012-07-18 Tom Tromey <tromey@redhat.com>
2469 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2470 (locate_dwz_sections): Recognize .gdb_index.
2471 (create_cus_from_index_list): New function.
2472 (create_cus_from_index): Use it. Handle .dwz data.
2473 (read_index_from_section): New function, extracted from
2475 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2478 2012-07-18 Tom Tromey <tromey@redhat.com>
2480 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2481 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2482 <is_dwz>: New field.
2483 (struct dwz_file): New.
2484 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2485 (locate_dwz_sections, dwarf2_get_dwz_file)
2486 (get_abbrev_section_for_cu): New functions.
2487 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2488 (read_and_check_type_unit_head): Add abbrev_section argument.
2489 (create_debug_types_hash_table): Update.
2490 (init_cutu_and_read_dies): Use proper abbrev section.
2491 (init_cutu_and_read_dies_no_follow): Likewise.
2492 (set_partial_user): Do nothing if PST==NULL.
2493 (read_comp_units_from_section): New function.
2494 (create_all_comp_units): Use it.
2495 (scan_partial_symbols, partial_die_parent_scope): Update.
2496 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2497 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2498 (find_partial_die): Add offset_in_dwz argument. Update.
2499 (guess_partial_die_structure_name, fixup_partial_die): Update.
2500 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2501 DW_FORM_GNU_strp_alt.
2502 (read_indirect_string_from_dwz): New function.
2503 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2504 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2505 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2506 (follow_die_offset): Add offset_in_dwz argument.
2507 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2508 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2509 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2510 Handle new macro forms.
2511 (dwarf_decode_macros): Update.
2512 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2513 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2514 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2515 (create_debug_types_hash_table): Use correct abbrev section.
2516 (get_debug_line_section): New function.
2517 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2518 (process_full_comp_unit): Pass 'required' argument to
2519 end_symtab_get_static_block.
2520 * buildsym.h (end_symtab_get_static_block): Update.
2521 * buildsym.c (end_symtab_get_static_block): Add 'required'
2523 (end_symtab, end_expandable_symtab): Update.
2525 2012-07-18 Tom Tromey <tromey@redhat.com>
2527 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2529 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2530 (zlib_decompress_section): Remove.
2531 (dwarf2_read_section): Use gdb_bfd_map_section.
2532 (munmap_section_buffer): Remove.
2533 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2534 munmap_section_buffer.
2535 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2536 (struct gdb_bfd_section_data): New.
2537 (free_one_bfd_section): New function.
2538 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2539 (get_section_descriptor, zlib_decompress_section)
2540 (gdb_bfd_map_section): New functions.
2541 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2543 2012-07-18 Tom Tromey <tromey@redhat.com>
2545 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2547 2012-07-18 Tom Tromey <tromey@redhat.com>
2549 * gdb_bfd.c (struct gdb_bfd_data): New.
2550 (gdb_bfd_cache): New global.
2551 (struct gdb_bfd_cache_search): New.
2552 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2553 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2554 * gdb_bfd.h (gdb_bfd_open): Declare.
2556 2012-07-18 Tom Tromey <tromey@redhat.com>
2558 * utils.c (make_cleanup_bfd_unref): Rename from
2559 make_cleanup_bfd_close.
2560 * defs.h (make_cleanup_bfd_unref): Rename from
2561 make_cleanup_bfd_close.
2562 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2563 (bfd_openw_with_cleanup): Update.
2564 * corelow.c (core_open): Update.
2565 * dsrec.c (load_srec): Update.
2566 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2567 * remote-m32r-sdi.c (m32r_load): Update.
2568 * remote-mips.c (mips_load_srec): Update.
2569 (pmon_load_fast): Update.
2570 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2572 (darwin_bfd_open): Update.
2573 * solib.c (solib_bfd_fopen): Update.
2574 * symfile-mem.c (symbol_file_add_from_memory): Update.
2575 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2576 (symfile_bfd_open): Update.
2577 (generic_load): Update.
2579 2012-07-18 Tom Tromey <tromey@redhat.com>
2581 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2582 (pmon_load_fast): Likewise.
2583 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2584 (m32r_upload_command): Likewise.
2585 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2586 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2587 Use make_cleanup_bfd_close.
2589 2012-07-18 Tom Tromey <tromey@redhat.com>
2591 * symfile.c (symfile_bfd_open): Don't copy name. Call
2592 gdb_bfd_stash_filename.
2593 (load_command): Open the new BFD before freeing the old.
2594 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2595 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2596 Call gdb_bfd_stash_filename.
2597 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2598 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2599 gdb_bfd_stash_filename.
2600 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2601 Free found_pathname.
2602 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2603 gdb_bfd_stash_filename.
2604 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2605 * machoread.c (macho_add_oso_symfile): Call
2606 gdb_bfd_stash_filename.
2607 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2608 gdb_bfd_stash_filename.
2609 (macho_check_dsym): Don't copy filename. Call
2610 gdb_bfd_stash_filename.
2611 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2612 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2613 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2614 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2615 * exec.c (exec_close): Don't free the BFD's filename.
2616 (exec_file_attach): Don't copy the filename. Call
2617 gdb_bfd_stash_filename.
2618 * corelow.c (core_close): Don't free the BFD's filename.
2619 (core_open): Call gdb_bfd_stash_filename.
2620 * corefile.c (reopen_exec_file): Remove #if 0 code.
2621 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2623 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2625 2012-07-18 Tom Tromey <tromey@redhat.com>
2627 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2629 (free_dwo_file): Use gdb_bfd_unref.
2630 * cli/cli-dump.c: Include gdb_bfd.h.
2631 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2632 (bfd_openr_with_cleanup): Likewise.
2633 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2635 * utils.c: Include gdb_bfd.h.
2636 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2637 * symfile.c: Include gdb_bfd.h.
2638 (separate_debug_file_exists): Use gdb_bfd_unref.
2639 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2640 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2641 (generic_load): Use gdb_bfd_ref.
2642 (reread_symbols): Use gdb_bfd_unref.
2643 * symfile-mem.c: Include gdb_bfd.h.
2644 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2645 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2646 * solib.c: Include gdb_bfd.h.
2647 (solib_bfd_fopen): Use gdb_bfd_ref.
2648 (solib_bfd_open): Use gdb_bfd_unref.
2649 (free_so_symbols): Use gdb_bfd_unref.
2650 (reload_shared_libraries_1): Use gdb_bfd_unref.
2651 * solib-spu.c: Include gdb_bfd.h.
2652 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2653 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2655 * solib-frv.c: Include gdb_bfd.h.
2656 (enable_break2): Use gdb_bfd_unref.
2657 * solib-dsbt.c: Include gdb_bfd.h.
2658 (enable_break2): Use gdb_bfd_unref.
2659 * solib-darwin.c: Include gdb_bfd.h.
2660 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2662 (darwin_bfd_open): Use gdb_bfd_unref.
2663 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2664 * remote-mips.c: Include gdb_bfd.h.
2665 (mips_load_srec): Use gdb_bfd_ref.
2666 (pmon_load_fast): Use gdb_bfd_ref.
2667 * remote-m32r-sdi.c: Include gdb_bfd.h.
2668 (m32r_load): Use gdb_bfd_ref.
2669 * record.c: Include gdb_bfd.h.
2670 (record_save_cleanups): Use gdb_bfd_unref.
2671 (cmd_record_save): Use gdb_bfd_unref.
2672 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2674 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2675 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2676 * objfiles.c: Include gdb_bfd.h.
2677 (free_objfile): Use gdb_bfd_unref.
2678 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2680 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2681 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2682 (macho_check_dsym): Likewise.
2683 * m32r-rom.c: Include gdb_bfd.h.
2684 (m32r_load): Use gdb_bfd_ref.
2685 (m32r_upload_command): Use gdb_bfd_ref.
2686 * jit.c: Include gdb_bfd.h.
2687 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2688 * gdb_bfd.h: New file.
2689 * gdb_bfd.c: New file.
2690 * gcore.c: Include gdb_bfd.h.
2691 (create_gcore_bfd): Use gdb_bfd_ref.
2692 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2693 (gcore_command): Use gdb_bfd_unref.
2694 * exec.c: Include gdb_bfd.h.
2695 (exec_close): Use gdb_bfd_unref.
2696 (exec_close_1): Use gdb_bfd_unref.
2697 (exec_file_attach): Use gdb_bfd_ref.
2698 * elfread.c: Include gdb_bfd.h.
2699 (build_id_verify): Use gdb_bfd_unref.
2700 * dsrec.c: Include gdb_bfd.h.
2701 (load_srec): Use gdb_bfd_ref.
2702 * corelow.c: Include gdb_bfd.h.
2703 (core_close): Use gdb_bfd_unref.
2704 (core_open): Use gdb_bfd_ref.
2705 * bfd-target.c: Include gdb_bfd.h.
2706 (target_bfd_xclose): Use gdb_bfd_unref.
2707 (target_bfd_reopen): Use gdb_bfd_ref.
2708 * Makefile.in (SFILES): Add gdb_bfd.c.
2709 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2710 (COMMON_OBS): Add gdb_bfd.o.
2712 2012-07-18 Keith Seitz <keiths@redhat.com>
2714 * breakpoint.c (find_condition_and_thread): Initialize
2716 (create_breakpiont): find_condition_and_thread will now
2717 initialize COND_STRING, THREAD, and REST (and TASK).
2718 (addr_string_to_sals): Likewise.
2720 2012-07-18 Pedro Alves <palves@redhat.com>
2722 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2723 Pull the single step breakpoints out of the target.
2725 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2727 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2728 * stap-probe.c (compile_probe_arg): Likewise.
2730 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2732 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2733 (elf_compile_to_ax): Likewise.
2734 * infrun.c (insert_exception_resume_from_probe): Likewise.
2735 (check_exception_resume): Remove `objfile' variable.
2736 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2737 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2738 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2739 (compare_entries): Rename to...
2740 (compare_probes): ...this. Adjust function to work with
2741 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2743 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2745 (print_ui_out_info): Adjust argument to be `struct probe *'.
2746 (info_probes_for_ops): Adjust internal computations to use
2748 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2749 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2750 gen_info_probes_table_values>: Remove `objfile' argument.
2751 (struct probe) <objfile>: New field.
2752 (find_probe_by_pc): Remove `objfile' argument.
2753 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2754 (stap_get_probe_argument_count): Likewise.
2755 (stap_get_arg): Likewise.
2756 (stap_evaluate_probe_argument): Likewise.
2757 (stap_compile_to_ax): Likewise.
2758 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2759 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2760 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2761 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2762 sym_compile_to_ax>: Likewise.
2764 2012-07-18 Terry Guo <terry.guo@arm.com>
2767 * defs.h (GDB_MI_MSG_WIDTH): New.
2768 * ser_base (ser_base_read_error_fd): New function.
2769 (do_ser_base_readchar): Poll error file descriptor as well as
2771 (generic_readchar): Refactor error handling.
2773 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2775 * NEWS: Create a new section for the next release branch.
2776 Rename the section of the current branch, now that it has
2779 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2781 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2782 * version.in: Bump version to 7.5.50.20120718-cvs.
2784 2012-07-17 Keith Seitz <keiths@redhat.com>
2786 * linespec.c (linespec_parse_line_offset): Make parameter
2789 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2792 * f-valprint.c (info_common_command): New variable frame_id.
2793 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2794 * printcmd.c (print_variable_and_value): Extend function comment.
2795 Add comment for invalidated FRAME.
2796 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2797 FI form FRAME_ID after each print_frame_local_vars.
2798 (struct print_variable_and_value_data): Change frame to frame_id.
2799 (do_print_variable_and_value): New variable frame, initialize it from
2800 p->frame_id. Add comment for invalidated FRAME.
2801 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2802 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2803 for invalidated FRAME.
2805 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2806 Pedro Alves <palves@redhat.com>
2808 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2811 2012-07-16 Tom Tromey <tromey@redhat.com>
2813 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2815 2012-07-15 Doug Evans <dje@google.com>
2817 * dwarf2read.c (stmt_list_hash): New struct.
2818 (type_unit_group): Embed "per_cu" member, remove pointer.
2819 New union member "t", move member "tus" into it, all uses updated.
2820 New member "hash", replaces member "line_offset, all uses updated.
2821 (quick_file_names): Replace member "offset" with "hash", all uses
2823 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2824 (hash_file_name_entry, eq_file_name_entry): Call them.
2825 (hash_type_unit_group, eq_type_unit_group): Ditto.
2826 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2827 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2828 (dw2_get_file_names): Update.
2829 (create_type_unit_group): Replace "per_cu" arg with "cu".
2830 All callers updated. Fix "quick" (.gdb_index) handling.
2831 (get_type_unit_group): Replace "per_cu" arg with "cu".
2832 All callers updated.
2833 (build_type_unit_groups): Don't reset tu_stats.
2835 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2836 "tab_cur_size". Change member "tab" to be a htab_t.
2837 (create_filename_seen_cache): Update.
2838 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2839 (filename_seen): Update.
2841 2012-07-13 Doug Evans <dje@google.com>
2843 * symtab.c (filename_seen): Update comment.
2845 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2846 Doug Evans <dje@google.com>
2848 * buildsym.c (end_symtab_1): Split it to ...
2849 (end_symtab_get_static_block): ... this ...
2850 (end_symtab_from_static_block): ... and this function.
2851 (end_symtab, end_expandable_symtab): Call them.
2852 * buildsym.h (end_symtab_get_static_block)
2853 (end_symtab_from_static_block): New declarations.
2854 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2855 Set its valid CU ranges.
2857 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2859 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2860 DW_OP_GNU_parameter_ref.
2862 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2864 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2865 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2867 2012-07-13 Doug Evans <dje@google.com>
2869 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2870 (filename_seen_cache): New struct.
2871 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2872 (create_filename_seen_cache): New function.
2873 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2874 (filename_seen): Delete arg "first". New arg "cache". All callers
2876 (output_source_filename_data): New struct.
2877 (output_source_filename): Delete arg "first". New arg "data".
2878 All callers updated.
2879 (sources_info): Delete local "first". New locals "data", "cleanups".
2880 Rewrite to use filename_seen_cache.
2881 (add_partial_filename_data): Delete member "first". New member
2882 "filename_seen_cache". All uses updated.
2883 (make_source_files_completion_list): Rewrite to use
2884 filename_seen_cache.
2886 2012-07-12 Doug Evans <dje@google.com>
2888 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2890 2012-07-10 Doug Evans <dje@google.com>
2893 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2894 all_type_unit_groups, type_unit_groups, tu_stats.
2895 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2896 All uses updated. Add type_unit_group to union "s".
2897 (type_unit_group): New struct.
2898 (IS_TYPE_UNIT_GROUP): New macro.
2899 (abbrev_table): Delete unused member "section".
2900 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2901 (dw2_get_cu): Assert not used with type_unit_group.
2902 (dw2_get_primary_cu): New function.
2903 (dw2_build_type_unit_groups_reader): New function.
2904 (dw2_build_type_unit_groups): New function.
2905 (dw2_get_file_names): Assert not called on type units.
2906 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2907 Redo loop to iterate over type unit groups instead of type units.
2908 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2909 (read_abbrev_offset): New function.
2910 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2912 (create_partial_symtab): New function.
2913 (process_psymtab_comp_unit_reader): Assert not used with type units.
2914 Call create_partial_symtab.
2915 (process_psymtab_type_unit): Delete.
2916 (hash_type_unit_group, eq_type_unit_group): New functions.
2917 (allocate_type_unit_groups_table): New function.
2918 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2919 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2920 (create_type_unit_group, get_type_unit_group): New functions.
2921 (tu_abbrev_offset): New struct.
2922 (sort_tu_by_abbrev_offset): New function.
2923 (add_type_unit_group_to_table): New function.
2924 (build_type_unit_groups): New function.
2925 (build_type_psymtabs_reader): New function.
2926 (build_type_psymtab_dependencies): New function.
2927 (build_type_psymtabs): Rewrite.
2928 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2929 is seen in a type unit.
2930 (process_queue): Move symtab expansion debugging printfs here.
2931 Call process_full_type_unit for type units.
2932 (compute_symtab_includes): Assert not called for type units.
2933 (process_cu_includes): Don't call compute_symtab_includes for
2935 (process_full_type_unit): New function.
2936 (process_imported_unit_die): Flag an error if called for type units.
2937 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2938 updated. Assert not called for type units.
2939 (read_file_scope): Call dwarf2_start_symtab.
2940 (setup_type_unit_groups): New function.
2941 (read_type_unit_scope): Rewrite.
2942 (abbrev_table_read_table): Initialize abbrev_table->offset.
2943 (abbrev_table_free_cleanup): New function.
2944 (dwarf2_start_symtab): New function.
2945 (load_full_type_unit): Assert not called for type unit groups.
2946 * buildsym.c (finish_block_internal): New arg "expandable".
2947 All callers updated.
2948 (start_symtab): Move most contents to ...
2949 (restart_symtab): ... here. New function.
2950 (reset_symtab_globals): New function.
2951 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2952 Call reset_symtab_globals.
2953 (end_symtab, end_expandable_symtab): New functions.
2954 (set_missing_symtab, augment_type_symtab): New functions.
2955 * buildsym.h (end_expandable_symtab): Declare.
2956 (augment_type_symtab, restart_symtab): Declare.
2957 * psympriv.h (struct partial_symtab): New member "anonymous".
2958 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2960 (read_psymtabs_with_filename): Ditto.
2961 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2962 (expand_symtabs_matching_via_partial): Ditto.
2963 (dump_psymtab): Update.
2964 * dictionary.c (dict_add_pending): New function.
2965 * dictionary.h (dict_add_pending): Declare.
2967 2012-07-09 Doug Evans <dje@google.com>
2969 * buildsym.c (start_subfile): Remove unnecessary check for
2972 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2974 * dwarf2read.c (load_full_type_unit): Simplify.
2976 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2977 to struct signatured_type **. All uses updated.
2979 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2980 All callers updated.
2982 2012-07-09 Tom Tromey <tromey@redhat.com>
2984 * c-exp.y (check_parameter_typelist): New function.
2985 (parameter_typelist): Call it.
2986 * eval.c (make_params): Handle '(void)' case.
2987 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2990 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2992 * common/linux-ptrace.c: Include gdb_assert.h.
2993 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2994 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2996 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2998 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2999 * linux-nat.c (linux_child_post_attach)
3000 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3002 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3004 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3005 nptl <2.7 bug workaround for core files.
3007 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3009 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3011 (save_siginfo): Remove.
3012 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3014 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3015 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3016 * linux-nat.h (struct lwp_info): Remove field siginfo.
3018 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3020 Code cleanup for the next patch.
3021 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3022 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3024 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3025 (ia64_linux_stopped_data_address):
3026 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3028 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3029 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3030 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3033 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3036 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3037 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3039 2012-07-06 Tom Tromey <tromey@redhat.com>
3041 * c-exp.y (DOTDOTDOT): New token.
3042 (func_mod, exp): Use parameter_typelist.
3043 (parameter_typelist): New production.
3044 (tokentab3): Add "..." token.
3045 * eval.c (make_params): Handle varargs.
3046 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3049 2012-07-06 Tom Tromey <tromey@redhat.com>
3052 * c-exp.y (%union) <tvec>: Change type.
3053 (func_mod): Now uses <tvec> type.
3054 (exp): Update for tvec change.
3055 (direct_abs_decl): Push the typelist.
3056 (func_mod): Return a typelist.
3057 (nonempty_typelist): Update for tvec change.
3058 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3059 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3060 * parse.c (pop_type_list): New function.
3061 (push_typelist): New function.
3062 (follow_types): Handle tp_function_with_arguments.
3063 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3064 (enum type_pieces) <tp_function_with_arguments>: New constant.
3065 (union type_stack_elt) <typelist_val>: New field.
3066 (push_typelist): Declare.
3068 2012-07-06 Tom Tromey <tromey@redhat.com>
3070 * c-exp.y (%union) <type_stack>: New field.
3071 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3072 (ptr_operator_ts): New production.
3074 * parse.c (type_stack_reserve): New function.
3075 (check_type_stack_depth): Use it.
3076 (pop_type_stack, append_type_stack, push_type_stack)
3077 (get_type_stack, type_stack_cleanup): New functions.
3078 (follow_types): Handle tp_type_stack.
3079 (_initialize_parse): Simplify initialization.
3080 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3082 (union type_stack_elt) <stack_val>: New field.
3083 (get_type_stack, append_type_stack, push_type_stack)
3084 (type_stack_cleanup): Declare.
3086 2012-07-06 Tom Tromey <tromey@redhat.com>
3088 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3090 (struct type_stack): New.
3091 * parse.c (type_stack, type_stack_size, type_stack_depth):
3093 (type_stack): New global.
3094 (parse_exp_in_context, check_type_stack_depth)
3095 (insert_into_type_stack, insert_type, push_type, push_type_int)
3096 (insert_type_address_space, pop_type, pop_type_int)
3097 (_initialize_parse): Update.
3099 2012-07-06 Tom Tromey <tromey@redhat.com>
3101 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3104 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3106 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3108 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3109 Jan Kratochvil <jan.kratochvil@redhat.com>
3111 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3112 alloca with xmalloc/xfree.
3114 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3116 * MAINTAINERS (Write After Approval): Add myself to the list.
3118 2012-07-05 Doug Evans <dje@google.com>
3120 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3122 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3124 * ax-gdb.c (cli/cli-utils.h): New include.
3125 (linespec.h): Ditto.
3126 (agent_eval_command_one): New function.
3127 (agent_command_1): Ditto.
3128 (agent_command): Call function agent_command_1.
3129 (agent_eval_command): Ditto.
3130 (_initialize_ax_gdb): Change help for "maint agent"
3131 and "maint agent-eval".
3133 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3135 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3136 * cli/cli-utils.c (check_for_argument): New function.
3137 * cli/cli-utils.h (check_for_argument): Ditto.
3139 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3141 * NEWS: Mention x32 ABI support.
3143 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3145 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3146 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3148 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3149 and pc_regnum_from_eax to -1. Update SP regnum from
3150 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3153 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3156 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3158 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3159 * dwarf2expr.h: Include gdbtypes.h.
3160 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3161 these forward declarations.
3162 (cu_offset, sect_offset): Move these ...
3163 * gdbtypes.h: Remove include dwarf2expr.h.
3164 (cu_offset, sect_offset): ... here.
3166 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3168 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3169 (amd64_linux_sigtramp_code): This.
3170 (amd64_x32_linux_sigtramp_code): New.
3171 (LINUX_SIGTRAMP_LEN): Updated.
3172 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3174 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3176 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3178 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3180 * config.in: Regenerate.
3181 * configure: Regenerate.
3182 * configure.ac: Remove check for gnu/libc-version.h.
3183 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3185 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3186 variables libc_version, libc_major and libc_minor. Replace sscanf by
3187 inferior_has_bug. Extend the comment.
3189 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3191 * linux-thread-db.c (inferior_has_bug): New function.
3192 (thread_db_find_new_threads_silently): Return boolean as checked by
3193 inferior_has_bug, describe it in the comments.
3194 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3195 earlier. Abort the initialization if it returned non-zero.
3196 (thread_db_new_objfile): Exclude debug files.
3197 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3200 2012-07-02 Doug Evans <dje@google.com>
3202 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3203 related to queue management.
3205 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3206 instead of "debug dwarf2-die" in debugging printfs.
3207 (create_debug_info_hash_table_reader): Ditto.
3208 (create_debug_info_hash_table): Ditto.
3209 (init_dwo_file): Ditto.
3210 (init_cutu_and_read_dies): Add debugging printf.
3211 (init_cutu_and_read_dies_no_follow): Ditto.
3212 (process_psymtab_comp_unit_reader): Ditto.
3214 2012-07-02 Stan Shebs <stan@codesourcery.com>
3216 Add target-side support for dynamic printf.
3217 * NEWS: Mention the additional style.
3218 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3219 (struct bp_location): New field cmd_bytecode.
3220 * breakpoint.c: Include format.h.
3221 (disconnected_dprintf): New global.
3222 (parse_cmd_to_aexpr): New function.
3223 (build_target_command_list): New function.
3224 (insert_bp_location): Call it.
3225 (remove_breakpoints_pid): Skip dprintf breakpoints.
3226 (print_one_breakpoint_location): Ditto.
3227 (dprintf_style_agent): New global.
3228 (dprintf_style_enums): Add dprintf_style_agent.
3229 (update_dprintf_command_list): Add agent case.
3230 (agent_printf_command): New function.
3231 (_initialize_breakpoint): Add new commands.
3232 * common/ax.def (printf): New bytecode.
3233 * ax.h (ax_string): Declare.
3234 * ax-gdb.h (gen_printf): Declare.
3235 * ax-gdb.c: Include cli-utils.h, format.h.
3236 (gen_printf): New function.
3237 (maint_agent_print_command): New function.
3238 (_initialize_ax_gdb): Add maint agent-printf command.
3239 * ax-general.c (ax_string): New function.
3240 (ax_print): Add printf disassembly.
3241 * Makefile.in (SFILES): Add format.c
3242 (COMMON_OBS): Add format.o.
3243 * common/format.h: New file.
3244 * common/format.c: New file.
3245 * printcmd.c: Include format.h.
3246 (ui_printf): Call parse_format_string.
3247 * remote.c (remote_state): New field breakpoint_commands.
3248 (PACKET_BreakpointCommands): New enum.
3249 (remote_breakpoint_commands_feature): New function.
3250 (remote_protocol_features): Add new BreakpointCommands entry.
3251 (remote_can_run_breakpoint_commands): New function.
3252 (remote_add_target_side_commands): New function.
3253 (remote_insert_breakpoint): Call it.
3254 (remote_insert_hw_breakpoint): Ditto.
3255 (_initialize_remote): Add new packet configuration for
3256 target-side breakpoint commands.
3257 * target.h (struct target_ops): New field
3258 to_can_run_breakpoint_commands.
3259 (target_can_run_breakpoint_commands): New macro.
3260 * target.c (update_current_target): Handle
3261 to_can_run_breakpoint_commands.
3263 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3265 Execute -ix and -iex only after system and user gdbinit files.
3266 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3267 processing down after gdbinit files.
3269 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3271 Add fnmatch-gnu module.
3272 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3273 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3274 * gnulib/aclocal.m4: Regenerate.
3275 * gnulib/config.in: Regenerate.
3276 * gnulib/configure: Regenerate.
3277 * gnulib/import/dummy.c: Remove.
3278 * gnulib/import/Makefile.am: Regenerate.
3279 * gnulib/import/Makefile.in: Likewise.
3280 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3281 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3282 * gnulib/import/alloca.c: New file.
3283 * gnulib/import/alloca.in.h: Likewise.
3284 * gnulib/import/config.charset: Likewise.
3285 * gnulib/import/fnmatch.c: Likewise.
3286 * gnulib/import/fnmatch.in.h: Likewise.
3287 * gnulib/import/fnmatch_loop.c: Likewise.
3288 * gnulib/import/localcharset.c: Likewise.
3289 * gnulib/import/localcharset.h: Likewise.
3290 * gnulib/import/m4/alloca.m4: Likewise.
3291 * gnulib/import/m4/codeset.m4: Likewise.
3292 * gnulib/import/m4/configmake.m4: Likewise.
3293 * gnulib/import/m4/fcntl-o.m4: Likewise.
3294 * gnulib/import/m4/fnmatch.m4: Likewise.
3295 * gnulib/import/m4/glibc21.m4: Likewise.
3296 * gnulib/import/m4/localcharset.m4: Likewise.
3297 * gnulib/import/m4/locale-fr.m4: Likewise.
3298 * gnulib/import/m4/locale-ja.m4: Likewise.
3299 * gnulib/import/m4/locale-zh.m4: Likewise.
3300 * gnulib/import/m4/mbrtowc.m4: Likewise.
3301 * gnulib/import/m4/mbsinit.m4: Likewise.
3302 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3303 * gnulib/import/m4/mbstate_t.m4: Likewise.
3304 * gnulib/import/m4/stdbool.m4: Likewise.
3305 * gnulib/import/m4/wchar_h.m4: Likewise.
3306 * gnulib/import/m4/wctype_h.m4: Likewise.
3307 * gnulib/import/m4/wint_t.m4: Likewise.
3308 * gnulib/import/mbrtowc.c: Likewise.
3309 * gnulib/import/mbsinit.c: Likewise.
3310 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3311 * gnulib/import/mbsrtowcs-state.c: Likewise.
3312 * gnulib/import/mbsrtowcs.c: Likewise.
3313 * gnulib/import/ref-add.sin: Likewise.
3314 * gnulib/import/ref-del.sin: Likewise.
3315 * gnulib/import/stdbool.in.h: Likewise.
3316 * gnulib/import/streq.h: Likewise.
3317 * gnulib/import/strnlen1.c: Likewise.
3318 * gnulib/import/strnlen1.h: Likewise.
3319 * gnulib/import/verify.h: Likewise.
3320 * gnulib/import/wchar.in.h: Likewise.
3321 * gnulib/import/wctype.in.h: Likewise.
3323 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3325 Support shell wildcards for 'set auto-load safe-path'.
3326 * auto-load.c: Include fnmatch.h.
3327 (filename_is_in_dir): Rename to ...
3328 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3329 it. Update function comment. Rename dir_len to pattern_len. New
3330 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3331 messages. Use gdb_filename_fnmatch.
3332 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3334 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3335 * defs.h (gdb_filename_fnmatch): New declaration.
3336 * utils.c: Include fnmatch.h.
3337 (gdb_filename_fnmatch): New function.
3339 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3341 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3342 `-probe' and `-probe-stap' options.
3344 2012-07-01 Yao Qi <yao@codesourcery.com>
3346 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3347 always_inserted_off, and always_inserted_enums.
3348 Change always_inserted_mode's type to 'enum auto_boolean'.
3349 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3351 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3352 of add_setshow_enum_cmd.
3353 * infrun.c: Remove can_use_displaced_stepping_auto,
3354 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3355 can_use_displaced_stepping_enum.
3356 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3357 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3358 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3359 add_setshow_enum_cmd.
3361 2012-06-30 Doug Evans <dje@google.com>
3363 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3364 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3365 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3367 2012-06-29 Doug Evans <dje@google.com>
3369 * linespec.c: #include "stack.h".
3370 (decode_line_with_current_source): Moved here from symtab.c and
3371 renamed from decode_line_spec. All callers updated.
3372 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3373 renamed from decode_line_spec_1. All callers updated.
3374 * linespec.h (decode_line_with_current_source): Move declaration here
3375 from symtab.h and renamed from decode_line_spec.
3376 (decode_line_with_last_displayed): Move declaration here from symtab.h
3377 and renamed from decode_line_spec_1.
3378 * macrocmd.c: #include "linespec.h".
3379 * symtab.c: Remove #include "linespec.h".
3381 2012-06-28 Doug Evans <dje@google.com>
3383 * dwarf2read.c (get_cu_length): New function.
3384 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3385 (create_debug_types_hash_table): Ditto.
3386 (init_cutu_and_read_dies): Ditto.
3387 (init_cutu_and_read_dies_no_follow): Ditto.
3389 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3391 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3392 (struct abbrev_table): Define.
3393 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3395 (init_cutu_and_read_dies): Update.
3396 (abbrev_table_alloc_abbrev): New function. Replaces
3397 dwarf_alloc_abbrev. All callers updated.
3398 (abbrev_table_add_abbrev): New function.
3399 (abbrev_table_lookup_abbrev): New function. Replaces
3400 dwarf2_lookup_abbrev. All callers updated.
3401 (abbrev_table_read_table): New function. Contents moved here from
3402 dwarf2_read_abbrevs.
3403 (dwarf2_read_abbrevs): Call it.
3404 (abbrev_table_free): New function.
3405 (dwarf2_free_abbrev_table): Call it.
3407 2012-06-28 Stan Shebs <stan@codesourcery.com>
3409 * osdata.c (info_osdata_command): Filter out "Title" columns
3411 * common/linux-osdata.c (struct osdata_type): Add title field.
3412 (osdata_table): Add titles to each entry.
3413 (linux_command_xfer_osdata): Add a column for title data.
3415 2012-06-28 Stan Shebs <stan@codesourcery.com>
3417 Make logging work for MI.
3419 * interps.h (interp_set_logging_ftype): New typedef.
3420 (struct interp_procs): New field set_logging_proc.
3421 (current_interp_set_logging): Declare.
3422 * interps.c (current_interp_set_logging): New function.
3423 * cli/cli-logging.c: Include interps.h.
3424 (set_logging_redirect): Call current_interp_set_logging.
3425 (pop_output_files): Ditto.
3426 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3427 * mi/mi-console.h (mi_console_set_raw): Declare.
3428 * mi/mi-console.c (mi_console_set_raw): New function.
3429 * mi/mi-interp.c (saved_raw_stdout): New global.
3430 (mi_set_logging): New function.
3431 (_initialize_mi_interp): Add it to interp procs.
3433 2012-06-28 Doug Evans <dje@google.com>
3435 * symtab.c (lookup_symbol_aux_objfile): Use
3436 ALL_OBJFILE_PRIMARY_SYMTABS.
3438 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3440 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 * common/buffer.c: Include inttypes.h and stdint.h.
3443 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3445 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3446 Pedro Alves <palves@redhat.com>
3448 * gdbthread.h (ALL_THREADS): New macro.
3449 (thread_list): Declare.
3450 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3451 going, but instead fall through to the stepping handling.
3452 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3453 the passed in signal. Adjust debug output.
3454 (resume_callback): Rename to ...
3455 (linux_nat_resume_callback): ... this. Pass the thread's last
3456 stop signal, if in "pass" state.
3457 (linux_nat_resume): Adjust to rename.
3458 (stop_wait_callback): New assertion. Don't respawn signals;
3459 instead let the LWP remain with SIGNALLED set.
3460 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3461 * remote.c (append_pending_thread_resumptions): New.
3462 (remote_vcont_resume): Call it.
3463 * target.h (target_resume): Extend comment.
3465 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3467 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3469 2012-06-27 Doug Evans <dje@google.com>
3471 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3472 Delete have_addr_base, unused. All uses updated.
3473 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3474 (dwarf2_get_pc_bounds): Add ranges_base.
3475 (dwarf2_record_block_ranges): Ditto.
3477 2012-06-27 Tom Tromey <tromey@redhat.com>
3480 * varobj.c (varobj_create): Update.
3481 (varobj_set_value): Update.
3482 * tracepoint.c (validate_actionline): Update.
3483 (encode_actions_1): Update.
3484 * parse.c (parse_exp_1): Add 'pc' argument.
3485 (parse_exp_in_context): Add 'pc' argument. Change how
3486 expression_context_pc is set.
3487 (parse_expression): Update.
3488 (parse_field_expression): Update.
3489 * expression.h (parse_exp_1): Update.
3490 * eval.c (parse_to_comma_and_eval): Update.
3491 * breakpoint.c (set_breakpoint_condition): Update.
3492 (update_watchpoint): Update.
3493 (init_breakpoint_sal): Update
3494 (find_condition_and_thread): Update.
3495 (watch_command_1): Update.
3496 (update_breakpoint_locations): Update.
3497 * ada-lang.c (ada_read_renaming_var_value): Update.
3498 (create_excep_cond_exprs): Update.
3500 2012-06-27 Doug Evans <dje@google.com>
3502 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3505 2012-06-26 Doug Evans <dje@google.com>
3507 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3509 (error_check_comp_unit_head): New arg abbrev_section. All callers
3511 (read_and_check_comp_unit_head): Ditto.
3512 (read_and_check_type_unit_head): Ditto.
3514 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3516 New attribute 'last' for gdb.Symtab_and_line.
3517 * NEWS (Python Scripting): Add entry about the new attribute.
3518 * python/py-symtab.c (salpy_get_last): New function which
3519 implements the get method for the 'last' attribute of
3520 gdb.Symtab_and_line.
3521 (sal_object_getset): Add entry for the 'last' attribute.
3523 2012-06-26 Doug Evans <dje@google.com>
3525 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3526 (dwo_sections): Add macinfo, macro.
3527 (dwarf2_locate_dwo_sections): Watch for macro sections.
3528 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3529 All callers updated. Handle DWO files.
3531 * NEWS: Mention new options "set debug dwarf2-read" and
3532 "set debug symtab-create".
3533 * dwarf2read.c (dwarf2_read_debug): New static global.
3534 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3535 (process_queue): Ditto.
3536 (process_full_comp_unit): Ditto.
3537 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3538 * elfread.c (elf_symfile_read): Add debugging printf.
3539 * minsyms.c (install_minimal_symbols): Ditto.
3540 * psymtab.c (allocate_psymtab): Ditto.
3541 * symfile.c (allocate_symtab): Ditto.
3542 * symtab.c (symtab_create_debug): New global.
3543 (_initialize_symtab): Add new option "set debug symtab-create".
3544 * symtab.h (symtab_create_debug): Declare.
3546 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3547 (lookup_dwo_type_unit): Ditto.
3549 2012-06-26 Roland McGrath <roland@hack.frob.com>
3550 H.J. Lu <hongjiu.lu@intel.com>
3552 * amd64-linux-nat.c: Include <sys/user.h>.
3553 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3554 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3555 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3557 * configure.ac: Check if the fs_base and gs_base members of
3558 `struct user_regs_struct' exist.
3559 * config.in: Regenerated.
3560 * configure: Likewise.
3562 2012-06-25 Michael Eager <eager@eagercon.com>
3565 * python/python.c (gdbpy_write): Check for interrupted output.
3567 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3569 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3570 register as a stack alignment in ARM mode.
3572 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3574 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3575 * gnulib/config.in: Regenerate.
3576 * gnulib/configure: Likewise.
3577 * gnulib/import/m4/extensions.m4: Update it.
3578 * gnulib/import/m4/gnulib-common.m4: Likewise.
3579 * gnulib/import/m4/memmem.m4: Likewise.
3580 * gnulib/import/m4/mmap-anon.m4: Likewise.
3581 * gnulib/import/m4/multiarch.m4: Likewise.
3582 * gnulib/import/stdint.in.h: Likewise.
3584 2012-06-24 Yao Qi <yao@codesourcery.com>
3586 * corefile.c (write_memory_with_notification): New.
3587 * gdbcore.h: Declare write_memory_with_notification.
3588 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3589 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3590 * valops.c (value_assign): Likewise.
3591 * python/py-inferior.c (infpy_write_memory): Call
3592 'write_memory_with_notification'.
3594 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3596 * cc-with-index.sh: Use also -ex "set auto-load no".
3598 2012-06-23 Doug Evans <dje@google.com>
3601 * NEWS: Document additions to .gdb_index.
3602 * dwarf2read.c: #include "gdb/gdb-index.h".
3603 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3604 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3605 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3606 (dwarf2_read_index): Recognize version 7.
3607 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3608 block_kind, domain): All callers updated.
3609 (dw2_find_symbol_file): Handle new index CU values.
3610 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3611 (add_index_entry): New args is_static, kind. All callers updated.
3612 (offset_type_compare, uniquify_cu_indices): New functions
3613 (symbol_kind): New function.
3614 (write_psymtabs_to_index): Remove duplicate CU values.
3615 (write_psymtabs_to_index): Write .gdb_index version 7.
3617 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3619 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3620 * configure: Regenerate.
3622 2012-06-20 Yao Qi <yao@codesourcery.com>
3624 * python/py-inferior.c: Update comments of infpy_read_memory
3625 and infpy_write_memory.
3627 2012-06-19 Tom Tromey <tromey@redhat.com>
3630 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3631 (push_type_address_space): Remove.
3632 * parse.c (insert_into_type_stack): New function.
3633 (insert_type): Likewise.
3634 (insert_type_address_space): Rename from push_type_address_space.
3635 Insert tp_space_identifier.
3636 * c-exp.y (ptr_operator): New production.
3637 (abs_decl): Use ptr_operator.
3638 (space_identifier): Call insert_type_address_space.
3639 (ptype): Don't use const_or_volatile_or_space_identifier.
3640 (const_or_volatile_noopt): Call insert_type.
3641 (conversion_type_id, conversion_declarator): New productions.
3642 (operator): Use conversion_type_id.
3644 2012-06-18 Doug Evans <dje@google.com>
3646 * symtab.h (minimal_symbol): New member created_by_gdb.
3647 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3649 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3650 (search_symbols): Call it instead of lookup_symbol.
3651 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3653 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3654 Adjust address for DW_OP_GNU_addr_index.
3655 * dwarf2expr.h (dwarf_expr_context): Update comment.
3656 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3657 all callers updated. Handle TLS vars described with
3658 DW_OP_GNU_const_index.
3659 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3660 and DW_OP_GNU_const_index.
3661 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3663 * block.c (find_block_in_blockvector): Make explicit the fact that we
3664 ignore GLOBAL_BLOCK.
3666 2012-06-18 Tom Tromey <tromey@redhat.com>
3668 * c-exp.y (operator): Remove trailing space after "delete" and
3671 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3672 Jan Kratochvil <jan.kratochvil@redhat.com>
3674 Switch i386 and derived targets to ON_STACK.
3675 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3676 (amd64_dicos_init_abi): Remove its installment.
3677 * dicos-tdep.c (dicos_init_abi): Remove the
3678 set_gdbarch_call_dummy_location call. Update the comment here.
3679 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3680 (i386_dicos_init_abi): Remove its installment.
3681 * i386-tdep.c (i386_push_dummy_code): New function.
3682 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3683 i386_push_dummy_code.
3685 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 Remove stale dummy frames.
3688 * breakpoint.c: Include dummy-frame.h.
3689 (longjmp_breakpoint_ops): New variable.
3690 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3691 bp_longjmp_call_dummy.
3692 (bpstat_what, bptype_string, print_one_breakpoint_location)
3693 (init_bp_location): Support bp_longjmp_call_dummy.
3694 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3695 (set_longjmp_breakpoint_for_call_dummy)
3696 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3698 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3699 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3700 FIXME comment and extend the other comment for bp_call_dummy.
3701 (set_longjmp_breakpoint_for_call_dummy)
3702 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3703 * dummy-frame.c: Include gdbthread.h.
3704 (pop_dummy_frame_bpt): New function.
3705 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3706 (dummy_frame_discard): New function.
3707 (cleanup_dummy_frames): Update the comment about longjmps.
3708 * dummy-frame.h (dummy_frame_discard): New declaration.
3709 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3710 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3711 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3712 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3713 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3714 keep_going if IS_LONGJMP and there is no other reason to stop.
3716 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3718 * remote-sim.c (sim_command_completer): Initialize
3721 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3723 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3724 * dwarf2loc.c (call_site_parameter_matches): Support
3725 CALL_SITE_PARAMETER_PARAM_OFFSET.
3726 (needs_dwarf_reg_entry_value): Push stub value.
3727 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3728 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3729 * gdbtypes.h (enum call_site_parameter_kind): New item
3730 CALL_SITE_PARAMETER_PARAM_OFFSET.
3731 (struct call_site.parameter.u): New field param_offset.
3733 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3735 Code cleanup: Generalize call_site.parameter key.
3736 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3737 variable dwarf_reg. New variable kind_u. Update parameters to
3738 push_dwarf_reg_entry_value.
3739 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3740 * dwarf2expr.h (enum call_site_parameter_kind)
3741 (union call_site_parameter_u): Forward declarations.
3742 (struct dwarf_expr_context_funcs): Update parameters and their
3743 description for push_dwarf_reg_entry_value.
3744 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3745 * dwarf2loc.c (call_site_parameter_matches): New function.
3746 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3747 description. Use call_site_parameter_matches.
3748 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3749 Update parameters and their description.
3750 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3751 New variable kind_u. Adjust the caller for updated parameters.
3752 (needs_dwarf_reg_entry_value): Update parameters.
3753 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3754 instead of attr. Update for the changed fields of struct
3755 call_site_parameter.
3756 * gdbtypes.h: Include dwarf2expr.h.
3757 (enum call_site_parameter_kind): New.
3758 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3759 fb_offset into new union u.
3761 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3763 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3764 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3767 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3769 * amd64-linux-nat.c (compat_x32_clock_t): New.
3770 (compat_x32_siginfo_t): Likewise.
3771 (compat_x32_siginfo_from_siginfo): Likewise.
3772 (siginfo_from_compat_x32_siginfo): Likewise.
3773 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3774 and siginfo_from_compat_x32_siginfo for x32.
3776 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3778 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3780 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3782 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3783 instead of gdbarch_ptr_bit.
3784 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3785 (amd64_supply_native_gregset): Likewise.
3786 (amd64_collect_native_gregset): Likewise.
3787 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3788 (amd64_supply_xsave): Likewise.
3789 (amd64_collect_fxsave): Likewise.
3790 (amd64_collect_xsave): Likewise.
3792 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3794 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3795 (amd64_linux_read_description): Check DS segment register for
3798 2012-06-15 Tom Tromey <tromey@redhat.com>
3800 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3801 init_cutu_and_read_dies.
3803 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3805 * MAINTAINERS (Write After Approval): Add myself to the list.
3807 2012-06-15 Tom Tromey <tromey@redhat.com>
3809 * valops.c (value_find_oload_method_list): Now static.
3810 * value.h (value_find_oload_method_list): Don't declare.
3812 2012-06-15 Tom Tromey <tromey@redhat.com>
3814 * valops.c (find_overload_match): Use value_ind.
3816 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3818 * infrun.c (handle_inferior_event): Correct indentation.
3820 2012-06-14 Doug Evans <dje@google.com>
3822 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3823 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3825 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3826 updated. Handle DEBUG_LOC_START_LENGTH.
3827 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3828 (loclist_describe_location): Ditto.
3830 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3833 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3834 after hiding inline functions.
3836 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3838 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3839 _initialize_inf_ttrace.
3841 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3843 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3844 _initialize_hppa_hpux_nat.
3846 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3848 * remote-sim.c (sim_command_completer): Change type of return
3849 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3851 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3852 Jan Kratochvil <jan.kratochvil@redhat.com>
3855 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3856 stack on a 16-byte boundary.
3858 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3860 * jit.c (finalize_symtab): Set function's return type to 'void' by
3863 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3864 H.J. Lu <hongjiu.lu@intel.com>
3866 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3867 Move bits common to both the classic LP64 and the new x32 ILP32
3869 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3870 (amd64_x32_linux_init_abi): New function.
3871 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3874 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3875 * i386-tdep.c (i386_pseudo_register_name): Make public.
3876 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3877 * amd64-tdep.c (amd64_dword_names): Add "eip".
3878 (amd64_x32_pseudo_register_type): New function
3879 (amd64_x32_init_abi): New function.
3881 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3884 * inferior.h (struct inferior_suspend_state): Comment out.
3885 (struct inferior): Comment out the field suspend.
3886 * infrun.c (struct infcall_suspend_state): Comment out the field
3888 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3891 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3893 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3894 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3895 function comment. Return ERROR for unresolved cases. Implement
3896 returning proper NAME.
3897 (yylex): Accept also NAME from classify_inner_name.
3898 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3899 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3901 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3903 2012-06-13 Tom Tromey <tromey@redhat.com>
3905 * breakpoint.c (condition_completer): New function.
3906 (_initialize_breakpoint): Use it.
3907 * value.c (complete_internalvar): New function.
3908 * value.h (complete_internalvar): Declare.
3910 2012-06-13 Tom Tromey <tromey@redhat.com>
3912 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3913 * breakpoint.c (catch_syscall_completer): Return a VEC.
3914 * cli/cli-cmds.c (complete_command): Update.
3915 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3916 (complete_on_enum): Likewise.
3917 * command.h: Include gdb_vecs.h.
3918 (completer_ftype): Change return type.
3919 (complete_on_cmdlist, complete_on_enum): Likewise.
3920 * completer.c (noop_completer, filename_completer)
3921 (location_completer): Return a VEC.
3922 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3924 (expression_completer, complete_line_internal, complete_line)
3925 (command_completer): Return a VEC.
3926 (gdb_completion_word_break_characters, line_completion_function):
3928 * completer.h: Include gdb_vecs.h.
3929 (complete_line, noop_completer, filename_completer)
3930 (expression_completer, location_completer, command_completer):
3932 * f-lang.c (f_word_break_characters): Return a VEC.
3933 * interps.c (interpreter_completer): Return a VEC.
3934 * language.h (struct language_defn)
3935 <la_make_symbol_completion_list>: Return a VEC.
3936 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3937 * symtab.c (free_completion_list): Take a VEC.
3938 (return_val_size, return_val_index): Remove.
3939 (return_val): Now a VEC.
3940 (completion_list_add_name): Update.
3941 (default_make_symbol_completion_list_break_on)
3942 (default_make_symbol_completion_list, make_symbol_completion_list)
3943 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3945 (add_filename_to_list): Update.
3946 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3948 (maybe_add_partial_symtab_filename): Update.
3949 (make_source_files_completion_list): Return a VEC.
3950 * symtab.h (default_make_symbol_completion_list_break_on)
3951 (default_make_symbol_completion_list, make_symbol_completion_list)
3952 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3953 (make_source_files_completion_list): Update.
3955 2012-06-13 Tom Tromey <tromey@redhat.com>
3957 * breakpoint.c (add_catch_command): Use completer_ftype.
3958 * breakpoint.h: Include command.h.
3959 (add_catch_command): Use completer_ftype.
3960 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3961 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3962 Use completer_ftype.
3963 * command.h (completer_ftype): New typedef.
3964 (set_cmd_completer): Use it.
3965 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3968 2012-06-13 Pedro Alves <palves@redhat.com>
3970 Partial revert of previous change.
3972 * serial.c (scb_base): New global.
3973 (serial_for_fd): New.
3974 (serial_open, serial_fdopen_ops): Link new serial in open serials
3976 (do_serial_close): Unlink serial from the open serials chain.
3978 2012-06-12 Pedro Alves <palves@redhat.com>
3980 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3982 (prepare_for_detach): No longer context switch here in non-stop
3984 (fetch_inferior_event): Ditto.
3985 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3986 to the event thread before removing breakpoints. Switch to the
3987 event thread before inserting breakpoints and resuming.
3988 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3989 event thread before resuming.
3990 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3991 Switch to the event thread before removing breakpoints.
3993 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3995 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3996 special characters correctly for the Windows shells. See
3997 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3999 [!__MINGW32__]: Remove extra double quote character from special
4002 2012-06-11 Stan Shebs <stan@codesourcery.com>
4004 * ui-out.h: Remove #if 0 declarations.
4005 * ui-out.c: Remove #if 0 functions.
4007 2012-06-11 Pedro Alves <palves@redhat.com>
4009 * ser-base.c (run_async_handler_and_reschedule): New.
4010 (fd_event, push_event): Use it.
4011 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4012 reference count to 1.
4013 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4015 (serial_is_open, serial_ref, serial_unref): New.
4016 * serial.h (serial_open): Adjust comment.
4017 (serial_is_open): Declare.
4018 (serial_close): Adjust comment.
4019 (serial_ref, serial_unref) Declare.
4020 (struct serial): New field 'refcnt'.
4022 2012-06-11 Pedro Alves <palves@redhat.com>
4024 Remove #if 0'd "connect" command, and unnecessary associated
4025 refcounting and serial reuse bits.
4027 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4028 * serial.c (last_serial_opened): Delete.
4030 (serial_open): Adjust.
4031 (serial_for_fd): Delete.
4032 (serial_fdopen_ops, do_serial_close): Adjust.
4033 (serial_fdopen_ops): Adjust.
4035 2012-06-11 Pedro Alves <palves@redhat.com>
4037 * serial.c (do_serial_close): Remove early return when SCB is
4040 2012-06-11 Tom Tromey <tromey@redhat.com>
4042 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4044 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4046 Fix regression by the "ambiguous linespec" series.
4047 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4048 get_last_displayed_symtab and get_last_displayed_line and depending
4051 2012-06-11 Tom Tromey <tromey@redhat.com>
4053 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4054 (dw2_find_symbol_file): Use it.
4056 2012-06-11 Michael Eager <eager@eagercon.com>
4058 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4059 * mips-linux-tdep.h (mips_signals): New
4061 2012-06-11 Tom Tromey <tromey@redhat.com>
4063 * infrun.c (handle_inferior_event)
4064 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4066 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4067 exception logic in all cases. Update comments.
4068 (insert_longjmp_resume_breakpoint): Set the exception resume
4071 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4073 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4075 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4077 * valarith.c (binop_types_user_defined_p): Fix a typo.
4079 2012-06-08 Yao Qi <yao@codesourcery.com>
4080 Chung-Lin Tang <cltang@codesourcery.com>
4082 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4083 * arch-utils.h: Declare.
4084 * gdbarch.sh: Add return_in_first_hidden_param_p.
4085 * gdbarch.c, gdbarch.h: Regenerated.
4086 * infcall.c (call_function_by_hand): Call
4087 gdbarch_return_in_first_hidden_param_p instead of
4088 language_pass_by_reference.
4090 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4091 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4092 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4093 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4094 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4095 `cplus_return_struct_by_reference'.
4096 (tic6x_return_value): Handle language cplusplus.
4097 (tic6x_return_in_first_hidden_param_p): New.
4098 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4100 2012-06-07 Doug Evans <dje@google.com>
4102 * dwarf2read.c (dwarf2_cu): Add comment.
4104 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4106 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4108 (mips_eabi_push_dummy_call): Likewise.
4109 (mips_n32n64_push_dummy_call): Likewise.
4110 (mips_o32_push_dummy_call): Likewise.
4111 (mips_o64_push_dummy_call): Likewise.
4113 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4115 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4117 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4119 * mips-tdep.c (mips_pseudo_register_type): Use
4120 mips_float_register_p.
4122 2012-06-06 Pedro Alves <palves@redhat.com>
4124 * infrun.c (handle_inferior_event): Remove calls to
4125 reinit_frame_cache that follow a context_switch call.
4127 2012-06-06 Pedro Alves <palves@redhat.com>
4129 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4130 context_switch and remove stale comment.
4132 2012-06-06 Pedro Alves <palves@redhat.com>
4134 * infrun.c (struct execution_control_state): Remove
4135 `new_thread_event' field.
4136 (handle_inferior_event): Simplify new threads handling; don't
4137 resume the inferior if we find a new thread.
4139 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4141 * NEWS: Document the deprecation of SH's 'regs' command.
4142 * inferior.h (all_registers_info): Add function declaration.
4143 * sh-tdep.c (sh_show_regs): Remove variable.
4144 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4145 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4146 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4147 (sh_show_regs_command): Remove functions.
4148 (sh_gdbarch_init): Don't set sh_show_regs.
4149 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4150 'info all-registers'.
4151 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4152 (sh64_show_regs): Remove functions.
4153 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4155 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4157 * configure.ac: Move development=true below AC_INIT.
4158 * configure: Regenerate.
4160 2012-06-05 Stan Shebs <stan@codesourcery.com>
4162 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4165 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4167 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4168 argument as ssize_t.
4169 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4170 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4171 * target.c (target_read_stack, target_write_memory)
4172 (target_write_raw_memory): Likewise.
4173 * target.h (target_read_stack, target_write_memory)
4174 (target_write_raw_memory): Likewise.
4176 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4178 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4179 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4180 * target.c (target_read_memory): Change LEN to ssize_t.
4181 * target.h (target_read_memory): Change LEN to ssize_t.
4183 2012-06-05 Pedro Alves <palves@redhat.com>
4187 * breakpoint.c (until_break_command): Only fetch the selected
4188 frame after decode_line_1.
4190 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4192 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4193 event breakpoint at _start, __start or main if a program
4194 interpreter is not found.
4196 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4198 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4200 * windows-tdep.c: #include "objfiles.h".
4201 (windows_iterate_over_objfiles_in_search_order): New function.
4202 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4203 iterate_over_objfiles_in_search_order gdbarch method to
4204 windows_iterate_over_objfiles_in_search_order.
4205 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4207 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4209 * gdbarch.sh: Add generation of
4210 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4211 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4212 (iterate_over_objfiles_in_search_order): New gdbarch method.
4213 * gdbarch.h, gdbarch.c: Regenerate.
4214 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4216 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4218 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4219 out of lookup_symbol_aux_symtabs.
4220 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4221 call to lookup_symbol_aux_objfile.
4222 (struct global_sym_lookup_data): New type.
4223 (lookup_symbol_global_iterator_cb): New function.
4224 (lookup_symbol_global): Search for symbol using
4225 gdbarch_iterate_over_objfiles_in_search_order and
4226 lookup_symbol_global_iterator_cb.
4227 * findvar.c (struct minsym_lookup_data): New type.
4228 (minsym_lookup_iterator_cb): New function.
4229 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4230 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4231 and minsym_lookup_iterator_cb.
4233 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4235 Revert the following patch:
4236 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4237 try locating the symbol in the symbol's own objfile first, before
4238 extending the search to all objfiles.
4239 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4240 out of lookup_symbol_aux_symtabs.
4241 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4242 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4243 Do not search EXCLUDE_OBJFILE.
4244 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4245 (lookup_symbol_global): Search for matches in the block's objfile
4246 first, before searching all other objfiles.
4248 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4250 * breakpoint.c (find_condition_and_thread): Stop parsing
4251 as soon as the first invalid keyword is found.
4253 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4255 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4257 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4259 * config/djgpp/djcheck.sh: Add copyright header.
4261 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4263 * copyright.py (update_files, main): Fix path to update-copyright
4266 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4268 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4269 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4270 for which a reminder to update by hand is printed.
4272 2012-06-04 Doug Evans <dje@google.com>
4274 * buildsym.c (make_blockvector): Add comment.
4276 2012-06-04 Pedro Alves <palves@redhat.com>
4278 * arch-utils.c (default_gdb_signal_from_target): Delete.
4279 * arch-utils.h (default_gdb_signal_from_target): Delete.
4280 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4281 gdbarch_gdb_signal_from_target_p.
4282 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4284 * gdbarch.h: Regenerate.
4285 * gdbarch.c: Regenerate.
4287 2012-06-04 Pedro Alves <palves@redhat.com>
4289 * gdbarch.sh (gdb_signal_from_target): Mention that the
4290 implementation of the method must be host independent.
4291 * gdbarch.h: Regenerate.
4293 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4295 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4297 (target_read_memory_bfd): New function.
4298 (symbol_file_add_from_memory): Use it.
4300 2012-06-03 Doug Evans <dje@google.com>
4302 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4304 (basic_lookup_transparent_type): Ditto.
4306 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4307 (ALL_PRIMARY_SYMTABS): Use it.
4308 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4309 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4310 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4311 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4312 (basic_lookup_transparent_type): Ditto.
4314 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4316 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4317 it to optimize resolution of demangled name.
4319 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4321 * configure.ac (development): Define new variable.
4322 Call AC_CHECK_LIB for mcheck if $development.
4323 (ERROR_ON_WARNING): Enable it by default only if $development.
4324 * config.in: Regenerate.
4325 * configure: Regenerate.
4327 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4329 * target.c (target_read_memory): Make LEN argument as size_t.
4330 * target.h (target_read_memory): Likewise.
4332 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4334 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4336 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4338 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4339 BookE interface for PowerPC server processors if not available
4340 in the Linux Kernel.
4342 2012-05-31 Keith Seitz <keiths@redhat.com>
4344 * linespec.c (decode_objc): Add cleanup to free
4346 (find_linespec_symbols): Add cleanup to free CLASSES.
4347 * symfile.c (find_separate_debug_file_by_debuglink): Add
4348 cleanup to free DEBUGLINK.
4349 * ui-out.c (clear_header_list): No need to check if
4350 HEADER_NEXT.COLHDR is NULL.
4351 Free HEADER_NEXT.COL_NAME.
4353 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4355 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4358 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4360 * configure.host (gdb_host_cpu): Handle tilegx*.
4361 (gdb_host): Handle tilegx-*-linux*.
4362 * tilegx-linux-nat.c: New file.
4363 * config/tilegx/linux.mh: New file.
4365 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4367 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4368 tilegx-linux-tdep.o.
4369 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4370 tilegx-linux-tdep.c.
4371 * configure.tgt: Handle tilegx-*-linux*.
4372 * tilegx-tdep.h: New file.
4373 * tilegx-tdep.c: New file.
4374 * tilegx-linux-tdep.c: New file.
4375 * regformats/reg-tilegx.dat: New file.
4377 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4379 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4380 accounting of hw watchpoints on ppc.
4382 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4384 * source.c (openp): Expand tilde in path entries.
4386 2012-05-29 Doug Evans <dje@google.com>
4388 * buildsym.c (block_compar): Fix comment.
4389 (end_symtab): Fix and clarify some comments.
4391 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4392 cleanup_undefined_types.
4393 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4394 All callers updated.
4396 2012-05-29 Tom Tromey <tromey@redhat.com>
4398 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4400 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4401 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4403 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4406 2012-05-29 Tristan Gingold <gingold@adacore.com>
4408 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4409 (struct darwin_info): ... New struct.
4410 (solib_darwin_pspace_data): New variable.
4411 (darwin_pspace_data_cleanup): New function.
4412 (get_darwin_info): Likewise.
4413 (darwin_dyld_version_ok, darwin_load_image_infos)
4414 (darwin_solib_get_all_image_info_addr_at_init)
4415 (darwin_solib_read_all_image_info_addr): Add info argument.
4417 (darwin_current_sos): Use per pspace structure.
4418 (darwin_solib_create_inferior_hook): Likewise.
4419 (darwin_clear_solib): Likewise.
4420 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4422 2012-05-28 Pedro Alves <palves@redhat.com>
4424 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4425 block that uses them. Clear ecss before handling each event.
4427 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4429 * solib-svr4.c (svr4_current_sos): New comment on
4430 svr4_current_sos_via_xfer_libraries fall back.
4432 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4435 it as a fallback for TYPE_IS_OPAQUE.
4436 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4437 symbols for lookup_symbol.
4439 2012-05-24 John Steele Scott <toojays@toojays.net>
4441 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4442 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4443 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4444 (check_producer): ... this new function, which also checks for ICC
4445 and caches the result.
4446 (producer_is_icc): New function.
4447 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4450 2012-05-24 Pedro Alves <palves@redhat.com>
4454 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4455 (default_gdb_signal_to_target): ... this. Add comment.
4456 (default_gdb_signal_from_host): Rename to ...
4457 (default_gdb_signal_from_target): ... this. Add comment.
4458 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4459 (default_gdb_signal_to_target): ... this.
4460 (default_gdb_signal_from_host): Rename to ...
4461 (default_gdb_signal_from_target): ... this.
4462 * corelow.c (core_open): Adjust to naming change. Replace comment.
4463 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4464 (gdb_signal_from_target): ... this. Adjust to
4465 default_gdb_signal_from_host naming change. Extend comment.
4466 (gdb_signal_to_host): Rename to ...
4467 (gdb_signal_to_target): ... this. Adjust to
4468 default_gdb_signal_to_host naming change.
4469 * gdbarch.h, gdbarch.c: Renegerate.
4471 2012-05-24 Pedro Alves <palves@redhat.com>
4475 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4477 2012-05-24 Pedro Alves <palves@redhat.com>
4481 Replace target_signal with gdb_signal throughout.
4483 2012-05-24 Pedro Alves <palves@redhat.com>
4487 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4488 string, instead of reusing the va_list argument.
4490 2012-05-24 Tom Tromey <tromey@redhat.com>
4492 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4495 2012-05-23 Doug Evans <dje@google.com>
4497 * symtab.c (search_symbols): Formatting fixes.
4498 (print_symbol_info): Formatting fixes.
4500 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4501 int64_t change to leb128 API.
4502 (read_encoded_value, decode_frame_entry_1): Ditto.
4503 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4504 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4505 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4506 (execute_stack_op): Ditto.
4507 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4508 (safe_read_uleb128, safe_read_sleb128): Ditto.
4509 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4510 (dwarf2_compile_expr_to_ax): Ditto.
4511 (locexpr_describe_location_piece): Ditto.
4512 (disassemble_dwarf_expression): Ditto.
4513 (locexpr_describe_location_1): Ditto.
4515 2012-05-23 Stan Shebs <stan@codesourcery.com>
4516 Kwok Cheung Yeung <kcy@codesourcery.com>
4518 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4519 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4520 (mi-cmd-info.o): New rule.
4521 * osdata.h (info_osdata_command): New declaration.
4522 * osdata.c (info_osdata_command): Change to non-static.
4523 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4524 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4525 * mi/mi-cmd-info.c: New file.
4527 2012-05-23 Doug Evans <dje@google.com>
4529 * symtab.c (search_symbols): Pass NULL for file_matcher to
4530 expand_symtabs_matching if there are no files to match.
4532 * gdbtypes.c (lookup_typename): Simplify.
4534 2012-05-23 Pedro Alves <palves@redhat.com>
4536 * arch-utils.h (default_target_signal_to_host): Delete.
4537 * arch-utils.c (default_target_signal_to_host): Delete.
4538 * gdbarch.sh (target_signal_to_host): Remove.
4539 * gdbarch.h, gdbarch.c: Regenerate.
4541 2012-05-22 Doug Evans <dje@google.com>
4543 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4545 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4546 (execute_cfa_program): Update to match API of leb128 functions.
4547 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4549 (read_unsigned_leb128, read_signed_leb128): Delete.
4550 (read_initial_length): Change type of buf argument to
4552 (read_encoded_value): Update to match API of leb128 functions.
4553 (decode_frame_entry): Change result to "const gdb_byte *", and
4554 similarly for "start" parameter.
4555 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4556 (dwarf2_build_frame_info): Change local frame_ptr to
4558 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4559 read_uleb128, read_sleb128. All callers updated.
4560 (safe_skip_leb128): New function.
4561 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4562 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4563 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4564 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4565 read_uleb128, read_sleb128.
4566 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4567 (execute_stack_op): Update to match API of leb128 functions.
4568 * dwarf2expr.h: #include "leb128.h".
4569 (read_uleb128, read_sleb128): Delete.
4570 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4571 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4572 * dwarf2loc.c (debug_loc_kind): New enum.
4573 (decode_debug_loc_addresses): New function.
4574 (decode_debug_loc_dwo_addresses): New function.
4575 (dwarf2_find_location_expression): Rewrite.
4576 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4577 (locexpr_describe_location_piece): Ditto.
4578 (disassemble_dwarf_expression): Ditto.
4579 (locexpr_describe_location_1): Ditto.
4580 (loclist_describe_location): Rewrite.
4581 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4582 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4583 (dwarf2_section_buffer_overflow_complaint): Renamed from
4584 dwarf2_macros_too_long_complaint. All callers updated.
4585 (skip_leb128): Delete.
4586 (init_cu_die_reader): Initialize reader->buffer_end.
4587 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4588 (skip_form_bytes): New arg buffer_end. All callers updated.
4589 Replace call to skip_leb128 with gdb_skip_leb128.
4590 (skip_unknown_opcode): New arg mac_end. All callers updated.
4591 (fill_in_loclist_baton): Initialize baton->from_dwo.
4593 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4595 * mips-linux-nat.c (mips_linux_read_description): Use a more
4596 verbose error message.
4598 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4600 * NEWS: Add MIPS/Linux DSP support.
4601 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4602 (SIGCONTEXT_DSPCTL): New macro.
4603 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4604 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4605 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4606 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4607 (N64_SIGCONTEXT_HI3): Likewise.
4608 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4609 (N64_SIGCONTEXT_LO3): Likewise.
4610 (N64_SIGCONTEXT_DSPCTL): Likewise.
4611 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4612 (mips_linux_o32_sigframe_init): Handle DSP registers.
4613 (mips_linux_n32n64_sigframe_init): Likewise.
4615 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4617 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4620 2012-05-22 Pedro Alves <palves@redhat.com>
4622 * target.h (store_waitstatus): Move declaration ...
4623 * inf-child.h (store_waitstatus): ... here.
4624 * target.c: Move inclusion of gdb_wait.h, and ...
4625 (store_waitstatus): ... this ...
4626 * inf-child.c: ... here.
4627 * linux-nat.c: Include inf-child.h.
4628 * rs6000-nat.c: Include inf-child.h.
4629 * spu-linux-nat.c: Include inf-child.h.
4631 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4633 * tracepoint.c (start_tracing): Add missing i18n markup.
4634 (stop_tracing, set_trace_user): Ditto.
4635 (set_trace_notes, set_trace_stop_notes): Ditto.
4637 2012-05-21 Tom Tromey <tromey@redhat.com>
4640 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4642 * value.h (value_cast_pointers): Update.
4643 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4644 (value_cast): Update.
4645 (update_search_result): New function.
4646 (do_search_struct_field): New, from search_struct_field. Check
4647 for ambiguous results.
4648 (search_struct_field): Rewrite.
4649 * infcall.c (value_arg_coerce): Update.
4650 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4651 value_cast_pointers.
4652 * ada-lang.c (ada_convert_actual): Update.
4654 2012-05-21 Tom Tromey <tromey@redhat.com>
4656 * macroexp.c (macro_stringify): Terminate the string.
4658 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4660 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4662 * auto-load.c (auto_load_expand_dir_vars): New function.
4663 (auto_load_safe_path_vec_update): Use it, remove the
4664 substitute_path_component call thanks to it.
4665 (auto_load_objfile_script): Remove the debug_file_directory processing.
4666 Use auto_load_expand_dir_vars, remove the substitute_path_component
4668 * configure: Regenerate.
4669 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4670 path. Escape $ also for $debugdir.
4671 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4672 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4674 2012-05-20 Doug Evans <dje@google.com>
4676 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4677 before use. Check for symtab->includes == NULL before scanning it.
4679 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4681 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4683 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4685 * NEWS: Add microMIPS support and "set mips compression",
4686 "show mips compression" commands.
4687 * mips-tdep.h (mips_isa): New enum.
4688 (gdbarch_tdep): Add mips_isa.
4689 (mips_pc_is_mips16): Update prototype.
4690 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4691 * mips-tdep.c (mips_compression_mips16): New variable.
4692 (mips_compression_micromips): Likewise.
4693 (mips_compression_strings): Likewise.
4694 (mips_compression_string): Likewise.
4695 (is_mips16_isa, is_micromips_isa): New functions.
4696 (is_mips16_addr): Rename to...
4697 (is_compact_addr): ... this.
4698 (unmake_mips16_addr): Likewise to...
4699 (unmake_compact_addr): ... this.
4700 (make_mips16_addr): Likewise to...
4701 (make_compact_addr): ... this.
4702 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4704 (mips_elf_make_msymbol_special): Handle microMIPS code.
4705 (msymbol_is_special): Rename to...
4706 (msymbol_is_mips16): ... this.
4707 (mips_make_symbol_special, mips_pc_is_mips16): Update
4709 (msymbol_is_mips, msymbol_is_micromips): New functions.
4710 (mips16_to_32_reg): Rename to...
4711 (mips_reg3_to_reg): ... this.
4712 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4713 (mips_pc_isa): Likewise.
4714 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4716 (mips_fetch_instruction): Pass return status instead of printing
4717 an error message if requested. Handle microMIPS code. Bail out
4719 (micromips_op): New macro.
4720 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4721 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4722 (b6s4_op, b7s3_reg): Likewise.
4723 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4724 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4725 (mips_insn_size): New function.
4726 (mips32_next_pc): Update mips_fetch_instruction call.
4727 (micromips_relative_offset7): New function.
4728 (micromips_relative_offset10): Likewise.
4729 (micromips_relative_offset16): Likewise.
4730 (micromips_pc_insn_size): Likewise.
4731 (micromips_bc1_pc): Likewise.
4732 (micromips_next_pc): Likewise.
4733 (unpack_mips16): Update mips_fetch_instruction call.
4734 (extended_mips16_next_pc): Update according to change to
4736 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4738 (mips16_scan_prologue): Update mips_fetch_instruction call.
4739 Update according to change to mips16_to_32_reg.
4740 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4741 (mips_insn16_frame_base_sniffer): Likewise.
4742 (micromips_decode_imm9): New function.
4743 (micromips_scan_prologue): Likewise.
4744 (mips_micro_frame_cache): Likewise.
4745 (mips_micro_frame_this_id): Likewise.
4746 (mips_micro_frame_prev_register): Likewise.
4747 (mips_micro_frame_sniffer): Likewise.
4748 (mips_micro_frame_unwind): New variable.
4749 (mips_micro_frame_base_address): New function.
4750 (mips_micro_frame_base): New variable.
4751 (mips_micro_frame_base_sniffer): New function.
4752 (mips32_scan_prologue): Update mips_fetch_instruction call.
4753 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4754 rather than for MIPS16.
4755 (mips_insn32_frame_base_sniffer): Likewise.
4756 (mips_addr_bits_remove): Handle microMIPS code.
4757 (deal_with_atomic_sequence): Rename to...
4758 (mips_deal_with_atomic_sequence): ... this. Update the type
4759 of the variable used to hold an instruction. Remove the ISA bit
4760 check. Update mips_fetch_instruction call.
4761 (micromips_deal_with_atomic_sequence): New function.
4762 (deal_with_atomic_sequence): Likewise.
4763 (mips_about_to_return): Handle microMIPS code. Update
4764 mips_fetch_instruction call.
4765 (heuristic_proc_start): Check for the standard MIPS ISA rather
4766 than for MIPS16. Update mips_pc_is_mips16 and
4767 mips_fetch_instruction calls. Handle microMIPS code.
4768 (mips_push_dummy_code): Handle microMIPS code.
4769 (mips_eabi_push_dummy_call): Likewise.
4770 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4771 (mips_o64_push_dummy_call): Handle microMIPS code.
4772 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4773 (is_delayed): Remove function.
4774 (mips_single_step_through_delay): Replace the call to is_delayed
4775 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4776 Handle microMIPS code.
4777 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4779 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4781 (micromips_in_function_epilogue_p): New function.
4782 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4784 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4786 (gdb_print_insn_mips): Likewise.
4787 (mips_breakpoint_from_pc): Likewise.
4788 (mips_remote_breakpoint_from_pc): New function.
4789 (mips32_instruction_has_delay_slot): Simplify making use of the
4790 updated mips_fetch_instruction interface.
4791 (micromips_instruction_has_delay_slot): New function.
4792 (mips16_instruction_has_delay_slot): Simplify making use of the
4793 updated mips_fetch_instruction interface.
4794 (mips_adjust_breakpoint_address): Check for the standard MIPS
4795 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4796 calls. Handle microMIPS code.
4797 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4798 (mips_skip_trampoline_code): Handle microMIPS code.
4799 (global_mips_compression): New function.
4800 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4801 file flags. Register the microMIPS remote breakpoint handler
4802 and heuristic frame unwinder.
4803 (show_mips_compression): New function.
4804 (_initialize_mips_tdep): Add the "set mips compression" and
4805 "show mips compression" commands.
4807 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4812 * amd64-darwin-tdep.c:
4813 * arm-symbian-tdep.c:
4817 * bfin-linux-tdep.c:
4824 * dwarf2-frame-tailcall.c:
4853 * microblaze-tdep.c:
4854 * mips-linux-tdep.c:
4862 * python/py-finishbreakpoint.c:
4863 * python/py-inferior.c:
4864 * python/py-infthread.c:
4868 * remote-m32r-sdi.c:
4872 * rs6000-aix-tdep.c:
4898 * amd64-darwin-tdep.c:
4899 * arm-symbian-tdep.c:
4900 * arm-tdep.c: Delete unused variables.
4902 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4904 Rename $ddir to $datadir.
4905 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4906 * auto-load.c (auto_load_safe_path_vec_update)
4907 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4908 * configure: Regenerate.
4909 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4910 Likewise. Remove the 'use $ddir' help string.
4912 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4914 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4915 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4917 2012-05-18 Tom Tromey <tromey@redhat.com>
4920 * valprint.h (struct value_print_options) <symbol_print>: New
4922 * valprint.c (user_print_options): Add default for symbol_print.
4923 (show_symbol_print): New function.
4924 (generic_val_print): Respect symbol_print.
4925 (_initialize_valprint): Add "print symbol" setting.
4926 * f-valprint.c (f_val_print): Respect symbol_print.
4927 * c-valprint.c (c_val_print): Respect symbol_print.
4929 * printcmd.c (print_address_symbolic): Return int. Ignore some
4931 (print_address_demangle): Return int.
4932 * defs.h: (print_address_symbolic): Return int.
4933 * value.h (print_address_demangle): Return int.
4935 2012-05-18 Tom Tromey <tromey@redhat.com>
4937 * valprint.c (val_print_string): Don't print leading space.
4938 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4939 print space before string or vtbl.
4940 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4942 * jv-valprint.c (java_value_print): Print space before string.
4943 * go-valprint.c (print_go_string): Print space before string.
4944 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4945 space before string.
4946 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4947 space before string or vtbl.
4948 * auxv.c (fprint_target_auxv): Print space after address.
4950 2012-05-18 Tom Tromey <tromey@redhat.com>
4952 * printcmd.c (print_address_demangle): Remove special case for 0.
4954 2012-05-18 Tom Tromey <tromey@redhat.com>
4956 * printcmd.c (print_address_demangle): Add 'opts' argument.
4957 * p-valprint.c (pascal_val_print): Update.
4958 * jv-valprint.c (java_val_print): Update.
4960 * valprint.c (generic_val_print): Update.
4961 (print_function_pointer_address): Add 'options' argument. Remove
4962 'addressprint' argument. Update.
4963 * m2-valprint.c (print_unpacked_pointer): Update.
4964 * gnu-v3-abi.c (print_one_vtable): Update.
4965 (gnuv3_print_method_ptr): Update.
4966 * f-valprint.c (f_val_print): Update.
4967 * cp-valprint.c (cp_print_value_fields): Update.
4968 * valprint.h (print_function_pointer_address): Update.
4969 * c-valprint.c (c_val_print): Update.
4971 2012-05-18 Tom Tromey <tromey@redhat.com>
4973 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4974 directly corresponding to the found psymtab.
4975 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4976 (dw2_find_pc_sect_symtab): Use it.
4977 * block.h (blockvector_contains_pc): Declare.
4978 * block.c (find_block_in_blockvector): New function.
4979 (blockvector_for_pc_sect): Use it.
4980 (blockvector_contains_pc): New function.
4982 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4984 * mips-tdep.h (mips_write_pc): New prototype.
4985 * mips-tdep.c (mips_write_pc): Make external, add description.
4986 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4989 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4991 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4993 (mips_unwind_pc, mips_write_pc): Likewise.
4994 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4997 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4999 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5000 proc_warn, proc_error, proc_get_status, proc_flags,
5001 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5002 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5003 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5004 proc_stop_process, proc_wait_for_stop, proc_run_process,
5005 proc_set_traced_signals, proc_set_traced_faults,
5006 proc_set_traced_sysentry, proc_set_traced_sysexit,
5007 proc_set_held_signals, proc_get_held_signals,
5008 proc_get_traced_signals, proc_get_traced_faults,
5009 proc_get_traced_sysentry, proc_get_traced_sysexit,
5010 proc_clear_current_fault, proc_set_current_signal,
5011 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5012 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5013 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5014 proc_get_current_thread, proc_get_current_thread,
5015 proc_get_current_thread, proc_update_threads,
5016 proc_update_threads, proc_update_threads, proc_update_threads,
5017 proc_iterate_over_threads, procfs_find_new_threads,
5018 procfs_pid_to_str): Make static. Remove advance declaration.
5019 (proc_cursig): Make static. Conditionalized defintion on
5020 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5021 (proc_syscall, proc_set_kill_on_last_close,
5022 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5023 proc_get_pending_signals, proc_get_signal_actions,
5024 proc_trace_signal, proc_ignore_signal): Delete.
5026 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5028 * coffread.c (cs_section_address): Passing proper argument for
5029 `bfd_get_section_vma'.
5030 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5031 `bfd_get_section_flags'.
5032 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5033 `bfd_get_section_vma'.
5035 2012-05-16 Tom Tromey <tromey@redhat.com>
5038 * macrotab.h: (macro_define_special): Declare.
5039 (enum macro_special_kind): New.
5040 (struct macro_definition) <argc, replacement>: Update comments.
5041 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5042 (macro_define_object_internal): New function.
5043 (macro_define_object): Use it.
5044 (macro_define_special): New function.
5045 (fixup_definition): New function.
5046 (macro_lookup_definition, foreach_macro_in_scope)
5047 (foreach_macro): Use fixup_definition.
5048 * macroexp.h (macro_stringify): Declare.
5049 * macroexp.c (free_buffer_return_text): New function.
5050 (stringify): Constify "arg".
5051 (macro_stringify): New function.
5052 * dwarf2read.c (macro_start_file): Call macro_define_special.
5054 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5055 Maciej W. Rozycki <macro@mips.com>
5057 * breakpoint.h (bp_location): Add related_address member.
5058 * inferior.h (get_return_value): Take a pointer to struct value
5059 instead of struct type for the function requested.
5060 * value.h (using_struct_return): Likewise.
5061 * gdbarch.sh (return_value): Take a pointer to struct value
5062 instead of struct type for the function requested.
5063 * breakpoint.c (set_breakpoint_location_function): Initialize
5064 related_address for bp_gnu_ifunc_resolver breakpoints.
5065 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5066 requested function's address to gdbarch_return_value.
5067 * eval.c (evaluate_subexp_standard): Pass the requested
5068 function's address to using_struct_return.
5069 * infcall.c (call_function_by_hand): Pass the requested
5070 function's address to using_struct_return and
5071 gdbarch_return_value.
5072 * infcmd.c (get_return_value): Take a pointer to struct value
5073 instead of struct type for the function requested.
5074 (print_return_value): Update accordingly.
5075 (finish_command_continuation): Likewise.
5076 * stack.c (return_command): Pass the requested function's
5077 address to using_struct_return and gdbarch_return_value.
5078 * value.c (using_struct_return): Take a pointer to struct value
5079 instead of struct type for the function requested. Pass the
5080 requested function's address to gdbarch_return_value.
5081 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5082 New function_value member, replacing function_type.
5083 (bpfinishpy_dealloc): Update accordingly.
5084 (bpfinishpy_pre_stop_hook): Likewise.
5085 (bpfinishpy_init): Likewise. Record the requested function's
5087 * mips-tdep.c (mips_fval_reg): New enum.
5088 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5089 words put in GP registers.
5090 (mips_o64_push_dummy_call): Update a comment.
5091 (mips_o32_return_value): Take a pointer to struct value instead
5092 of struct type for the function requested and use it to check if
5093 using the MIPS16 calling convention. Return the designated
5094 general purpose registers for floating-point values returned in
5096 (mips_o64_return_value): Likewise.
5097 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5098 (ppc_sysv_abi_broken_return_value): Likewise.
5099 (ppc64_sysv_abi_return_value): Likewise.
5100 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5101 value instead of struct type for the function requested.
5102 * amd64-tdep.c (amd64_return_value): Likewise.
5103 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5104 * arm-tdep.c (arm_return_value): Likewise.
5105 * avr-tdep.c (avr_return_value): Likewise.
5106 * bfin-tdep.c (bfin_return_value): Likewise.
5107 * cris-tdep.c (cris_return_value): Likewise.
5108 * frv-tdep.c (frv_return_value): Likewise.
5109 * h8300-tdep.c (h8300_return_value): Likewise.
5110 (h8300h_return_value): Likewise.
5111 * hppa-tdep.c (hppa32_return_value): Likewise.
5112 (hppa64_return_value): Likewise.
5113 * i386-tdep.c (i386_return_value): Likewise.
5114 * ia64-tdep.c (ia64_return_value): Likewise.
5115 * iq2000-tdep.c (iq2000_return_value): Likewise.
5116 * lm32-tdep.c (lm32_return_value): Likewise.
5117 * m32c-tdep.c (m32c_return_value): Likewise.
5118 * m32r-tdep.c (m32r_return_value): Likewise.
5119 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5120 * m68k-tdep.c (m68k_return_value): Likewise.
5121 (m68k_svr4_return_value): Likewise.
5122 * m88k-tdep.c (m88k_return_value): Likewise.
5123 * mep-tdep.c (mep_return_value): Likewise.
5124 * microblaze-tdep.c (microblaze_return_value): Likewise.
5125 * mn10300-tdep.c (mn10300_return_value): Likewise.
5126 * moxie-tdep.c (moxie_return_value): Likewise.
5127 * mt-tdep.c (mt_return_value): Likewise.
5128 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5129 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5130 (ppc_sysv_abi_broken_return_value): Likewise.
5131 (ppc64_sysv_abi_return_value): Likewise.
5132 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5133 * rl78-tdep.c (rl78_return_value): Likewise.
5134 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5135 * rx-tdep.c (rx_return_value): Likewise.
5136 * s390-tdep.c (s390_return_value): Likewise.
5137 * score-tdep.c (score_return_value): Likewise.
5138 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5139 (sh_return_value_fpu): Likewise.
5140 * sh64-tdep.c (sh64_return_value): Likewise.
5141 * sparc-tdep.c (sparc32_return_value): Likewise.
5142 * sparc64-tdep.c (sparc64_return_value): Likewise.
5143 * spu-tdep.c (spu_return_value): Likewise.
5144 * tic6x-tdep.c (tic6x_return_value): Likewise.
5145 * v850-tdep.c (v850_return_value): Likewise.
5146 * vax-tdep.c (vax_return_value): Likewise.
5147 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5148 * xtensa-tdep.c (xtensa_return_value): Likewise.
5149 * gdbarch.c: Regenerate.
5150 * gdbarch.h: Regenerate.
5152 2012-05-15 Tom Tromey <tromey@redhat.com>
5154 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5156 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5158 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5159 of command in two error message.
5161 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5163 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5165 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5167 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5169 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5171 * NEWS (show auto-load scripts-directory): Add forgotten command.
5173 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5175 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5178 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5180 * amd64-tdep.c: Include features/i386/x32.c and
5181 features/i386/x32-avx.c.
5182 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5183 initialize_tdesc_x32_avx.
5185 2012-05-14 Stan Shebs <stan@codesourcery.com>
5188 * breakpoint.h (enum bptype): New type bp_dprintf.
5189 (struct breakpoint): New field extra_string.
5190 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5191 (create_breakpoint): Add extra_string arg.
5192 * breakpoint.c (dprintf_breakpoint_ops): New.
5193 (is_breakpoint): Add bp_dprintf.
5194 (bpstat_what): Add dprintf case.
5195 (bptype_string): Ditto.
5196 (print_one_breakpoint_location): Ditto.
5197 (init_bp_location): Ditto.
5198 (bkpt_print_mention): Ditto.
5199 (dprintf_style_enums): New array.
5200 (dprintf_style): New global.
5201 (dprintf_function): New global.
5202 (dprintf_channel): New global.
5203 (update_dprintf_command_list): New function.
5204 (update_dprintf_commands): New function.
5205 (init_breakpoint_sal): Add extra_string argument, handle it.
5206 (create_breakpoint_sal): Add extra_string argument.
5207 (create_breakpoints_sal): Add extra_string argument, update callers.
5208 (find_condition_and_thread): Add extra argument.
5209 (create_breakpoint): Add extra_string argument, record it.
5210 (dprintf_command): New function.
5211 (break_command_1): Add arg to create_breakpoint call.
5212 (handle_gnu_v3_exceptions): Ditto.
5213 (trace_command): Ditto.
5214 (ftrace_command): Ditto.
5215 (strace_command): Ditto.
5216 (bkpt_print_mention): Add dprintf case.
5217 (create_breakpoint_sal_default): Add extra_string argument.
5218 (_initialize_breakpoint): Add new commands.
5219 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5220 * python/py-breakpoint.c (bppy_init): Ditto.
5221 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5223 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5225 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5227 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5229 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5232 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5234 Add a new function gdb.find_pc_line to the Python API.
5235 * NEWS (Python Scripting): Add entry about the new function.
5236 * python/python.c (gdbpy_find_pc_line): New function which
5237 implements gdb.find_pc_line.
5238 (GdbMethods): Add entry for the new function.
5240 2012-05-12 Pedro Alves <palves@redhat.com>
5242 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5243 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5245 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5247 * inferior.c: Include completer.h
5248 (initialize_inferiors): Set completer of add-inferior to
5251 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5253 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5254 gdbarch_ptr_bit for x32 core dump.
5256 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5258 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5259 and features/i386/x32-avx-linux.c.
5261 2012-05-11 Stan Shebs <stan@codesourcery.com>
5262 Kwok Cheung Yeung <kcy@codesourcery.com>
5264 * NEWS: Describe new info os commands.
5265 * common/linux-osdata.c (PID_T, TIME_T): Define.
5266 (MAX_PID_T_STRLEN): New.
5267 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5269 (command_from_pid): Add comment. Change to use PID_T.
5270 (commandline_from_pid): Change to use PID_T.
5271 (user_from_pid): Add comment.
5272 (get_process_owner): Add comment. Change to use PID_T and
5274 (get_number_of_cpu_cores): Add comment.
5275 (get_cores_used_by_process): Add comment. Change to use PID_T and
5277 (linux_xfer_osdata_processes): Change to use PID_T and
5279 (compare_processes): New function.
5280 (linux_xfer_osdata_processgroups): New function.
5281 (linux_xfer_osdata_threads): Change to use PID_T.
5282 (linux_xfer_osdata_fds): New function.
5283 (format_socket_state, print_sockets): New functions.
5284 (union socket_addr): New union.
5285 (linux_xfer_osdata_isockets): New function.
5286 (time_from_time_t, group_from_gid): New functions.
5287 (linux_xfer_osdata_shm): New function.
5288 (linux_xfer_osdata_sem): New function.
5289 (linux_xfer_osdata_msg): New function.
5290 (linux_xfer_osdata_modules): New function.
5291 (osdata_table): Add new entries.
5292 * common/buffer.c (buffer_xml_printf): Add support for long and
5293 long long format specifiers.
5295 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5297 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5298 (tdesc_x32_avx_linux): Likewise.
5300 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5302 Implement multi-component --with-auto-load-dir.
5303 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5305 (--with-auto-load-safe-path): Update the default value description.
5306 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5308 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5309 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5310 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5311 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5312 "set auto-load scripts-directory".
5313 * config.in: Regenerate.
5314 * configure: Regenerate.
5315 * configure.ac (--with-auto-load-dir): New configure option.
5316 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5318 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5320 Provide $ddir substitution for --with-auto-load-safe-path.
5321 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5323 * auto-load.c: Include observer.h.
5324 (auto_load_safe_path_vec_update): Call substitute_path_component for
5325 each component. New variable ddir_subst.
5326 (auto_load_gdb_datadir_changed): New function.
5327 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5328 AUTO_LOAD_SAFE_PATH. New comment.
5329 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5330 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5331 * config.in: Regenerate.
5332 * configure: Regenerate.
5333 * configure.ac (--auto-load-safe-path): Rename
5334 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5335 GDB_DATADIR/auto-load.
5336 * defs.h (substitute_path_component): New declaration.
5337 * top.c: Include observer.h.
5338 (set_gdb_datadir): New function.
5339 (init_main): Install it for "set data-directory".
5340 * utils.c (substitute_path_component): New function.
5342 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5344 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5345 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5346 DEBUG_FILE_DIRECTORY. Handle multiple components of
5347 DEBUG_FILE_DIRECTORY.
5349 2012-05-10 Tom Tromey <tromey@redhat.com>
5351 * dwarf2read.c (recursively_write_psymbols): New function.
5352 (write_psymtabs_to_index): Use it.
5354 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5356 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5357 (load_partial_comp_unit): Update.
5358 (queue_comp_unit): Add argument 'pretend_language'.
5359 (process_queue): Update.
5360 (psymtab_to_symtab_1): Skip dependencies that have a user.
5361 (load_partial_comp_unit_reader): Give meaning to the 'data'
5363 (load_full_comp_unit): Add 'pretend_language' argument.
5364 (process_full_comp_unit): Add 'pretend_language' argument. Set
5366 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5368 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5369 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5371 (prepare_one_comp_unit): Add 'pretend_language' argument.
5373 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5374 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5375 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5376 (dw2_do_instantiate_symtab): Check whether symtab was read in
5378 (dw2_instantiate_symtab): Add assertion. Call
5379 process_cu_includes.
5380 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5381 (partial_symtab_p): New typedef.
5382 (set_partial_user): New function.
5383 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5384 (scan_partial_symbols): Add imported CU to imported_symtabs.
5385 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5386 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5387 (get_symtab, recursively_compute_inclusions)
5388 (compute_symtab_includes, process_cu_includes)
5389 (process_imported_unit_die): New functions.
5390 (process_die) <DW_TAG_imported_unit>: New case.
5391 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5393 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5395 (struct partial_die_info) <locdesc>: Remove.
5397 (process_psymtab_comp_unit): Add 'read_partial' argument.
5399 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5400 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5401 (add_partial_symbol): Update.
5402 (process_die): Handle DW_TAG_partial_unit.
5403 (read_file_scope): Update comment.
5404 (load_partial_dies): Handle DW_TAG_imported_unit.
5405 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5406 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5408 2012-05-10 Tom Tromey <tromey@redhat.com>
5410 * cc-with-dwz.sh: New file.
5412 2012-05-10 Tom Tromey <tromey@redhat.com>
5414 * symtab.h (struct symtab) <includes, user>: New fields.
5415 * block.h (struct block_iterator) <d, idx, which>: New fields.
5416 * block.c (initialize_block_iterator, find_iterator_symtab)
5417 (block_iterator_step, block_iter_name_step)
5418 (block_iter_match_step): New functions.
5419 (block_iterator_first, block_iterator_next)
5420 (block_iter_name_first, block_iter_name_next)
5421 (block_iter_match_first, block_iter_match_next): Rewrite.
5422 (get_block_symtab): New function.
5424 2012-05-10 Tom Tromey <tromey@redhat.com>
5426 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5428 * jit.c (finalize_symtab): Use allocate_global_block,
5430 * buildsym.c (finish_block_internal): New function, from old
5432 (finish_block): Rewrite.
5433 (end_symtab): Use finish_block_internal, set_block_symtab.
5434 * block.h (struct global_block): New.
5435 (allocate_global_block, set_block_symtab): Declare.
5436 * block.c (allocate_global_block, set_block_symtab): New
5439 2012-05-10 Tom Tromey <tromey@redhat.com>
5441 * psymtab.c (partial_map_expand_apply): Add assertion.
5442 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5443 (psymtab_to_symtab): Find unshared psymtab.
5444 (dump_psymtab): Print including psymtabs.
5445 (recursively_search_psymtabs): New function.
5446 (expand_symtabs_matching_via_partial): Use it.
5447 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5449 (enum psymtab_search_status): New.
5451 2012-05-10 Tom Tromey <tromey@redhat.com>
5453 * tracepoint.c (scope_info): Update.
5454 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5455 (find_pc_sect_symtab, search_symbols)
5456 (default_make_symbol_completion_list_break_on)
5457 (make_file_symbol_completion_list): Update.
5458 * symmisc.c (dump_symtab_1): Update.
5459 * stack.c (print_frame_args, iterate_over_block_locals)
5460 (print_frame_labels, iterate_over_block_arg_vars): Update.
5461 * python/py-block.c (block_object) <dict>: Remove.
5463 <iter>: Change type.
5464 (blpy_iter): Update.
5465 (blpy_block_syms_iternext): Update.
5466 * psymtab.c (map_block): Use block iterators.
5467 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5468 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5469 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5470 * infrun.c (check_exception_resume): Update.
5471 * cp-support.c (make_symbol_overload_list_block): Update.
5472 * coffread.c (patch_opaque_types): Update.
5473 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5474 * block.h (struct block_iterator): New.
5475 (block_iterator_first, block_iterator_next, block_iter_name_first)
5476 (block_iter_name_next, block_iter_match_first)
5477 (block_iter_match_next): Declare.
5478 (ALL_BLOCK_SYMBOLS): Redefine.
5479 * block.c (block_iterator_first, block_iterator_next)
5480 (block_iter_name_first, block_iter_name_next)
5481 (block_iter_match_first, block_iter_match_next): New functions.
5482 * ada-lang.c (ada_add_block_symbols)
5483 (ada_make_symbol_completion_list): Use block iterator.
5485 2012-05-10 Tom Tromey <tromey@redhat.com>
5487 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5488 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5489 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5490 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5491 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5494 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5496 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5497 print-file-var-lib2.c, print-file-var-main.c and
5498 print-file-var.exp (located in gdb/testsuite/gdb.base).
5500 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5502 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5503 try locating the symbol in the symbol's own objfile first, before
5504 extending the search to all objfiles.
5505 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5506 out of lookup_symbol_aux_symtabs.
5507 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5508 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5509 Do not search EXCLUDE_OBJFILE.
5510 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5511 (lookup_symbol_global): Search for matches in the block's objfile
5512 first, before searching all other objfiles.
5514 2012-05-10 Tristan Gingold <gingold@adacore.com>
5516 * printcmd.c (set_command): Add pre/post inc/dec.
5518 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5520 * gdb.1: Document -ex option.
5522 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5524 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5525 * inferior.h (AT_SYMBOL): Delete.
5527 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5529 * mips-tdep.c (mips_push_dummy_code): New function.
5530 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5531 ON_STACK and install mips_push_dummy_code as our gdbarch
5532 push_dummy_code routine.
5534 2012-05-09 Pedro Alves <palves@redhat.com>
5536 * target.c (set_maintenance_target_async_permitted): Rename to ...
5537 (set_target_async_command): ... this.
5538 (show_maintenance_target_async_permitted): Rename to ...
5539 (show_target_async_command): ... this.
5540 (initialize_targets): Adjust.
5542 2012-05-08 Doug Evans <dje@google.com>
5544 * go-exp.y (classify_name): Add missing assignment of fields of
5547 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5549 Display the ">" prompt in interactive mode while reading canned
5550 commands, even when the current interpreter is MI.
5552 * interps.c (interp_set_temp): New function.
5554 * interps.h (interp_set_temp): Add prototype.
5556 * cli/cli-script.c (restore_interp): New cleanup function.
5557 (read_command_lines): Temporarily override the current interpreter
5558 with CLI and arrange for restoring the original one.
5560 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5562 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5564 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5566 * probe.c (parse_probes): Move conditional to check for
5567 debuginfo files from here...
5568 * stap-probe.c (stap_get_probes): ... to here.
5570 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5571 H.J. Lu <hongjiu.lu@intel.com>
5573 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5574 `movl %esp, %ebp' for the X32 ABI.
5576 2012-05-07 Tom Tromey <tromey@redhat.com>
5578 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5580 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5581 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5582 (dwarf_stack_op_name): Remove.
5583 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5584 (decode_locdesc): Use get_DW_OP_name.
5585 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5586 (dwarf2_compile_expr_to_ax): Likewise.
5587 (disassemble_dwarf_expression): Likewise.
5588 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5590 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5592 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5593 (sh_linux_sigtramp_cache): New function.
5594 (sh_linux_sigreturn_init): New function.
5595 (sh_linux_rt_sigreturn_init): New function.
5596 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5598 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5600 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5601 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5602 (sh_linux_init_abi): Add init calls to register new tramp_frame
5603 definitions under 32-bit SH, update comments.
5605 2012-05-07 Pedro Alves <palves@redhat.com>
5609 * amd64-linux-tdep.c: Include glibc-tdep.h.
5610 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5611 gdbarch_skip_solib_resolver callback.
5613 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5615 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5616 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5617 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5618 (add_auto_load_safe_path): Change the error message.
5619 (_initialize_auto_load): Change the "safe-path" help text.
5620 * configure: Regenerate
5621 * configure.ac (--without-auto-load-safe-path): Set
5622 WITH_AUTO_LOAD_SAFE_PATH to /.
5624 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5626 * stap-probe.h: Do not include unecessary `probe.h'.
5628 2012-05-05 Alan Modra <amodra@gmail.com>
5630 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5631 bfd_und_section_ptr.
5632 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5633 and bfd_com_section_ptr.
5635 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5637 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5639 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5641 * windows-nat.h (segment_register_p_ftype): New typedef.
5642 (windows_set_segment_register_p): Add declaration.
5643 * windows-nat.c (segment_register_p): New static global.
5644 (windows_set_segment_register_p): New function.
5645 (do_windows_fetch_inferior_registers): Add special handling
5646 for segment registers.
5647 * amd64-windows-nat.c: #include "amd64-tdep.h".
5648 (amd64_windows_segment_register_p): New function.
5649 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5650 * i386-windows-nat.c: #include "i386-tdep.h".
5651 (i386_windows_segment_register_p): New function.
5652 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5654 2012-05-04 Tristan Gingold <gingold@adacore.com>
5656 * printcmd.c (set_command): Emit a warning if the expression is not
5659 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5661 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5664 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5666 * stap-probe.c (stap_is_operator): Change declaration.
5667 (stap_get_opcode): Change return value.
5668 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5669 `stap_parse_argument_1'.
5671 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5673 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5676 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5678 Add two new methods global_block and static_block to gdb.Symtab
5680 * NEWS (Python scripting): Add entry about the new methods.
5681 * python/py-symtab.c (stpy_global_block): New function which
5682 implements the gdb.Symtab.global_block() method.
5683 (stpy_static_block): New function which implements the
5684 gdb.Symtab.static_block() method.
5685 (symtab_object_methods): Add entries for the two new methods.
5687 2012-05-03 Doug Evans <dje@google.com>
5689 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5692 2012-05-03 Yao Qi <yao@codesourcery.com>
5694 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5696 (i386_process_record): Ditto.
5698 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5700 * infcall.c (unwind_on_signal_p): Make static.
5702 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5704 * sol-thread.c (solaris_pid_to_str): Make static.
5705 (_initialize_sol_thread): Add prototype.
5707 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5709 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5711 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5713 * MAINTAINERS: Remove myself.
5715 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5717 Fix --without-auto-load-safe-path for MS-Windows host platform.
5718 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5720 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5722 * gdb_curses.h: Undefine KEY_EVENT before including curses
5723 headers. Move "#undef MOUSE_MOVED" before any curses header
5726 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5728 * features/i386/i386-mmx-linux.c: Regenerate.
5729 * features/rs6000/powerpc-32.c: Likewise.
5730 * features/rs6000/powerpc-32l.c: Likewise.
5731 * features/rs6000/powerpc-403.c: Likewise.
5732 * features/rs6000/powerpc-403gc.c: Likewise.
5733 * features/rs6000/powerpc-405.c: Likewise.
5734 * features/rs6000/powerpc-505.c: Likewise.
5735 * features/rs6000/powerpc-601.c: Likewise.
5736 * features/rs6000/powerpc-602.c: Likewise.
5737 * features/rs6000/powerpc-603.c: Likewise.
5738 * features/rs6000/powerpc-604.c: Likewise.
5739 * features/rs6000/powerpc-64.c: Likewise.
5740 * features/rs6000/powerpc-64l.c: Likewise.
5741 * features/rs6000/powerpc-750.c: Likewise.
5742 * features/rs6000/powerpc-860.c: Likewise.
5743 * features/rs6000/powerpc-e500.c: Likewise.
5744 * features/rs6000/powerpc-e500l.c: Likewise.
5745 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5746 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5747 * features/rs6000/rs6000.c: Likewise.
5749 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5751 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5753 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5754 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5755 (stap_parse_argument) <e>: Likewise.
5756 (handle_stap_probe) <byte_order>: Likewise.
5758 2012-04-30 Doug Evans <dje@google.com>
5760 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5761 init_and_read_dies_worker. All callers updated.
5762 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5763 replaced with init_cutu_and_read_dies.
5764 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5765 (find_partial_die): Remove FIXME. Don't free current CU.
5767 2012-04-30 Sterling Augustine <saugustine@google.com>
5769 * contrib: New directory.
5770 * contrib/test_pubnames_and_indexes.py: New file.
5772 2012-04-30 Doug Evans <dje@google.com>
5774 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5775 All callers updated.
5776 (init_cu_die_reader): Verify the section is non-empty.
5777 (dwarf_decode_line_header): Don't dereference section->asection
5778 until we know the section is present.
5780 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5782 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5785 2012-04-29 Yao Qi <yao@codesourcery.com>
5787 * gdb-code-style.el: New hook gdb-markup-hook
5788 and gdb-comment-hook.
5790 2012-04-28 Doug Evans <dje@google.com>
5792 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5793 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5795 * symfile.h (dwarf2_debug_sections): New member addr.
5796 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5797 (ctx_no_get_addr_index): New function.
5798 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5799 (ctx_no_get_addr_index): Declare.
5800 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5801 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5802 (dwarf_expr_ctx_funcs): Update.
5803 (needs_get_addr_index): New function.
5804 (needs_frame_ctx_funcs): Update.
5805 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5806 * dwarf2read.c: #include "gdbcore.h".
5807 (dwarf2_per_objfile): New members addr, dwo_files.
5808 (dwarf2_elf_names): Add entry for addr.
5809 (struct dwo_section_names): New type.
5810 (dwo_section_names): New static global.
5811 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5812 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5813 old debug_types_section member updated to use this.
5814 Rename member debug_types_section to info_or_types_section,
5816 (signatured_type): Rename member type_offset to type_offset_in_tu,
5817 all uses updated. New member type_offset_in_section.
5818 (struct dwo_sections): New type.
5819 (struct dwo_unit): New type.
5820 (struct dwo_file): New type.
5821 (die_reader_specs): New member dwo_file.
5822 (dwarf2_locate_sections): Watch for .debug_addr.
5823 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5824 (dwarf2_read_section): Get bfd of section from bfd's asection,
5826 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5827 (create_signatured_type_table_from_index): Initialize
5828 sig_type->info_or_types_section.
5829 (dw2_get_file_names): Statement lists for type units with DWO files
5830 live in the DWO file.
5831 (create_debug_types_hash_table): New function.
5832 (create_all_type_units): Rewrite.
5833 (init_cu_die_reader): New arg dwo_file, all callers updated.
5834 (init_and_read_dies_worker): Get section from
5835 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5836 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5837 continue reading the CU/TU from there.
5838 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5839 updated. Get section from this_cu->info_or_types_section.
5840 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5841 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5842 DW_FORM_GNU_str_index.
5843 (hash_dwo_file, eq_dwo_file): New functions.
5844 (allocate_dwo_file_hash_table): New function.
5845 (hash_dwo_unit, eq_dwo_unit): New functions.
5846 (allocate_dwo_unit_table): New function.
5847 (dwarf2_locate_dwo_sections): New function.
5848 (struct create_dwo_info_table_data): New type.
5849 (create_debug_info_hash_table_reader): New function.
5850 (create_debug_info_hash_table): New function.
5851 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5852 (lookup_dwo_file): New function.
5853 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5854 (free_dwo_file, free_dwo_file_cleanup): New functions.
5855 (free_dwo_file_from_slot, free_dwo_files): New functions.
5856 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5857 (dwarf2_record_block_ranges): Ditto.
5858 (read_partial_die): Ditto.
5859 (process_enumeration_scope): Update to use type_offset_in_section.
5860 (read_full_die_1): New function.
5861 (read_full_die): Rewrite.
5862 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5863 DW_FORM_GNU_str_index.
5864 (read_addr_index_1, read_addr_index): New functions.
5865 (read_addr_index_from_leb128): New function.
5866 (struct dwarf2_read_addr_index_data): New type.
5867 (dwarf2_read_addr_index_reader): New function.
5868 (dwarf2_read_addr_index): New function.
5869 (read_str_index): New function.
5870 (leb128_size): New function.
5871 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5872 If processing a type unit from a DWO file, get the line section
5874 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5875 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5876 DW_FORM_GNU_str_index.
5877 (lookup_die_type): Check whether section offset of type's die is
5878 known before looking it up. Remove assert. Condition can
5879 legimately happen for inter-cu type references.
5880 (dwarf_attr_name): Handle Fission attributes.
5881 (dwarf_form_name): Handle Fission forms.
5882 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5883 DW_FORM_GNU_str_index.
5884 (follow_die_sig): Update to use type_offset_in_section.
5885 (decode_locdesc): New case DW_OP_GNU_addr_index.
5886 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5887 DW_FORM_GNU_str_index.
5888 (cu_debug_loc_section): New function.
5889 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5890 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5891 Free DWO files if present.
5892 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5894 Refactor DIE reading.
5895 * dwarf2read.c (dwarf2_per_objfile): Replace members
5896 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5897 (die_reader_specs): New member "die_section". Temporarily make
5898 member "buffer" non-const, pending constifying all info_ptr uses.
5899 (die_reader_func_ftype): New typedef.
5900 (dw2_get_file_names_reader): New function.
5901 (dw2_get_file_names): Rewrite.
5902 (read_and_check_type_unit_head): Rename arg type_offset to
5904 (create_all_type_units): Improve debugging message.
5905 Improve dummy type unit check.
5906 (init_cu_die_reader): New arg "section". All callers updated.
5907 (init_and_read_dies_worker): New function.
5908 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5909 (init_cutu_and_read_dies_no_follow): New function.
5910 (init_cutu_and_read_dies_simple): New function.
5911 (process_psymtab_comp_unit_reader): New function.
5912 (process_psymtab_comp_unit): Delete args section,
5913 is_debug_types_section. Rewrite. All callers updated.
5914 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5915 All callers updated. Rewrite.
5916 (load_partial_comp_unit_reader): New function.
5917 (load_partial_comp_unit): Rewrite.
5918 (skip_children): New arg reader. Delete args buffer, cu.
5919 All callers updated.
5920 (skip_one_die): New arg reader. Delete args buffer, cu.
5921 All callers updated.
5922 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5923 All callers updated.
5924 (load_full_comp_unit_reader): New function.
5925 (load_full_comp_unit): Rewrite.
5926 (read_comp_unit): Delete.
5927 (read_die_and_children_1): Delete, contents moved ...
5928 (read_die_and_children): ... here.
5929 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5930 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5931 All callers updated.
5932 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5933 All callers updated.
5934 (find_partial_die): Rewrite load_all_dies support.
5935 (read_attribute_value): New arg reader. Delete args abfd, cu.
5936 All callers updated.
5937 (read_attribute): New arg reader. Delete args abfd, cu.
5938 All callers updated.
5939 (load_full_type_unit): Add assert.
5940 (read_signatured_type_reader): New function.
5941 (read_signatured_type): Rewrite.
5942 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5943 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5944 All callers updated. Set per_cu->cu = NULL after freeing it.
5945 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5946 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5947 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5948 (set_die_type): Update.
5949 (get_die_type_at_offset): Update.
5950 (read_file_scope): Call prepare_one_comp_unit.
5951 (read_type_unit_scope): Ditto.
5952 (prepare_one_comp_unit): Set producer if present.
5954 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5956 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5957 gettext function on `error'.
5959 2012-04-27 Doug Evans <dje@google.com>
5961 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5964 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5965 Tom Tromey <tromey@redhat.com>
5967 * breakpoint.c (struct breakpoint_objfile_data)
5968 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5969 <exception_probes>: New fields.
5970 (free_breakpoint_probes): New function.
5971 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5972 `_Unwind_DebugHook'.
5973 (create_exception_master_breakpoint): Likewise.
5974 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5975 * infrun.c: Including necessary header files for handling SystemTap
5977 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5978 via SystemTap probes.
5979 (check_exception_resume): Remove `func' argument. Handle exception
5980 unwinding breakpoint set via a SystemTap probe.
5981 (insert_exception_resume_from_probe): New function.
5983 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5984 Tom Tromey <tromey@redhat.com>
5985 Jan Kratochvil <jan.kratochvil@redhat.com>
5987 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5988 (COMMON_OBS): Likewise.
5989 (HFILES_NO_SRCDIR): Add `probe'.
5990 * NEWS: Mention support for static and SystemTap probes.
5991 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5992 SystemTap probes' arguments parser.
5993 * arm-linux-tdep.c: Including headers needed to perform the parsing
5994 of SystemTap probes' arguments.
5995 (arm_stap_is_single_operand): New function.
5996 (arm_stap_parse_special_token): Likewise.
5997 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5998 probes' arguments parser.
5999 * ax-gdb.c (require_rvalue): Removing static declaration.
6000 (gen_expr): Likewise.
6001 * ax-gdb.h (gen_expr): Declaring function.
6002 (require_rvalue): Likewise.
6003 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6004 (bkpt_probe_breakpoint_ops): New variable.
6005 (momentary_breakpoint_from_master): Set the `probe' value.
6006 (add_location_to_breakpoint): Likewise.
6007 (break_command_1): Using proper breakpoint_ops according to the
6008 argument passed by the user in the command line.
6009 (bkpt_probe_insert_location): New function.
6010 (bkpt_probe_remove_location): Likewise.
6011 (bkpt_probe_create_sals_from_address): Likewise.
6012 (bkpt_probe_decode_linespec): Likewise.
6013 (tracepoint_probe_create_sals_from_address): Likewise.
6014 (tracepoint_probe_decode_linespec): Likewise.
6015 (tracepoint_probe_breakpoint_ops): New variable.
6016 (trace_command): Using proper breakpoint_ops according to the
6017 argument passed by the user in the command line.
6018 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6019 static probes on breakpoints and tracepoints.
6020 * breakpoint.h (struct bp_location) <probe>: New field.
6021 * cli-utils.c (skip_spaces_const): New function.
6022 (extract_arg): Likewise.
6023 * cli-utils.h (skip_spaces_const): Likewise.
6024 (extract_arg): Likewise.
6025 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6026 * configure.ac: Append `stap-probe.o' to be generated when ELF
6028 * configure: Regenerate.
6029 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6030 * elfread.c: Include `probe.h' and `arch-utils.h'.
6031 (probe_key): New variable.
6032 (elf_get_probes): New function.
6033 (elf_get_probe_argument_count): Likewise.
6034 (elf_evaluate_probe_argument): Likewise.
6035 (elf_compile_to_ax): Likewise.
6036 (elf_symfile_relocate_probe): Likewise.
6037 (stap_probe_key_free): Likewise.
6038 (elf_probe_fns): New variable.
6039 (elf_sym_fns): Add `sym_probe_fns' value.
6040 (elf_sym_fns_lazy_psyms): Likewise.
6041 (elf_sym_fns_gdb_index): Likewise.
6042 (_initialize_elfread): Initialize objfile cache for static
6044 * gdb_vecs.h (struct probe): New forward declaration.
6045 (probe_p): New VEC declaration.
6046 * gdbarch.c: Regenerate.
6047 * gdbarch.h: Regenerate.
6048 * gdbarch.sh (stap_integer_prefix): New variable.
6049 (stap_integer_suffix): Likewise.
6050 (stap_register_prefix): Likewise.
6051 (stap_register_suffix): Likewise.
6052 (stap_register_indirection_prefix): Likewise.
6053 (stap_register_indirection_suffix): Likewise.
6054 (stap_gdb_register_prefix): Likewise.
6055 (stap_gdb_register_suffix): Likewise.
6056 (stap_is_single_operand): New function.
6057 (stap_parse_special_token): Likewise.
6058 (struct stap_parse_info): Forward declaration.
6059 * i386-tdep.c: Including headers needed to perform the parsing
6060 of SystemTap probes' arguments.
6061 (i386_stap_is_single_operand): New function.
6062 (i386_stap_parse_special_token): Likewise.
6063 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6064 probes' arguments parser.
6065 * i386-tdep.h (i386_stap_is_single_operand): New function.
6066 (i386_stap_parse_special_token): Likewise.
6067 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6068 * mipsread.c (ecoff_sym_fns): Likewise.
6069 * objfiles.c (objfile_relocate1): Support relocation for static
6071 * parse.c (prefixify_expression): Remove static declaration.
6072 (initialize_expout): Likewise.
6073 (reallocate_expout): Likewise.
6074 * parser-defs.h (initialize_expout): Declare function.
6075 (reallocate_expout): Likewise.
6076 (prefixify_expression): Likewise.
6077 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6078 of SystemTap probes' arguments.
6079 (ppc_stap_is_single_operand): New function.
6080 (ppc_stap_parse_special_token): Likewise.
6081 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6082 probes' arguments parser.
6083 * probe.c: New file, for generic statically defined probe support.
6084 * probe.h: Likewise.
6085 * s390-tdep.c: Including headers needed to perform the parsing of
6086 SystemTap probes' arguments.
6087 (s390_stap_is_single_operand): New function.
6088 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6089 probes' arguments parser.
6090 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6091 * stap-probe.c: New file, for SystemTap probe support.
6092 * stap-probe.h: Likewise.
6093 * symfile.h: Include `gdb_vecs.h'.
6094 (struct sym_probe_fns): New struct.
6095 (struct sym_fns) <sym_probe_fns>: New field.
6096 * symtab.c (init_sal): Initialize `probe' field.
6097 * symtab.h (struct probe): Forward declaration.
6098 (struct symtab_and_line) <probe>: New field.
6099 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6101 (stop_tracing): Likewise.
6102 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6104 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6105 Tom Tromey <tromey@redhat.com>
6107 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6108 and to compile agent expressions.
6109 * infrun.c (siginfo_make_value): New argument `ignore'.
6110 (siginfo_funcs): New struct.
6111 (_initialize_infrun): New argument when calling
6112 `create_internalvar_type_lazy'.
6113 * thread.c (thread_id_make_value): New argument `ignore'.
6114 (thread_funcs): New struct.
6115 (_initialize_thread): New argument when calling
6116 `create_internalvar_type_lazy'.
6117 * tracepoint.c (sdata_make_value): New argument `ignore'.
6118 (sdata_funcs): New struct.
6119 (_initialize_tracepoint): New argument when calling
6120 `create_internalvar_type_lazy'.
6121 * value.c (make_value): New struct.
6122 (create_internalvar_type_lazy): New argument `data'.
6123 (compile_internalvar_to_ax): New function.
6124 (value_of_internalvar): Properly handling `make_value' case.
6125 (clear_internalvar): Likewise.
6126 (show_convenience): Adding `TRY_CATCH' block.
6127 * value.h (internalvar_make_value): Delete, replace by...
6128 (struct internalvar_funcs): ... this.
6129 (create_internalvar_type_lazy) <fun>: Delete argument.
6130 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6131 (compile_internalvar_to_ax): New function.
6132 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6133 (tlb_funcs): New struct.
6134 (_initialize_windows_tdep): New argument when calling
6135 `create_internalvar_type_lazy'.
6137 2012-04-27 Mark Wielaard <mjw@redhat.com>
6139 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6140 see whether it is an address or a constant offset from DW_AT_low_pc.
6141 (dwarf2_record_block_ranges): Likewise.
6142 (read_partial_die): Likewise.
6144 2012-04-26 Mark Wielaard <mjw@redhat.com>
6146 * MAINTAINERS (Write After Approval): Add myself to the list.
6148 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6150 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6151 (proc_prettyprint_signal): Likewise.
6152 (proc_prettyprint_faultset): Likewise.
6153 (proc_prettyprint_fault): Likewise.
6154 (proc_prettyprint_actionset): Likewise.
6155 (proc_prettyprint_flags): Move to new proc-flags.c section.
6156 (proc_prettyfprint_flags): New prototype.
6157 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6158 (proc_syscall, proc_cursig): Likewise.
6159 (proc_set_kill_on_last_close): Likewise.
6160 (proc_unset_kill_on_last_close): Likewise.
6161 (proc_set_watchpoint): Make static.
6162 (proc_delete_dead_threads): Likewise.
6163 (procfs_set_watchpoint): Likewise.
6164 (_initialize_procfs): Add prototype.
6165 * proc-events.c: Include proc-utils.h.
6166 (init_syscall_table): Make static.
6167 * proc-api.c (_initialize_proc_api): Add prototype.
6168 * proc-flags.c: Include proc-utils.h.
6170 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6172 * configure.ac: Add AC_ARG_PROGRAM.
6173 * configure: Regenerate.
6175 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6177 Fix DW_AT_lower_bound defaults for DWARF-4+.
6178 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6179 high. New variable low_default_is_valid. Implement DWARF-4+
6180 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6181 no default by the DWARF standard.
6183 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6184 Maciej W. Rozycki <macro@codesourcery.com>
6186 * infrun.c (handle_inferior_event): Move the check for return
6187 trampolines ahead of the check for function trampolines.
6188 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6189 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6190 (mips_str_mips16_ret_stub): Likewise.
6191 (mips_str_call_fp_stub): Likewise.
6192 (mips_str_call_stub): Likewise.
6193 (mips_str_fn_stub): Likewise.
6194 (mips_str_pic): Likewise.
6195 (mips_in_frame_stub): New function.
6196 (mips_unwind_pc): Return the return address rather than the PC
6197 if the PC of an intermediate frame is inside a call thunk.
6198 (mips_is_stub_suffix): New function.
6199 (mips_is_stub_mode): Likewise.
6200 (mips_get_mips16_fn_stub_pc): Likewise.
6201 (mips_skip_mips16_trampoline_code): Update to handle all the
6202 currently generated stub types. Don't recurse into __fn_stub
6203 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6204 Use cooked register accesses.
6205 (mips_in_return_stub): Reintroduce function.
6206 (mips_skip_trampoline_code): Traverse trampolines recursively.
6207 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6209 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6213 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6215 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6216 * features/arm-with-m-vfp-d16.xml: New file. Describes
6217 Cortex-M with VFPv4-sp-d16 FPU register layout.
6218 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6219 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6220 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6221 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6222 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6224 2012-04-25 Doug Evans <dje@google.com>
6226 * cli/cli-decode.c (print_doc_line): Use stream instead of
6229 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6231 * features/arm-with-iwmmxt.c: Regenerate.
6232 * features/arm-with-m-fpa-layout.c: Likewise.
6233 * features/arm-with-m.c: Likewise.
6234 * features/arm-with-neon.c: Likewise.
6235 * features/arm-with-vfpv2.c: Likewise.
6236 * features/arm-with-vfpv3.c: Likewise.
6237 * features/mips-dsp-linux.c: Likewise.
6238 * features/mips-linux.c: Likewise.
6239 * features/mips64-dsp-linux.c: Likewise.
6240 * features/mips64-linux.c: Likewise.
6241 * features/s390-linux32.c: Likewise.
6242 * features/s390-linux32v1.c: Likewise.
6243 * features/s390-linux32v2.c: Likewise.
6244 * features/s390-linux64.c: Likewise.
6245 * features/s390-linux64v1.c: Likewise.
6246 * features/s390-linux64v2.c: Likewise.
6247 * features/s390x-linux64.c: Likewise.
6248 * features/s390x-linux64v1.c: Likewise.
6249 * features/s390x-linux64v2.c: Likewise.
6250 * features/tic6x-c62x-linux.c: Likewise.
6251 * features/tic6x-c62x.c: Likewise.
6252 * features/tic6x-c64x-linux.c: Likewise.
6253 * features/tic6x-c64x.c: Likewise.
6254 * features/tic6x-c64xp-linux.c: Likewise.
6255 * features/tic6x-c64xp.c: Likewise.
6256 * target-descriptions.c: Only generate `field_type' and `type'
6257 variables when needed.
6259 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6261 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6263 2012-04-25 Doug Evans <dje@google.com>
6265 Initial pass at Go language support.
6267 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6269 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6270 (YYFILES): Add go-exp.c.
6271 (YYOBJ): Add go-exp.o.
6272 (local-maintainer-clean): Delete go-exp.c.
6273 * defs.h (enum language): Add language_go.
6274 * dwarf2read.c: #include "go-lang.h".
6275 (fixup_go_packaging): New function.
6276 (process_full_comp_unit): Call it when processing Go CUs.
6277 (dwarf2_physname): Add Go support.
6278 (read_file_scope): Handle missing language spec for GNU Go.
6279 (set_cu_language): Handle DW_LANG_Go.
6280 * go-exp.y: New file.
6281 * go-lang.h: New file.
6282 * go-lang.c: New file.
6283 * go-typeprint.c: New file.
6284 * go-valprint.c: New file.
6285 * symtab.c: #include "go-lang.h".
6286 (symbol_set_language): Handle language_go.
6287 (symbol_find_demangled_name, symbol_set_names): Ditto.
6288 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6290 2012-04-24 Jim Meyering <meyering@redhat.com>
6292 avoid a few strncpy-induced buffer overruns
6293 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6294 fname and psargs before trying to concatenate.
6295 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6296 "name" before applying strchr.
6298 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6300 * CONTRIBUTE: Use unified diff instead of context diff when
6303 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6305 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6306 code. Handle JR.HB correctly.
6308 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6311 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6312 with the other MIPS16 helpers.
6314 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6316 * observer.sh: Conditionally declare `args', thus cleaning up
6317 unused instances of this variable.
6319 2012-04-24 Yao Qi <yao@codesourcery.com>
6321 Revert this patch to allow breakpoint always-inserted
6323 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6324 * breakpoint.c: Include record.h.
6325 (breakpoints_always_inserted_mode): Return false when the record
6328 * breakpoint.c (iterate_over_bp_locations): New.
6329 * breakpoint.h: Declare.
6330 New typedef walk_bp_location_callback.
6331 * record.c (record_open): Call record_init_record_breakpoints.
6332 (record_sync_record_breakpoints): New.
6333 (record_init_record_breakpoints): New.
6334 * NEWS: Mention supporting breakpoint always-inserted mode in
6337 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6339 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6342 2012-04-24 Yao Qi <yao@codesourcery.com>
6344 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6345 (is_catchpoint): ... it.
6346 (print_one_breakpoint_location): Caller update.
6347 * breakpoint.h: Update declaration.
6349 2012-04-23 David S. Miller <davem@davemloft.net>
6351 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6353 2012-04-23 Tom Tromey <tromey@redhat.com>
6355 * buildsym.c (add_free_pendings): Remove.
6356 * buildsym.h (add_free_pendings): Remove.
6358 2012-04-23 Doug Evans <dje@google.com>
6360 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6361 attr.u.unsnd instead of attr.u.addr.
6362 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6363 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6365 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6366 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6368 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6370 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6372 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6373 (mips_o32_return_value): Likewise.
6374 (mips_o64_return_value): Likewise.
6376 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6378 * ada-lang.c (ada_evaluate_subexp): Add cases for
6379 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6380 their treatment in eval.c.
6382 2012-04-21 David S. Miller <davem@davemloft.net>
6384 * sparc-tdep.c (X_DISP10): Define.
6385 (sparc_analyze_control_transfer): Handle compare-and-branch.
6387 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6389 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6390 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6392 2012-04-20 Nigel Stephens <nigel@mips.com>
6393 Maciej W. Rozycki <macro@codesourcery.com>
6395 * mips-tdep.c (mips_float_register_p): New function.
6396 (mips_convert_register_float_case_p): Use mips_float_register_p.
6397 (mips_register_type): Likewise.
6398 (mips_print_register): Likewise.
6399 (print_gp_register_row): Likewise.
6400 (mips_print_registers_info): Likewise.
6402 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6404 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6407 2012-04-20 Andrew Pinski <apinski@cavium.com>
6409 * MAINTAINERS (Write After Approval): Add myself to the list.
6411 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6413 * MAINTAINERS: Update my e-mail address.
6415 2012-04-20 Pedro Alves <palves@redhat.com>
6417 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6419 * configure: Regenerate.
6421 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6423 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6425 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6427 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6429 Fix compilation compatibility with python-2.4
6430 * python/py-type.c (convert_field): Cast ADDRSTRING for
6431 PyObject_SetAttrString as non-const. New comment.
6433 2012-04-19 Tom Tromey <tromey@redhat.com>
6435 * top.c (quit_target): Use all_cleanups.
6436 * main.c (captured_command_loop): Use all_cleanups.
6437 * exceptions.c (throw_exception): Use all_cleanups.
6439 2012-04-19 Pedro Alves <palves@redhat.com>
6441 * Makefile.in (GNULIB_BUILDDIR): New.
6442 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6443 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6444 (CLEANDIRS). Remove gnulib/import.
6445 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6447 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6448 (gnulib/import/Makefile): Replace gnulib/import with
6449 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6450 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6451 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6452 acx_configure_dir.m4.
6453 * acinclude.m4: Include acx_configure_dir.m4.
6454 * acx_configure_dir.m4: New file.
6455 * aclocal.m4: Regenerate.
6456 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6457 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6458 (GNULIB): New variable.
6459 (GNULIB_STDINT_H): Adjust.
6460 (AC_OUTPUT): Don't output gnulib/Makefile.
6461 * gdb/defs.h: Include build-gnulib/config.h.
6462 * aclocal.m4: Regenerate.
6463 * config.in: Regenerate.
6464 * configure: Regenerate.
6466 * gnulib/Makefile.in: New file.
6467 * gnulib/configure.ac: New file.
6468 * gnulib/aclocal.m4: New file.
6469 * gnulib/config.in: New file.
6470 * gnulib/configure: New file.
6471 * gnulib/: Re-run gnulib-tool to adjust.
6473 2012-04-19 Doug Evans <dje@google.com>
6475 * cleanups.h (struct cleanup): Move to cleanups.c.
6476 (make_cleanup_dtor_ftype): New typedef.
6477 (make_cleanup_dtor): Use it.
6478 (ALL_CLEANUPS): Replace with ...
6479 (all_cleanups): ... this. Declare. All uses updated.
6480 * cleanups.c: #include "gdb_assert.h".
6481 (sentinel_cleanup): New static global.
6482 (SENTINEL_CLEANUP): Define.
6483 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6484 (make_my_cleanup2): Assert result is non-NULL.
6485 (all_cleanups): New function.
6486 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6489 2012-04-19 Pedro Alves <palves@redhat.com>
6491 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6492 Adjust paths to gnulib imported files.
6494 2012-04-19 Pedro Alves <palves@redhat.com>
6496 * gnulib/: Move whole directory ...
6497 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6498 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6499 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6500 (aclocal_m4_deps): Adjust.
6501 * aclocal.m4: Regenerate.
6502 * configure: Regenerate.
6503 * configure.ac: Adjust AC_OUTPUT output.
6505 2012-04-19 Yao Qi <yao@codesourcery.com>
6507 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6509 * vec.c: Move it ...
6510 * common/vec.c: ... here.
6511 * vec.h: Move it ...
6512 * common/vec.h: ... here.
6514 2012-04-19 Yao Qi <yao@codesourcery.com>
6516 * gdb-code-style.el: New.
6518 2012-04-18 Pedro Alves <palves@redhat.com>
6520 Update gnulib from latest git.
6521 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6523 * gnulib/Makefile.am: Update.
6524 * gnulib/dummy.c: Update.
6525 * gnulib/extra/arg-nonnull.h: Update.
6526 * gnulib/extra/c++defs.h: Update.
6527 * gnulib/extra/update-copyright: Update.
6528 * gnulib/extra/warn-on-use.h: Update.
6529 * gnulib/inttypes.in.h: Update.
6530 * gnulib/m4/00gnulib.m4: Update.
6531 * gnulib/m4/extensions.m4: Update.
6532 * gnulib/m4/gnulib-cache.m4: Update.
6533 * gnulib/m4/gnulib-common.m4: Update.
6534 * gnulib/m4/gnulib-comp.m4: Update.
6535 * gnulib/m4/gnulib-tool.m4: Update.
6536 * gnulib/m4/include_next.m4: Update.
6537 * gnulib/m4/inttypes-pri.m4: Update.
6538 * gnulib/m4/inttypes.m4: Update.
6539 * gnulib/m4/longlong.m4: Update.
6540 * gnulib/m4/memchr.m4: Update.
6541 * gnulib/m4/memmem.m4: Update.
6542 * gnulib/m4/mmap-anon.m4: Update.
6543 * gnulib/m4/multiarch.m4: Update.
6544 * gnulib/m4/onceonly.m4: Update.
6545 * gnulib/m4/stddef_h.m4: Update.
6546 * gnulib/m4/stdint.m4: Update.
6547 * gnulib/m4/string_h.m4: Update.
6548 * gnulib/m4/warn-on-use.m4: Update.
6549 * gnulib/m4/wchar_h.m4: Update.
6550 * gnulib/m4/wchar_t.m4: Update.
6551 * gnulib/m4/wint_t.m4: Update.
6552 * gnulib/memchr.c: Update.
6553 * gnulib/memmem.c: Update.
6554 * gnulib/stddef.in.h: Update.
6555 * gnulib/stdint.in.h: Update.
6556 * gnulib/str-two-way.h: Update.
6557 * gnulib/string.in.h: Update.
6558 * gnulib/wchar.in.h: Update.
6560 * gnulib/extra/arg-nonnull.h: Delete.
6561 * gnulib/extra/c++defs.h: Delete.
6562 * gnulib/extra/warn-on-use.h: Delete.
6563 * gnulib/m4/wchar_h.m4: Delete.
6564 * gnulib/m4/wint_t.m4: Delete.
6565 * gnulib/wchar.in.h: Delete.
6567 * gnulib/extra/snippets/arg-nonnull.h: New.
6568 * gnulib/extra/snippets/c++defs.h: New.
6569 * gnulib/extra/snippets/warn-on-use.h: New.
6571 * aclocal.m4: Regenerate.
6572 * config.in: Regenerate.
6573 * configure: Regenerate.
6574 * gnulib/Makefile.in: Regenerate.
6576 2012-04-18 Pedro Alves <palves@redhat.com>
6578 Reimport the update-copyright module from gnulib
6579 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6581 * configure: Regenerate.
6582 * gnulib/Makefile.am: Update.
6583 * gnulib/Makefile.in: Regenerate.
6584 * gnulib/extra/update-copyright: Update.
6585 * gnulib/m4/gnulib-cache.m4: Update.
6586 * gnulib/m4/gnulib-comp.m4: Update.
6588 2012-04-18 Tristan Gingold <gingold@adacore.com>
6590 * configure.ac (aix): Put -lpthread into libs.
6591 * configure: Regenerate.
6593 2012-04-18 Tom Tromey <tromey@redhat.com>
6595 * linespec.c (convert_linespec_to_sals): Don't use
6597 (compare_msymbols): Arguments are minsym_and_objfile, not
6598 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6600 2012-04-18 Pedro Alves <palves@redhat.com>
6602 Revert gnulib/ part of:
6603 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6604 Copyright year update in most files (performed by copyright.sh).
6606 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6608 Fix 64-bit constants on 32-bit hosts.
6609 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6610 from unsigned long to ULONGEST.
6611 (read_signed_leb128): Change declaration return type from long to
6613 (dwarf2_const_value_attr): Change declaration parameter value from long
6615 (dwarf2_compute_name): Change variable value from long to LONGEST.
6616 (read_unsigned_leb128): Change return type, variable result and some
6617 casts from unsigned long to ULONGEST.
6618 (read_signed_leb128): Change return type, variable result and some
6619 casts from long to LONGEST.
6620 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6621 value from long to LONGEST.
6622 (dwarf2_const_value): Change variable value from long to LONGEST.
6623 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6624 plongest and hex_string.
6625 * symtab.h (struct general_symbol_info): Change ivalue from long to
6626 LONGEST, remove the comment.
6627 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6628 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6630 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6633 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6634 * ada-lang.c (ada_discrete_type_high_bound)
6635 (ada_discrete_type_low_bound): Fix function comment. Use
6636 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6637 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6638 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6639 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6640 Use TYPE_FIELD_ENUMVAL.
6641 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6642 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6643 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6644 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6646 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6647 * dwarf2read.c (process_enumeration_scope): Likewise.
6648 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6650 (class StructMainTypePrettyPrinter): Support also
6651 FIELD_LOC_KIND_ENUMVAL.
6652 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6654 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6655 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6656 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6657 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6659 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6660 accommodate enumval.
6661 (struct call_site): Adjust loc_kind to accommodate enumval.
6662 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6663 (TYPE_FIELD_ENUMVAL): New macros.
6664 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6665 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6667 * p-typeprint.c (pascal_type_print_base): Likewise.
6668 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6670 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6671 * python/py-type.c (convert_field): New variable addrstring. Use
6672 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6673 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6674 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6675 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6677 * valprint.c (generic_val_print): Likewise.
6679 2012-04-17 Doug Evans <dje@google.com>
6681 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6683 * dwarf2read.c: Whitespace fixes.
6684 (lookup_signatured_type): Tweak comment.
6685 (get_die_type_at_offset): Fix comment.
6687 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6689 * xcoffread.c (xcoff_secnum_to_sections): New function.
6690 (secnum_to_section, secnum_to_bfd_section): Reimplement
6691 using xcoff_secnum_to_sections. Rename "secnum" parameter
6693 (RECORD_MINIMAL_SYMBOL): Delete.
6694 (record_minimal_symbol): New function.
6695 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6696 by call to record_minimal_symbol and set misc_func_recorded
6697 to 1. Set last_csect_sec to the XCOFF section index instead
6698 of GDB's section_offset index. Update calls to
6699 prim_record_minimal_symbol_and_info to pass the BFD section
6702 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6704 * xcoffread.c (read_xcoff_symtab): Delete variables
6705 last_csect_val and last_csect_sec and associated code.
6707 2012-04-17 Doug Evans <dje@google.com>
6709 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6710 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6711 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6712 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6714 * cleanups.h: New file.
6715 * cleanups.c: New file.
6716 * Makefile.in (SFILES): Add cleanups.c.
6717 (HFILES_NO_SRCDIR): Add cleanups.h.
6718 (COMMON_OBS): Add cleanups.o.
6719 * defs.h (struct cleanup): Moved to cleanups.h.
6720 (do_cleanups,do_final_cleanups): Ditto.
6721 (discard_cleanups,discard_final_cleanups): Ditto
6722 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6723 (save_cleanups,save_final_cleanups): Ditto.
6724 (restore_cleanups,restore_final_cleanups): Ditto.
6725 (null_cleanup): Ditto.
6726 (make_my_cleanup,make_my_cleanup2): Ditto.
6727 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6728 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6729 (do_cleanups,do_final_cleanups): Ditto.
6730 (discard_cleanups,discard_final_cleanups): Ditto
6731 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6732 (save_cleanups,save_final_cleanups): Ditto.
6733 (restore_cleanups,restore_final_cleanups): Ditto.
6734 (null_cleanup): Ditto.
6735 (make_my_cleanup,make_my_cleanup2): Ditto.
6736 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6738 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6740 (make_cleanup_dyn_string_delete): Ditto.
6741 (make_cleanup_ui_file_delete): Ditto.
6742 (make_cleanup_ui_out_redirect_pop): Ditto.
6743 (make_cleanup_free_section_addr_info): Ditto.
6744 (make_cleanup_restore_integer): Ditto.
6745 (make_cleanup_unpush_target): Ditto.
6746 (make_cleanup_value_free_to_mark): Ditto.
6747 (make_cleanup_value_free): Ditto.
6748 (make_cleanup_free_so): Ditto.
6750 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 New option "set debug auto-load".
6753 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6754 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6755 (auto_load_safe_path_vec_update)
6756 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6758 (file_is_auto_load_safe): New parameters debug_fmt and ....
6759 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6760 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6761 caller by explanatory string.
6762 (_initialize_auto_load): Register "set debug auto-load".
6763 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6765 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6766 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6767 by explanatory string.
6768 * main.c (captured_main): Likewise.
6769 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6770 (source_section_scripts): Likewise.
6772 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6774 New option "set auto-load safe-path".
6775 * NEWS: New commands "set auto-load safe-path"
6776 and "show auto-load safe-path".
6777 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6778 (auto_load_safe_path, auto_load_safe_path_vec)
6779 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6780 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6781 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6782 (source_gdb_script_for_objfile): New variable is_safe. Call
6783 file_is_auto_load_safe. Return if it is not.
6784 (struct loaded_script): New field loaded.
6785 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6786 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6787 output "Missing" to "No".
6788 (_initialize_auto_load): New variable cmd. Initialize
6789 auto_load_safe_path. Register "set auto-load safe-path",
6790 "show auto-load safe-path" and "add-auto-load-safe-path".
6791 * auto-load.h (maybe_add_script): Add parameter loaded.
6792 (file_is_auto_load_safe): New declaration.
6793 * config.in: Regenerate.
6794 * configure: Regenerate.
6795 * configure.ac: New parameters --with-auto-load-safe-path
6796 and --without-auto-load-safe-path.
6797 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6798 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6799 * main.c (captured_main): Check file_is_auto_load_safe for
6801 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6802 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6803 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6806 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6808 auto-load: Implementation.
6809 * NEWS: New descriptions for "info auto-load",
6810 "info auto-load gdb-scripts", "info auto-load python-scripts",
6811 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6812 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6813 and "show auto-load-scripts". New description for "set auto-load",
6814 "show auto-load", "set auto-load gdb-scripts",
6815 "show auto-load gdb-scripts", "set auto-load python-scripts",
6816 "show auto-load python-scripts", "set auto-load local-gdbinit",
6817 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6818 "show auto-load libthread-db".
6819 * auto-load.c: Remove include python/python-internal.h. Add includes
6820 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6822 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6823 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6824 (gdbpy_global_auto_load): Rename to ...
6825 (global_auto_load): ... here.
6826 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6827 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6828 (script_language_gdb, source_gdb_script_for_objfile): New.
6829 (struct loaded_script): New field language.
6830 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6832 (maybe_add_script): Add parameter language. Drop redundant
6833 entry.full_path initialization. Initialize entry.language and
6835 (auto_load_objfile_script): Change parameter suffix to language.
6836 Remove the call of maybe_add_script.
6837 Call language->source_script_for_objfile.
6838 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6840 (collect_matching_scripts): Adjust it for
6841 struct collect_matching_scripts_data.
6842 (auto_load_info_scripts_pattern_nl): New variable.
6843 (info_auto_load_scripts): Rename to ...
6844 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6845 for struct collect_matching_scripts_data.
6846 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6847 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6848 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6849 (auto_load_info_cmdlist_get): New.
6850 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6851 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6852 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6853 "info auto-load local-gdbinit".
6854 * auto-load.h (struct script_language): New.
6855 (gdbpy_global_auto_load): Rename to ...
6856 (global_auto_load): ... here.
6857 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6858 (auto_load_local_gdbinit_loaded): New declarations.
6859 (maybe_add_script): New parameter language.
6860 (auto_load_objfile_script): Change parameter suffix to language.
6861 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6862 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6863 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6865 * linux-thread-db.c: Include auto-load.h and ctype.h.
6866 (auto_load_thread_db, show_auto_load_thread_db): New.
6867 (struct thread_db_info): New field filename.
6868 (delete_thread_db_info): Call xfree for FILENAME.
6869 (try_thread_db_load): Initialize FILENAME.
6870 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6871 if !AUTO_LOAD_THREAD_DB.
6872 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6873 (_initialize_thread_db): Install auto_load_thread_db
6874 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6875 as "info auto-load libthread-db".
6876 * main.c (captured_main): Rename gdbpy_global_auto_load to
6877 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6878 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6879 (print_gdb_help): Extend the help for 'local init file'.
6880 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6881 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6882 (auto_load_scripts): Rename to ...
6883 (auto_load_python_scripts): ... here, update the comment.
6884 (gdbpy_load_auto_script_for_objfile): New declaration.
6885 (show_auto_load_python_scripts, script_language_python)
6886 (gdbpy_load_auto_script_for_objfile): New.
6887 (source_section_scripts): Refactor the code.
6888 (load_auto_scripts_for_objfile): Rename to ...
6889 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6890 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6891 (info_auto_load_python_scripts): New.
6892 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6893 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6894 Register "set auto-load-scripts" as its deprecated alias. Register
6895 "info auto-load python-scripts". Register "info auto-load-scripts" as
6896 its deprecated alias.
6897 (load_auto_scripts_for_objfile): Rename to ...
6898 (gdbpy_load_auto_scripts_for_objfile): ... here.
6899 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6900 (gdbpy_load_auto_scripts_for_objfile): ... here.
6902 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6904 auto-load: Move files.
6905 * Makefile.in (SFILES): Add auto-load.c.
6906 (HFILES_NO_SRCDIR): Add auto-load.h.
6907 (COMMON_OBS): Add auto-load.o.
6908 (distclean): Change .gdbinit for gdb-gdb.gdb.
6909 * auto-load.c: New file, with parts from python/py-auto-load.c.
6910 * auto-load.h: New file, with parts from python/python.h.
6911 * configure: Regenerate.
6912 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6913 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6914 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6915 * main.c: Include auto-load.h.
6916 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6917 command.h, observer.h and progspace.h to auto-load.c. Add include
6919 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6920 (struct loaded_script, auto_load_pspace_data)
6921 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6922 (hash_loaded_script_entry, eq_loaded_script_entry)
6923 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6924 (maybe_add_script): Move to auto-load.c.
6925 (source_section_scripts): Change maybe_add_script parameters passing,
6926 use script_not_found_warning_print.
6927 (clear_section_scripts, auto_load_objfile_script)
6928 (auto_load_new_objfile, loaded_script_ptr)
6929 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6930 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6931 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6932 auto_load_new_objfile and info_auto_load_scripts initizations to
6934 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6936 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6939 * charset.c (find_charset_names): Remove variables ix and elt.
6940 Use free_char_ptr_vec.
6941 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6942 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6943 debugdir_end. New variable debugdir_len.
6944 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6945 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6947 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6948 and elt. Use free_char_ptr_vec.
6949 * source.c (add_path): Remove variables argv, arg and argv_index.
6950 New variables dir_vec, back_to, ix and name.
6951 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6952 make_cleanup_freeargv. Remove variable separator. Simplify the code
6953 no longer expecting DIRNAME_SEPARATOR.
6954 (openp): Remove variable p, p1 and len. New variables dir_vec,
6955 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6956 no longer expecting DIRNAME_SEPARATOR.
6957 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6958 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6960 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6961 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6962 (dirnames_to_char_ptr_vec): New functions.
6964 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6967 * source.c (add_path): Remove always true conditional 'p == 0' and
6968 unindent its code block.
6970 2012-04-17 Pedro Alves <palves@redhat.com>
6972 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6973 (FIELD_BITPOS_LVAL): ... this.
6974 (FIELD_BITPOS): New.
6975 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6976 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6977 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6979 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6981 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6982 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6983 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6986 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6988 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6989 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6990 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6991 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6992 * jv-lang.c (java_link_class_type): Likewise, once.
6993 * stabsread.c (read_enum_type): Likewise.
6995 2012-04-16 Yao Qi <yao@codesourcery.com>
6997 * common/agent.c (agent_run_command): Add one more parameter `len'.
6999 * common/agent.h: Update declaration.
7000 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7002 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7004 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7007 * value.c (value_actual_type): New function.
7008 * value.h (value_actual_type): New declaration.
7009 * varobj.c (update_type_if_necessary): New function.
7010 (varobj_create): Call value_actual_type instead of
7012 (install_dynamic_child): distinct changed and type changed MI variable
7014 (update_dynamic_varobj_children): Updated for install_dynamic_child
7015 change. All callers updated.
7016 (varobj_update): Support for MI variable object type change if
7017 the value changed and RTTI is used to determine the type.
7018 (create_child_with_value): Call value_actual_type instead of
7020 (adjust_value_for_child_access): Extended with a new parameter which
7021 specify whether the given value should be casted to enclosing type.
7022 All callers updated.
7024 2012-04-14 Yao Qi <yao@codesourcery.com>
7026 Import gnulib module inttypes from git
7027 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7028 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7029 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7030 gnulib/m4/inttypes-pri.m4
7031 * aclocal.m4, config.in, configure: Regenerated.
7032 * gnulib/Makefile.am: Update.
7033 * gnulib/Makefile.in: Update.
7034 * gnulib/m4/gnulib-cache.m4: Update.
7035 * gnulib/m4/gnulib-comp.m4: Update.
7036 * gnulib/inttypes.in.h: New.
7037 * gnulib/m4/inttypes-pri.m4: New.
7038 * gnulib/m4/inttypes.m4: New.
7040 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7042 * infrun.c (resume): Update PC address to the real PC after
7043 preparing to do displaced stepping.
7045 2012-04-12 Doug Evans <dje@google.com>
7047 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7048 All callers updated.
7050 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7052 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7054 2012-04-12 Doug Evans <dje@google.com>
7056 * dwarf2read.c (create_all_type_units): Renamed from
7057 create_debug_types_hash_table. All callers updated.
7059 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7060 local type_sig to sig_type, type_offset to type_offset_in_tu.
7061 (hash_signatured_type): Renamed from hash_type_signature,
7062 all callers updated.
7063 (eq_signatured_type): Renamed from eq_type_signature,
7064 all callers updated.
7065 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7066 (process_enumeration_scope): Ditto.
7067 (lookup_signatured_type_at_offset): Ditto.
7068 (load_full_type_unit, read_signatured_type): Ditto.
7070 2012-04-12 Yao Qi <yao@codesourcery.com>
7072 * remote.c (async_remote_interrupt): Correct function name in
7074 (async_remote_interrupt_twice): Ditto.
7076 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7078 * source.c (find_and_open_source): Consistently pass resulting
7079 full path through xfullpath.
7081 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7083 Provide more specific displaced-stepping memory error message.
7084 * infrun.c (displaced_step_prepare): New variable status. Call
7085 target_read_memory instead of read_memory, provide more specific
7088 2012-04-11 Tristan Gingold <gingold@adacore.com>
7091 * darwin-nat.c (darwin_execvp): Revert previous patch.
7093 2012-04-11 Tristan Gingold <gingold@adacore.com>
7096 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7099 2012-04-11 Tristan Gingold <gingold@adacore.com>
7101 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7104 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7106 New command 'explore' which helps explore values and types in
7108 * NEWS: Add an entry about the new 'explore' command.
7109 * data-directory/Makefile.in: Add gdb/command/explore.py
7110 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7111 command using the GDB Python API.
7113 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7115 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7116 extension in jump target calculation.
7118 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7120 * mips-tdep.c (mips32_next_pc): Handle JALX.
7122 2012-04-10 Yao Qi <yao@codesourcery.com>
7124 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7126 2012-04-10 Yao Qi <yao@codesourcery.com>
7128 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7129 and gnulib/m4/gnulib-tool.m4.
7131 2012-04-10 Doug Evans <dje@google.com>
7133 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7134 (load_partial_dies): Clarify comment.
7135 (find_partial_die): Support rereading type units.
7136 Clarify CU handling, if we know offset is in CU, don't search for the
7137 containing CU. Add comment regarding memory waste.
7139 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7141 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7142 i386/x32-avx and i386/x32-avx-linux.
7143 (i386/x32-expedite): New.
7144 (i386/x32-linux-expedite): Likewise.
7145 (i386/x32-avx-expedite): Likewise.
7146 (i386/x32-avx-linux-expedite): Likewise.
7147 ($(outdir)/i386/x32.dat): Likewise.
7148 ($(outdir)/i386/x32-linux.dat): Likewise.
7149 ($(outdir)/i386/x32-avx.dat): Likewise.
7150 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7152 * features/i386/x32-avx-linux.xml: New file.
7153 * features/i386/x32-avx.xml: Likewise.
7154 * features/i386/x32-core.xml: Likewise.
7155 * features/i386/x32-linux.xml: Likewise.
7156 * features/i386/x32.xml: Likewise.
7158 * features/i386/x32-avx-linux.c: New. Generated.
7159 * features/i386/x32-avx.c: Likewise.
7160 * features/i386/x32-linux.c: Likewise.
7161 * features/i386/x32.c: Likewise.
7162 * regformats/i386/x32-avx-linux.dat: Likewise.
7163 * regformats/i386/x32-avx.dat: Likewise.
7164 * regformats/i386/x32-linux.dat: Likewise.
7165 * regformats/i386/x32.dat: Likewise.
7167 2012-04-10 Tristan Gingold <gingold@adacore.com>
7169 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7170 code to kill the inferior.
7172 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7174 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7176 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7178 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7179 (yyvsp): New defines.
7180 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7182 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7184 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7186 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7188 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7191 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7193 * sparc64-tdep.c (sparc64_store_arguments)
7194 (sparc64_store_arguments): Fix coding style.
7196 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7198 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7199 complex floats, adjust some related comments and tighten a related
7201 (sparc64_extract_return_value): Handle complex floats.
7203 2012-04-07 Doug Evans <dje@google.com>
7205 * dwarf2read.c (load_partial_dies): Change condition to assert.
7207 2012-04-06 Doug Evans <dje@google.com>
7209 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7212 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7214 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7216 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7217 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7220 2012-04-05 Keith Seitz <keiths@redhat.com>
7222 * linespec.c (decode_compound): Remove.
7223 (enum offset_relative_sign): New enum.
7224 (struct line_offset): New struct.
7225 (struct linespec): New struct.
7226 (struct linespec_state): Move file_symtabs,
7227 user_filename, and user_function into struct linespec.
7228 Make result an anonymous struct holding vectors of
7229 symbolp and minsym_and_objfile_d.
7230 Add language member.
7231 (enum ls_token_type): New enum.
7232 (linespec_keywords): New array.
7233 (struct ls_token): New struct.
7234 (struct ls_parser): New struct.
7235 (linespec_lexer_lex_number): New function.
7236 (linespec_lexer_lex_keyword): New function.
7237 (is_ada_operator): New function.
7238 (skip_quote_char): New function.
7239 (copy_token_string): New function.
7240 (is_closing_quote_enclosed): New function.
7241 (find_parameter_list_end): New function.
7242 (linespec_lexer_lex_string): New function.
7243 (linespec_lexer_lex_one): New function.
7244 (linespec_lexer_consume_token): New function.
7245 (linespec_lexer_peek_token): New function.
7246 (cplusplus_error): Remove unused function.
7247 (find_methods): Update comment.
7248 (find_toplevel_char): Return const.
7249 (is_objc_method_format): Remove unused function.
7250 (find_toplevel_string): New function.
7251 (is_linespec_boundary): Remove.
7252 (symbol_not_found_error): New function.
7253 (find_method_overload_end): Remove function.
7254 (unexpected_linespec_error): New function.
7255 (keep_name_info): Remove.
7256 (linespec_parse_line_offset): New function.
7257 (linespec_parse_basic): New function.
7258 (canonicalize_linespec): New function.
7259 (decode_line_internal): Remove.
7260 (create_sals_line_offset): New function adapted from
7262 (convert_linespec_to_sals): New function.
7263 (parse_linespec): New function.
7264 (linespec_parser_new): New function.
7265 (linespec_state_destructor): Change parameter type to
7266 struct linespec_state *.
7267 Add language parameter.
7268 Remove freeing of moved members.
7269 (linespec_parser_delete): New function.
7270 (decode_line_full): Use parse_linespec and linespec_parser_new.
7271 (decode_line_1): Likewise.
7272 (decode_indirect): Rename to ...
7273 (linespec_expression_to_pc): ... this and rewrite
7274 to simply find CORE_ADDR, storing this result for later
7276 (locate_first_half): Remove.
7277 (deocde_objc): Add parameter LS.
7278 Initialize new struct collect_info members.
7279 Handle minimal symbols, too.
7280 (decode_compound): Delete.
7281 (lookup_prefix_sym): Rewrite.
7282 (compare_msymbols): New function.
7283 (find_method): Rewrite.
7284 Do not call cplusplus_error.
7285 (symtabs_from_filename): Rewrite.
7286 (collect_function_symbols): Delete.
7287 (find_function_symbols): Rewrite without ARGPTR-style
7289 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7290 (decode_dollar): Adapted and renamed to ...
7291 (linespec_parse_variable): ... this.
7292 (find_linespec_symbols): New function.
7293 (decode_label): Adapted and renamed to ...
7294 (find_label_symbols): ... this.
7295 (decode_digits_list_mode): Add and use LS argument.
7296 (decode_digits_ordinary): Likewise.
7297 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7298 If in list mode, allow any symbol class. Otherwise, only
7299 permit LOC_BLOCK symbols.
7300 (minsym_found): Update comments.
7301 (search_minsyms_for_name): Do not convert the matching symbol
7302 into a SAL. Simply push the symbol and objfile into the
7304 (decode_variable): Delete. Contents adapted into
7305 find_linespec_symbols.
7307 * cp-support.c (SKIP_SPACE): Remove.
7308 (operator_tokens): Remove unused global.
7309 (cp_validate_operator): Remove.
7310 * cp-support.h (cp_validate_operator): Remove declaration.
7312 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7314 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7315 for TYPE_VPTR_FIELDNO.
7316 * valprint.c (valprint_check_validity): Make it global, move the
7317 function comment ...
7318 * value.h (valprint_check_validity): ... to this new declaration.
7320 2012-04-02 Tristan Gingold <gingold@adacore.com>
7322 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7323 the STATE32 api for i386 state.
7324 (i386_darwin_store_inferior_registers): Likewise.
7326 2012-04-02 Tristan Gingold <gingold@adacore.com>
7328 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7330 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7333 2012-04-02 Tristan Gingold <gingold@adacore.com>
7336 * darwin-nat.c (darwin_execvp): Set binary preference.
7338 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7340 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7342 2012-03-30 Tom Tromey <tromey@redhat.com>
7344 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7345 of TRY_CATCH. Fix error handling.
7346 * python/py-value.c (convert_value_from_python): Move 'old'
7347 declaration to innermost scope.
7349 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7350 Andrey Smirnov <andrew.smirnov@gmail.com>
7352 -Wshadow warning fix.
7353 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7354 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7355 Adjust code accordingly.
7357 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7359 * ada-lang.c (symbol_completion_add): Rename parameter
7360 "encoded" into "encoded_p". Ajust code and documentation
7363 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7364 Andrey Smirnov <andrew.smirnov@gmail.com>
7366 -Wshadow warning fix.
7367 * ada-lang.c (symbol_completion_add): Rename parameter
7368 "wild_match" into wild_match_p. Update code and documentation
7371 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7373 * ada-lang.c (symbol_completion_match): Rename parameter
7374 "encoded" into "encoded_p". Ajust code and documentation
7377 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7378 Andrey Smirnov <andrew.smirnov@gmail.com>
7380 -Wshadow warning fix.
7381 * ada-lang.c (symbol_completion_match): Rename parameter
7382 "wild_match" into "wild_match_p". Adjust code and function
7383 documentation accordingly.
7385 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7386 Andrey Smirnov <andrew.smirnov@gmail.com>
7388 -Wshadow warning fix.
7389 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7390 "symbol_info" into "info". Adjust code accordingly.
7391 (ada_lookup_symbol): Likewise.
7393 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7395 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7396 of this function's documentation.
7398 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7399 Andrey Smirnov <andrew.smirnov@gmail.com>
7401 -Wshadow warning fix.
7402 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7403 variable into "wild_match_p". Adjust code accordingly.
7405 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7406 Andrey Smirnov <andrew.smirnov@gmail.com>
7408 -Wshadow warning fix.
7409 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7410 parameter into "wild_match_p". Adjust code accordingly.
7411 Document this parameter in the function description.
7413 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7414 Andrey Smirnov <andrew.smirnov@gmail.com>
7416 -Wshadow warning fix.
7417 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7418 "wild_match" parameter to "wild_match_p" (-Wshadow).
7420 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7422 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7423 in function documentation.
7425 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7426 Andrey Smirnov <andrew.smirnov@gmail.com>
7428 -Wshadow warning fix.
7429 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7430 variable into wild_match_p. Adjust code accordingly.
7432 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7433 Andrey Smirnov <andrew.smirnov@gmail.com>
7435 * ada-valprint.c (ada_val_print_1): Move the code handling
7436 TYPE_CODE_ENUM inside its own lexical block. Declare
7437 variables len and val there, instead of in the function's
7438 top level block. Avoid declaring deref_val again in a way
7439 that shadows another variable of the same name declared
7440 in one of the up-level blocks. Just re-use the up-level
7443 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7445 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7446 Replace block_found argument by symbol_info. Adjust
7447 implementation accordingly. Add function documentation.
7448 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7450 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7451 * ada-exp.y (write_object_renaming): Adjust to new
7452 ada_lookup_encoded_symbol API.
7454 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7456 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7459 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7461 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7462 (v850_register_name): Add the mpu and fpu register names.
7463 (v850e_register_name): Add the mpu and fpu register names.
7464 (v850e2_register_name): New function.
7465 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7468 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7470 * NEWS: Add entry for Ada varobj support.
7472 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7474 * varobj.c (default_value_is_changeable_p): New function,
7475 extracted from varobj_value_is_changeable_p. Add declaration.
7476 (ada_value_is_changeable_p): New function, extracted from
7477 varobj_value_is_changeable_p. Add declaration.
7478 (struct language_specific): New field "value_is_changeable_p".
7479 (languages): Add entries for new field.
7480 (varobj_create): Set language before calling install_new_value.
7481 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7482 "value_is_changeable_p" language callback.
7484 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7486 * ada-varobj.h, ada-varobj.c: New files.
7487 * Makefile.in (SFILES): Add ada-varobj.c.
7488 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7489 (COMMON_OBS): Add ada-varobj.o.
7491 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7493 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7494 (struct language_specific): New field "value_has_mutated".
7495 (languages): Set field "value_has_mutated" in each entry of array.
7496 (varobj_value_has_mutated): New function.
7497 (varobj_udpdate): Add handling of type mutation.
7498 (value_of_root): Add handling of type mutation.
7499 (ada_value_has_mutated): New function.
7501 2012-03-28 Pedro Alves <palves@redhat.com>
7503 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7504 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7506 2012-03-28 Tom Tromey <tromey@redhat.com>
7508 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7509 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7512 2012-03-28 Tom Tromey <tromey@redhat.com>
7514 * .dir-locals.el: New file.
7516 2012-03-28 Pedro Alves <palves@redhat.com>
7518 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7520 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7522 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7525 2012-03-27 Pedro Alves <palves@redhat.com>
7527 Eliminate struct ui_stream.
7529 * ui-out.h (struct ui_stream): Delete.
7530 (ui_out_field_stream): Adjust prototype.
7531 (ui_out_stream_new, ui_out_stream_delete)
7532 (make_cleanup_ui_out_stream_delete): Delete declarations.
7533 * ui-out.c (ui_out_field_stream): Change prototype to take a
7534 ui_file instead of a ui_stream. Adjust.
7535 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7536 (make_cleanup_ui_out_stream_delete): Delete.
7537 * breakpoint.c (print_breakpoint_location)
7538 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7539 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7540 * disasm.c (dump_insns): Ditto.
7541 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7543 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7544 ui_stream/ui_out_stream_new.
7545 * infcmd.c (print_return_value): Ditto.
7546 * osdata.c (info_osdata_command): Don't allocate a local
7548 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7549 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7550 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7551 allocate a local ui_stream.
7552 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7553 instead of ui_stream/ui_out_stream_new.
7554 (list_args_or_locals): Don't allocate a local ui_stream.
7555 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7556 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7557 ui_stream/ui_out_stream_new.
7558 * cli/cli-setshow.c (do_setshow_command): Ditto.
7560 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7562 * arm-linux-tdep.c (arm_linux_init_abi): Call
7563 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7564 * arm-tdep.c (arm_process_record): New function.
7565 (deallocate_reg_mem): New function.
7566 (decode_insn): New function.
7567 (thumb_record_branch): New function.
7568 (thumb_record_ldm_stm_swi(): New function.
7569 (thumb_record_misc): New function.
7570 (thumb_record_ld_st_stack): New function.
7571 (thumb_record_ld_st_imm_offset): New function.
7572 (thumb_record_ld_st_reg_offset(): New function.
7573 (thumb_record_add_sub_cmp_mov): New function.
7574 (thumb_record_shift_add_sub): New function.
7575 (arm_record_coproc_data_proc): New function.
7576 (arm_record_coproc): New function.
7577 (arm_record_b_bl): New function.
7578 (arm_record_ld_st_multiple): New function.
7579 (arm_record_ld_st_reg_offset): New function.
7580 (arm_record_ld_st_imm_offset): New function.
7581 (arm_record_data_proc_imm): New function.
7582 (arm_record_data_proc_misc_ld_str): New function.
7583 (arm_record_extension_space): New function.
7584 (arm_record_strx): New function.
7585 (sbo_sbz): New function.
7586 (struct insn_decode_record): New structure for arm insn record.
7587 (REG_ALLOC): New macro for reg allocations.
7588 (MEM_ALLOC): New macro for memory allocations.
7589 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7591 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7593 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7594 (store_register): Likewise.
7596 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7598 * MAINTAINERS (Write After Approval): Add myself to the list.
7600 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7602 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7603 Describe also the option "auto".
7605 2012-03-22 Richard Henderson <rth@redhat.com>
7607 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7608 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7610 2012-03-22 Richard Henderson <rth@redhat.com>
7612 * jit.c (jit_read_code_entry): Compute alignment and offset of
7613 int64_t member before computing entry_size.
7615 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7617 Python scripting: Add new method Value.referenced_value to
7618 gdb.Value which can dereference pointer as well as reference
7620 * NEWS: Add entry under 'Python scripting' about the new method
7621 Value.referenced_value on gdb.Value objects.
7622 * python/py-value.c (valpy_referenced_value): New function
7623 defining a new method on gdb.Value objects which can dereference
7624 pointer and reference values.
7626 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7628 * MAINTAINERS (Write After Approval): Add myself to the list.
7630 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7632 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7633 in addition to "main".
7635 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7637 * expression.h (op_name): Add declaration.
7638 * expprint.c (op_name): Remove declaration. Make non-static.
7639 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7641 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7643 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7645 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7646 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7647 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7648 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7649 (linux_nat_get_siginfo): Likewise.
7650 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7651 (linux_nat_get_siginfo): Likewise.
7652 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7653 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7654 * procfs.c (gdb_siginfo_t): Likewise.
7656 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7658 * .gitignore: Ignore more files.
7660 2012-03-20 Pedro Alves <palves@redhat.com>
7662 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7665 2012-03-20 Yao Qi <yao@codesourcery.com>
7667 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7670 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7672 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7673 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7674 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7676 * dwarf2expr.h (cu_offset, sect_offset): New types.
7677 (struct dwarf_expr_context_funcs) <dwarf_call>
7678 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7680 (struct dwarf_expr_context) <len>: Improve the comment.
7681 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7682 cu_offset and sect_offset.
7683 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7684 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7685 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7686 * dwarf2loc.h: Include dwarf2expr.h.
7687 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7689 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7690 Improve the comment.
7691 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7692 (struct signatured_type, struct line_header, struct partial_die_info)
7693 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7694 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7695 (get_die_type_at_offset, create_cus_from_index)
7696 (create_signatured_type_table_from_index, dw2_get_file_names)
7697 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7698 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7699 (create_debug_types_hash_table, process_psymtab_comp_unit)
7700 (load_partial_comp_unit, create_all_comp_units)
7701 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7702 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7703 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7704 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7705 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7706 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7707 (find_partial_die, read_attribute_value, lookup_die_type)
7708 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7709 (is_ref_attr): New function comment.
7710 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7711 Use cu_offset and sect_offset.
7712 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7713 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7714 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7715 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7716 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7717 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7718 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7721 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7724 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7725 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7727 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7729 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7731 * NEWS: Describe new options --init-command=FILE, -ix and
7732 --init-eval-command=COMMAND, -iex.
7733 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7734 CMDARG_INIT_COMMAND.
7735 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7736 "init-command", "init-eval-command", "ix" and "iex" to the variable
7737 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7738 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7739 (print_gdb_help): Describe --init-command=FILE, -ix and
7740 --init-eval-command=COMMAND, -iex.
7742 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7745 * main.c (struct cmdarg): Move it here from main. Add more comments.
7746 (cmdarg_s, VEC (cmdarg_s)): New.
7747 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7748 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7749 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7750 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7753 2012-03-19 Tom Tromey <tromey@redhat.com>
7755 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7757 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7760 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7763 2012-03-16 Chris January <chris.january@allinea.com>
7765 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7768 2012-03-16 Chris January <chris.january@allinea.com>
7770 * source.c (add_path): Use memmove instead of strcpy because the
7773 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7775 * value.h (set_value_parent): Add declaration.
7776 * value.c (set_value_parent): New function.
7777 (value_address): If VALUE->PARENT is not NULL, then use it as
7778 the base address instead of VALUE->LOCATION.address.
7779 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7780 the same as OBJ's address. Adjust V's offset accordingly.
7783 2012-03-16 Gary Benson <gbenson@redhat.com>
7785 PR breakpoints/10738
7786 * dwarf2read.c (use_deprecated_index_sections): New global.
7787 (struct partial_die_info): New member may_be_inlined.
7788 (read_partial_die): Set may_be_inlined where appropriate.
7789 (add_partial_subprogram): Add partial symbols for partial
7790 DIEs that may be inlined.
7791 (new_symbol_full): Add inlined subroutines to the current
7793 (write_psymtabs_to_index): Bump version number.
7794 (dwarf2_read_index): Read only version 6 indices unless
7795 use_deprecated_index_sections is set.
7796 * linespec.c (symbol_and_data_callback): New structure.
7797 (iterate_inline_only): New function.
7798 (iterate_over_all_matching_symtabs): New argument
7799 "include_inline". If nonzero, also call the callback for
7800 symbols representing inlined subroutines.
7801 (lookup_prefix_sym): Pass extra argument to the above.
7802 (find_function_symbols): Likewise.
7803 (add_matching_symbols_to_info): Likewise.
7804 * NEWS: Mention that GDB can now set breakpoints on inlined
7807 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7809 * p-typeprint.c (pascal_type_print_method_args):
7810 Fix display of parameter of methods.
7812 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7814 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7815 Add missing prototype.
7817 2012-03-16 Yao Qi <yao@codesourcery.com>
7818 Jan Kratochvil <jan.kratochvil@redhat.com>
7820 Fix false compilation warning.
7821 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7823 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7824 Pedro Alves <pedro@codesourcery.com>
7826 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7827 (arm_register_g_packet_guesses): New function.
7828 (arm_gdbarch_init): Don't force a target description with
7829 registers when the executable is detected as M-profile. Instead
7830 set gdbarch->tdep->is_m. Register `g' packet guesses.
7831 (_initialize_arm_tdep): Initialize the new target description.
7832 * features/arm-with-m-fpa-layout.xml: New description.
7833 * features/arm-with-m-fpa-layout.c: New, generated.
7835 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7837 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7838 Update function description.
7839 (insert_bp_location): Do not wipe bl->target_info out.
7840 * mem-break.c: #include "gdb_string.h".
7841 (default_memory_insert_breakpoint): Do not call target_read_memory
7842 with a pointer to the breakpoint's shadow_contents buffer. Use
7843 a local buffer instead.
7844 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7846 2012-03-15 Tom Tromey <tromey@redhat.com>
7848 * NEWS: Mention "info vtbl", not "info vtable".
7849 * cp-support.c (info_vtbl_command): Fix comment.
7850 (_initialize_cp_support): Fix text.
7852 2012-03-15 Tom Tromey <tromey@redhat.com>
7854 * cp-valprint.c (cp_print_value_fields): Use
7855 print_function_pointer_address for vtable slot.
7857 2012-03-15 Tom Tromey <tromey@redhat.com>
7859 * gnu-v3-abi.c (struct value_and_voffset): New.
7860 (hash_value_and_voffset, eq_value_and_voffset)
7861 (compare_value_and_voffset, compute_vtable_size)
7862 (print_one_vtable, gnuv3_print_vtable): New functions.
7863 (init_gnuv3_ops): Initialize 'print_vtable' field.
7864 * cp-support.c (info_vtbl_command): New function.
7865 (_initialize_cp_support): Add "info vtbl".
7866 * cp-abi.h (cplus_print_vtable): Declare.
7867 (struct cp_abi_ops) <print_vtable>: New field.
7868 * cp-abi.c (cplus_print_vtable): New function.
7871 2012-03-15 Tom Tromey <tromey@redhat.com>
7873 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7874 iterate_over_symbols.
7876 2012-03-14 Doug Evans <dje@google.com>
7878 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7879 DW_OP_GNU_parameter_ref.
7881 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7883 Fix double prompt of 'interpreter-exec mi'.
7884 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7885 (mi_interpreter_resume): use it.
7886 (mi_execute_command_input_handler): New function.
7887 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7888 mi_execute_command_input_handler.
7890 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7892 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7894 (darwin_debug_port_info): Make static.
7895 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7896 * machoread.c (_initialize_machoread): Add prototype.
7897 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7898 (i386_darwin_set_control, i386_darwin_get_control)
7899 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7900 i386_darwin_get_status, i386_darwin_get_control):
7901 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7903 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7905 * ax-gdb.c (gen_usual_unary): Remove special handling of
7906 enum and bool types.
7908 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7910 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7912 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7914 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7916 2012-03-13 Chris January <chris.january@allinea.com>
7918 * aix-thread.c (fill_sprs): Store the floating point registers
7919 at the correct offsets into vals.
7921 2012-03-13 Doug Evans <dje@google.com>
7923 * NEWS: Mention symbol-reloading has been deleted.
7924 * symfile.c (symbol_reloading): Delete.
7925 (show_symbol_reloading): Delete.
7926 (_initialize_symfile): Delete set/show symbol-reloading.
7928 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7929 read_in_chain until we have successfully read it in.
7930 (load_full_comp_unit): Ditto.
7931 (read_signatured_type): Add comment.
7933 2012-03-13 Chris January <chris.january@allinea.com>
7935 * stabsread.c (fix_common_block): Change type of valu argument
7938 2012-03-13 Chris January <chris.january@allinea.com>
7940 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7943 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7945 * common/linux-procfs.c (linux_proc_get_int): New, from
7946 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7948 (linux_proc_get_tgid): Only call linux_proc_get_int.
7949 (linux_proc_get_tracerpid): New.
7950 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7951 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7952 linux_proc_pid_has_state.
7953 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7954 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7955 (linux_ptrace_attach_warnings): New.
7956 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7958 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7959 (linux_nat_attach): New variables ex, buffer, message and message_s.
7960 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7962 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7964 * Makefile.in (linux-ptrace.o): New.
7965 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7967 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7968 * common/linux-ptrace.c: New file.
7969 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7970 * config/arm/linux.mh: Likewise.
7971 * config/i386/linux.mh: Likewise.
7972 * config/i386/linux64.mh: Likewise.
7973 * config/ia64/linux.mh: Likewise.
7974 * config/m32r/linux.mh: Likewise.
7975 * config/m68k/linux.mh: Likewise.
7976 * config/mips/linux.mh: Likewise.
7977 * config/pa/linux.mh: Likewise.
7978 * config/powerpc/linux.mh: Likewise.
7979 * config/powerpc/ppc64-linux.mh: Likewise.
7980 * config/powerpc/spu-linux.mh: Likewise.
7981 * config/s390/s390.mh: Likewise.
7982 * config/sparc/linux.mh: Likewise.
7983 * config/sparc/linux64.mh: Likewise.
7984 * config/xtensa/linux.mh: Likewise.
7985 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7986 common/linux-procfs.c.
7987 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7989 2012-03-13 Hui Zhu <teawater@gmail.com>
7990 Pedro Alves <palves@redhat.com>
7992 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7993 CREATE_BREAKPOINT_FLAGS_INSERTED.
7994 (create_breakpoint_sal, create_breakpoints_sal)
7995 (base_breakpoint_create_breakpoints_sal)
7996 (tracepoint_create_breakpoints_sal)
7997 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7999 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8000 (ftrace_command, strace_command): Adjust.
8001 (create_tracepoint_from_upload): Pass
8002 CREATE_BREAKPOINT_FLAGS_INSERTED.
8003 * breakpoint.h (enum breakpoint_create_flags): New.
8004 (create_breakpoint): New flags parameter.
8005 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8006 * python/py-breakpoint.c (bppy_init): Adjust.
8007 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8008 * spu-tdep.c (spu_catch_start): Adjust.
8010 2012-03-13 Pedro Alves <palves@redhat.com>
8011 Hui Zhu <teawater@gmail.com>
8012 Yao Qi <yao@codesourcery.com>
8014 * remote.c (struct remote_state): New field `starting_up'.
8015 (remote_start_remote): Set and clear it.
8016 (remote_can_download_tracepoint): If starting up, return false.
8018 2012-03-13 Yao Qi <yao@codesourcery.com>
8020 * inferior.h (struct inferior): Remove fields any_syscall_count,
8021 syscalls_counts and total_syscalls_count. Move them to new
8022 struct catch_syscall_inferior_data in breakpoint.c.
8023 * breakpoint.c: Call DEF_VEC_I(int).
8024 (struct catch_syscall_inferior_data): New.
8025 (get_catch_syscall_inferior_data): New.
8026 (catch_syscall_inferior_data_cleanup): New.
8027 (insert_catch_syscall): Update to access data in
8028 struct catch_syscall_inferior_data.
8029 (insert_catch_syscall): Likewise.
8030 (remove_catch_syscall): Likewise.
8031 (remove_catch_syscall): Likewise.
8032 (is_syscall_catchpoint_enabled): Likewise.
8033 (add_catch_command): Likewise.
8034 (_initialize_breakpoint): Register cleanup.
8035 * breakpoint.h: Removed DEF_VEC_I(int).
8036 * dwarf2loc.c: Call DEF_VEC_I(int).
8037 * mi/mi-main.c: Likewise.
8039 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8041 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8043 2012-03-12 Chris January <chris.january@allinea.com>
8045 * aix-thread.c (_initialize_aix_thread): Add prototype.
8046 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8047 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8049 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8051 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8052 include of "amd64-nat.h".
8054 2012-03-12 Tom Tromey <tromey@redhat.com>
8056 * buildsym.c (record_pending_block): Now static.
8057 * buildsym.h: (record_pending_block): Remove.
8059 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8061 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8063 2012-03-09 Tom Tromey <tromey@redhat.com>
8065 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8066 producer_is_gxx_lt_4_6>: New fields.
8067 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8069 2012-03-09 Tom Tromey <tromey@redhat.com>
8071 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8073 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8075 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8078 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8080 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8082 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8084 Fix -Wmissing-prototypes build.
8085 * arm-linux-nat.c (get_thread_id): Make it static.
8086 * xtensa-linux-nat.c (get_thread_id): Likewise.
8088 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8090 * server.c (process_point_options): If a conditional expression
8091 is found, only print a message if remote_debug is nonzero.
8093 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8095 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8096 of internal error for unknown/unsupported types.
8098 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8100 Fix CU relative vs. absolute DIE offsets.
8101 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8102 offset to offset_in_cu.
8103 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8105 (dwarf2_fetch_die_location_block): Rename parameter offset to
8106 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8108 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8110 * libunwind-frame.c: Rename to ...
8111 * ia64-libunwind-tdep.c: ... here.
8112 * libunwind-frame.h: Rename to ...
8113 * ia64-libunwind-tdep.h: ... here.
8114 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8115 ia64-libunwind-tdep.h.
8116 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8117 * README (--with-libunwind): Rename to ...
8118 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8119 * config.in: Regenerate.
8120 * configure: Regenerate.
8121 * configure.ac: New option --with-libunwind-ia64, make the
8122 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8123 Remove AC_DEFINE for HAVE_LIBUNWIND.
8124 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8125 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8126 Rename libunwind-frame in the general comment.
8127 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8128 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8129 Move forward declarations inside #ifndef. Rename libunwind-frame in
8130 the general comment.
8131 * ia64-tdep.c: Rename libunwind-frame.h #include to
8132 ia64-libunwind-tdep.h.
8133 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8134 (ia64_libunwind_descr): Rename libunwind-frame to
8135 ia64-libunwind-tdep in these function comments.
8136 * ia64-tdep.h: Rename libunwind-frame.h #include to
8137 ia64-libunwind-tdep.h.
8138 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8139 ia64-libunwind-tdep in that data comment.
8141 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8143 * libunwind-frame.h (struct frame_unwind): New declaration.
8145 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8147 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8148 "set breakpoint condition-evaluation" command.
8150 2012-03-08 Tristan Gingold <gingold@adacore.com>
8152 * sparc-stub.c: Move to stubs/
8153 * sh-stub.c: Likewise.
8154 * m68k-stub.c: Likewise.
8155 * m32r-stub.c: Likewise.
8156 * i386-stub.c: Likewise.
8158 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8160 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8161 linux_get_siginfo_type.
8163 * m68klinux-nat.c: Include "gdb_proc_service.h".
8164 (PTRACE_GET_THREAD_AREA): Define.
8165 (ps_get_thread_area): New function.
8167 2012-03-08 Yao Qi <yao@codesourcery.com>
8169 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8171 (remote_query_attached): Likewise.
8172 (remote_static_tracepoint_marker_at): Likewise.
8173 (remote_set_permissions): Likewise.
8174 (remote_detach_1, extended_remote_attach_1): Likewise.
8175 (send_g_packet, remote_vkill): Likewise.
8176 (extended_remote_disable_randomization): Likewise.
8177 (remote_add_target_side_condition): Likewise.
8178 (remote_insert_breakpoint): Likewise.
8179 (remote_remove_breakpoint): Likewise.
8180 (remote_insert_watchpoint): Likewise.
8181 (remote_remove_watchpoint): Likewise.
8182 (remote_insert_hw_breakpoint): Likewise.
8183 (remote_insert_hw_breakpoint): Likewise.
8184 (remote_remove_hw_breakpoint): Likewise.
8185 (remote_download_command_source): Likewise.
8186 (remote_download_tracepoint): Likewise.
8187 (remote_download_trace_state_variable): Likewise.
8188 (remote_disable_tracepoint): Likewise.
8189 (remote_trace_set_readonly_regions): Likewise.
8190 (remote_get_tracepoint_status): Likewise.
8191 (remote_trace_find): Likewise.
8192 (remote_get_trace_state_variable_value): Likewise.
8193 (remote_set_disconnected_tracing): Likewise.
8194 (remote_set_circular_trace_buffer): Likewise.
8195 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8196 (remote_use_agent): Likewise.
8197 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8200 2012-03-07 Pedro Alves <palves@redhat.com>
8202 * NEWS: Mention QProgramSignals.
8203 * inferior.h (update_signals_program_target): Declare.
8204 * infrun.c: (update_signals_program_target): New.
8205 (handle_command): Update the target of the new program signals
8207 * remote.c (PACKET_QProgramSignals): New enum.
8208 (last_program_signals_packet): New global.
8209 (remote_program_signals): New.
8210 (remote_start_remote): Update the target with the program signals
8212 (remote_protocol_features): Add entry for QPassSignals.
8213 (remote_open_1): Free anc clear last_program_signals_packet.
8214 (init_remote_ops): Install remote_program_signals.
8215 * target.c (update_current_target): Adjust.
8216 (target_program_signals): New.
8217 * target.h (struct target_ops) <to_program_signals>: New field.
8218 (target_program_signals): Declare.
8220 2012-03-07 Pedro Alves <palves@redhat.com>
8222 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8225 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8227 * m68klinux-nat.c (getregs_supplies): Make static.
8228 (getfpregs_supplies): Likewise.
8229 (have_ptrace_getregs): Likewise.
8231 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8233 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8234 in call to get_die_type_at_offset.
8236 2012-03-06 Stan Shebs <stan@codesourcery.com>
8238 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8239 * mi/mi-cmd-disas.c: Ditto.
8240 * mi/mi-cmd-env.c: Ditto.
8241 * mi/mi-cmd-file.c: Ditto.
8242 * mi/mi-cmd-stack.c: Ditto.
8243 * mi/mi-cmd-target.c: Ditto.
8244 * mi/mi-cmd-var.c: Ditto.
8245 * mi/mi-cmds.c: Ditto.
8246 * mi/mi-cmds.h: Ditto.
8247 * mi/mi-console.c: Ditto.
8248 * mi/mi-getopt.c: Ditto.
8249 * mi/mi-getopt.h: Ditto.
8250 * mi/mi-interp.c: Ditto.
8251 * mi/mi-main.c: Ditto.
8252 * mi/mi-out.c: Ditto.
8253 * mi/mi-parse.c: Ditto.
8254 * mi/mi-parse.h: Ditto.
8255 * mi/mi-symbol-cmds.c: Ditto.
8257 * mi/mi-getopt.h: Move mi_opt struct up.
8258 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8260 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8262 2012-03-06 Tom Tromey <tromey@redhat.com>
8264 * proc-service.c (ps_pglobal_lookup): Set the current program
8267 2012-03-06 Pedro Alves <palves@redhat.com>
8269 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8271 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8273 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8275 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8278 * common/linux-osdata.c (linux_common_core_of_thread): New function
8280 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8281 call by linux_common_core_of_thread.
8282 (linux_nat_core_of_thread_1): Remove.
8283 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8284 * linux-thread-db.c: Include linux-osdata.h.
8285 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8286 linux_common_core_of_thread.
8288 2012-03-05 Tom Tromey <tromey@redhat.com>
8290 * value.c (value_primitive_field): Don't fetch contents for
8293 2012-03-05 Tom Tromey <tromey@redhat.com>
8295 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8297 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8299 * s390-nat.c: Include "gregset.h".
8301 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8303 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8304 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8305 (libunwind_load): New variable so_error, use it for dlerror. Try to
8306 load also LIBUNWIND_SO_7.
8308 2012-03-05 Pedro Alves <palves@redhat.com>
8310 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8311 is not NULL, and remove resulting dead code.
8313 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8315 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8316 prologue to sh_analyze_prologue.
8317 (sh_analyze_prologue): Make better use of such an upper limit, and
8318 generally be more cautious about accessing memory.
8320 2012-03-05 Tom Tromey <tromey@redhat.com>
8322 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8323 _initialize_ia64_hpux_tdep.
8325 2012-03-05 Pedro Alves <palves@redhat.com>
8329 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8330 the register state is clear, supply explicit zero, instead of
8331 marking the register unavailable.
8333 2012-03-05 Tristan Gingold <gingold@adacore.com>
8335 * NEWS: Mention OpenVMS ia64 new target.
8337 2012-03-05 Tristan Gingold <gingold@adacore.com>
8339 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8340 (ia64_unw_accessors, ia64_unw_rse_accessors)
8341 (ia64_libunwind_descr): Declare.
8342 * ia64-vms-tdep.c: New file.
8343 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8344 (ia64_libunwind_descr): Make them public.
8345 * configure.tgt: Add ia64-*-*vms*.
8346 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8347 (ALLDEPFILES): Add ia64-vms-tdep.c
8349 2012-03-05 Tristan Gingold <gingold@adacore.com>
8351 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8352 * remote.c (PACKET_qXfer_uib): New enum value.
8353 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8354 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8355 (_initialize_remote): Call add_packet_config_cmd for
8358 2012-03-05 Tristan Gingold <gingold@adacore.com>
8360 * osabi.c (gdb_osabi_names): Add OpenVMS.
8361 (generic_elf_osabi_sniffer): Likewise.
8362 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8364 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8366 Removed unused code.
8367 * libunwind-frame.c (libunwind_frame_unwind)
8368 (libunwind_frame_base_address): Remove.
8369 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8371 2012-03-04 Yao Qi <yao@codesourcery.com>
8373 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8374 remove trailing new line.
8375 (agent_run_command, agent_run_command): Add _ markup.
8376 (agent_capability_check): Likewise.
8378 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8380 * breakpoint.c (set_condition_evaluation_mode): Set
8381 CONDITION_EVALUATION_MODE unconditionally.
8383 2012-03-03 Yao Qi <yao@codesourcery.com>
8385 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8386 * common/agent.h: Update declaration.
8387 * inf-child.c (inf_child_use_agent): New.
8388 (inf_child_can_use_agent): New.
8389 (inf_child_target): Initialize fields `to_use_agent'
8390 and `to_can_use_agent'.
8391 * agent.c (agent_new_objfile): New.
8392 (_initialize_agent): Add agent_new_objfile to new_objfile
8395 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8397 (linux_target_install_ops): Initialize field
8398 `to_static_tracepoint_markers_by_strid'.
8399 * remote.c (free_current_marker): Move it to ...
8400 * tracepoint.c (free_current_marker): ... here. New.
8401 (cleanup_target_stop): New.
8402 * tracepoint.h: Declare free_current_marker.
8403 * NEWS: Add one entry about `info static-tracepoint-marker'.
8405 2012-03-03 Yao Qi <yao@codesourcery.com>
8407 * common/agent.c (agent_loaded_p): New.
8408 (agent_look_up_symbols): New global.
8409 * common/agent.h: Declare agent_loaded_p.
8411 2012-03-03 Yao Qi <yao@codesourcery.com>
8413 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8414 (agent_capability_check, agent_capability_invalidate): New.
8415 (symbol_list): New array element.
8416 * common/agent.h (enum agent_capa): New.
8417 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8419 2012-03-03 Yao Qi <yao@codesourcery.com>
8421 * target.h (struct target_ops) <to_use_agent>: New field.
8422 (struct target_ops) <to_can_use_agent>: New field.
8423 (target_use_agent, target_can_use_agent): New macro.
8424 * target.c (update_current_target): Update.
8425 * remote.c: New enum `PACKET_QAgent'.
8426 (remote_protocol_features): Add a new element.
8427 (remote_use_agent, remote_can_use_agent): New.
8428 (init_remote_ops): Initialize field `can_use_agent' with
8429 remote_can_use_agent. Intiailize field `use_agent' with
8431 * common/agent.c (use_agent): New global.
8432 * common/agent.h: Declare it.
8433 * tracepoint.c (info_static_tracepoint_markers_command): Add
8435 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8436 (COMMON_OBS): Add common/agent.o and agent.o
8437 (common-agent.o): New rule.
8440 2012-03-03 Yao Qi <yao@codesourcery.com>
8442 * common/agent.c: New.
8443 * common/agent.h: New.
8444 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8446 * configure, configh.in: Regenerated.
8448 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8450 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8451 unless it exists for this architecture.
8453 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8455 * language.h (struct language_defn): New "method" la_read_var_value.
8456 * findvar.c: #include "language.h".
8457 (default_read_var_value): Renames read_var_value. Rewrite
8458 function description.
8459 (read_var_value): New function.
8460 * value.h (default_read_var_value): Add prototype.
8461 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8463 (ada_language_defn): Add entry for la_read_var_value.
8464 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8465 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8466 language_defn structures to add entry for new la_read_var_value
8469 2012-03-02 Tom Tromey <tromey@redhat.com>
8470 Pedro Alves <palves@redhat.com>
8472 PR breakpoints/13776:
8473 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8475 (delete_longjmp_breakpoint_at_next_stop): New.
8476 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8477 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8478 before deleting the inferior. Add comments.
8479 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8480 breakpoints immediately, but only on next stop. Move that code
8481 next to where we mark other breakpoints for deletion.
8483 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8485 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8487 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8490 2012-03-02 Pedro Alves <palves@redhat.com>
8492 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8494 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8496 Fix -Wmissing-prototypes build.
8497 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8498 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8499 (gdbsim_has_memory): Likewise.
8501 2012-03-02 Yao Qi <yao@codesourcery.com>
8503 Fix -Wmissing-prototypes build.
8504 * charset.c (phony_iconv_open): Make static.
8505 (phony_iconv_close, phony_iconv): Likewise.
8506 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8507 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8509 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8510 * ser-mingw.c (create_select_thread): Make static.
8511 * windows-termcap.c (tgetent): New prototype.
8512 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8514 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8516 Fix -Wmissing-prototypes build.
8517 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8518 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8519 (_initialize_loadable): New prototypes.
8521 2012-03-02 Doug Evans <dje@google.com>
8523 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8524 abbrev table, read_comp_unit will do it.
8526 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8528 Fix -Wmissing-prototypes build.
8529 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8530 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8531 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8532 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8533 (_initialize_arm_symbian_tdep): New prototype.
8534 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8535 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8536 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8538 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8539 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8541 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8542 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8543 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8545 * moxie-tdep.c (moxie_process_record): Likewise.
8546 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8547 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8548 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8549 (_initialize_rl78_tdep): New prototype.
8550 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8551 (_initialize_rx_tdep): New prototype.
8552 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8553 (_initialize_darwin_solib): New prototype.
8554 * solib-spu.c: Include solib-spu.h.
8555 (_initialize_spu_solib): New prototype.
8556 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8557 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8558 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8559 (tic6x_software_single_step): Make it static.
8560 (_initialize_tic6x_tdep): New prototype.
8562 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8564 Fix -Wmissing-prototypes build.
8565 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8566 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8568 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8570 Fix -Wmissing-prototypes build.
8571 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8572 (frv_have_stopped_data_address): Remove.
8574 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8576 Fix -Wmissing-prototypes build.
8577 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8578 * sh-tdep.c: Include sh64-tdep.h.
8579 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8580 * sh64-tdep.c: Include sh64-tdep.h.
8581 * sh64-tdep.h: New file.
8583 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8585 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8587 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8589 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8590 sp_regnum once the gdbarch_init_osabi hook has been called.
8592 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8594 * mips-tdep.c (mips32_bc1_pc): New function.
8595 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8596 BPOSGE32 and BPOSGE64 instructions.
8597 (deal_with_atomic_sequence): Likewise.
8598 (mips32_instruction_has_delay_slot): Likewise.
8600 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8601 Chris Dearman <chris@mips.com>
8602 Maciej W. Rozycki <macro@codesourcery.com>
8603 Joseph Myers <joseph@codesourcery.com>
8605 * features/mips-dsp.xml: New file.
8606 * features/mips64-dsp.xml: New file.
8607 * features/mips-dsp-linux.xml: New file.
8608 * features/mips64-dsp-linux.xml: New file.
8609 * features/Makefile (WHICH): Add mips-dsp-linux and
8611 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8612 * features/mips-dsp-linux.c: New file.
8613 * features/mips64-dsp-linux.c: New file.
8614 * regformats/mips-dsp-linux.dat: New file.
8615 * regformats/mips64-dsp-linux.dat: New file.
8616 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8618 (mips64_linux_register_addr): Likewise.
8619 (mips64_linux_regsets_fetch_registers): Likewise.
8620 (mips64_linux_regsets_store_registers): Likewise.
8621 (mips64_linux_fetch_registers): Update call to
8622 mips64_linux_regsets_fetch_registers.
8623 (mips64_linux_store_registers): Update call to
8624 mips64_linux_regsets_store_registers.
8625 (mips_linux_read_description): Probe for DSP registers.
8626 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8627 and initialize_tdesc_mips64_dsp_linux.
8628 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8629 Remove padding of no longer used embedded register slots.
8630 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8631 (MIPS_RESTART_REGNUM): Redefine enum value.
8632 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8634 (mips_tx39_reg_names): Likewise.
8635 (mips_linux_reg_names): New array of register names for Linux
8637 (mips_register_name): Check for a null pointer in
8638 mips_processor_reg_names and return an empty string.
8639 (mips_register_type): Exclude embedded registers for the IRIX
8641 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8642 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8644 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8645 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8646 (mips_gdbarch_init): Likewise. Initialize internal register
8647 indices for the Linux ABI. Use dynamic numbers to refer to
8648 registers, as applicable, while parsing the target description.
8649 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8651 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8653 * frame.h (read_frame_register_unsigned): Fix typo in function
8656 2012-03-01 Pedro Alves <palves@redhat.com>
8658 * jit-reader.in [!__cplusplus]
8659 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8661 2012-03-01 Pedro Alves <palves@redhat.com>
8663 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8664 * configure: Regenerate.
8666 2012-03-01 Pedro Alves <palves@redhat.com>
8668 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8669 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8670 (ftrace_command, strace_command): Make static.
8671 * d-lang.c (_initialize_d_language): Declare.
8672 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8673 * dwarf2loc.c (_initialize_dwarf2loc):
8674 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8675 * exec.c (exec_get_section_table): Make static.
8676 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8677 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8678 * inferior.c (remove_inferior_command, add_inferior_command)
8679 (clone_inferior_command): Make static.
8680 * linux-nat.c (linux_nat_thread_address_space)
8681 (linux_nat_core_of_thread): Make static.
8682 * linux-tdep.c (_initialize_linux_tdep): Declare.
8683 * objc-lang.c (_initialize_objc_lang): Declare.
8684 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8686 (_initialize_opencl_language): Declare.
8687 * record.c (_initialize_record): Declare.
8688 * remote.c (demand_private_info, remote_get_tib_address)
8689 (remote_supports_cond_tracepoints)
8690 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8692 * skip.c (_initialize_step_skip): Declare.
8693 * symtab.c (skip_prologue_using_lineinfo): Make static.
8694 * tracepoint.c (delete_trace_state_variable)
8695 (trace_variable_command, delete_trace_variable_command)
8696 (get_uploaded_tsv, find_matching_tracepoint_location)
8697 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8699 * value.c (pack_unsigned_long): Make static.
8700 * varobj.c (varobj_ensure_python_env): Make static.
8701 * windows-tdep.c (_initialize_windows_tdep): Declare.
8702 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8704 2012-03-01 Pedro Alves <palves@redhat.com>
8706 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8708 (linux_init_abi): Install it as has_shared_address_space gdbarch
8711 2012-03-01 Pedro Alves <palves@redhat.com>
8713 * observer.c (observer_test_first_notification_function)
8714 (observer_test_second_notification_function)
8715 (observer_test_third_notification_function): Add declarations.
8717 2012-03-01 Pedro Alves <palves@redhat.com>
8719 * common/signals.c (default_target_signal_to_host)
8720 (default_target_signal_from_host): Move ...
8721 * arch-utils.c: ... here.
8722 * arch-utils.h (default_target_signal_to_host)
8723 (default_target_signal_from_host): Declare.
8725 * common/signals.c (target_signal_from_command): Move ...
8726 * infrun.c: ... here.
8727 * inferior.h (target_signal_from_command): Declare.
8728 * target.h (target_signal_from_command)
8729 (default_target_signal_from_host, default_target_signal_to_host):
8730 Delete declarations.
8732 * common/signals.c (_initialize_signals): Delete.
8734 2012-03-01 Pedro Alves <palves@redhat.com>
8736 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8737 both __cplusplus and !__cplusplus.
8739 2012-03-01 Pedro Alves <palves@redhat.com>
8741 * psymtab.c (find_and_open_source): Delete declaration.
8742 * source.c (find_and_open_source): Move comment ...
8743 * source.h (find_and_open_source): ... to this new declaration.
8745 2012-03-01 Pedro Alves <palves@redhat.com>
8747 * inline-frame.c: Include inline-frame.h.
8749 2012-03-01 Pedro Alves <palves@redhat.com>
8751 * tui/tui-data.c (set_gen_win_origin): Delete.
8752 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8753 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8755 2012-03-01 Pedro Alves <palves@redhat.com>
8757 * remote.c (encode_actions): Delete declaration.
8758 * tracepoint.c (encode_actions): Make extern.
8759 * tracepoint.h (encode_actions): Declare.
8761 2012-03-01 Pedro Alves <palves@redhat.com>
8763 * python/py-breakpoint.c: Include python.h.
8764 * python/py-continueevent.c (create_continue_event_object): Make
8766 * python/py-lazy-string.c (stpy_get_type): Make static.
8767 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8769 * python/py-utils.c (unicode_to_target_python_string): Make
8771 * python/py-value.c: Include python.h.
8773 2012-03-01 Pedro Alves <palves@redhat.com>
8775 * inferior.c (delete_threads_of_inferior): Delete.
8777 2012-03-01 Pedro Alves <palves@redhat.com>
8779 Import fallback definitions from glibc.
8781 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8782 ps_prochandle): Forward declare.
8783 (ps_err_e): Use glibc's comments.
8784 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8785 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8786 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8787 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8788 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8789 (struct ps_prochandle): Adjust comment.
8791 2012-03-01 Pedro Alves <palves@redhat.com>
8793 * ada-lang.c (ada_modulus_from_name): Delete.
8794 * ada-lex.l (lexer_init): Make static.
8796 2012-03-01 Pedro Alves <palves@redhat.com>
8800 * frame.c (read_frame_register_unsigned): New.
8801 * frame.h (read_frame_register_unsigned): Declare.
8802 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8804 (print_i387_control_word): New parameter `control_p'. Handle it.
8805 (i387_print_float_info): Handle unavailable float registers.
8807 2012-03-01 Keith Seitz <keiths@redhat.com>
8809 * linespec.c (decode_line_2): Sort the list of methods
8810 alphabetically before presenting the user with a selection
8813 2012-03-01 Doug Evans <dje@google.com>
8815 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8817 (dwarf2_read_abbrevs): Remove corresponding initialization.
8819 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8821 * NEWS: Mention new python command class gdb.COMMAND_USER.
8822 * cli/cli-cmds.c (show_user): Print error when used on a python
8824 (init_cli_cmds): Update documentation strings for "show user" and
8825 "set/show max-user-call-depth" to clarify that it does not apply to
8827 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8829 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8831 * top.c (execute_command): Only execute a user-defined command as a
8832 legacy macro if c->user_commands is set.
8834 2012-03-01 Tom Tromey <tromey@redhat.com>
8836 * valprint.h (struct generic_val_print_decorations): New.
8837 (generic_val_print): Declare.
8838 * valprint.c (generic_val_print): New function.
8839 * p-valprint.c (p_decorations): New global.
8840 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8841 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8842 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8843 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8844 * m2-valprint.c (m2_decorations): New global.
8845 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8846 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8847 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8848 TYPE_CODE_ERROR>: Call generic_val_print.
8849 * f-valprint.c (f_decorations): New global.
8850 (f_val_print): Use print_function_pointer_address.
8851 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8852 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8853 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8855 * c-valprint.c (c_decorations): New global.
8856 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8857 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8858 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8859 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8860 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8861 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8864 2012-03-01 Tom Tromey <tromey@redhat.com>
8866 * valprint.c (val_print): Update.
8867 * p-valprint (pascal_val_print): Return void.
8868 * p-lang.h (pascal_val_print): Return void.
8869 * m2-valprint.c (m2_val_print): Return void.
8870 * m2-lang.h (m2_val_print): Return void.
8871 * language.h (struct language_defn) <la_val_print>: Return void.
8872 * language.c (unk_lang_val_print): Return void.
8873 * jv-valprint.c (java_val_print): Return void.
8874 * jv-lang.h (java_val_print): Return void.
8875 * f-valprint.c (f_val_print): Return void.
8876 * f-lang.h (f_val_print): Return void.
8877 * d-valprint.c (d_val_print): Return void.
8878 (dynamic_array_type): Update.
8879 * d-lang.h (d_val_print): Return void.
8880 * c-valprint.c (c_val_print): Return void.
8881 * c-lang.h (c_val_print): Return void.
8882 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8884 * ada-lang.h (ada_val_print): Return void.
8886 2012-03-01 Tom Tromey <tromey@redhat.com>
8888 * value.h (val_print): Return void.
8889 * valprint.c (val_print): Return void.
8891 2012-03-01 Tom Tromey <tromey@redhat.com>
8893 * value.h (common_val_print): Return void.
8894 * valprint.c (common_val_print): Return void.
8896 2012-03-01 Tom Tromey <tromey@redhat.com>
8898 * value.h (value_print): Return void.
8899 * valprint.c (value_print): Return void.
8900 * p-valprint.c (pascal_value_print): Return void.
8901 * p-lang.h (pascal_value_print): Return void.
8902 * language.h (struct language_defn) <la_value_print>: Return
8904 * language.c (unk_lang_value_print): Return void.
8905 * jv-valprint.c (java_value_print): Return void.
8906 * jv-lang.h (java_value_print): Return void.
8907 * f-valprint.c (c_value_print): Don't declare.
8909 * c-valprint.c (c_value_print): Return void.
8910 * c-lang.h (c_value_print): Return void.
8911 * ada-valprint.c (ada_value_print): Return void.
8912 * ada-lang.h (ada_value_print): Return void.
8914 2012-03-01 Tom Tromey <tromey@redhat.com>
8916 * value.c (value_primitive_field): Handle virtual base classes.
8918 2012-03-01 Tom Tromey <tromey@redhat.com>
8920 * gdbtypes.h (struct vbase): Remove.
8922 2012-03-01 Tom Tromey <tromey@redhat.com>
8924 * c-valprint.c (print_function_pointer_address): Move...
8925 * valprint.c: ... here. Make non-static.
8926 * m2-valprint.c (print_function_pointer_address): Remove.
8927 * valprint.h (print_function_pointer_address): Declare.
8929 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8931 * NEWS: Document the fact that one can provide a condition when
8932 creating an Ada exception catchpoint.
8934 2012-03-01 Tom Tromey <tromey@redhat.com>
8936 * valprint.c (val_print_type_code_flags): Fix placement of
8939 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8941 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8942 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8943 environment variable before calling update-copyright.
8945 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8947 * gnulib/extra/update-copyright: Update to the latest from
8948 gnulib's git repository.
8949 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8950 variable to 2 instead of 1.
8952 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8954 * varobj.c (c_value_of_variable): Remove dead code.
8956 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8958 * ada-lex.p (processId): Do not modify already encoded IDs.
8959 Update function documentation.
8961 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8963 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8964 "name" with "struct symbol *name_sym".
8965 * ada-exp.y (write_var_or_type): Update call to
8966 ada_find_renaming_symbol.
8967 "name" with "struct symbol *name_sym". Adjust Implementation
8968 accordingly. Adjust the function documentation.
8970 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8972 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8973 * ada-lang.c (ada_find_any_type): Add advance declaration.
8974 Make static. Replace ada_find_any_symbol by
8975 ada_find_any_type_symbol.
8976 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8977 Improve function description. Make static.
8978 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8979 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8981 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8983 * ada-lang.c (struct tag_args): Delete.
8984 (ada_get_tsd_type): Function body moved up in source file.
8985 (ada_tag_name_1, ada_tag_name_2): Delete.
8986 (ada_get_tsd_from_tag): New function.
8987 (ada_tag_name_from_tsd): New function.
8988 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8989 to determine the tag name.
8991 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8993 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8995 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8998 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9000 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9002 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9004 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9007 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9009 * ada-lang.c (constrained_packed_array_type): If there is a
9010 parallel XA type, use it to determine the array index type.
9012 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9014 * ada-valprint.c (ada_val_print_1): If our value is a reference
9015 to an array descriptor, dereference it before converting it
9018 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9020 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9021 creating fixed value.
9022 (ada_value_ind, ada_coerce_ref, assign_component)
9023 (ada_evaluate_subexp): Remove call to unwrap_value before
9024 call to ada_to_fixed_value.
9026 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9028 * ada-lang.c (to_fixed_array_type): Set result's type name.
9030 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9032 * ada-lang.c (catch_ada_exception_command_split): Add new
9033 argument cond_string. Add support for condition at end of
9034 "catch exception" commands.
9035 (ada_decode_exception_location): Add new argument cond_string.
9036 Update call to catch_ada_exception_command_split.
9037 (create_ada_exception_catchpoint): Add new argument cond_string.
9038 Set the breakpoint condition if needed.
9039 (catch_ada_exception_command): Update call to
9040 ada_decode_exception_location.
9041 (ada_decode_assert_location): Add function documentation.
9042 Add support for condition at end of "catch assert" command.
9043 (catch_assert_command): Update calls to ada_decode_assert_location
9044 and create_ada_exception_catchpoint.
9046 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9048 Fix disp-step-syscall.exp: fork: single step over fork.
9049 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9050 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9051 comment, change parameters gdbarch and ptid to regcache. Remove
9052 parameter regcache, initialize gdbarch from regcache here.
9053 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9055 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9057 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9058 'syscall'. Make the 'int' check more strict.
9060 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9062 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9063 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9064 (i386_linux_intx80_sysenter_syscall_record): ... here.
9065 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9066 Use the renamed function name.
9068 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9070 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9071 * breakpoint.c (until_break_command): Likewise.
9072 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9073 * infcall.c (call_function_by_hand): Likewise.
9074 * infcmd.c (finish_forward): Likewise.
9075 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9077 2012-02-28 Tristan Gingold <gingold@adacore.com>
9079 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9080 avoid variable assignments inside condition.
9082 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9084 Fix static analysis issue found by cppcheck.
9085 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9086 uninitialized BUF for size 2.
9088 2012-02-27 Chris Dearman <chris@mips.com>
9089 Nathan Froyd <froydnj@codesourcery.com>
9090 Maciej W. Rozycki <macro@codesourcery.com>
9092 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9093 (mips16_instruction_has_delay_slot): Likewise.
9094 (mips_segment_boundary): Likewise.
9095 (mips_adjust_breakpoint_address): Likewise.
9096 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9098 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9099 Maciej W. Rozycki <macro@codesourcery.com>
9101 * infrun.c (handle_inferior_event): Don't proceed through
9102 shared library trampolines if stepping at the machine
9105 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9107 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9110 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9112 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9113 (sh_stub_unwind_sniffer): New functions.
9114 (sh_stub_unwind): New variable.
9115 (sh_gdbarch_init): Wire everything.
9117 2012-02-27 Pedro Alves <palves@redhat.com>
9119 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9120 (linux_nat_post_attach_wait): Adjust to use
9121 linux_proc_pid_is_stopped.
9122 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9123 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9124 based on pid_is_stopped from both linux-nat.c and
9125 gdbserver/linux-low.c, and renamed.
9127 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9129 * remote.c (remote_watchpoint_addr_within_range): New function.
9130 (init_remote_ops): Use it.
9132 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9134 * target.h (target_watchpoint_addr_within_range): Document macro.
9136 2012-02-24 Pedro Alves <palves@redhat.com>
9138 * stack.c (set_last_displayed_sal): Issue internal_error instead
9139 of warning, and issue it after clearing the last displayed sal.
9141 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9142 Pedro Alves <palves@redhat.com>
9144 * breakpoint.c (until_break_command): Install breakpoints after
9145 all frame manipulations.
9147 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9149 * remote.c (remote_supports_cond_breakpoints): New forward
9151 (remote_add_target_side_condition): New function.
9152 (remote_insert_breakpoint): Add target-side breakpoint
9153 conditional if supported.
9154 (remote_insert_hw_breakpoint): Likewise.
9155 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9158 * target.c (update_current_target): Inherit
9159 to_supports_evaluation_of_breakpoint_conditions.
9160 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9162 * target.h (struct target_ops)
9163 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9164 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9166 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9167 (condition_evaluation_both, condition_evaluation_auto,
9168 condition_evaluation_host, condition_evaluation_target,
9169 condition_evaluation_enums, condition_evaluation_mode_1,
9170 condition_evaluation_mode): New static globals.
9171 (translate_condition_evaluation_mode): New function.
9172 (breakpoint_condition_evaluation_mode): New function.
9173 (gdb_evaluates_breakpoint_condition_p): New function.
9174 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9175 (mark_breakpoint_modified): New function.
9176 (mark_breakpoint_location_modified): New function.
9177 (set_condition_evaluation_mode): New function.
9178 (show_condition_evaluation_mode): New function.
9179 (bp_location_compare_addrs): New function.
9180 (get_first_location_gte_addr): New helper function.
9181 (set_breakpoint_condition): Free condition bytecode if locations
9182 has become unconditional. Call mark_breakpoint_modified (...).
9183 (condition_command): Call update_global_location_list (1) for
9185 (breakpoint_xfer_memory): Use is_breakpoint (...).
9186 (is_breakpoint): New function.
9187 (parse_cond_to_aexpr): New function.
9188 (build_target_condition_list): New function.
9189 (insert_bp_location): Handle target-side conditional
9190 breakpoints and call build_target_condition_list (...).
9191 (update_inserted_breakpoint_locations): New function.
9192 (insert_breakpoint_locations): Handle target-side conditional
9194 (bpstat_check_breakpoint_conditions): Add comment.
9195 (bp_condition_evaluator): New function.
9196 (bp_location_condition_evaluator): New function.
9197 (print_breakpoint_location): Print information on where the condition
9199 (print_one_breakpoint_location): Likewise.
9200 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9201 breakpoint location.
9202 (force_breakpoint_reinsertion): New functions.
9203 (update_global_location_list): Handle target-side breakpoint
9205 Reinsert locations that are already inserted if conditions have
9207 (bp_location_dtor): Free agent expression bytecode.
9208 (disable_breakpoint): Call mark_breakpoint_modified (...).
9209 Call update_global_location_list (...) with parameter 1 for breakpoints.
9210 (disable_command): Call mark_breakpoint_location_modified (...).
9211 Call update_global_location_list (...) with parameter 1 for breakpoints.
9212 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9213 (enable_command): mark_breakpoint_location_modified (...).
9214 (_initialize_breakpoint): Update documentation and add
9215 condition-evaluation breakpoint subcommand.
9217 * breakpoint.h: Include ax.h.
9218 (condition_list): New data structure.
9219 (condition_status): New enum.
9220 (bp_target_info) <cond_list>: New field.
9221 (bp_location) <condition_changed, cond_bytecode>: New fields.
9222 (is_breakpoint): New prototype.
9224 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9226 * remote.c (remote_state) <cond_breakpoints>: New field.
9227 (PACKET_ConditionalBreakpoints): New enum.
9228 (remote_cond_breakpoint_feature): New function.
9229 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9230 (remote_supports_cond_breakpoints): New function.
9231 (_initialize_remote): Add new packet configuration for
9232 target-side conditional breakpoints.
9234 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9236 * NEWS: Mention target-side conditional breakpoint support,
9237 new condition-evaluation breakpoint subcommand and remote
9240 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9242 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9245 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9247 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9248 (after_prologue): Remove.
9250 2012-02-23 Tom Tromey <tromey@redhat.com>
9252 * jv-valprint.c (java_val_print): Remove dead code.
9254 2012-02-23 Tristan Gingold <gingold@adacore.com>
9256 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9257 known_tasks_element and known_tasks_length fields.
9258 (read_known_tasks_array): Change argument type. Use pointer type
9259 and number of elements from DATA. Adjust.
9260 (read_known_tasks_list): Likewise.
9261 (get_known_tasks_addr): Remove.
9262 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9263 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9264 type and array length. Merge former get_known_tasks_addr code.
9266 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9269 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9270 it after set_momentary_breakpoint.
9272 2012-02-22 Sterling Augustine <saugustine@google.com>
9275 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9277 2012-02-22 Gary Benson <gbenson@redhat.com>
9279 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9280 (find_slot_in_mapped_hash): Likewise.
9282 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9285 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9286 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9287 * configure: Regenerate.
9289 2012-02-21 Tristan Gingold <gingold@adacore.com>
9290 Pedro Alves <palves@redhat.com>
9292 * ia64-tdep.c: Do not include libunwind-ia64.h.
9293 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9294 Include libunwind-ia64.h instead of libunwind.h.
9295 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9296 for libunwind.h existence.
9297 * configure, config.in: Regenerate.
9299 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9301 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9302 instead of value_rtti_target_type.
9303 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9304 instead of value_rtti_target_type.
9305 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9306 value_rtti_target_type.
9307 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9308 (value_rtti_target_type): Rename to ...
9309 (value_rtti_indirect_type): ... here and make it indirect. Update
9311 * value.c (readjust_indirect_value_type): New function.
9312 (coerce_ref): Support for enclosing type setting for references
9313 with readjust_indirect_value_type.
9314 * value.h (readjust_value_type): New declaration.
9315 (value_rtti_target_type): Rename to ...
9316 (value_rtti_indirect_type): ... here.
9318 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9320 * MAINTAINERS (Write After Approval): Add myself to the list.
9322 2012-02-20 Doug Evans <dje@google.com>
9324 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9325 Rename objfile_p_char parameter to objfilep.
9326 (build_objfile_section_table): Result is now void. All callers
9328 * objfiles.h (struct objfile): Tweak comments, whitespace.
9329 (build_objfile_section_table): Update.
9331 * elfread.c (elf_symfile_segments): Fix warning text.
9333 2012-02-20 Tom Tromey <tromey@redhat.com>
9336 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9337 particular set of file names once.
9338 (dw2_map_symbol_filenames): Likewise.
9340 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9343 * main.c (write_files): Remove the declaration.
9344 (external_editor_command): Move the declaration ...
9345 [GDBTK] (external_editor_command): ... here. Fix the comment.
9347 2012-02-20 Tom Tromey <tromey@redhat.com>
9349 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9352 2012-02-20 Tristan Gingold <gingold@adacore.com>
9354 * darwin-nat.h (enum darwin_msg_state): Add comments.
9356 2012-02-20 Tristan Gingold <gingold@adacore.com>
9358 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9361 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9363 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9364 between function description and implementation.
9366 2012-02-17 Tom Tromey <tromey@redhat.com>
9369 * python/py-event.c (event_object_getset): New global.
9370 (event_object_type): Reference it.
9371 * python/py-type.c (field_object_getset): New global.
9372 (field_object_type): Reference it.
9373 * python/python-internal.h (gdb_py_generic_dict): Declare.
9374 * python/py-utils.c (gdb_py_generic_dict): New function.
9376 2012-02-17 Tristan Gingold <gingold@adacore.com>
9378 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9380 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9382 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9383 TYPE_CALLING_CONVENTION annotation.
9385 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9387 * MAINTAINERS: Add rx to target ISA section.
9388 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9389 (ALLDEPFILES): Add rx-tdep.c.
9391 2012-02-16 Tom Tromey <tromey@redhat.com>
9393 * symfile.c (symbol_file_add_main_1): Use inferior's
9395 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9396 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9398 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9400 (follow_exec): Use inferior's symfile_flags.
9401 * inferior.h (struct inferior) <symfile_flags>: New field.
9403 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9406 * remote-sim.c (gdbsim_create_inferior): Call error() when
9407 sim_create_inferior() fails.
9409 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9411 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9413 2012-02-16 Tom Tromey <tromey@redhat.com>
9416 * thread.c (struct current_thread_cleanup) <was_removable>: New
9418 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9419 (make_cleanup_restore_current_thread): Initialize new field.
9421 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9423 * MAINTAINERS: Add rl78 to target ISA section.
9424 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9425 (ALLDEPFILES): Add rl78-tdep.c.
9426 * NEWS: Mention rl78 as a new target.
9428 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9430 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9432 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9434 2012-02-15 Tom Tromey <tromey@redhat.com>
9437 * infcmd.c (registers_info): Print just the current register's
9440 2012-02-15 Tom Tromey <tromey@redhat.com>
9442 * python/py-symbol.c (sympy_value): Use _().
9444 2012-02-15 Pedro Alves <palves@redhat.com>
9446 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9447 output to be like native targets'.
9448 (remote_pid_to_str): Special case the null ptid.
9450 2012-02-14 Stan Shebs <stan@codesourcery.com>
9452 * NEWS: Mention enable count command.
9453 * breakpoint.h (struct breakpoint): New field enable_count.
9454 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9455 (enable_breakpoint): Add arg to call.
9456 (struct disp_data): New struct.
9457 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9458 (do_map_enable_once_breakpoint): Create a struct and pass it.
9459 (do_map_enable_delete_breakpoint): Ditto.
9460 (do_map_enable_count_breakpoint): New function.
9461 (enable_count_command): New function.
9462 (bpstat_stop_status): Decrement enable_count.
9463 (print_one_breakpoint_location): Report enable count.
9464 (_initialize_breakpoint): Add enable count command.
9466 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9468 * rl78-tdep.c (reggroups.h): Include.
9469 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9470 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9471 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9472 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9473 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9474 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9475 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9476 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9477 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9478 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9479 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9480 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9481 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9482 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9483 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9484 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9485 beginning of register list.
9486 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9487 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9488 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9489 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9490 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9491 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9492 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9493 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9494 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9495 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9496 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9497 the pseudo registers. Rearrange other pseudo registers too so
9498 that the bank registers appear at the end.
9499 (rl78_register_type): Account for the fact that the byte sized
9500 bank registers are now pseudo-registers.
9501 (rl78_register_name): Rearrange the register name array. Make
9502 initial set of raw banked registers inaccessible.
9503 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9504 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9505 case for copying bytes back and forth between raw and pseudo
9506 versions of the banked registers. Update other cases to reflect
9508 (rl78_return_value): Update to account for changed names of
9510 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9511 rl78_register_sim_regno().
9513 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9515 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9516 the name parameter being passed to find_pc_partial_function().
9518 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9520 * MAINTAINERS: Step down from being ia64 target maintainer.
9522 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9524 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9525 compilation warning.
9527 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9529 Fix crash on loaded shlibs without loaded exec_bfd.
9530 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9531 (set_section_command): Replace exec_bfd by p->bfd.
9533 2012-02-10 Tom Tromey <tromey@redhat.com>
9535 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9536 when we have a C++ qualified name.
9538 2012-02-10 Pedro Alves <palves@redhat.com>
9540 * inferior.c (inferior_pid_to_str): New.
9541 (print_inferior, inferior_command): Use it.
9543 2012-02-10 Pedro Alves <palves@redhat.com>
9545 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9547 * configure: Regenerate.
9549 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9551 * linespec.c (decode_line_internal): Fix comment correctness.
9553 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9556 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9557 * amd64bsd-nat.c: Add support for debug registers (adapted from
9559 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9560 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9561 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9562 (amd64bsd_dr_get_control): New functions.
9563 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9564 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9565 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9566 watchpoints initialization.
9567 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9569 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9571 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9573 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9575 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9577 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9579 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9581 * language.h (symbol_name_cmp_ftype): Renames
9582 symbol_name_match_p_ftype.
9583 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9584 la_get_symbol_name_match_p.
9585 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9586 ada_get_symbol_name_match_p. Update comment.
9587 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9588 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9589 Renames symbol_name_match_p. Update field type.
9590 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9591 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9592 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9593 "la_get_symbol_name_cmp" in comments.
9594 * language.c: Likewise.
9596 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9598 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9600 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9601 (amd64_sol2_gregset32_reg_offs): Likewise.
9603 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9605 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9606 of the returned BFD is allocated by GDB.
9608 2012-02-07 Tom Tromey <tromey@redhat.com>
9611 * python/python-internal.h (frame_object_type): Declare.
9612 * python/py-symbol.c (sympy_needs_frame): New function.
9613 (sympy_value): New function.
9614 (symbol_object_getset): Add "needs_frame".
9615 (symbol_object_methods): Add "value".
9616 * python/py-frame.c (frame_object_type): No longer static.
9618 2012-02-07 Tom Tromey <tromey@redhat.com>
9621 * python/py-symbol.c (sympy_line): New function.
9622 (symbol_object_getset): Add "line".
9624 2012-02-07 Tom Tromey <tromey@redhat.com>
9626 * charset.c (find_charset_names): Check 'in' against NULL.
9628 2012-02-06 Doug Evans <dje@google.com>
9630 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9631 and fields.name members from char * to const char *. All uses updated.
9632 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9633 from char * to const char *. All uses updated.
9634 (type_name_no_tag): Update.
9635 (lookup_unsigned_typename, lookup_signed_typename): Update.
9636 * gdbtypes.c (type_name_no_tag): Change result type
9637 from char * to const char *. All callers updated.
9638 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9639 name parameter from char * to const char *.
9640 * symtab.h (struct cplus_specific): Change type of demangled_name
9641 member from char * to const char *. All uses updated.
9642 (struct general_symbol_info): Change type of name and
9643 mangled_lang.demangled_name members from char * to const char *.
9645 (symbol_get_demangled_name, symbol_natural_name): Update.
9646 (symbol_demangled_name, symbol_search_name): Update.
9647 * symtab.c (symbol_get_demangled_name): Change result type
9648 from char * to const char *. All callers updated.
9649 (symbol_natural_name, symbol_demangled_name): Ditto.
9650 (symbol_search_name): Ditto.
9651 (completion_list_add_name): Change type of symname,sym_text,
9652 text,word parameters from char * to const char *.
9653 (completion_list_objc_symbol): Change type of sym_text,
9654 text,word parameters from char * to const char *.
9655 * ada-lang.c (find_struct_field): Change type of name parameter
9656 from char * to const char *.
9657 (encoded_ordered_before): Similarly for N0,N1 parameters.
9658 (old_renaming_is_invisible): Similarly for function_name parameter.
9659 (ada_type_name): Change result type from char * to const char *.
9660 All callers updated.
9661 * ada-lang.h (ada_type_name): Update.
9662 * buildsym.c (hashname): Change type of name parameter
9663 from char * to const char *.
9664 * buildsym.h (hashname): Update.
9665 * dbxread.c (end_psymtab): Change type of include_list parameter
9666 from char ** to const char **.
9667 * dwarf2read.c (determine_prefix): Change result type
9668 from char * to const char *. All callers updated.
9669 * f-lang.c (find_common_for_function): Change type of name, funcname
9670 parameters from char * to const char *.
9671 * f-lang.c (find_common_for_function): Update.
9672 * f-valprint.c (list_all_visible_commons): Change type of funcname
9673 parameters from char * to const char *.
9674 * gdbarch.sh (static_transform_name): Change type of name parameter
9675 and result from char * to const char *.
9676 * gdbarch.c: Regenerate.
9677 * gdbarch.h: Regenerate.
9678 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9679 of name parameter from char * to const char *.
9680 * jv-lang.c (java_primitive_type_from_name): Ditto.
9681 (java_demangled_signature_length): Similarly for signature parameter.
9682 (java_demangled_signature_copy): Ditto.
9683 (java_demangle_type_signature): Ditto.
9684 * jv-lang.h (java_primitive_type_from_name): Update.
9685 (java_demangle_type_signature): Update.
9686 * objc-lang.c (specialcmp): Change type of a,b parameters
9687 from char * to const char *.
9688 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9689 from char * to const char *. All callers updated.
9690 * p-lang.h (is_pascal_string_type): Update.
9691 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9692 of name parameter from char * to const char *.
9693 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9694 * utils.c (fprintf_symbol_filtered): Ditto.
9695 * defs.h (fprintf_symbol_filtered): Update.
9696 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9697 * stabsread.h (end_psymtab): Update.
9698 * stack.c (find_frame_funname): Change type of funname parameter
9699 from char ** to const char **.
9700 * stack.h (find_frame_funname): Update.
9701 * typeprint.c (type_print): Change type of varstring parameter
9702 from char * to const char *.
9703 * value.h (type_print): Update.
9704 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9705 from char * to const char *. All callers updated.
9706 (xcoff_end_psymtab): Change type of include_list parameter
9707 from char ** to const char **. All callers updated.
9708 (swap_sym): Similarly for name parameter. All callers updated.
9709 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9711 (process_coff_symbol): Use xstrdup.
9712 * stabsread.c (stabs_method_name_from_physname): Renamed from
9713 update_method_name_from_physname. Change result type from void
9714 to char *. All callers updated.
9715 (read_member_functions): In has_destructor case, store name in objfile
9716 obstack instead of malloc space. In !has_stub case, fix mem leak.
9718 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9720 * configure: Rebuild.
9721 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9724 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9726 * configure.tgt (rl78-*-elf): New target.
9727 * rl78-tdep.c: New file.
9729 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9731 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9732 and continue the loop. Add QUIT statement.
9734 2012-02-03 Tom Tromey <tromey@redhat.com>
9737 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9738 bfd_lookup_symbol_from_symtab.
9739 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9740 gdb_bfd_lookup_symbol_from_symtab.
9742 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9744 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9745 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9746 symbol. Add assertion that sym2 is never NULL.
9748 2012-02-02 Doug Evans <dje@google.com>
9750 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9751 "name" parameter to const char ** from char **. All callers updated.
9752 (find_pc_partial_function): Ditto.
9753 (cache_pc_function_name): Change type to const char * from char *.
9754 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9755 (find_pc_partial_function): Update.
9756 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9757 type of "name" parameter to const char * from char *.
9759 * arch-utils.c (generic_in_solib_return_trampoline): Change
9760 type of "name" parameter to const char * from char *.
9761 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9762 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9763 type of "name" parameter to const char * from char *.
9764 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9765 * gdbarch.c: Regenerate.
9766 * gdbarch.h: Regenerate.
9767 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9768 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9769 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9770 type of "name" parameter to const char * from char *.
9771 * skip.c (skip_function_pc): Ditto.
9772 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9773 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9774 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9775 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9776 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9777 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9778 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9779 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9780 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9782 2012-02-02 Pedro Alves <palves@redhat.com>
9784 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9785 the current inferior has no execution. Make sure the current
9786 remote process matches gdb's current inferior.
9788 2012-02-02 Tom Tromey <tromey@redhat.com>
9791 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9794 2012-02-02 Tom Tromey <tromey@redhat.com>
9797 * symtab.c (lookup_language_this): Set block_found.
9799 2012-02-01 Tom Tromey <tromey@redhat.com>
9802 * jit.c (struct jit_inferior_data): Rewrite.
9803 (struct jit_objfile_data): New.
9804 (get_jit_objfile_data): New function.
9805 (add_objfile_entry): Update.
9806 (jit_read_descriptor): Return int. Replace descriptor_addr
9807 argument with inf_data. Update. Don't call error.
9808 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9810 (jit_inferior_init): Don't look up descriptor. Don't call error.
9811 (jit_reset_inferior_data_and_breakpoints)
9812 (jit_inferior_created_observer): Remove.
9813 (jit_inferior_exit_hook): Update.
9814 (jit_executable_changed_observer): Remove.
9815 (jit_event_handler): Update.
9816 (free_objfile_data): Reset inferior data if needed.
9817 (_initialize_jit): Update.
9819 2012-02-01 Tom Tromey <tromey@redhat.com>
9821 * jit.c (bfd_open_from_target_memory): Move higher in file.
9823 2012-02-01 Tristan Gingold <gingold@adacore.com>
9825 * libunwind-frame.c (libunwind_load): Display message if dlopen
9828 2012-02-01 Gary Benson <gbenson@redhat.com>
9830 * symtab.h (symbol_found_callback_ftype): New typedef.
9831 (iterate_over_symbols): Use the above.
9832 * symtab.c (iterate_over_symbols): Likewise.
9833 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9834 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9835 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9836 (iterate_name_matcher): Document return values.
9837 (collect_one_symbol): Likewise.
9838 (collect_function_symbols): Likewise.
9839 (collect_symbols): Likewise.
9841 2012-02-01 Tom Tromey <tromey@redhat.com>
9843 * ada-lang.c (resolve_subexp): Update.
9844 (ada_lookup_symbol_list): Add 'full_search' argument.
9845 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9846 ada_lookup_symbol_list.
9847 (ada_lookup_encoded_symbol): Update.
9848 (get_var_value): Update.
9849 * ada-exp.y (block_lookup): Update.
9850 (write_var_or_type): Update.
9851 (write_name_assoc): Update.
9852 * ada-lang.h (ada_lookup_symbol_list): Update.
9854 2012-01-31 Tom Tromey <tromey@redhat.com>
9856 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9859 2012-01-31 Doug Evans <dje@google.com>
9861 * symtab.h: Remove outdated comment.
9862 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9864 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9866 Fix build error in Darwin port.
9867 * i386-darwin-nat.c: Include i386-nat.h.
9869 2012-01-30 Tom Tromey <tromey@redhat.com>
9871 PR breakpoints/13568:
9872 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9873 argument. Check for recursive includes.
9874 (dwarf_decode_macros): Create an include hash.
9876 2012-01-30 Michael Eager <eager@eagercon.com>
9878 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9879 * ppc-linux-tdep.c: Include glibc-tdep.h.
9880 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9881 (powerpc_linux_in_plt_stub): New function.
9882 (powerpc_linux_in_dynsym_resolve_code): New function.
9883 (ppc_skip_trampoline_code): New function.
9884 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9885 Use glibc_skip_solib_resolver.
9887 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9889 Code cleanup: Make 1440 bytes of data segment read-only.
9890 * arch-utils.c (endian_enum): Make it const char *const [].
9891 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9893 * breakpoint.c (always_inserted_enums): Likewise.
9894 * cli/cli-cmds.c (script_ext_enums): Likewise.
9895 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9896 enumlist parameter const char *const *.
9897 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9898 const char *const *.
9899 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9900 parameter const char *const *.
9901 * cris-tdep.c (cris_modes): Make it const char *const [].
9902 * filesystem.c (target_file_system_kinds): Likewise.
9903 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9904 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9905 (can_use_displaced_stepping_enum, scheduler_enums)
9906 (exec_direction_names): Likewise.
9907 * language.c (_initialize_language): Make the type_or_range_names and
9908 case_sensitive_names variables const char *const [].
9909 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9910 * python/python.c (python_excp_enums): Likewise.
9911 * remote.c (interrupt_sequence_modes): Likewise.
9912 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9913 * serial.c (logbase_enums): Likewise.
9914 * sh-tdep.c (sh_cc_enum): Likewise.
9915 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9917 * symtab.c (multiple_symbols_modes): Likewise.
9918 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9920 * utils.c (internal_problem_modes): Likewise.
9922 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9924 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9925 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9928 2012-01-27 Doug Evans <dje@google.com>
9930 * configure.ac (with_python): Fix absolute path handling for win32.
9931 * configure: Regenerate.
9933 2012-01-26 Doug Evans <dje@google.com>
9935 * symtab.c: Whitespace cleanup, no code changes.
9937 * symtab.c (lookup_symbol_in_language): Improve comment.
9938 (lookup_symbol_aux): Fix comment.
9940 * psymtab.c (add_psymbol_to_list): Result is now "void".
9941 * psympriv.h (add_psymbol_to_list): Update.
9943 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9945 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9947 Do not open script filenames twice.
9948 * cli/cli-cmds.c (source_script_from_stream): Pass to
9949 source_python_script also STREAM.
9950 * python/py-auto-load.c (source_section_scripts): Pass to
9951 source_python_script_for_objfile also STREAM.
9952 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9954 * python/python-internal.h (source_python_script_for_objfile): New
9955 parameter file, rename parameter file to filename.
9956 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9957 instead if !_WIN32. Update the function comment.
9958 (source_python_script, source_python_script_for_objfile)
9959 (source_python_script): New parameter file, rename parameter file to
9960 filename. Pass FILENAME to python_run_simple_file.
9961 * python/python.h (source_python_script): New parameter file, rename
9962 parameter file to filename.
9964 2012-01-26 Pedro Alves <palves@redhat.com>
9966 * corelow.c (core_has_fake_pid): Delete.
9967 (core_close): Delete references to `core_has_fake_pid'.
9968 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9969 (core_open): Delete references to `core_has_fake_pid'.
9970 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9973 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9975 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9976 Remove language parameter from name_matcher. Adjust the comment.
9977 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9978 Remove language parameter.
9979 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9980 * linespec.c (iterate_name_matcher): Likewise.
9981 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9982 name_matcher. Adjust call accordingly.
9983 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9984 (maintenance_check_symtabs): Adjust type of parameter "fun".
9985 * psymtab.h (maintenance_check_symtabs): Likewise.
9987 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9989 * language.h (symbol_name_match_p_ftype): New typedef.
9990 (struct language_defn): Replace field la_symbol_name_compare
9991 by la_get_symbol_name_match_p.
9992 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9993 (ada_language_defn): Use it.
9994 * linespec.c (struct symbol_matcher_data): New type.
9995 (iterate_name_matcher): Rewrite.
9996 (iterate_over_all_matching_symtabs): Pass a pointer to
9997 a symbol_matcher_data struct to expand_symtabs_matching
9998 instead of just the lookup name.
9999 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10000 opencl-lang.c, p-lang.c, language.c: Delete field
10001 la_symbol_name_compare, and replace by NULL for new field
10002 la_get_symbol_name_match_p.
10003 * symfile.h (struct quick_symbol_functions): Update comment.
10005 2012-01-25 Tom Tromey <tromey@redhat.com>
10007 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10010 2012-01-24 Tom Tromey <tromey@redhat.com>
10013 * solib.c (update_solib_list): Update the program space's
10014 added_solibs and deleted_solibs fields.
10015 * progspace.h (struct program_space) <added_solibs,
10016 deleted_solibs>: New fields.
10017 (clear_program_space_solib_cache): Declare.
10018 * progspace.c (release_program_space): Call
10019 clear_program_space_solib_cache.
10020 (clear_program_space_solib_cache): New function.
10021 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10022 bpstat_stop_status. Use handle_solib_event.
10023 * breakpoint.c: Include gdb_regex.h.
10024 (print_solib_event): New function.
10025 (bpstat_print): Use print_solib_event.
10026 (bpstat_stop_status): Add special case for bp_shlib_event.
10027 (handle_solib_event): New function.
10028 (bpstat_what): Use handle_solib_event.
10029 (struct solib_catchpoint): New.
10030 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10031 (breakpoint_hit_catch_solib, check_status_catch_solib)
10032 (print_it_catch_solib, print_one_catch_solib)
10033 (print_mention_catch_solib, print_recreate_catch_solib): New
10035 (catch_solib_breakpoint_ops): New global.
10036 (catch_load_or_unload, catch_load_command_1)
10037 (catch_unload_command_1): New functions.
10038 (internal_bkpt_check_status): Add special case for
10040 (internal_bkpt_print_it): Use print_solib_event.
10041 (initialize_breakpoint_ops): Initialize
10042 catch_solib_breakpoint_ops.
10043 (_initialize_breakpoint): Register "catch load" and "catch
10045 * breakpoint.h (handle_solib_event): Declare.
10046 * NEWS: Add entry for "catch load" and "catch unload".
10048 2012-01-24 Tom Tromey <tromey@redhat.com>
10050 * ada-lang.c: Include gdb_vecs.h.
10051 * charset.c: Include gdb_vecs.h.
10052 * tracepoint.h: Include gdb_vecs.h.
10053 * gdb_vecs.h: New file.
10055 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10057 * breakpoint.c (breakpoint_hit_catch_fork)
10058 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10059 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10060 * infrun.c (inferior_has_forked, inferior_has_vforked)
10061 (inferior_has_execd, inferior_has_called_syscall): Delete.
10062 (handle_syscall_event): Get syscall_number from the execution
10063 control state's wait status.
10064 (wait_for_inferior): Don't clear syscall_number.
10066 2012-01-24 Pedro Alves <palves@redhat.com>
10068 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10069 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10070 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10071 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10073 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10074 false for events other than TARGET_SIGNAL_TRAP.
10075 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10076 Add `ws' parameter.
10077 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10078 events other than TARGET_SIGNAL_TRAP.
10079 (tracepoint_breakpoint_hit): Add `ws' parameter.
10080 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10082 (bpstat_stop_status): Same.
10083 (pc_at_non_inline_function): Same.
10084 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10085 to pass the current event's waitstatus to bpstat_stop_status
10086 and pc_at_non_inline_function.
10088 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10091 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10092 Update the function comment for it.
10093 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10094 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10097 2012-01-24 Pedro Alves <palves@redhat.com>
10099 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10100 outside `bs->stop' block.
10101 (bpstat_what): Rework bp_shlib_event handling.
10102 (internal_bkpt_check_status): If the breakpoint is a
10103 bp_shlib_event, then set bs->stop and bs->print if
10104 stop_on_solib_events is set.
10106 2012-01-24 Gary Benson <gbenson@redhat.com>
10108 Delete #if 0'd out code.
10109 * stack.c (print_frame_label_vars): Remove.
10110 (catch_info): Likewise.
10111 (_initialize_stack): Remove "info catch" command.
10112 * NEWS: Mention the above.
10114 2012-01-24 Pedro Alves <palves@redhat.com>
10116 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10118 (remote_notice_new_inferior): If the remote end doesn't support
10119 the multiprocess extensions, then the PID is fake.
10120 (add_current_inferior_and_thread): New.
10121 (remote_start_remote): Use it.
10122 (extended_remote_attach_1): Adjust.
10123 (extended_remote_create_inferior_1): Use
10124 add_current_inferior_and_thread.
10126 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10128 Fix watchpoints to be specific for each inferior.
10129 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10130 current_program_space.
10131 * i386-nat.c (i386_inferior_data_cleanup): New.
10132 (i386_inferior_data_get): Replace variable inf_data_local by an
10133 inferior_data call.
10134 (i386_use_watchpoints): Initialize i386_inferior_data.
10135 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10136 specific iterate_over_lwps.
10138 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10140 Fix watchpoints across inferior fork.
10141 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10142 comment for linux_nat_iterate_watchpoint_lwps.
10143 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10144 linux_nat_iterate_watchpoint_lwps.
10145 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10146 * i386-linux-nat.c (update_debug_registers_callback): Update the
10147 comment for linux_nat_iterate_watchpoint_lwps.
10148 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10149 linux_nat_iterate_watchpoint_lwps.
10150 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10151 * i386-nat.c: Include inferior.h.
10152 (dr_mirror): Remove.
10153 (i386_inferior_data, struct i386_inferior_data)
10154 (i386_inferior_data_get): New.
10155 (i386_debug_reg_state): Use i386_inferior_data_get.
10156 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10157 (i386_insert_watchpoint, i386_remove_watchpoint)
10158 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10159 (i386_remove_hw_breakpoint): New variable state, use
10160 i386_debug_reg_state instead of DR_MIRROR.
10161 * linux-nat.c (delete_lwp): New declaration.
10162 (num_lwps): Move here from downwards.
10163 (delete_lwp_cleanup): New.
10164 (linux_child_follow_fork): Create new child_lp, call
10165 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10167 (num_lwps): Move upwards.
10168 (linux_nat_iterate_watchpoint_lwps): New.
10169 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10170 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10172 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10176 2012-01-23 Pedro Alves <palves@redhat.com>
10178 * top.c (caution): Rename to ...
10179 (confirm): ... this.
10180 (show_caution): Rename to ...
10181 (show_confirm): ... this.
10182 (quit_cover): Adjust.
10183 (init_main): Adjust.
10184 * top.h (caution): Rename to ...
10185 (confirm): ... this.
10186 * utils.c (internal_vproblem, defaulted_query): Adjust.
10188 2012-01-23 Pedro Alves <palves@redhat.com>
10190 * top.c (caution): Update comment.
10191 (execute_command): Don't consider the current value of `caution'.
10193 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10195 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10197 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10199 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10200 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10201 * target.c (target_fileio_pwrite): Remove buffer address from
10203 (target_fileio_pread): Likewise.
10205 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10207 * NEWS: Document remote "info proc" and "generate-core-file".
10209 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10211 * gdbarch.sh (find_memory_regions): New callback.
10212 * gdbarch.c, gdbarch.h: Regenerate.
10214 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10215 callback before falling back to target method.
10217 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10218 (linux_target_install_ops): No longer install it.
10220 * linux-tdep.c (linux_find_memory_regions): New function.
10221 (linux_init_abi): Install it.
10223 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10225 * gdbarch.sh (make_corefile_notes): New architecture callback.
10226 * gdbarch.c: Regenerate.
10227 * gdbarch.h: Likewise.
10229 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10230 before target_make_corefile_notes. If NULL is returned, the
10231 target does not support core file generation.
10233 * linux-nat.c: Include "linux-tdep.h".
10234 (find_signalled_thread, find_stop_signal): Remove.
10235 (linux_nat_do_thread_registers): Likewise.
10236 (struct linux_nat_corefile_thread_data): Likewise.
10237 (linux_nat_corefile_thread_callback): Likewise.
10238 (iterate_over_spus): Likewise.
10239 (struct linux_spu_corefile_data): Likewise.
10240 (linux_spu_corefile_callback): Likewise.
10241 (linux_spu_make_corefile_notes): Likewise.
10242 (linux_nat_collect_thread_registers): New function.
10243 (linux_nat_make_corefile_notes): Replace contents by call to
10244 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10245 as native-only callback.
10247 * linux-tdep.h: Include "bfd.h".
10248 (struct regcache): Add forward declaration.
10249 (linux_collect_thread_registers_ftype): New typedef.
10250 (linux_make_corefile_notes): Add prototype.
10251 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10252 "regset.h", and "elf-bfd.h".
10253 (find_signalled_thread, find_stop_signal): New functions.
10254 (linux_spu_make_corefile_notes): Likewise.
10255 (linux_collect_thread_registers): Likewise.
10256 (struct linux_corefile_thread_data): New data structure.
10257 (linux_corefile_thread_callback): New funcion.
10258 (linux_make_corefile_notes): Likewise.
10259 (linux_make_corefile_notes_1): Likewise.
10260 (linux_init_abi): Install it.
10262 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10264 * gdbarch.sh (info_proc): New callback.
10265 * gdbarch.c, gdbarch.h: Regenerate.
10267 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10268 before falling back to the target info_proc callback.
10270 * linux-nat.c: Do not include "cli/cli-utils.h".
10271 (linux_nat_info_proc): Remove.
10272 (linux_target_install_ops): No longer install it.
10274 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10275 (read_mapping): New function.
10276 (linux_info_proc): Likewise.
10277 (linux_init_abi): Install it.
10279 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10281 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10282 * infcmd.c: (info_proc_cmd_1): New function.
10283 (info_proc_cmd): New function, moved here from equivalent routine
10284 orignally in linux-nat.c.
10285 (info_proc_cmd_mappings): Likewise.
10286 (info_proc_cmd_stat): Likewise.
10287 (info_proc_cmd_status): Likewise.
10288 (info_proc_cmd_cwd): Likewise.
10289 (info_proc_cmd_cmdline): Likewise.
10290 (info_proc_cmd_exe): Likewise.
10291 (info_proc_cmd_all): Likewise.
10292 (_initialize_infcmd): Install "info proc" command and subcommands.
10294 * target.h (struct target_ops): Add to_info_proc.
10295 (target_info_proc): Add prototype.
10296 * target.c (target_info_proc): New function.
10298 * procfs.c (procfs_info_proc): Add prototype.
10299 (info_proc_cmd): Rename into ...
10300 (procfs_info_proc): ... this. Update argument types as appropriate
10301 for a to_info_proc implementation. Handle "what" argument.
10302 (procfs_target): Install procfs_info_proc.
10303 (_initialize_procfs): No longer install "info proc" command.
10305 * linux-nat.c: (enum info_proc_what): Remove.
10306 (linux_nat_info_proc_cmd_1): Rename into ...
10307 (linux_nat_info_proc): ... this. Update argument types as appropriate
10308 for a to_info_proc implementation.
10309 (linux_nat_info_proc_cmd): Remove.
10310 (linux_nat_info_proc_cmd_mappings): Likewise.
10311 (linux_nat_info_proc_cmd_stat): Likewise.
10312 (linux_nat_info_proc_cmd_status): Likewise.
10313 (linux_nat_info_proc_cmd_cwd): Likewise.
10314 (linux_nat_info_proc_cmd_cmdline): Likewise.
10315 (linux_nat_info_proc_cmd_exe): Likewise.
10316 (linux_nat_info_proc_cmd_all): Likewise.
10317 (linux_target_install_ops): Install linux_nat_info_proc.
10318 (_initialize_linux_nat): No longer install "info proc" command
10321 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10323 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10324 * config.in, configure: Regenerate.
10326 * target.h (struct target_ops): Add to_fileio_readlink.
10327 (target_fileio_readlink): Add prototype.
10328 * target.c (target_fileio_readlink): New function.
10330 * inf-child.c: Conditionally include <sys/param.h>.
10331 (inf_child_fileio_readlink): New function.
10332 (inf_child_target): Install it.
10334 * remote.c (PACKET_vFile_readlink): New enum value.
10335 (remote_hostio_readlink): New function.
10336 (init_remote_ops): Install it.
10337 (_initialize_remote): Handle vFile:readlink packet type.
10339 2012-01-20 Pedro Alves <palves@redhat.com>
10340 Ulrich Weigand <ulrich.weigand@linaro.org>
10342 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10343 * config.in, configure: Regenerate.
10345 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10346 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10347 (target_fileio_open): Add prototype.
10348 (target_fileio_pwrite): Likewise.
10349 (target_fileio_pread): Likewise.
10350 (target_fileio_close): Likewise.
10351 (target_fileio_unlink): Likewise.
10352 (target_fileio_read_alloc): Likewise.
10353 (target_fileio_read_stralloc): Likewise.
10355 * target.c: Include "gdb/fileio.h".
10356 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10357 (default_fileio_target): New function.
10358 (target_fileio_open): Likewise.
10359 (target_fileio_pwrite): Likewise.
10360 (target_fileio_pread): Likewise.
10361 (target_fileio_close): Likewise.
10362 (target_fileio_unlink): Likewise.
10363 (target_fileio_close_cleanup): Likewise.
10364 (target_fileio_read_alloc_1): Likewise.
10365 (target_fileio_read_alloc): Likewise.
10366 (target_fileio_read_stralloc): Likewise.
10368 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10369 <fcntl.h>, and <unistd.h>.
10370 (inf_child_fileio_open_flags_to_host): New function.
10371 (inf_child_errno_to_fileio_error): Likewise.
10372 (inf_child_fileio_open): Likewise.
10373 (inf_child_fileio_pwrite): Likewise.
10374 (inf_child_fileio_pread): Likewise.
10375 (inf_child_fileio_close): Likewise.
10376 (inf_child_fileio_unlink): Likewise.
10377 (inf_child_target): Install to_fileio routines.
10379 * remote.c (init_remote_ops): Install to_fileio routines.
10381 2012-01-20 Pedro Alves <palves@redhat.com>
10382 Ulrich Weigand <ulrich.weigand@linaro.org>
10384 * remote.c (remote_multi_process_p): Only check for multi-process
10385 protocol feature, do not check for extended protocol.
10386 (remote_supports_multi_process): Check for extended protocol here.
10387 (set_general_process): Likewise.
10388 (extended_remote_kill): Likewise.
10389 (remote_pid_to_str): Likewise.
10390 (remote_query_supported): Always query multiprocess mode.
10392 2012-01-20 Pedro Alves <palves@redhat.com>
10393 Ulrich Weigand <ulrich.weigand@linaro.org>
10395 * inferior.h (struct inferior): Add fake_pid_p.
10396 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10397 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10398 magic_null_ptid since the remote side doesn't provide a real PID.
10400 2012-01-19 Tom Tromey <tromey@redhat.com>
10402 * NEWS: Combine the two Python sections.
10404 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10406 * target.h (target_close): Update comment on the target's unpush state.
10408 2012-01-19 Pedro Alves <palves@redhat.com>
10410 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10411 linux_nat_async directly instead of going through the target
10413 * target.c (unpush_target): Close target after unpushing it, not
10416 2012-01-19 Gary Benson <gbenson@redhat.com>
10418 * mdebugread.c (sort_blocks): Replace integer constants with ones
10419 derived from FIRST_LOCAL_BLOCK.
10421 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10422 Jan Kratochvil <jan.kratochvil@redhat.com>
10425 * symfile.c (find_separate_debug_file): New function.
10426 (terminate_after_last_dir_separator): Likewise.
10427 (find_separate_debug_file_by_debuglink): Also try realpath.
10428 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10429 * configure: Regenerate.
10430 * config.in: Regenerate.
10432 2012-01-18 Doug Evans <dje@google.com>
10434 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10435 (main.o): Remove rule.
10436 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10437 (--with-sysroot): Rewrite.
10438 * configure: Regenerate.
10439 * config.in: Regenerate.
10441 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10443 * parse.c (initialize_expout): New function.
10444 (reallocate_expout): Likewise.
10445 (parse_exp_in_context): Use `initialize_expout' and
10446 `reallocate_expout' when appropriate.
10448 2012-01-18 Pedro Alves <palves@redhat.com>
10450 * record.c (struct record_breakpoint, record_breakpoint_p)
10451 (record_breakpoints): New.
10452 (record_insert_breakpoint, record_remove_breakpoint): Manage
10453 record breakpoints list. Only remove breakpoints from the
10454 inferior if they had been inserted there in the first place.
10456 2012-01-17 Doug Evans <dje@google.com>
10458 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10459 if we know we don't have a file name to look for.
10461 2012-01-17 Pedro Alves <palves@redhat.com>
10463 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10464 the frame's stop reason is UNWIND_UNAVAILABLE.
10466 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10468 Fix compilation error.
10469 * m2-exp.y (yyerror): Use ANSI C prototype.
10471 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10473 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10474 (growbuf_by_size): Likewise.
10475 (yyerror): Likewise.
10476 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10477 (modblock): Remove variable (was #if 0'ed).
10478 (parse_number): Convert prototype from K&R to ANSI C.
10479 (yyerror): Likewise.
10480 * objc-exp.y (parse_number): Likewise.
10481 (yyerror): Likewise.
10482 (yylex): Remove #if 0'ed code.
10483 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10484 (yyerror): Likewise.
10486 2012-01-16 Tom Tromey <tromey@redhat.com>
10489 * symtab.h (compare_filenames_for_search): Declare.
10490 * symtab.c (compare_filenames_for_search): New function.
10491 (iterate_over_some_symtabs): Use it.
10492 * symfile.h (struct quick_symbol_functions)
10493 <map_symtabs_matching_filename>: Change spec.
10494 * psymtab.c (partial_map_symtabs_matching_filename): Use
10495 compare_filenames_for_search. Update for new spec.
10496 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10497 compare_filenames_for_search. Update for new spec.
10498 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10500 2012-01-16 Tom Tromey <tromey@redhat.com>
10503 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10504 (struct main_type) <flag_flag_enum>: New field.
10505 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10506 * NEWS: Add entries.
10507 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10509 * python/lib/gdb/printing.py (_EnumInstance): New class.
10510 (FlagEnumerationPrinter): Likewise.
10512 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10514 * breakpoint.c (create_sals_from_address_default): New function.
10515 (create_breakpoints_sal_default): Likewise.
10516 (decode_linespec_default): Likewise.
10517 (is_marker_spec): Removed.
10518 (strace_marker_p): New function.
10519 (init_breakpoint_sal): Using `strace_marker_p' instead of
10521 (create_breakpoint): Call method `create_sals_from_address' from
10522 breakpoint_ops, replacing code that created SALs conditionally
10523 on the type of the breakpoint. Call method `create_breakpoints_sal',
10524 replacing code that created breakpoints conditionally on the type
10526 (base_breakpoint_create_sals_from_address): New function.
10527 (base_breakpoint_create_breakpoints_sal): Likewise.
10528 (base_breakpoint_decode_linespec): Likewise.
10529 (base_breakpoint_ops): Add methods
10530 `base_breakpoint_create_sals_from_address',
10531 `base_breakpoint_create_breakpoints_sal' and
10532 `base_breakpoint_decode_linespec'.
10533 (bkpt_create_sals_from_address): New function.
10534 (bkpt_create_breakpoints_sal): Likewise.
10535 (bkpt_decode_linespec): Likewise.
10536 (tracepoint_create_sals_from_address): Likewise.
10537 (tracepoint_create_breakpoints_sal): Likewise.
10538 (tracepoint_decode_linespec): Likewise.
10539 (strace_marker_create_sals_from_address): Likewise.
10540 (strace_marker_create_breakpoints_sal): Likewise.
10541 (strace_marker_decode_linespec): Likewise.
10542 (strace_marker_breakpoint_ops): New variable.
10543 (addr_string_to_sals): Remove `marker_spec'. Call method
10544 `decode_linespec' from breakpoint_ops, replacing code that decoded
10545 an address string into a SAL. Use `strace_marker_p' instead of
10547 (strace_command): Decide whether we are dealing with a static
10548 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10549 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10550 * breakpoint.h (linespec_result, linespec_sals): New forward
10552 (breakpoint_ops) <create_sals_from_address>,
10553 <create_breakpoints_sal>, <decode_linespec>: New methods.
10555 2012-01-14 Doug Evans <dje@google.com>
10557 * NEWS: Update text for "maint set python print-stack".
10558 It is deprecated in gdb 7.4 and deleted in 7.5.
10560 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10562 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10563 including curses.h.
10565 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10567 * configure: Regenerate.
10568 * config.in: Regenerate.
10570 2012-01-12 Keith Seitz <keiths@redhat.com>
10573 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10574 (ANONYMOUS_UNION_NAME): Define.
10575 (is_path_expr_parent): New function.
10576 (get_path_expr_parent): New function.
10577 (is_anonymous_child): New function.
10578 (create_child_with_value): If the child is anonymous and without
10579 a name, assign an object name to it.
10580 (c_describe_child): Use get_path_expr_parent to determine
10581 the parent expression.
10582 If there field represents an anonymous struct or union and
10583 has no name, set an appropriate display name and expression.
10584 (cplus_describe_child): Likewise.
10586 2012-01-12 Pedro Alves <palves@redhat.com>
10588 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10589 available when %ebp is found to be zero (outermost).
10591 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10593 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10594 an internal gdb_static_assert.
10595 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10597 2012-01-11 Tom Tromey <tromey@redhat.com>
10600 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10601 catch" and "catch throw".
10603 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10605 * blockframe.c (block_innermost_frame): Start search from selected
10606 frame, if present, or otherwise the current frame.
10608 * c-exp.y (variable): Update innermost_block for
10609 'block COLONCOLON NAME' clause.
10610 * m2-exp.y (variable): Ditto.
10611 * objc-exp.y (variable): Ditto.
10613 2012-01-10 Tom Tromey <tromey@redhat.com>
10616 * python/python.c (finish_python_initialization): Set sys.argv.
10618 2012-01-10 Doug Evans <dje@google.com>
10620 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10621 "want_line_info". All callers updated.
10622 (dwarf_decode_lines_1): New function.
10623 (handle_DW_AT_stmt_list): Add function comment.
10624 New arg "want_line_info". All callers updated.
10625 (read_file_scope,read_type_unit_scope): Move comment from
10626 handle_DW_AT_stmt_list to here.
10628 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10630 Fix regression after libiberty/ update for GCC PR 6057 and others.
10631 * c-exp.y (operator) <OPERATOR DELETE>
10632 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10633 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10634 (make_builtin_type, make_name): New variable i, add gdb_assert.
10635 (operator) <OPERATOR NEW>: Update ARGS to 3.
10636 (operator) <OPERATOR DELETE>: Add trailing space.
10637 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10638 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10639 * cp-support.c (cp_canonicalize_string): Check NULL from
10640 cp_comp_to_string, call warning and return.
10642 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10644 Fix duplicate .o files after omitting libbfd.a.
10645 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10646 (SFILES): Add corelow.c.
10647 (COMMON_OBS): Add corelow.o.
10648 (ALLDEPFILES): Remove corelow.c.
10649 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10650 * config/alpha/alpha-osf3.mh: Likewise.
10651 * config/alpha/fbsd.mh: Likewise.
10652 * config/arm/nbsdaout.mh: Likewise.
10653 * config/arm/nbsdelf.mh: Likewise.
10654 * config/i386/i386gnu.mh: Likewise.
10655 * config/ia64/hpux.mh: Likewise.
10656 * config/ia64/linux.mh: Likewise.
10657 * config/m32r/linux.mh: Likewise.
10658 * config/m68k/linux.mh: Likewise.
10659 * config/mips/irix5.mh: Likewise.
10660 * config/mips/irix6.mh: Likewise.
10661 * config/pa/hpux.mh: Likewise.
10662 * config/pa/linux.mh: Likewise.
10663 * config/powerpc/aix.mh: Likewise.
10664 * config/sparc/linux.mh: Likewise.
10665 * config/sparc/linux64.mh: Likewise.
10666 * config/sparc/sol2.mh: Likewise.
10667 * config/vax/vax.mh: Likewise.
10668 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10669 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10670 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10671 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10672 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10673 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10674 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10675 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10676 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10677 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10678 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10679 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10680 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10681 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10682 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10683 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10684 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10685 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10686 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10687 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10688 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10689 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10690 corelow.o from gdb_target_obs.
10691 * corefile.c (core_target): Update the comment on NULL value.
10692 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10693 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10694 MATCHES. Drop YUMMY set on NULL.
10695 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10696 reclaim CORE_DATA if it is already NULL.
10698 2012-01-09 Doug Evans <dje@google.com>
10700 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10701 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10703 2012-01-09 Keith Seitz <keiths@redhat.com>
10705 * breakpoint.c (wrapper.h): Don't include.
10707 2012-01-09 Keith Seitz <keiths@redhat.com>
10709 * Makefile.in (SFILES): Remove wrapper.c.
10710 (HFILES_NO_SRCDIR): Remove wrapper.h.
10711 (COMMON_OBS): Remove wrapper.o.
10712 * cli/cli-interp.c: Don't inlude wrapper.h.
10713 * corelow.c: Likewise.
10714 (core_open): Replace gdb_target_find_new_threads with
10715 TRY_CATCH around target_find_new_threads.
10716 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10717 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10718 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10719 evaluate_expression.
10720 (varobj_set_value): Likewise for evaluate_expression and
10722 (install_new_variable): Likewise for value_fetch_lazy.
10723 (adjust_value_for_child_access): Likewise for value_ind.
10724 (c_describe_child): Likewise for value_subscript and
10726 (c_value_of_root): Likewise for evaluate_expression.
10727 * wrapper.c: Remove.
10728 * wrapper.h: Remove.
10730 2012-01-09 Doug Evans <dje@google.com>
10732 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10733 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10734 "abfd" args with "section". All callers updated.
10735 Error checking code moved ...
10736 (error_check_comp_unit_head): ... here. New function.
10737 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10738 Delete arg "abfd". New arg "type_offset". All callers updated.
10739 (create_debug_types_hash_table): Simplify by using
10740 read_and_check_type_unit_head.
10742 * parser-defs.h (namecopy): Delete.
10743 * parse.c (namecopy, namecopy_size): Move into copy_name.
10745 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10747 Partially fix duplicate .o files after omitting libbfd.a.
10748 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10749 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10750 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10751 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10752 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10753 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10754 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10756 2012-01-09 Pedro Alves <palves@redhat.com>
10758 * MAINTAINERS: Update my email address.
10760 2012-01-08 Doug Evans <dje@google.com>
10762 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10763 n_type_units. Rename type_comp_units to all_type_units.
10765 (add_signatured_type_cu_to_table): Renamed from
10766 add_signatured_type_cu_to_list. All callers updated.
10768 * gdbtypes.h (struct cplus_struct_type): Delete member
10769 nfn_fields_total. All uses removed.
10771 2012-01-06 Doug Evans <dje@google.com>
10773 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10775 (dwarf2_find_comp_unit): Delete.
10776 (process_psymtab_comp_unit): Make result "void".
10777 Delete args buffer, info_ptr, buffer_size, and replace with
10778 "section". All callers updated.
10779 (dwarf2_build_psymtabs_hard): Simplify.
10781 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10782 Thiago Jung Bauermann <bauerman@br.ibm.com>
10784 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10785 before `struct gdb_exception'.
10786 * breakpoint.c (update_global_location_list_nothrow)
10787 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10788 * cp-abi.c (value_rtti_type): Likewise.
10789 * cp-support.c (cp_validate_operator): Likewise.
10790 * infrun.c (insert_exception_resume_breakpoint)
10791 (check_exception_resume, keep_going): Likewise.
10792 * mi-interp.c (mi_breakpoint_created)
10793 (mi_breakpoint_modified): Likewise.
10794 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10795 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10796 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10798 2012-01-05 Doug Evans <dje@google.com>
10800 * dwarf2read.c (statement_prologue): Delete, unused.
10802 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10803 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10805 * dwarf2read.c (comp_unit_header): Delete, unused.
10807 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10809 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10810 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10812 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10814 * infrun.c (normal_stop): Don't skip calling the normal_stop
10815 observers if the thread was doing a multi-step, but stopped for
10816 some reason other than stepping.
10818 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10820 * cli/cli-decode.h: Add comments.
10821 (CMD_LIST_AMBIGUOUS): Moved to command.h
10822 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10823 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10824 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10825 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10826 (add_com, add_com_alias, add_info, add_info_alias)
10827 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10829 * command.h: Add and adjust comments.
10830 (CMD_LIST_AMBIGUOUS): Moved here.
10831 (help_cmd, help_cmd_list): Delete declarations.
10833 2012-01-04 Doug Evans <dje@google.com>
10835 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10836 All callers updated.
10837 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10838 Replace all arguments with "per_cu". All callers updated.
10840 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10842 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10843 New arg "per_cu". All callers updated.
10845 Delete #if 0'd out code.
10846 * language.c (binop_result_type): Delete.
10847 (simple_type, ordered_type, same_type, integral_type): Delete.
10848 (numeric_type, character_type, string_type, boolean_type): Delete.
10849 (float_type, structured_type): Delete.
10850 * language.h: Update.
10852 2012-01-04 Tom Tromey <tromey@redhat.com>
10854 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10856 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10858 * corefile.c (close_exec_file): Delete.
10859 (reopen_exec_file): Remove commented out code that seems related
10860 to close_exec_file, which is being deleted here.
10861 * inferior.h (close_exec_file): Delete.
10862 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10864 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10866 * ada-lang.c: #include "cli/cli-utils.h".
10867 (get_selections): Use skip_spaces.
10868 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10869 (catch_ada_exception_command_split): Use skip_spaces.
10870 (ada_decode_assert_location): Likewise.
10872 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10874 * linespec.c (decode_line_internal): Check for C++ or Java
10875 compound constructs only if the current language is C, C++
10878 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10881 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10882 Joel Brobecker <brobecker@adacore.com>
10883 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10884 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10886 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10887 fall through into AT_ENTRY_POINT.
10888 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10889 DUMMY_ADDR with it.
10890 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10891 PPC_INSN_SIZE skip to 3 times.
10893 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10895 * linespec.c (add_minsym): Preserve function descriptors.
10897 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10899 * breakpoint.c (all_locations_are_pending): Consider locations
10900 in program spaces executing during startup pending as well.
10902 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10904 Copyright year update in most files of the GDB Project.
10906 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10908 * copyright.sh: Delete.
10909 * copyright.py: Rewrite.
10911 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10913 * gnulib/extra/update-copyright: New file, imported from gnulib.
10915 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10917 * README (Copyright and License Notices): New section.
10919 2012-01-03 Tom Tromey <tromey@redhat.com>
10922 * python/py-value.c (valpy_dereference, valpy_get_address
10923 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10924 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10925 (valpy_absolute, valpy_richcompare): Free intermediate values.
10927 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10929 * ada-lang.c: Reformat the copyright notice.
10931 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10933 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10934 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10935 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10936 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10937 Revert this part of:
10938 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10939 Build gdb directly from *.o files not using libgdb.a.
10940 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10942 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10944 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10945 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10946 Reformat the copyright header.
10948 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10950 Revert this part of:
10951 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10952 Remove the gdbtui binary.
10953 * gdb.c (main): Remove args.interpreter_p initialization.
10954 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10955 * main.h (struct captured_main_args): Remove interpreter_p.
10957 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10959 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10961 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10963 * top.c (print_gdb_version): Update copyright year.
10965 2012-01-02 Yao Qi <yao@codesourcery.com>
10967 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10969 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10970 Joel Brobecker <brobecker@adacore.com>
10972 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10973 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10975 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10976 fall through into AT_ENTRY_POINT.
10977 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10978 DUMMY_ADDR with it.
10979 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10980 PPC_INSN_SIZE skip to 3 times.
10982 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10984 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10986 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10988 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10990 Build gdb directly from *.o files not using libgdb.a.
10991 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10992 (COMMON_OBS): Remove solib-target.o.
10993 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10994 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10995 (LIBGDB_OBS, libgdb.a): Move it above.
10996 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10997 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10998 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10999 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11000 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11001 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11002 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11003 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11004 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11005 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11006 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11007 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11008 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11009 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11010 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11011 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11012 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11013 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11014 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11015 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11016 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11017 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11018 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11019 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11020 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11021 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11022 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11024 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11026 Remove the gdbtui binary.
11027 * .gitignore (/gdbtui): Remove.
11028 * Makefile.in (TUI): Remove.
11029 (SUBDIR_TUI_OBS): Remove tui-main.o.
11030 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11031 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11032 (tui-main.o): Remove.
11033 (all_object_files): Remove tui-main.o.
11034 * NEWS: New note for the gdbtui removal.
11035 * configure: Rebuilt.
11036 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11037 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11038 CONFIG_UNINSTALL respectively.
11039 * gdb.c (main): Remove args.interpreter_p initialization.
11040 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11041 * main.h (struct captured_main_args): Remove interpreter_p.
11042 * tui/tui-main.c: Remove.
11044 2012-01-01 Doug Evans <dje@google.com>
11046 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11047 (dwarf2_physname, read_import_statement): Ditto.
11048 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11049 (process_structure_scope read_subroutine_type): Ditto.
11050 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11051 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11052 (dwarf2_fetch_die_location_block): Ditto.
11053 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11055 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11056 All callers updated.
11057 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11058 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11059 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11061 * dwarf2read.c (load_cu): Move assert to more useful location.
11063 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11064 All callers updated.
11066 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11067 (dwarf2_elf_names): Minor reformat.
11068 (dwarf2_per_cu_data): Tweak comment.
11069 (dwarf2_read_section): Fix comment.
11070 (create_all_comp_units): Fix comment.
11071 (load_full_comp_unit): Fix comment.
11072 (process_full_comp_unit): Fix comment.
11073 (read_signatured_type): Fix comment.
11075 For older changes see ChangeLog-2011.
11081 version-control: never